/* ==========================================================================
   Защита прав военных — style.css
   Ручной CSS вместо Tailwind-сборки. Правки применяются сразу, без билда.
   ========================================================================== */

/* --- 1. Токены ----------------------------------------------------------- */
:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-hover: #EEF3FA;
  --text-primary: #0B2545;
  --text-secondary: #4A5B70;
  --text-muted: #93A1B3;
  --navy: #0B2545;
  --blue: #123E7C;
  --blue-hi: #1B56A8;
  --accent: #123E7C;
  --accent-hi: #1B56A8;
  --hairline: rgba(11, 37, 69, 0.12);
  --hairline-hi: rgba(11, 37, 69, 0.20);
  --shadow-card: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-cta: 0 8px 24px rgba(18, 62, 124, 0.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 69px;
}

/* --- 2. База ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--hairline); }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c3d1e2; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

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

.icon { width: 1em; height: 1em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Плёнка зерна поверх страницы */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- 3. Типографика и утилиты -------------------------------------------- */
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.font-mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

.eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.eyebrow__line { display: block; width: 2.5rem; height: 1px; background: var(--accent); }
.eyebrow__dot { display: block; width: .5rem; height: .5rem; background: var(--accent); }
.eyebrow__text {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .25em; color: var(--accent);
}

.section-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 6.4vw, 3rem); line-height: 1.15; letter-spacing: -.01em;
  overflow-wrap: break-word;
  color: var(--text-primary);
}
.section-title--lg { font-size: clamp(1.55rem, 6.8vw, 3.75rem); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 2rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid transparent; transition: transform .3s ease, color .3s ease, border-color .3s ease, background .3s ease;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-cta); font-weight: 500; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--hairline-hi); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--pill { border-radius: 999px; }
.btn .icon { width: 1rem; height: 1rem; }
.btn--primary .icon { transition: transform .3s ease; }
.btn--primary:hover .icon { transform: translateX(4px); }

