/* Молот.рус — оформление сайта.
   Сетка: контейнер 1240px, всё выровнено по левому краю; крупные панели и фото со срезанным
   правым верхним углом — тот же угол, что у шеврона в логотипе. */

@font-face { font-family: 'Russo One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/russo-one-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Russo One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/russo-one-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/golos-text-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/golos-text-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/golos-text-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/golos-text-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/golos-text-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/golos-text-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

:root {
  /* Цвета из брендбука */
  --sand: #E0DDCE;          /* песочный фон */
  --sand-light: #EFEDE3;    /* светлый фон страниц */
  --paper: #F8F6EF;         /* карточки и поля */
  --bone: #E9E6D8;          /* светлое на тёмном */
  --ink: #1D2119;           /* оливково-чёрный: текст, подвал */
  --olive-deep: #232A1E;    /* тёмные панели */
  --olive: #5B6A34;         /* акцент: кнопки, ссылки */
  --olive-hover: #4A5729;
  --olive-logo: #6B7A3F;    /* акцент логотипа */
  --olive-soft: #9DAC6C;    /* акцент на тёмном */
  --muted: #4A5045;         /* второстепенный текст */
  --line: rgba(29, 33, 25, 0.18);
  --line-dark: rgba(233, 230, 216, 0.16);

  --font-display: 'Russo One', 'Arial Black', 'Segoe UI', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(52px, 9vw, 116px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: 22px; line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--bone); padding: 12px 16px; border-radius: 3px; }
.skip:focus { top: 16px; }

/* Срезанный угол */
.cut { --cut: 26px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut--lg { --cut: clamp(36px, 5vw, 68px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 3px;
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease;
}
.btn--primary { background: var(--olive); color: #F8F6EF; }
.btn--primary:hover { background: var(--olive-hover); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(233, 230, 216, 0.5); }
.btn--ghost:hover { background: rgba(233, 230, 216, 0.1); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: #2E3527; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:disabled:hover { background: var(--olive); }

.textlink { color: var(--olive); font-weight: 600; text-underline-offset: 4px; }
.textlink:hover { color: var(--olive-hover); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--sand-light); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { width: 34px; height: 40px; }
.logo__word { font-family: var(--font-display); font-size: 23px; line-height: 1; letter-spacing: .03em; }
.logo--onlight { color: var(--ink); }
.logo--onlight .logo__dot { color: var(--olive-logo); }
.logo--ondark { color: var(--bone); }
.logo--ondark .logo__dot { color: var(--olive-soft); }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); margin-right: auto; }
.site-nav a:not(.btn) { font-weight: 500; text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--olive-logo); }
.site-nav__phone, .site-nav__cta { display: none; }
.site-header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-header__phone:hover { color: var(--olive); }

.burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }

@media (max-width: 1080px) { .site-header__phone { display: none; } }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .site-header__cta { margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px var(--gutter) 24px; background: var(--sand-light); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--olive); }
  .site-nav .site-nav__phone { display: block; font-weight: 600; }
}
@media (max-width: 560px) {
  .site-header__cta { display: none; }
  .burger { margin-left: auto; }
  .site-nav .site-nav__cta { display: inline-flex; margin-top: 16px; }
  .logo__word { font-size: 21px; }
}

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.hero__text p { max-width: 58ch; }
.hero__text p:not(.lead) { color: var(--muted); }
.hero__text .btn { margin-top: 12px; }

.emblem { position: relative; display: grid; place-items: center; min-height: clamp(280px, 36vw, 480px); background: var(--olive-deep); overflow: hidden; }
.emblem__star { position: absolute; width: 150%; max-width: none; left: -25%; top: -22%; color: rgba(233, 230, 216, 0.1); }
.emblem__shield { position: relative; width: 42%; max-width: 220px; height: auto; }

.hero--vacancy .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero--vacancy h1 { font-size: clamp(38px, 5.4vw, 70px); overflow-wrap: break-word; }
.hero__photo { position: relative; aspect-ratio: 4 / 3; width: 100%; background: var(--olive-deep); overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--olive); font-weight: 600; text-underline-offset: 4px; }

