/* ==========================================================================
   Caspian Energy Research — design system
   Visual language modelled on hillmannconsulting.com:
   navy #003E7E dominant, Ubuntu headings / Open Sans body, pill buttons,
   pale-blue overlay panels, alternating white / #F4F4F4 sections.
   ========================================================================== */

:root {
  --navy:        #003E7E;
  --navy-dark:   #002A56;
  --blue:        #0056A7;
  --link:        #1863DC;
  --pale:        #CCDDF7;
  --pale-soft:   #E6EEFB;
  --grey:        #F4F4F4;
  --line:        #DEE2E6;
  --ink:         #212529;
  --muted:       #5B6570;
  --white:       #FFFFFF;

  --head:  'Ubuntu', 'Segoe UI', Arial, sans-serif;
  --body:  'Open Sans', 'Segoe UI', Arial, sans-serif;

  --shell: 1200px;
  --hdr:   84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Внешние ссылки в тексте (СП Stratum CER → stratumcer.com): подчёркнуты
   сразу, иначе в абзаце их не отличить от обычного текста. На тёмном фоне
   берут цвет окружающего текста — синий там не читается. */
.ext-link {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ext-link:hover { color: var(--blue); }
.hero .ext-link,
.section-navy .ext-link,
.cta-band .ext-link,
.site-footer .ext-link { color: inherit; }
.hero .ext-link:hover,
.section-navy .ext-link:hover { color: var(--white); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.25;
}
h1 { font-size: 50px; }
h2 { font-size: 30px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 20px; }
h6 { font-size: 17px; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}
.shell-narrow { max-width: 900px; }

.lead { font-size: 18px; line-height: 1.75; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow-light { color: var(--pale); }
/* Название компании везде набрано шрифтом логотипа — Calibri Bold.
   Calibri есть на Windows и там, где стоит Office; на остальных устройствах
   (Android, iPhone, Mac без Office) подгружается Carlito с Google Fonts —
   метрически совместимый клон, визуально почти неотличимый.
   Высота строчных у Calibri заметно меньше, чем у Open Sans и Ubuntu, поэтому
   кегль чуть увеличен, иначе название выглядело бы мельче окружающего текста.
   text-transform: none — название никогда не переводится в капс, даже в надзаголовках. */
.brand-name {
  font-family: 'Calibri', 'Carlito', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  padding: 9px 28px;
  border: 1px solid var(--navy);
  border-radius: 50px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--pale); border-color: var(--pale); color: var(--navy-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-sm { font-size: 14px; padding: 6px 22px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--hdr);
  display: flex;
  align-items: center;
  transition: background .25s, box-shadow .25s, height .25s;
}
.site-header .shell { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; transition: height .25s; }
.brand .logo-color { display: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.7); }
.nav a.is-active { color: var(--white); border-bottom-color: var(--white); }


/* «Вход» — кнопка-пилюля в правом верхнем углу (заняла место бывшей «Связаться») */
.nav-login { position: relative; margin-left: 6px; }
.login-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  padding: 6px 22px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.login-toggle svg { width: 16px; height: 16px; }
.login-toggle:hover,
.nav-login.is-open .login-toggle {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.site-header.is-solid .login-toggle { border-color: var(--navy); color: var(--navy); }
.site-header.is-solid .login-toggle:hover,
.site-header.is-solid .nav-login.is-open .login-toggle { background: var(--navy); color: var(--white); }

.login-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 310px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(0,42,86,.22);
  padding: 8px;
  z-index: 70;
}
.nav-login.is-open .login-menu { display: block; }
.login-menu > a {
  display: block;
  padding: 12px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .18s;
  /* пункты меню в шапке идут в одну строку, описания входа — нет */
  white-space: normal;
}
.login-menu > a:hover { background: var(--pale-soft); text-decoration: none; }
.login-menu strong {
  display: block;
  font-family: var(--head);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
}
.login-menu span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.login-label { display: none; }

/* solid state — after scroll and on light inner pages */
.site-header.is-solid {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0,0,0,.10);
  height: 72px;
}
.site-header.is-solid .brand .logo-white { display: none; }
.site-header.is-solid .brand .logo-color { display: block; }
.site-header.is-solid .brand img { height: 48px; }
.site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .nav a:hover,
.site-header.is-solid .nav a.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.site-header.is-solid .btn-outline-light { border-color: var(--navy); color: var(--navy); }
.site-header.is-solid .btn-outline-light:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--white); border-radius: 2px;
  transition: background .2s;
}
.site-header.is-solid .nav-toggle span { background: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--hdr) + 70px) 0 90px;
  background: linear-gradient(rgba(0,62,126,.68), rgba(0,62,126,.68)) center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.hero h1 { color: var(--white); margin: 0; }