/* --- 4. Шапка ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  animation: nav-in .8s cubic-bezier(.22, 1, .36, 1) 1.4s both;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.nav__logo { display: flex; align-items: center; gap: .75rem; }
.nav__logo .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.nav__logo-text {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.nav__links { display: none; align-items: center; gap: 2.25rem; }
.nav__links a {
  font-size: .875rem; letter-spacing: .03em; color: var(--text-secondary); transition: color .3s ease;
}
.nav__links a:hover { color: var(--accent); }
.nav__phone {
  display: none; border: 1px solid var(--hairline-hi); border-radius: 999px;
  padding: .5rem 1.25rem; font-size: .875rem; letter-spacing: .03em; transition: all .3s ease;
  white-space: nowrap;
}
.nav__phone:hover { border-color: var(--accent); color: var(--accent); }
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--hairline-hi); background: transparent;
  color: var(--text-primary);
}
.nav__burger .icon { width: 1.25rem; height: 1.25rem; }

@media (min-width: 640px) { .nav__phone { display: block; } }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

.nav__mobile {
  display: none; border-top: 1px solid var(--hairline); background: var(--surface);
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 1rem; color: var(--text-secondary);
}
.nav__mobile a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .nav__mobile.is-open { display: none; } }

@keyframes nav-in { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- 5. Первый экран ----------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
  min-height: 100vh; padding-top: 8rem; padding-bottom: 4rem;
}
.hero__grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; padding-top: 6rem; padding-bottom: 0; }
}

.hero__meta { margin-bottom: 2rem; animation: fade-in 1s ease .2s both; }
.hero__meta-row { display: flex; align-items: flex-start; gap: .75rem; }
.hero__meta-line { margin-top: .5em; }
@media (max-width: 767px) {
  .hero__meta-line { display: none; }
  .hero__meta-text { letter-spacing: .12em; line-height: 1.7; }
}
.hero__meta-line { display: block; width: 2.5rem; height: 1px; background: var(--blue); flex: none; }
.hero__meta-text {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--blue);
}
.hero__address {
  margin-top: .5rem; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); line-height: 1.6;
}
@media (min-width: 768px) { .hero__address { padding-left: 3.25rem; } }

.hero__title { font-family: var(--font-display); font-weight: 600; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block; font-size: clamp(1.5rem, 7.4vw, 3.75rem); line-height: 1.08;
  letter-spacing: -.02em; transform: translateY(115%);
  animation: line-up 1s cubic-bezier(.22, 1, .36, 1) both;
}
.hero__line:nth-child(1) > span { animation-delay: .40s; }
.hero__line:nth-child(2) > span { animation-delay: .55s; }
.hero__line:nth-child(3) > span { animation-delay: .70s; }

.hero__lead {
  margin-top: 2rem; max-width: 36rem; font-size: 1rem; line-height: 1.7;
  color: var(--text-secondary); animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) 1.2s both;
}
@media (min-width: 640px) { .hero__lead { font-size: 1.125rem; } }

.hero__cta {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem;
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) 1.4s both;
}
.hero__cta .btn--primary .icon { transform: rotate(-90deg); }
.hero__cta .btn--primary:hover .icon { transform: rotate(-90deg) translateY(-4px); }

.hero__facts {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 2rem; animation: fade-in 1s ease 1.7s both;
}
.hero__fact-value { font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; line-height: 1; }
.hero__fact-label {
  margin-top: .35rem; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted);
}
.hero__facts-divider { width: 1px; height: 2.5rem; background: var(--hairline); }

.hero__media { position: relative; animation: media-in 1.1s cubic-bezier(.22, 1, .36, 1) .7s both; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden;
  border: 1px solid var(--hairline-hi); box-shadow: 0 30px 60px -20px rgba(11, 37, 69, .35);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, .45), transparent 50%);
}
.hero__badge {
  position: absolute; bottom: -1.25rem; left: -1.25rem; display: none;
  align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--hairline-hi);
  box-shadow: 0 20px 40px -15px rgba(11, 37, 69, .3);
}
.hero__badge .icon { width: 1.75rem; height: 1.75rem; color: var(--blue); }
.hero__badge-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1; }
.hero__badge-sub {
  margin-top: .35rem; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted);
}
@media (min-width: 768px) { .hero__badge { display: flex; } }

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; padding: .95rem 1.25rem; }
}

@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes media-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* --- 6. Бегущая строка --------------------------------------------------- */
.marquee {
  overflow: hidden; padding: 1.25rem 0; background: var(--accent);
  border-top: 1px solid var(--accent-hi); border-bottom: 1px solid var(--accent-hi);
}
.marquee__track { display: inline-flex; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; }
.marquee__item span:first-child {
  font-family: var(--font-display); font-weight: 600; padding: 0 2rem;
  font-size: clamp(1.25rem, 3vw, 1.875rem); text-transform: uppercase; letter-spacing: .03em; color: #fff;
}
.marquee__star { font-size: 1.125rem; color: rgba(255, 255, 255, .6); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- 7. Услуги ----------------------------------------------------------- */
.services__head { max-width: 48rem; margin-bottom: 4rem; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex; flex-direction: column; height: 100%; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card); transition: background .5s ease;
}
@media (min-width: 480px) { .service-card { padding: 2rem; } }
@media (min-width: 768px) { .service-card { padding: 2.5rem; } }
.service-card:hover { background: var(--surface-hover); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.service-card__top .icon { width: 2rem; height: 2rem; color: var(--accent); }
.service-card__num {
  font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1;
  color: var(--text-muted); transition: color .5s ease;
}
.service-card:hover .service-card__num { color: var(--accent); }
.service-card__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .service-card__title { font-size: 1.75rem; } }
.service-card__text {
  margin-top: 1rem; flex: 1; font-size: .875rem; line-height: 1.7; color: var(--text-secondary);
}
.service-card__points {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: .75rem;
}
.service-card__points li {
  display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--text-secondary);
}
.service-card__points .icon { width: 1rem; height: 1rem; color: var(--accent); }

/* --- 8. Цифры ------------------------------------------------------------ */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats__grid {
  max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr);
}
.stats__grid > * { min-width: 0; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.5rem 1.25rem; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (min-width: 480px) { .stat { padding: 2rem; } }
@media (max-width: 400px) { .stat__label { font-size: .65rem; letter-spacing: .04em; } }
@media (min-width: 768px) { .stat { padding: 3rem; border-bottom: 0; } }
.stat__value {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(1.9rem, 7vw, 3.75rem); overflow-wrap: break-word;
}
.stat__label {
  margin-top: .75rem; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-secondary); line-height: 1.5;
  overflow-wrap: break-word; hyphens: auto;
}

