/* =========================================================
   ВОСТИО-Урал — лендинг. Стиль «чистый инженерный».
   Палитра и шрифты — из брендбука §2, §3, §6.4.
========================================================= */

:root {
  --c-blue:      #236D9E;
  --c-blue-dark: #1a557b;
  --c-red:       #E73941;
  --c-burgundy:  #9D1A2F;
  --c-ink:       #1D1D1D;
  --c-ink-soft:  #3a3a3a;
  --c-muted:     #6e6e6e;
  --c-line:      #e3e7eb;
  --c-bg:        #ffffff;
  --c-bg-soft:   #fafbfc;

  --ff-head: 'Montserrat', 'Arial Black', sans-serif;
  --ff-body: 'Tahoma', 'Geneva', sans-serif;

  /* Максимальная ширина контента. На широких мониторах боковой отступ растёт,
     центрируя контент в колонку ~1360px (шапка и текст перестают растягиваться). */
  --content-max: 1360px;
  --pad-x: max(clamp(20px, 5vw, 96px), (100% - var(--content-max)) / 2);
  --section-y: clamp(72px, 9vw, 140px);

  --t-out: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
  overflow-wrap: break-word; /* страховка: длинные слова переносятся, а не вылезают за экран */
}

h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.02em; }

/* Отступ для якорных переходов: чтобы заголовок секции не уезжал под липкую шапку */
section[id] { scroll-margin-top: 120px; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .2s var(--t-out); }
a:hover { color: var(--c-blue); }

.eyebrow {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin: 0 0 16px;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--c-blue);
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.eyebrow--light::before { background: rgba(255,255,255,.5); }

/* ======== HEADER ======== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 16px var(--pad-x);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.brand img { height: 72px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--c-blue);
  transition: right .35s var(--t-out);
}
.site-nav a:hover::after { right: 0; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border: 1px solid var(--c-ink);
  transition: background .25s var(--t-out), color .25s var(--t-out), border-color .25s var(--t-out), transform .25s var(--t-out);
  cursor: pointer;
}
.cta--primary {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.cta--primary:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.cta--ghost { background: transparent; color: var(--c-ink); }
.cta--ghost:hover { background: var(--c-ink); color: #fff; }
.cta--header { padding: 10px 18px; font-size: 13px; }

/* Телефон занял место в шапке — пункты меню не переносим по словам */
.site-nav a { white-space: nowrap; }

/* Телефон в шапке: полный номер на desktop, компактная кнопка на mobile */
.header-phone {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: var(--c-ink);
  transition: color .25s var(--t-out);
}
.header-phone:hover { color: var(--c-blue); }

.header-call {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--c-red);
  color: #fff;
  font-size: 20px;
  border: 1px solid var(--c-red);
}
.header-call:hover { background: var(--c-burgundy); border-color: var(--c-burgundy); color: #fff; }

/* Ниже 1400px полный номер не помещается рядом с меню — показываем компактную кнопку звонка
   (её доступное имя содержит тот же номер, полный номер также в подвале и в mobile-меню) */
@media (max-width: 1400px) {
  .header-phone { display: none; }
}


.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-line);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform .3s var(--t-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: 24px var(--pad-x) 32px;
  display: flex; flex-direction: column; gap: 18px;
  font-family: var(--ff-head);
  font-size: 18px;
  z-index: 40;
}
.mobile-menu a { padding: 8px 0; }
.mobile-menu[hidden] { display: none; }

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 120px var(--pad-x) 80px;
  overflow: hidden;
  color: #fff;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,29,29,.2) 0%, rgba(29,29,29,.55) 65%, rgba(29,29,29,.85) 100%),
    linear-gradient(90deg, rgba(35,109,158,.35) 0%, rgba(35,109,158,0) 50%);
}

.hero__content {
  position: relative; z-index: 1;
  max-width: 880px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero .eyebrow::before { background: rgba(255,255,255,.6); }

.hero__badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow--inline { padding-left: 36px; }
.since-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
}
.since-badge__label {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.since-badge__year {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--c-red);
  letter-spacing: 0.02em;
}

.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 620px;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .cta--primary { background: var(--c-red); border-color: var(--c-red); }
.hero .cta--primary:hover { background: #c92a32; border-color: #c92a32; }
.hero .cta--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .cta--ghost:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

/* ======== METRICS ======== */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--c-line);
}
.metric {
  padding: 56px 24px;
  border-right: 1px solid var(--c-line);
  text-align: center;
}
.metric:last-child { border-right: 0; }
.metric__num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 88px);
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.metric__num span { color: var(--c-red); }
.metric__label {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.4;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* ======== SECTION HEAD ======== */
.section-head {
  max-width: 720px;
  margin: 0 0 64px;
}
.section-head h2 { margin-top: 8px; }
.section-head--wide { max-width: none; }
.section-head--wide h2 { white-space: nowrap; }

/* ======== PRODUCTS ======== */
.products {
  padding: var(--section-y) var(--pad-x);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--c-line);
}
.product:first-of-type { border-top: 0; padding-top: 0; }
.product--reverse { direction: rtl; }
.product--reverse > * { direction: ltr; }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--t-out);
}
.product:hover .product__media img { transform: scale(1.04); }

