/* ============================================================
   npkc-expert.ru — дизайн-система
   Палитра: глубокий бирюзовый (бренд) + латунный акцент.
   Подробности: .claude/skills/site-design/SKILL.md
   ============================================================ */

:root {
  --teal-900: #084a5c;   /* фон тёмных секций, футер (циановая гамма) */
  --teal-800: #0c617a;
  --teal-700: #0a6c88;   /* основной брендовый, ссылки */
  --teal-500: #2ea8c8;   /* светлее, hover, детали */
  --teal-100: #dcf1f7;   /* светлый фон блоков */
  --accent:   #c9a227;   /* латунь — CTA, детали. Умеренно! */
  --accent-dk:#a98718;
  --ink:      #17272b;
  --ink-soft: #52666b;
  --paper:    #ffffff;
  --bg:       #f2fafc;
  --line:     #cbe6ee;
  --ok:       #2e7d5b;
  --err:      #b3402e;
  --shadow:   0 2px 14px rgba(8, 74, 92, .08);
  --shadow-lg:0 12px 40px rgba(8, 74, 92, .16);
  --radius:   12px;
  --font:     'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* якоря не прячутся под липкой шапкой */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 { color: var(--teal-800); line-height: 1.2; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--teal-700);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--teal-900); }
.btn-accent:hover { background: var(--accent-dk); color: var(--teal-900); }
.btn-outline {
  background: transparent; color: var(--teal-700);
  box-shadow: inset 0 0 0 2px var(--teal-700);
}
.btn-outline:hover { background: var(--teal-700); color: #fff; }
.btn-outline-light {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); border-radius: 10px;
  font: 700 16px/1 var(--font-display);
  color: var(--accent); letter-spacing: .04em;
  background: var(--teal-800);
}
.brand-name {
  display: block;
  font: 700 17px/1.2 var(--font);
  color: var(--teal-800);
}
.brand-tag { display: block; font-size: 12px; color: var(--ink-soft); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-size: 15.5px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-700); border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  text-decoration: none; font-weight: 600; font-size: 15.5px;
  color: var(--teal-800); white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--teal-800);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(78,199,235,.45) 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(201,162,39,.22) 0%, transparent 55%),
    linear-gradient(160deg, var(--teal-800) 0%, var(--teal-900) 70%);
  overflow: hidden;
}
.hero::before {
  /* тонкая «бухгалтерская» сетка */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 600px at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 600px at 70% 30%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative;
  padding: 64px 0 52px;
  max-width: 940px;
}
.hero-inner > .hero-kicker, .hero-inner > h1 { max-width: 820px; }
.hero-kicker {
  font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #d3ecf3; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #e7f6fa; max-width: 640px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; flex-wrap: wrap; }
.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-stat + .hero-stat {
  margin-left: 30px;
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.hero-stat b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(201,162,39,.25);
  white-space: nowrap;
}
.hero-stat b span { font-size: inherit; }
.hero-stat > span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #e7f6fa;
  max-width: 175px;
}
.hero-stat > span strong { display: block; font-size: 15px; color: #fff; font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: linear-gradient(160deg, var(--teal-800), var(--teal-900)); color: #d8ecf4; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); font-weight: 600; margin-bottom: 10px;
}
.section-dark .section-kicker { color: var(--accent); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}
.section-lead { color: var(--ink-soft); font-size: 18px; }
.section-dark .section-lead { color: #dff3f8; }

/* появление при скролле (скрываем только при работающем JS — см. main.js) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Карточки услуг ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .card-more { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Как мы работаем ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
  margin-bottom: 56px;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 30px/1 var(--font-display);
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

.workmodes { display: grid; gap: 12px; }
.workmode {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.workmode summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; font-size: 16.5px;
  color: var(--teal-800);
  list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.workmode summary::-webkit-details-marker { display: none; }
.workmode summary::after {
  content: "+"; margin-left: auto;
  font: 400 24px/1 var(--font-display);
  color: var(--teal-500);
  transition: transform .2s;
}
.workmode[open] summary::after { transform: rotate(45deg); }
.workmode-body { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.workmode-body ul { padding-left: 20px; margin-top: 8px; }
.workmode-body li { margin-bottom: 6px; }

/* ---------- Тарифы ---------- */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.tariff {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-500); }
.tariff h3 { font-size: 18px; margin-bottom: 4px; }
.tariff-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; min-height: 42px; }
.tariff-price {
  font: 700 30px/1.1 var(--font-display);
  color: var(--teal-700);
  margin-bottom: 4px;
}
.tariff-price small { font: 600 14px/1 var(--font); color: var(--ink-soft); }
.tariff-per { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.tariff .btn { margin-top: auto; text-align: center; }
.tariffs-note { color: var(--ink-soft); font-size: 15px; max-width: 780px; }
.tariffs-note a { font-weight: 600; }

/* таблица надбавок */
.price-table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.price-table th, .price-table td { padding: 12px 18px; text-align: left; }
.price-table th { background: var(--teal-700); color: #fff; font-weight: 600; }
.price-table tr:nth-child(even) td { background: var(--teal-100); }
.price-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--teal-800); }