/* --- 9. Принципы --------------------------------------------------------- */
.manifesto { background: var(--surface); }
.manifesto__grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
.manifesto__grid > * { min-width: 0; }
@media (min-width: 1024px) { .manifesto__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.manifesto__figure { position: relative; border: 1px solid var(--hairline-hi); }
.manifesto__figure img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.manifesto__caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; background: linear-gradient(to top, rgba(11, 37, 69, .92), transparent);
}
.manifesto__caption span:first-child { width: .5rem; height: .5rem; background: #fff; flex: none; }
.manifesto__caption span:last-child {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; color: rgba(255, 255, 255, .85);
}
.manifesto__head { margin-bottom: 3rem; }
.chapter { display: flex; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--hairline); }
.chapter > div { min-width: 0; }
@media (min-width: 480px) { .chapter { gap: 1.5rem; } }
.chapter:first-child { padding-top: 0; }
.chapter:last-child { border-bottom: 0; }
.chapter__num {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(1.6rem, 5vw, 3rem); color: var(--accent); flex: none;
}
.chapter__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.1rem; line-height: 1.3; overflow-wrap: break-word;
}
@media (min-width: 640px) { .chapter__title { font-size: 1.5rem; } }
.chapter__text { margin-top: .5rem; font-size: .875rem; line-height: 1.7; color: var(--text-secondary); }

/* --- 10. Вопросы --------------------------------------------------------- */
.faq { max-width: 56rem; margin: 0 auto; }
.faq__head { margin-bottom: 3.5rem; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%;
  padding: 1.5rem 0; background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.4;
  color: var(--text-primary); transition: color .3s ease;
}
@media (min-width: 640px) { .faq__trigger { font-size: 1.4rem; } }
.faq__trigger:hover { color: var(--accent); }
.faq__trigger .icon { width: 1.25rem; height: 1.25rem; flex: none; transition: transform .3s ease; }
.faq__item.is-open .faq__trigger .icon { transform: rotate(180deg); }
.faq__panel { overflow: hidden; height: 0; transition: height .3s ease; }
.faq__panel-inner {
  padding-bottom: 1.5rem; font-size: .9375rem; line-height: 1.75; color: var(--text-secondary);
}

/* --- 11. Реквизиты ------------------------------------------------------- */
.legal-grid {
  display: grid; grid-template-columns: 1fr;
  border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline);
}
@media (min-width: 640px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: repeat(3, 1fr); } }
.legal-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
@media (min-width: 480px) { .legal-item { gap: 1.25rem; padding: 1.75rem; } }
.legal-item--hi { background: var(--surface-hover); }
.legal-item__ico {
  display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex: none;
  border: 1px solid var(--hairline-hi); background: var(--surface-hover); color: var(--accent);
}
.legal-item--hi .legal-item__ico { border-color: var(--blue); background: var(--blue); color: #fff; }
.legal-item__ico .icon { width: 1.25rem; height: 1.25rem; }
.legal-item__label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--text-muted);
}
.legal-item__value {
  margin-top: .25rem; font-size: 1rem; font-weight: 500; line-height: 1.4; overflow-wrap: break-word;
}
.legal-item > div { min-width: 0; }
@media (min-width: 640px) { .legal-item__value { font-size: 1.0625rem; } }
.legal-item--hi .legal-item__value {
  font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; color: var(--blue);
}