.hero--list { padding-bottom: clamp(32px, 4vw, 56px); }
.hero__split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero__split .lead { color: var(--muted); padding-bottom: clamp(4px, 1vw, 14px); }

@media (max-width: 860px) {
  .hero__grid, .hero--vacancy .hero__grid, .hero__split { grid-template-columns: minmax(0, 1fr); }
  .emblem { min-height: 240px; }
  .emblem__shield { width: 120px; }
}

/* ---------- Главная ---------- */
.home-hero { padding-block: clamp(16px, 3vw, 40px) clamp(48px, 7vw, 96px); }
.home-hero__panel { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: clamp(480px, 46vw, 640px); background: var(--olive-deep); color: var(--bone); overflow: hidden; }
.home-hero__star { position: absolute; width: 64%; max-width: none; left: -16%; bottom: -46%; color: rgba(233, 230, 216, 0.08); pointer-events: none; }
.home-hero__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(120px, 11vw, 150px); min-width: 0; }
.home-hero__text h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; max-width: 15ch; }
.home-hero__text .lead { color: rgba(233, 230, 216, 0.82); max-width: 46ch; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.home-hero__photo { position: relative; min-height: 100%; background: var(--ink); }
.home-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.stats { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: calc(-1 * clamp(84px, 8vw, 104px)) clamp(16px, 3vw, 48px) 0; }
.stats li { display: flex; min-width: 0; }
.stat { --cut: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; min-height: 176px; padding: 24px 24px 26px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.stat:hover { background: #FFFFFF; }
.stat:focus-visible { outline-offset: -3px; }
.stat__go { position: absolute; top: 26px; right: 26px; width: 9px; height: auto; color: var(--olive-logo); }
.stat__prefix { min-height: 1.3em; margin-bottom: -6px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--olive); }
.stat__value { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 40px); line-height: 1; white-space: nowrap; }
.stat__text { color: var(--muted); font-size: 16px; line-height: 1.4; }
.stats__note { margin: 16px clamp(16px, 3vw, 48px) 0; font-size: 14px; color: var(--muted); }
.stat__short, .home-hero__cta { display: none; }

.steps { padding-block: 0 var(--section); }
.steps h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.steps__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); min-width: 0; }
.step__num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--olive-logo); margin-bottom: 8px; }
.step p { color: var(--muted); }

.benefits { display: grid; gap: 32px; }
.rows--strong > li:first-child { border-top: 2px solid var(--ink); }

.cities { padding-block: var(--section) 0; }
.cities + .apply { padding-top: var(--section); }
.cities__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px 40px; }
.cities__list li { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; }
.cities__mark { width: 18px; height: 18px; flex: none; color: var(--olive-logo); }

@media (max-width: 1023px) {
  .stats, .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Телефоны и планшеты: заголовок поверх фото, сразу под ним цифры 2×2 и кнопка — всё на первом экране */
@media (max-width: 860px) {
  .home-hero { padding-top: 12px; }
  .home-hero__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-hero__star { display: none; }
  .home-hero__photo { position: absolute; inset: 0; min-height: 0; }
  .home-hero__photo img { object-position: 50% 24%; }
  .home-hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 42, 30, 0) 22%, rgba(35, 42, 30, 0.7) 55%, var(--olive-deep) 96%); }
  .home-hero__text { z-index: 1; gap: 12px; padding: clamp(100px, 28vw, 240px) 20px 20px; }
  .home-hero__text h1 { font-size: clamp(27px, 7.4vw, 46px); max-width: 16ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
  .home-hero__text .lead { font-size: 17px; }
  .home-hero__actions { display: none; }

  .stats { gap: 8px; margin: 8px 0 0; }
  .stat { --cut: 14px; gap: 4px; min-height: 0; padding: 12px 12px 14px; }
  .stat__go { top: 14px; right: 13px; width: 7px; }
  .stat__prefix { min-height: 0; margin: 0; font-size: 13px; }
  .stat__value { font-size: clamp(20px, 6.4vw, 30px); }
  .stat__text { display: none; }
  .stat__short { display: block; font-size: 14px; line-height: 1.3; color: var(--muted); }
  .stats li:first-child .stat { background: var(--olive); color: #F8F6EF; }
  .stats li:first-child .stat:hover { background: var(--olive-hover); }
  .stats li:first-child :is(.stat__prefix, .stat__short, .stat__go) { color: rgba(248, 246, 239, 0.86); }

  .home-hero__cta { display: flex; width: 100%; margin-top: 8px; }
  .stats__note { margin: 10px 0 0; font-size: 13px; }
}
@media (max-width: 560px) {
  .steps__grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero__text .lead { display: none; }
}

/* ---------- О нас ---------- */
.pledge { border-block: 1px solid var(--line); }
.pledge__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-block: clamp(32px, 4vw, 52px); }
.pledge__mark { flex: none; width: 40px; height: auto; color: var(--olive-logo); }
.pledge p { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; font-weight: 500; max-width: 46ch; min-width: 0; }