.product__body { max-width: 520px; }
.product__index {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--c-red);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
}
.product__kicker {
  font-family: var(--ff-head);
  font-weight: 500;
  color: var(--c-blue);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 6px 0 18px;
}
.product__body h3 { font-size: clamp(28px, 3vw, 38px); }
.product__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.product__list li {
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--c-line);
  position: relative;
  font-size: 14px;
  color: var(--c-ink-soft);
}
.product__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 12px; height: 1px;
  background: var(--c-blue);
}
.product__list li:last-child { border-bottom: 1px solid var(--c-line); }

.products__note {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: none;
  text-wrap: pretty;
}

/* ======== ABOUT ======== */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
  padding: var(--section-y) var(--pad-x);
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.about__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9dde2;
  align-self: start;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__body {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.about__body h2 { margin-bottom: 24px; }
.about__body > p:not(.eyebrow):not(.about__signature) { margin-bottom: 16px; }
.about__signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--c-ink);
  font-size: 16px;
}
.about__signature span {
  display: block;
  font-weight: 500;
  color: var(--c-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ======== STRENGTHS ======== */
.strengths {
  padding: var(--section-y) var(--pad-x);
}

.strengths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strength {
  padding: 0 44px;
  border-left: 1px solid var(--c-line);
}
.strength:first-child { border-left: 0; padding-left: 0; }
.strength__num {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--c-blue);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}
.strength h3 { margin-bottom: 16px; font-size: 20px; line-height: 1.25; min-height: 50px; }
.strength p { font-size: 14px; color: var(--c-ink-soft); }

/* ======== CLIENTS ======== */
.clients {
  padding: var(--section-y) var(--pad-x);
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
}
.clients__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 0;
}
.clients__list li {
  padding: 8px 48px;
  border-left: 1px solid var(--c-line);
}
.clients__list li:first-child { border-left: 0; padding-left: 0; }
.clients__list li:last-child { text-align: center; }
.clients__name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px);
  margin-bottom: 0;
  color: var(--c-ink);
  white-space: nowrap;
}
.clients__name--nowrap { white-space: nowrap; }