/* --- 12. Контакты и форма ------------------------------------------------ */
.contact { position: relative; overflow: hidden; background: var(--surface); padding-top: 6rem; }
@media (min-width: 768px) { .contact { padding-top: 8rem; } }
.contact::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; max-width: 100%; border-radius: 50%;
  background: rgba(18, 62, 124, .10); filter: blur(120px); pointer-events: none;
}
.contact__inner { position: relative; text-align: center; }
.contact__eyebrow {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .25em; color: var(--accent);
}
.contact__title { margin-top: 1.5rem; }
.contact__phone {
  margin-top: 3rem; display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.4rem, 6.6vw, 4rem); transition: color .3s ease;
  max-width: 100%; flex-wrap: wrap; justify-content: center; word-break: keep-all;
}
.contact__phone:hover { color: var(--accent); }
.contact__phone .icon { width: 2rem; height: 2rem; color: var(--accent); }
@media (min-width: 640px) { .contact__phone .icon { width: 3rem; height: 3rem; } }
.contact__channels {
  margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.channel {
  display: inline-flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem;
  border: 1px solid var(--hairline-hi); border-radius: 999px; font-size: .875rem; letter-spacing: .03em;
  transition: all .3s ease;
}
.channel:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.channel .icon { width: 1rem; height: 1rem; }
.contact__note {
  margin: 2.5rem auto 0; max-width: 28rem; font-size: .875rem; color: var(--text-muted);
}

/* Форма */
.lead-form {
  margin: 5rem auto 0; width: 100%; max-width: 42rem; padding: 1.5rem; text-align: left;
  border: 1px solid var(--hairline); background: var(--surface-hover); position: relative;
}
@media (min-width: 480px) { .lead-form { padding: 2rem; } }
@media (min-width: 768px) { .lead-form { padding: 2.5rem; } }
.lead-form__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
@media (min-width: 640px) { .lead-form__title { font-size: 1.75rem; } }
.lead-form__sub { margin-top: .5rem; font-size: .875rem; color: var(--text-secondary); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { margin-top: 1.5rem; }
.form-row .field { margin-top: 0; }
.field__label {
  display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--text-muted);
}
.field__label .normal { text-transform: none; letter-spacing: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 0; background: transparent; color: var(--text-primary);
  border: 0; border-bottom: 1px solid var(--hairline-hi); border-radius: 0;
  font-family: inherit; font-size: 1rem; outline: none; transition: border-color .3s ease;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field--select { position: relative; }
.field--select::after {
  content: ''; position: absolute; right: .25rem; bottom: 1.25rem; width: .5rem; height: .5rem;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); pointer-events: none;
}
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.lead-form__submit { margin-top: 2rem; background: var(--accent); color: #fff; font-weight: 500; }
.lead-form__submit:disabled { opacity: .6; cursor: default; transform: none; }
.lead-form__legal { margin-top: 1rem; font-size: .75rem; line-height: 1.6; color: var(--text-muted); }
@media (min-width: 640px) { .lead-form__submit { width: auto; } }
.lead-form__submit { width: 100%; }

.spinner {
  width: 1rem; height: 1rem; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Подвал */
.site-foot {
  position: relative; margin-top: 6rem; padding: 2rem 0; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
@media (min-width: 768px) { .site-foot { flex-direction: row; justify-content: space-between; } }
.site-foot__brand { display: flex; align-items: center; gap: .75rem; }
.site-foot__brand .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.site-foot__brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.site-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; justify-content: center; }
.site-foot__links a {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-secondary); transition: color .3s ease;
}
.site-foot__links a:hover { color: var(--accent); }
.site-foot__legal {
  max-width: 28rem; font-size: .75rem; line-height: 1.7; color: var(--text-muted); text-align: center;
}
@media (min-width: 768px) { .site-foot__legal { text-align: right; } }

/* --- 13. Модальное окно -------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(11, 37, 69, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: fade-in .25s ease both;
}
.modal__dialog {
  position: relative; width: 100%; max-width: 32rem; max-height: 85dvh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--hairline-hi);
  box-shadow: 0 40px 80px -20px rgba(11, 37, 69, .45);
  animation: modal-in .35s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__bar { height: 4px; background: var(--accent); }
.modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--text-muted); transition: color .3s ease;
}
.modal__close:hover { color: var(--text-primary); }
.modal__close .icon { width: 1.25rem; height: 1.25rem; }
.modal__body { padding: 1.75rem; }
@media (min-width: 640px) { .modal__body { padding: 2.25rem; } }
.modal__badge { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.modal__badge span:first-child {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--hairline-hi); background: var(--surface-hover); color: var(--accent);
}
.modal__badge .icon { width: 1.25rem; height: 1.25rem; }
.modal__badge-text {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .25em; color: var(--accent);
}
.modal__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1.2;
}
@media (min-width: 640px) { .modal__title { font-size: 1.75rem; } }
.modal__text { margin-top: .5rem; font-size: .875rem; line-height: 1.7; color: var(--text-secondary); }
.modal .field { margin-top: 1.25rem; }
.modal .form-row { margin-top: 1.75rem; gap: 1.25rem; }
.modal__submit { margin-top: 2rem; width: 100%; background: var(--accent); color: #fff; font-weight: 500; }
.modal__submit:disabled { opacity: .6; cursor: default; transform: none; }

/* --- 14. Cookie-баннер --------------------------------------------------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--hairline-hi);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cookie.is-visible { display: block; animation: fade-up .4s ease both; }
.cookie__bar { height: 4px; background: var(--accent); }
.cookie__inner {
  max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
@media (min-width: 768px) {
  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 2rem; }
}
.cookie__text { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.7; color: var(--text-secondary); }
.cookie__text .icon { width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--accent); }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__btn {
  width: 100%; flex: none; padding: .75rem 2rem; background: var(--accent); color: #fff;
  border: 0; font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  transition: transform .3s ease;
}
.cookie__btn:hover { transform: translateY(-2px); }
@media (min-width: 768px) { .cookie__btn { width: auto; } }

/* --- 15. Уведомления ----------------------------------------------------- */
.toasts {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: .5rem; width: calc(100% - 2rem); max-width: 26rem;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem;
  background: var(--surface); border: 1px solid var(--hairline-hi);
  box-shadow: 0 16px 40px -12px rgba(11, 37, 69, .35);
  font-size: .875rem; line-height: 1.5; animation: toast-in .3s cubic-bezier(.22, 1, .36, 1) both;
}
.toast--ok { border-left: 3px solid #1a7f4b; }
.toast--err { border-left: 3px solid #b4232a; }
.toast .icon { width: 1.125rem; height: 1.125rem; margin-top: .1rem; flex: none; }
.toast--ok .icon { color: #1a7f4b; }
.toast--err .icon { color: #b4232a; }
.toast.is-hiding { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); } }

/* --- 16. Правовые страницы ----------------------------------------------- */
.legal-page { position: relative; min-height: 100vh; }
.legal-page__stripe { position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--accent); }
.legal-main { max-width: 56rem; margin: 0 auto; padding: 9rem 1.5rem 6rem; }
@media (min-width: 768px) { .legal-main { padding: 11rem 2rem 6rem; } }
.legal-main__updated {
  margin-top: 1rem; font-family: var(--font-mono); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted);
}
.legal-back { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-secondary); transition: color .3s ease; }
.legal-back:hover { color: var(--accent); }
.legal-back .icon { width: 1rem; height: 1rem; }

.legal-prose { margin-top: 3rem; }
.legal-prose h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2;
  color: var(--text-primary); margin: 2.5rem 0 1rem;
}
.legal-prose h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
  color: var(--text-primary); margin: 1.75rem 0 .5rem;
}
.legal-prose p { font-size: .95rem; line-height: 1.8; color: var(--text-secondary); margin: 0 0 1rem; }
.legal-prose ul { margin: 0 0 1.25rem; padding: 0; }
.legal-prose li {
  position: relative; padding-left: 1.4rem; font-size: .95rem; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: .5rem;
}
.legal-prose li::before {
  content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--blue);
}
.legal-prose strong { color: var(--text-primary); font-weight: 600; }
.legal-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-foot { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--hairline); }
.legal-foot p { font-size: .875rem; color: var(--text-secondary); }
.legal-foot p + p { margin-top: .75rem; font-size: .75rem; line-height: 1.7; color: var(--text-muted); }
.legal-foot a { color: var(--accent); }

/* --- 17. Появление при скролле ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-30px); }
@media (max-width: 640px) { .reveal--left { transform: translateY(30px); } }
.reveal--left.is-visible { transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }

/* Секции с якорями не уезжают под шапку */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__line > span { transform: none; }
}

/* ==========================================================================
   Телефоны: убираем крупные фотографии, экран короче и быстрее
   ========================================================================== */
@media (max-width: 767px) {
  .hero__media { display: none; }
  .hero__grid { min-height: 0; padding-top: 6.5rem; padding-bottom: 3rem; }
  .manifesto__grid > .reveal:first-child { display: none; }
  .manifesto__grid { gap: 0; }
}