.hero p { color: rgba(255,255,255,.92); font-size: 19px; max-width: 760px; margin: 20px auto 0; }
/* подзаголовок главной — вдвое крупнее обычного текста в герое */
.hero p.hero-sub { font-size: 38px; line-height: 1.25; margin-top: 14px; }

/* ---------- сноска в герое (aicer.html) ----------
   По умолчанию — блок шириной с абзац, текст слева. js/main.js затем сдвигает
   его под начало последней строки абзаца и подгоняет длину линии. */
.fn-mark { font-size: .7em; line-height: 0; vertical-align: super; margin-left: 1px; }
.hero-footnote {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: left;
}
.hero-footnote-rule {
  display: block;
  width: 7em;                               /* запасная длина, если JS не сработал */
  border-top: 1px solid rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.hero .hero-footnote p {
  max-width: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.hero-footnote sup { font-size: .85em; line-height: 0; vertical-align: super; }
/* в узких сносках название иначе рвётся на «Caspian Energy / Research» */
.hero-footnote .brand-name,
.price-footnote .brand-name { white-space: nowrap; }
.hero .hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-sm { min-height: 380px; padding: calc(var(--hdr) + 50px) 0 60px; }
.hero-sm h1 { font-size: 42px; }

.crumbs {
  margin: 18px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs span { padding: 0 8px; opacity: .6; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 60px 0; }
.section-grey { background: var(--grey); }
.section-pale { background: var(--pale-soft); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.9); }
.section-navy h2, .section-navy h3, .section-navy h4, .section-navy h5 { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- intro block with overlapping form panel ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 60px;
  align-items: start;
}
.panel-pale {
  background: var(--pale);
  padding: 40px 36px;
  border-radius: 4px;
}
.panel-pale h3 { font-size: 30px; margin-bottom: 6px; }
.panel-pale .panel-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
.hero-overlap .panel-pale { margin-top: -140px; position: relative; z-index: 5; }

/* ---------- forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
.field:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
textarea.field { min-height: 118px; resize: vertical; }
.form-note { font-size: 13px; color: var(--navy-dark); margin: 4px 0 16px; }
.form-status { font-size: 14px; line-height: 1.55; margin-top: 12px; color: var(--navy-dark); }
.form-status:empty { margin-top: 0; }
.form-status.is-ok { color: #1B6E3C; font-weight: 600; }
.form-status.is-error { color: #A32020; }

.field:disabled, .btn:disabled { opacity: .6; cursor: default; }

/* оговорка Google — показывается только когда reCAPTCHA включена */
.recaptcha-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: -8px 0 16px;
}
.recaptcha-note a { color: var(--navy); text-decoration: underline; }
.panel-pale .recaptcha-note { color: var(--navy-dark); }

/* значок reCAPTCHA перекрывает кнопки в правом нижнем углу; вместо него
   на форме стоит текстовая оговорка — так разрешено правилами Google */
.grecaptcha-badge { visibility: hidden; }

/* ловушка для ботов: убрана из потока, но не display:none —
   часть роботов пропускает скрытые таким образом поля */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- pillar cards (ЭНЕРГИЯ / КАЧЕСТВО / ИННОВАЦИИ) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.pillar {
  background: var(--white);
  padding: 36px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,42,86,.08);
  height: 100%;
}
.pillar .icon-round {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar .icon-round svg { width: 26px; height: 26px; }
.pillar h4 {
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; font-family: var(--body); margin-bottom: 10px;
}
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- service rows (image + text) ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row .svc-media {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 239 / 165;
  background: var(--grey) center/cover no-repeat;
}
.svc-row h3 { margin-bottom: 6px; }
.svc-row .svc-sub {
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 14px;
}
.svc-row .btn { margin-top: 20px; }
.svc-row.reverse { grid-template-columns: minmax(0, 1fr) 300px; }
.svc-row.reverse .svc-media { order: 2; }

/* ---------- check list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 0 0 12px 34px;
  line-height: 1.65;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: no-repeat center/contain
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23003E7E'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-list.on-navy li::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23CCDDF7'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%23003E7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- stats strip ---------- */
.stats {
  background: linear-gradient(rgba(0,62,126,.86), rgba(0,62,126,.86)) center/cover no-repeat;
  color: var(--white);
  padding: 64px 0;
}
.stats .grid-4 { text-align: center; }
.stat .num {
  font-family: var(--head);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}
.stat .lbl {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-top: 8px;
}

/* ---------- feature cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
  height: 100%;
}
.card h5 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card .icon-round {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-round svg { width: 22px; height: 22px; }

/* карточки на тёмной секции — стеклянные, иконка остаётся светлой */
.section-navy .card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
}
.section-navy .card h5 { color: var(--white); }
.section-navy .card p { color: rgba(255,255,255,.80); }
.section-navy .section-head p { color: rgba(255,255,255,.85); }