.features { padding-block: var(--section); }
.features h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); }
.feature { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--ink); min-width: 0; }
.feature__icon { width: 56px; height: 56px; color: var(--olive); margin-bottom: 6px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .features__grid { grid-template-columns: minmax(0, 1fr); } }

.closing { background: var(--sand); padding-block: clamp(48px, 7vw, 96px); }
.closing p { font-family: var(--font-display); font-size: clamp(24px, 3.3vw, 44px); line-height: 1.16; max-width: 26ch; text-wrap: balance; }

/* ---------- Вакансии ---------- */
.vlist { padding-bottom: var(--section); }
.vlist--other { padding-top: 0; }
.vlist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 40px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.vcard { min-width: 0; background: var(--paper); }
.vcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.vcard__link:focus-visible { outline-offset: -3px; }
.vcard__photo { position: relative; aspect-ratio: 3 / 2; width: 100%; background: var(--olive-deep); overflow: hidden; }
.vcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vcard__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 24px; }
.vcard__title { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; min-width: 0; overflow-wrap: break-word; }
.vcard__more { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 3px; background: var(--ink); color: var(--bone); font-weight: 600; font-size: 15px; transition: background-color .15s ease; }
.vcard__link:hover .vcard__more { background: var(--olive); }
.vcard__link:hover .vcard__photo img { transform: scale(1.04); }