/* ======== CTA BAND ======== */
.cta-band {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  background: linear-gradient(90deg, #15222e 0%, #1d1d1d 38%, #1d1d1d 62%, #29171a 100%);
  color: #fff;
  overflow: hidden;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 1080px; }
.cta-band h2 { color: #fff; margin-bottom: 20px; max-width: 640px; }
.cta-band__lead {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin-bottom: 40px;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 40px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.contact:first-child { border-left: 0; padding-left: 0; }
.contact:last-child { padding-right: 0; }
.contact__label {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
}
.contact__value {
  display: block;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 17px;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}
a.contact__value:hover { color: var(--c-red); }

/* ======== FOOTER ======== */
.site-footer {
  padding: 48px var(--pad-x);
  background: var(--c-ink);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__row {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer__logo {
  height: 112px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.site-footer__tag {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.site-footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-family: var(--ff-body);
}
.site-footer__legal p { margin: 0; }

/* ======== REVEAL ON SCROLL ======== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--t-out), transform .9s var(--t-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .strengths__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .strength:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strength:nth-child(1), .strength:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 32px; margin-bottom: 32px;
  }
  .clients__list { grid-template-columns: 1fr; }
  .clients__list li { border-left: 0; border-top: 1px solid var(--c-line); padding: 20px 0; }
  .clients__list li:first-child { border-top: 0; padding-top: 0; }
  .clients__list li:last-child { text-align: left; }
  .contacts { grid-template-columns: 1fr; }
  .contact { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 28px 0; }
  .contact:first-child { border-top: 0; }
  .contact:last-child { padding-bottom: 0; }
}

@media (max-width: 820px) {
  .site-nav, .cta--header, .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: flex; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .brand img { height: 48px; }
  .mobile-menu { top: 84px; }
  .product { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .product--reverse { direction: ltr; }
  .about { grid-template-columns: 1fr; padding-block: 72px; }
  .hero { min-height: 80vh; padding-top: 100px; }
  section[id] { scroll-margin-top: 96px; } /* шапка на мобильном ниже */
  .section-head--wide h2 { white-space: normal; }
  .clients__name { font-size: clamp(22px, 6vw, 30px); }
  .clients__name--nowrap { white-space: normal; }
}

@media (max-width: 540px) {
  /* На узких экранах уменьшаем заголовки, чтобы длинные слова («промышленности», «производственники») влезали */
  h1 { font-size: clamp(24px, 8vw, 34px); }
  h2 { font-size: clamp(22px, 6.5vw, 30px); }
  /* Длинная подпись над заголовком («НПО ВОСТИО-Урал · с 2001 года») — в одну строку на узких экранах */
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.06em; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 36px 0; }
  .metric:last-child { border-bottom: 0; }
  .strengths__grid { grid-template-columns: 1fr; }
  .strength { border-left: 0; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
  .strength:first-child { padding-top: 0; }
  .strength:last-child { border-bottom: 0; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================================
   PREVIEW-ИНТЕГРАЦИЯ: пункт «Переработка» + внешняя кнопка ЛИТ
   в шапке главной. Только для показа на утверждение.
========================================================= */

/* +1 колонка под кнопку ЛИТ (brand | nav | ЛИТ | Связаться | burger) */
.site-header { grid-template-columns: auto 1fr auto auto auto; }

/* «Переработка» — заметный кросс-страничный пункт (акцент, отличается от якорей) */
.site-nav__feature { color: var(--c-red); font-weight: 700; }
.site-nav__feature::after { background: var(--c-red) !important; }
.site-nav__feature:hover { color: var(--c-burgundy); }

/* Кнопка ЛИТ — цветная подложка, отделяет внешний ресурс от разделов */
.cta--lit { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.cta--lit:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: #fff; }
.cta--lit__ext { font-size: 12px; opacity: .9; margin-left: 2px; }

/* Mobile-меню */
.mobile-menu__feature { color: var(--c-red); font-weight: 700; }
.mobile-menu__feature:hover { color: var(--c-burgundy); }
.mobile-menu__lit {
  align-self: flex-start; background: var(--c-blue); color: #fff;
  padding: 10px 18px; font-weight: 600;
}
.mobile-menu__lit:hover { background: var(--c-blue-dark); color: #fff; }

/* Шапка: раньше уходим в бургер, чтобы не теснить навигацию (проверка 1024) */
@media (max-width: 1080px) {
  .site-nav, .cta--header, .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: flex; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .brand img { height: 48px; }
  .mobile-menu { top: 84px; }
}

/* ======== REQUEST FORM ======== */
/* Форма «врезана» в тёмный блок #contacts. Только существующие токены, прямые углы. */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 64px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 48px;
}
/* граница переносится с .contacts на сетку — внутри правой колонки её убираем */
.contact-grid .contacts { border-top: 0; }

/* Правая колонка — контакты в один вертикальный столбец (fable_plan п.3). */
.contact-grid .contacts { grid-template-columns: 1fr; }
.contact-grid .contact {
  border-left: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 28px 0;
}
.contact-grid .contact:first-child { border-top: 0; padding-top: 0; }
.contact-grid .contact:last-child { padding-bottom: 0; }
/* nowrap нужен только телефону и e-mail (их нельзя рвать посреди номера/адреса).
   Длинная ссылка «Политика обработки персональных данных» под nowrap давала min-content
   396px и раздувала колонку сетки, из-за чего на мобильных текст блока паузы вылезал
   за экран и обрезался .cta-band{overflow:hidden}. */
.contact-grid a.contact__value[href^="tel:"],
.contact-grid a.contact__value[href^="mailto:"] { white-space: nowrap; }

.request-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
/* атрибут hidden должен побеждать display:flex выше (иначе форма не скрывается после success) */
/* см. правило .request-form[hidden] ниже (объединено с success) */

/* honeypot: убран из потока и с экрана, но доступен ботам */
.request-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s var(--t-out);
}
.field__input::placeholder { color: rgba(255,255,255,.4); }
.field__input:focus {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
  border-color: var(--c-red);
}

.field__textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.field__input[aria-invalid="true"] { border-color: var(--c-red); }

.field__error {
  margin: 0;
  font-size: 13px;
  color: #ff8a8f;
}

.field--consent { margin-top: 4px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  padding: 12px 0;
}
.consent__box {
  width: 22px; height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--c-red);
  cursor: pointer;
}
.consent__box:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}
.consent__text a { color: #fff; text-decoration: underline; }
.consent__text a:hover { color: var(--c-red); }

.request-form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.request-form__submit {
  background: var(--c-red);
  border-color: var(--c-red);
  min-height: 52px;
}
.request-form__submit:hover { background: #c92a32; border-color: #c92a32; color: #fff; }
.request-form__submit:disabled { opacity: .6; cursor: default; }
.request-form__hint {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  max-width: 320px;
}

.request-form__formerror {
  margin: 0;
  font-size: 14px;
  color: #ff8a8f;
}

.request-success { max-width: 640px; }
.request-success__title {
  color: #fff;
  margin-bottom: 12px;
}
.request-success__title:focus { outline: none; }
.request-success p { color: rgba(255,255,255,.8); }
.request-success a { color: #fff; text-decoration: underline; }
.request-success a:hover { color: var(--c-red); }

/* Стек колонок — на брейкпоинте секции контактов. Порядок: форма (и success) → контакты. */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .request-form { max-width: none; }
  .request-success { max-width: none; }
  .request-form__submit { width: 100%; }
  .request-form__actions { align-items: stretch; }
  .request-form__hint { max-width: none; }
}

/* [hidden] должен побеждать display:flex формы/успеха */
.request-form[hidden], .request-success[hidden] { display: none !important; }

/* пометка необязательного поля в единой форме */
.field__optional { font-weight: 500; letter-spacing: 0.08em; color: rgba(255,255,255,.5); text-transform: none; }