/* ---------- people ---------- */
/* по двое в ряд; align-items:start — раскрытая карточка растёт вниз,
   а соседняя не растягивается вслед за ней */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

/* вся строка — кнопка: попасть по ней проще, чем по одной иконке */
.person-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
  transition: background .18s;
}
.person-head:hover { background: var(--pale-soft); }
.person-head:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* пока описания нет, строка не кликается и ведёт себя как обычная карточка */
.person.is-static .person-head { cursor: default; }
.person.is-static .person-head:hover { background: transparent; }
.person.is-static .person-toggle { display: none; }

.person-id { flex: 1 1 auto; min-width: 0; }
.person .name {
  display: block;
  font-family: var(--head); font-size: 19px; color: var(--navy); font-weight: 500;
  line-height: 1.3;
}
.person .role { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.person-toggle {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}
.person-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.person.is-open .person-toggle svg { transform: rotate(180deg); }

.person-bio {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}
.person-bio p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 14px;
}
.person-bio p:last-child { margin-bottom: 0; }

/* ---------- license cards ---------- */
.lic {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  padding: 24px 26px;
  margin-bottom: 18px;
}
.lic .lic-no {
  font-family: var(--head); font-size: 19px; color: var(--navy);
  font-weight: 500; margin-bottom: 4px;
}
.lic .lic-date { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.lic p { font-size: 15px; margin: 0; }

/* ---------- case blocks ---------- */
.case {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,42,86,.09);
  padding: 32px 30px;
  height: 100%;
}
.case .case-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--pale); color: var(--navy);
  padding: 4px 12px; border-radius: 50px; margin-bottom: 16px;
}
.case h4 { font-size: 21px; margin-bottom: 12px; }
.case .case-metric {
  font-family: var(--head); font-size: 34px; font-weight: 500; color: var(--blue);
  line-height: 1.1; margin-bottom: 6px;
}
.case p { font-size: 15px; color: var(--muted); }

/* ---------- pricing ---------- */
/* Колонки подобраны замером: при .84 / 1.16 на ширинах 1280–1440 px карточка
   и правая колонка выходят одной высоты (783 и 785 px). Сужать карточку сильнее
   нельзя — она вытягивается и перегоняет правую колонку.
   align-items: stretch + flex-колонка в карточке добивают точное совпадение
   на остальных ширинах: карточка растёт до высоты ряда, а кнопка с приписками
   уходит вниз. */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 60px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 22px rgba(0,42,86,.11);
  padding: 40px 36px;
}
/* свободное место — между описанием и кнопкой; минимум 28 px сохраняется */
.price-card > p:not([class]) { margin-bottom: 28px; }
.price-card > .btn-block { margin-top: auto; }
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.price-value {
  font-family: var(--head);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}
.price-unit { font-size: 17px; color: var(--muted); }
.price-card > p { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
/* что именно покупают за эту сумму — сразу под цифрой */
.price-card > p.price-scope {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.price-scope sup, .price-footnote sup {
  font-size: .75em;
  line-height: 0;
  vertical-align: super;
}
.price-note { font-size: 13px; line-height: 1.6; }
.price-note a { color: var(--navy); text-decoration: underline; }
.price-note a:hover { color: var(--blue); }
.price-card > p.price-footnote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 28px;
}

.price-included h3 { font-size: 24px; margin-bottom: 22px; }

/* «Валидация ответов» — под списком, тем же заголовком, текст приглушённый */
.price-validation { margin-top: 38px; }
.price-included .price-validation h3 { margin-bottom: 14px; }
.price-validation p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.price-validation p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 62px 0;
}
.cta-band .cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta-band h3 { color: var(--white); margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 620px; }