@media (min-width: 1024px) {
  .vgrid--main .vcard--wide { grid-column: span 2; }
  .vgrid--main .vcard--wide .vcard__photo { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
}
@media (max-width: 1023px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Условия ---------- */
.terms { padding-block: clamp(8px, 2vw, 24px) var(--section); }
.terms--band { background: var(--sand); padding-block: var(--section); }
.terms--band + .apply { padding-top: var(--section); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split__head { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split__head p { color: var(--muted); max-width: 52ch; }
.split__body { min-width: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows > li, .rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 28px; padding-block: 16px; border-top: 1px solid var(--line); }
.rows--pairs > div:first-child { border-top: 2px solid var(--ink); }
.rows dt { min-width: 0; }
.rows dd { flex: none; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows__caption { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--muted); padding-bottom: 12px; }
.note { margin-top: 24px; color: var(--muted); max-width: 62ch; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-block: clamp(40px, 6vw, 80px); padding: clamp(28px, 5vw, 64px); background: var(--olive-deep); color: var(--bone); }
.figure { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.figure__value { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; }
.figure__value span { display: block; margin-bottom: 8px; font-family: var(--font-body); font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--olive-soft); }
.figure__text { color: rgba(233, 230, 216, 0.78); max-width: 40ch; }
@media (max-width: 860px) { .split, .figures { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .rows--pairs > div { flex-wrap: wrap; } }

/* ---------- Регионы ---------- */
.regions { background: var(--sand); padding-block: clamp(40px, 6vw, 80px); }
.regions__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 48px); }
.region { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 2px solid var(--ink); min-width: 0; }
.region__mark { width: 22px; height: 22px; color: var(--olive-logo); margin-bottom: clamp(20px, 3vw, 44px); }
.region__city { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; overflow-wrap: break-word; }
.region__area { color: var(--muted); font-size: 16px; }
@media (max-width: 1023px) { .regions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .regions__grid { grid-template-columns: minmax(0, 1fr); } .region__mark { margin-bottom: 12px; } }
.pledge--plain { border-block: 0; }

/* ---------- Заявка ---------- */
.apply { padding-bottom: var(--section); }
.closing + .apply { padding-top: var(--section); }
.pledge--plain + .apply { padding-top: clamp(8px, 2vw, 24px); }
.apply__panel { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 72px); background: var(--olive-deep); color: var(--bone); overflow: hidden; }
.apply__star { position: absolute; width: min(52%, 620px); max-width: none; left: -9%; bottom: -34%; color: rgba(233, 230, 216, 0.09); pointer-events: none; }
.apply__intro { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.apply__intro p { color: rgba(233, 230, 216, 0.78); max-width: 40ch; }
.apply__form { position: relative; display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); background: var(--sand-light); color: var(--ink); min-width: 0; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid rgba(29, 33, 25, 0.32); border-radius: 3px; background: var(--paper); color: var(--ink); font: 400 17px var(--font-body); }
.field input::placeholder { color: #6E7468; }
.field input:focus-visible { outline: 3px solid var(--olive); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--olive); }
.check a { color: var(--olive); font-weight: 600; text-underline-offset: 3px; }
.apply__form .btn { width: 100%; margin-top: 6px; }
.field input[aria-invalid="true"] { border-color: #A8502A; }
.check input[aria-invalid="true"] { outline: 2px solid #A8502A; outline-offset: 2px; }
.apply__status { font-size: 15px; line-height: 1.45; color: #8C3F1F; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply__done { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 40px); background: var(--sand-light); color: var(--ink); min-width: 0; }
.apply__done:focus { outline: none; }
.apply__done h3 { font-size: clamp(24px, 2.4vw, 32px); }
.apply__done p { color: var(--muted); }
.apply__done-mark { width: 28px; height: 28px; color: var(--olive-logo); }
@media (max-width: 860px) { .apply__panel { grid-template-columns: minmax(0, 1fr); } .apply__star { width: 90%; bottom: auto; top: -18%; left: 34%; } }

/* ---------- Документ (политика) ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.doc__body { max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.doc__body h1 { font-size: clamp(32px, 4.8vw, 60px); margin-bottom: 20px; overflow-wrap: break-word; }
.doc__body h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-top: 28px; }
.doc__body p, .doc__body li { font-size: 16.5px; overflow-wrap: break-word; }
.doc__body ul { display: grid; gap: 8px; padding-left: 22px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: rgba(233, 230, 216, 0.74); font-size: 16px; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--olive-soft); }
.site-footer :focus-visible { outline-color: var(--olive-soft); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(40px, 5vw, 64px); }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 12px; }
.site-footer__contacts { display: flex; flex-direction: column; gap: 14px; }
.site-footer__phone { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.site-footer__bottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 12px clamp(28px, 4vw, 64px); padding-block: 22px 32px; border-top: 1px solid var(--line-dark); font-size: 14px; line-height: 1.55; }
.site-footer__notice { grid-column: 2 / -1; color: rgba(233, 230, 216, 0.6); }
@media (max-width: 860px) { .site-footer__grid, .site-footer__bottom { grid-template-columns: minmax(0, 1fr); } .site-footer__notice { grid-column: auto; } }

/* ---------- Плашка cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 16px 24px; max-width: 760px; margin-inline: auto; padding: 16px 20px; background: var(--ink); color: rgba(233, 230, 216, 0.85); font-size: 15px; line-height: 1.45; box-shadow: 0 10px 30px rgba(29, 33, 25, 0.25); }
.cookie a { color: var(--bone); text-underline-offset: 3px; }
.cookie .btn { flex: none; min-height: 44px; }
/* На телефоне плашка компактная, чтобы не закрывать первый экран */
@media (max-width: 560px) { .cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); gap: 12px; padding: 10px 12px 10px 14px; font-size: 12.5px; line-height: 1.4; } .cookie .btn { min-height: 40px; padding: 0 16px; font-size: 15px; } }

/* ---------- 404 ---------- */
.notfound .container { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound .lead { color: var(--muted); max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
