/* uzturesanasatlauja.lv. Тёмный первый экран с силуэтом Риги, карминный акцент (флаг Латвии),
   белые секции, карточки ситуаций с линейными иконками. Только светлая тема, как у ldmkalkulators. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --ink: #141a24;
  --ink-2: #1e2633;
  --ink-line: rgba(255,255,255,.12);
  --on-ink: #e9edf3;
  --on-ink-muted: #a9b3c2;
  --bg: #ffffff;
  --alt: #f3f5f8;
  --line: #e1e5eb;
  --fg: #151a22;
  --muted: #5a6373;
  --accent: #b8323d;
  --accent-deep: #96262f;
  --accent-soft: #f9e9eb;
  --gold: #e0b75e;
  --ok: #1d6b45;
  --err: #a12a2a;
  --wa: #1fa855;
  --tg: #229ed9;
  --r: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(20, 26, 36, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16.5px/1.6 var(--font); }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 780px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.bi { width: 18px; height: 18px; flex: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 22px; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-light { background: #fff; color: var(--fg); }
.btn-light:hover { background: #eef1f5; color: var(--fg); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.msgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msgs-l { font-size: 14px; color: var(--on-ink-muted); margin-right: 2px; }
.msg { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; }
.msg.wa { background: var(--wa); }
.msg.tg { background: var(--tg); }
.msg:hover { color: #fff; filter: brightness(1.07); }

/* верхняя полоса и шапка */
.topbar { background: var(--ink); color: var(--on-ink-muted); font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.tb-c { display: flex; gap: 20px; }
.tb-link { display: inline-flex; align-items: center; gap: 7px; color: var(--on-ink); text-decoration: none; }
.tb-link:hover { color: #fff; }
.tb-link .ic { width: 15px; height: 15px; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.logo:hover { color: var(--fg); }
.logo-mark { width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(var(--accent) 0 40%, #fff 40% 60%, var(--accent) 60%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.langs { display: flex; gap: 2px; margin-left: auto; font-size: 14px; font-weight: 700; }
.langs a, .langs span { padding: 5px 9px; border-radius: 7px; text-decoration: none; }
.langs span { background: var(--alt); color: var(--fg); }
.langs a { color: var(--muted); }

/* первый экран */
.hero { position: relative; background: radial-gradient(900px 500px at 85% 0%, rgba(184,50,61,.35), transparent 60%), var(--ink); color: var(--on-ink); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-block: 64px 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--gold); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: #fff; }
.hero-sub { font-size: 18.5px; color: var(--on-ink-muted); margin-top: 18px; max-width: 58ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(224,183,94,.16); color: var(--gold); stroke-width: 2.4; }
.hero .msgs { margin-top: 18px; }
.hero-side { position: relative; }
.permit { position: absolute; width: 330px; max-width: 80%; right: -28px; top: -44px; transform: rotate(7deg); filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; color: rgba(255,255,255,.05); }

/* форма */
.form-card { position: relative; background: #fff; color: var(--fg); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 22px; }
.form-card .hint { color: var(--muted); font-size: 14.5px; margin: 6px 0 16px; }
form.lead { display: grid; gap: 12px; }
form.lead label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; color: #2b3240; }
form.lead input, form.lead textarea, form.lead select { font: 500 16px/1.4 var(--font); padding: 11px 12px; border: 1px solid #ccd3dc; border-radius: 9px; background: #fbfcfd; color: var(--fg); width: 100%; }
form.lead input:focus, form.lead textarea:focus, form.lead select:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
form.lead textarea { resize: vertical; }
form.lead .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted); }
form.lead .check input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--accent); }
form.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.lead.done label, form.lead.done button { display: none; }
.status { font-size: 15px; }
.status:empty { display: none; }
.status.ok { color: var(--ok); font-weight: 700; padding: 14px; background: #e6f3ec; border-radius: 10px; }
.status.err { color: var(--err); }

/* секции */
.block { padding-block: 72px; }
.block.alt { background: var(--alt); }
.sec-h { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 28px; }
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sit { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sit:hover { color: var(--fg); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.sit-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.sit-ic .ic { width: 24px; height: 24px; }
.sit b { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.sit-t { color: var(--muted); font-size: 15px; line-height: 1.5; }
.sit-more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.steps li { background: #fff; border-radius: 14px; padding: 24px; border: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.changes { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.changes-h p { color: var(--muted); font-size: 17px; margin-top: -12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13.5px; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.change-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.change-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.change-list .ic { color: var(--accent); stroke-width: 2.4; margin-top: 1px; }

.text h2 { font-size: 23px; margin: 30px 0 10px; }
.text h2:first-child { margin-top: 0; }
.text p { margin: 0 0 14px; }
.text ul { margin: 0 0 14px; padding-left: 22px; }
.text li { margin-bottom: 7px; }
.text li::marker { color: var(--accent); }
.doc { padding-block: 40px 72px; }

.band { background: var(--accent); color: #fff; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.band h2 { font-size: 28px; }
.band p { color: #f6dfe1; margin-top: 6px; font-size: 17px; }

/* страница карточки */
.page-hero { background: radial-gradient(700px 380px at 90% 0%, rgba(184,50,61,.32), transparent 60%), var(--ink); color: var(--on-ink); padding-block: 30px 54px; }
.page-hero.slim { padding-block: 44px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.page-hero .actions { margin-top: 24px; }
.page-hero .msgs { margin-top: 14px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--on-ink-muted); margin-bottom: 26px; }
.crumbs a { color: var(--on-ink); text-decoration: none; }
.ph-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
.ph-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--gold); margin-bottom: 16px; }
.ph-ic .ic { width: 26px; height: 26px; }
.facts { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 22px 24px; }
.facts h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 10px; font-weight: 600; color: #fff; }
.facts .ic { color: var(--gold); stroke-width: 2.4; }
.content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding-block: 52px 72px; align-items: start; }
.side { position: sticky; top: 86px; }
.side .form-card { border: 1px solid var(--line); }

/* подвал */
footer.site { background: var(--ink); color: var(--on-ink-muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 52px 36px; }
.foot p { margin-top: 12px; max-width: 40ch; }
.foot .small { font-size: 13.5px; }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-b { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; border-top: 1px solid var(--ink-line); font-size: 13.5px; }
.foot-b a { color: var(--on-ink-muted); }

/* нижняя панель на телефоне */
.mbar { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .hero-grid, .ph-grid, .changes, .content-grid { grid-template-columns: 1fr; }
  .permit { display: none; }
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .side { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  header.site .wrap { min-height: 58px; gap: 12px; }
  .logo { font-size: 15.5px; }
  .hdr-cta { display: none; }
  .hero-grid { padding-block: 36px 70px; gap: 32px; }
  .hero-sub { font-size: 17px; }
  .block { padding-block: 52px; }
  .sit-grid, .steps { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .band h2 { font-size: 24px; }
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,26,36,.08); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 12px; font-weight: 700; color: var(--fg); text-decoration: none; }
  .mbar .ic, .mbar .bi { width: 21px; height: 21px; }
  .mbar .wa { color: var(--wa); }
  .mbar .tg { color: var(--tg); }
  .mbar .go { color: #fff; background: var(--accent); }
}