/* ---------- media + text split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}
.split img { border-radius: 4px; }
/* source photos vary in width — make every split image fill its column */
.split-media > img, .map-figure img { width: 100%; }
.split.reverse .split-media { order: 2; }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 30px 66px;
  border-left: 2px solid var(--pale);
  margin-left: 22px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -23px; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--head); font-size: 18px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.step h5 { margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- notice (важное требование внутри секции) ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 46px;
  padding: 28px 30px;
  background: var(--pale-soft);
  border-radius: 4px;
}
.notice .icon-round {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.notice .icon-round svg { width: 22px; height: 22px; }
.notice h5 { margin-bottom: 8px; }
.notice p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- contact tiles ---------- */
.contact-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
  text-align: center;
  height: 100%;
}
.contact-tile .icon-round {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.contact-tile .icon-round svg { width: 24px; height: 24px; }
.contact-tile h5 { margin-bottom: 8px; }
.contact-tile p, .contact-tile a { font-size: 16px; color: var(--ink); }

/* ---------- legal documents (оферта, политика) ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--grey);
  border-radius: 4px;
  padding: 26px 24px;
}
.legal-toc h5 { font-size: 17px; margin-bottom: 14px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin-bottom: 11px; }
.legal-toc li:last-child { margin-bottom: 0; }
.legal-toc a {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.legal-toc a:hover { color: var(--navy); text-decoration: none; }

.legal-doc h3 {
  font-size: 24px;
  margin: 44px 0 16px;
  scroll-margin-top: 96px;
}
.legal-doc > h3:first-child { margin-top: 0; }
.legal-doc p { font-size: 15.5px; line-height: 1.78; margin-bottom: 14px; }
/* «УТВЕРЖДЕНА / приказом №… » — шапка документа, а не основной текст */
.legal-preamble {
  margin-bottom: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--pale);
}
.legal-preamble p {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.legal-doctitle {
  font-family: var(--head);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 24px;
}
.legal-doc p.legal-doctitle { font-size: 21px; }

.legal-list { margin: 0 0 20px; padding-left: 22px; }
.legal-list li { font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }
.legal-meta {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.78);
  padding: 62px 0 0;
  font-size: 15px;
}
.site-footer h6 {
  color: var(--white);
  font-size: 16px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.site-footer .foot-logo { height: 46px; width: auto; margin-bottom: 20px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-login {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-login-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-right: 6px;
}
.foot-login .btn:hover { text-decoration: none; }

.foot-bottom {
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 22px 0 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,.6);
}
.foot-legal a { color: rgba(255,255,255,.72); }
.foot-legal a:hover { color: var(--white); }
.foot-legal .sep { padding: 0 9px; opacity: .45; }

/* ---------- misc ---------- */
.map-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}
.map-figure figcaption {
  font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  font-size: 13px; padding: 5px 14px; border-radius: 50px;
  background: var(--pale); color: var(--navy); white-space: nowrap;
}

/* ---------- responsive ---------- */
/* seven nav items plus the login menu need room — tighten before collapsing */
@media (max-width: 1280px) {
  .site-header .shell { gap: 18px; }
  .nav { gap: 17px; }
  .nav a, .login-toggle { font-size: 14px; }
  .login-toggle svg { width: 16px; height: 16px; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--hdr); left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,.14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  /* the header shrinks when solid — keep the dropdown flush against it */
  .site-header.is-solid .nav { top: 72px; }
  .nav a {
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover, .nav a.is-active { color: var(--navy); border-bottom-color: var(--line); }

  /* in the mobile menu the login block is expanded, not a dropdown */
  .nav-login { position: static; }
  .login-toggle { display: none; }
  .login-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .login-label {
    display: block;
    margin: 20px 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .login-menu > a {
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .login-menu > a:hover { background: transparent; }
  .login-menu > a:last-child { border-bottom: 0; }

  .pricing { grid-template-columns: 1fr; gap: 40px; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }

  .team { grid-template-columns: 1fr; }
  .intro-grid, .split, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .hero-overlap .panel-pale { margin-top: 0; }

  .svc-row, .svc-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .svc-row.reverse .svc-media { order: 0; }
  .svc-row .svc-media { max-width: 420px; }

  h1 { font-size: 38px; }
  .hero-sm h1 { font-size: 32px; }
  .hero p.hero-sub { font-size: 30px; }
  h2, h3 { font-size: 26px; }
  .section { padding: 60px 0; }
}

@media (max-width: 620px) {
  /* на узком экране подпись у стрелки съедает ширину у должности */
  .person-head { gap: 14px; padding: 18px; }
  .person-toggle-label { display: none; }
  .person-bio { padding: 18px 18px 20px; }

  .notice { flex-direction: column; gap: 16px; padding: 24px 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 440px; }
  h1 { font-size: 31px; }
  .hero p.hero-sub { font-size: 24px; }
  .stat .num { font-size: 42px; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* «Powered by AICER» в подвале — название платформы жирным и чуть ярче */
.foot-aicer { font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .02em; }