/* ---------- Калькулятор ---------- */
#kalkulyator-app { min-height: 640px; } /* резерв под отрисовку калькулятора: без прыжка контента */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.calc-form { padding: 34px 34px 30px; }
.calc-form fieldset { border: none; margin-bottom: 26px; transition: opacity .2s; }
.calc-form fieldset:disabled { opacity: .4; }
.calc-form legend {
  font-weight: 700; font-size: 16px; color: var(--teal-800);
  margin-bottom: 12px;
}
.calc-tariffs { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-tariffs label {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.calc-tariffs input { position: absolute; opacity: 0; pointer-events: none; }
.calc-tariffs label:has(input:checked) {
  background: var(--teal-700); border-color: var(--teal-700); color: #fff;
}
.calc-tariffs label:has(input:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.calc-rows { display: grid; gap: 10px; }
.calc-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.calc-row .calc-label { flex: 1; }
.calc-row .calc-hint { display: block; font-size: 12.5px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button {
  width: 36px; height: 36px; border: none; background: var(--teal-100);
  color: var(--teal-700); font-size: 18px; font-weight: 700; cursor: pointer;
}
.stepper button:hover { background: var(--teal-700); color: #fff; }
.stepper input {
  width: 46px; height: 36px; border: none; text-align: center;
  font: 600 15px var(--font); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.calc-checks label { display: flex; align-items: center; gap: 9px; font-size: 14.5px; cursor: pointer; }
.calc-checks input { width: 17px; height: 17px; accent-color: var(--teal-700); }
.calc-result {
  background: linear-gradient(165deg, var(--teal-800), var(--teal-900));
  color: #fff;
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.calc-result h3 { color: #d3ecf3; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.calc-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--accent);
}
.calc-total small { font: 600 15px var(--font); color: #d3ecf3; }
.calc-breakdown { margin: 18px 0 20px; font-size: 14px; color: #e7f6fa; flex: 1; }
.calc-breakdown li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.calc-disclaimer { font-size: 12.5px; color: #cfe9f2; margin-bottom: 18px; }
.calc-result .btn { text-align: center; }

/* ---------- Почему мы ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.benefit {
  display: flex; gap: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
}
.benefit-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(201,162,39,.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { color: #fff; font-size: 17.5px; margin-bottom: 6px; }
.benefit p { font-size: 14.5px; color: #dff3f8; }

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.person-avatar {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--teal-500), var(--teal-800));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 22px/1 var(--font-display);
  letter-spacing: .03em;
}
.person h3 { font-size: 16.5px; margin-bottom: 4px; }
.person p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Клиенты (бегущая строка) ---------- */
.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee 36s linear infinite;
  padding: 4px 0;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600;
  color: var(--teal-800);
  white-space: nowrap;
}

/* ---------- Статьи ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.article-tag {
  background: var(--teal-100); color: var(--teal-700);
  border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
.article-card h3 { font-size: 19px; margin-bottom: 10px; }
.article-card h3 a { text-decoration: none; color: var(--teal-800); }
.article-card h3 a:hover { color: var(--teal-500); }
.article-card p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.article-card .card-more { margin-top: 16px; font-weight: 600; font-size: 15px; text-decoration: none; }

/* страница статьи */
.article-page { max-width: 760px; margin: 0 auto; }
.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 18px;
}
.article-body { font-size: 17px; }
.article-body h2 { font-size: 24px; margin: 36px 0 14px; font-family: var(--font-display); }
.article-body h3 { font-size: 19px; margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--teal-100); color: var(--teal-800); }
.article-callout {
  background: var(--teal-100);
  border-left: 4px solid var(--teal-700);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 16px;
}
.article-cta {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  border-radius: var(--radius);
  color: #d8ecf4;
  padding: 28px 30px;
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.article-cta p { margin: 0; flex: 1; min-width: 240px; }
.article-cta strong { color: #fff; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16.5px; color: var(--teal-800);
  list-style: none; display: flex; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto;
  font: 400 24px/1 var(--font-display); color: var(--teal-500);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Форма заявки ---------- */
.apply-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px;
  align-items: start;
}
.apply-info h2 { color: #fff; }
.apply-info p { color: #dff3f8; }
.apply-contacts { margin-top: 26px; display: grid; gap: 10px; font-size: 16px; }
.apply-contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.apply-contacts a:hover { color: var(--accent); }
.apply-contacts span { color: #d3ecf3; font-size: 14px; }
.form {
  background: var(--paper);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--teal-800); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: 400 15.5px var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal-700);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-consent {
  grid-column: 1 / -1;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-soft);
}
.form-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal-700); }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn { width: 100%; }
.form-status { grid-column: 1 / -1; font-size: 15px; display: none; }
.form-status.ok { display: block; color: var(--ok); font-weight: 600; }
.form-status.err { display: block; color: var(--err); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Контакты ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { font-family: var(--font-display); color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: #dff3f8; margin-top: 10px; max-width: 640px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; align-items: start; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px;
}
.contact-card h2 { font-size: 20px; margin-bottom: 18px; }
.contact-item { margin-bottom: 18px; }
.contact-item b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-item a { font-size: 17px; font-weight: 600; text-decoration: none; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 480px;
}
.map-frame iframe { display: block; width: 100%; height: 480px; border: 0; }
.map-link { padding: 12px 18px; font-size: 14.5px; background: var(--paper); }
.map-link a { text-decoration: none; font-weight: 600; }
.office-photo {
  max-width: 820px;
  margin: 40px auto 0;
}
.office-photo img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.office-photo figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Футер ---------- */
.site-footer {
  background: var(--teal-900);
  color: #d9edf4;
  padding: 56px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.brand-footer .brand-name { color: #fff; }
.footer-about p { margin-top: 14px; max-width: 380px; }
.footer-req { font-size: 13.5px; color: #c3dde8; }
.footer-col h3 {
  color: #fff; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col nav { display: grid; gap: 9px; }
.footer-col a { color: #d9edf4; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin-bottom: 12px; }
.footer-hours { font-size: 14px; color: #c3dde8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px; text-align: center;
  font-size: 13.5px; color: #bcd8e3;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
}

@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .cards-grid, .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .apply-wrap, .contacts-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 10px 20px 16px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-inner { padding: 56px 0 48px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat + .hero-stat { margin-left: 0; padding-left: 0; border-left: none; }
  .hero-stat b { font-size: 34px; min-width: 86px; }
  .hero-stat > span { max-width: none; }
  .cards-grid, .tariffs-grid, .steps, .articles-grid, .team-grid, .calc-checks, .form-grid { grid-template-columns: 1fr; }
  .calc-form, .calc-result, .form { padding: 24px 20px; }
  .brand-tag { display: none; }
  .map-frame, .map-frame iframe { min-height: 360px; height: 360px; }
}
