/* ===== ВИПРОЕКТ — PREMIUM DESIGN SYSTEM ===== */
/* Палитра: Глубокий изумруд */

:root {
  --bg: #F7F5F2;
  --bg-dark: #0A0A0B;
  --surface: #FFFFFF;
  --surface-2: #F1F0ED;

  --text: #1A1A1A;
  --text-inverse: #F7F5F2;
  --text-muted: #6B6B6B;
  --text-faint: #9A9A9A;

  --accent: #0F5132;
  --accent-hover: #1A7A4A;
  --accent-soft: #E8F3ED;
  --accent-border: #C5DFD1;
  --accent-bright: #7FD3A8;

  --trust: #1E3A5F;

  --border: #E5E5E5;
  --border-strong: #C9C9C9;

  --error: #C45C4A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --fs-hero: clamp(2.5rem, 8vw, 7rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10,10,11,0.06);
  --shadow-md: 0 8px 24px rgba(10,10,11,0.08);
  --shadow-lg: 0 24px 48px -12px rgba(10,10,11,0.15);

  --container: 1440px;
  --gutter: 80px;
}

@media (max-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width: 768px) { :root { --gutter: 20px; --fs-body: 1rem; } }

/* ===== СБРОС ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ===== ПРОГРЕСС-БАР ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(127,211,168,0.5);
}

/* ===== ХЕДЕР ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--s-5) 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}
.header.scrolled {
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: var(--s-3) 0;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-8);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo em { font-style: italic; color: var(--accent); }

/* ===== НАВИГАЦИЯ ===== */
.nav {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.nav > li { position: relative; }

.nav > li > a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.nav > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav > li > a:hover::after,
.nav > li > a.active::after { width: 100%; }
.nav > li > a:hover { color: var(--accent); }
.nav > li > a.active { color: var(--accent); }

/* ===== DROPDOWN ===== */
.nav__item--dropdown { position: relative; }

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
  flex-shrink: 0;
}

.nav__item--dropdown:hover .nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown li { margin: 0; }

.nav__dropdown a {
  display: block;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
  white-space: nowrap;
}

.nav__dropdown a::after { display: none; }

.nav__dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  padding-left: calc(var(--s-4) + 4px);
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* ===== КНОПКА «ЗАЯВКА» ===== */
.nav .nav__cta {
  padding: 10px 20px 10px 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15,81,50,0.4);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(15,81,50,0.5);
}
.nav__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(127,211,168,0.7);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(127,211,168,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(127,211,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,211,168,0); }
}

/* ===== БУРГЕР ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-8);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(15,81,50,0.35);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(15,81,50,0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(247,245,242,0.3);
}
.btn--ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}
.btn--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.btn--dark:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== ГЕРОЙ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-dark);
  color: var(--text-inverse);
  overflow: hidden;
  padding: 160px 0 100px;
  perspective: 1000px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0.95) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(15,81,50,0.35) 0%, transparent 55%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(127,211,168,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,211,168,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Летающие слова — главная */
.flying-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.flying-word {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(127,211,168,0.35);
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  pointer-events: auto;
  cursor: default;
  transition: color 0.4s, opacity 0.4s, filter 0.4s;
  animation: floatWord 12s ease-in-out infinite;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.flying-word::before {
  content: '';
  position: absolute;
  inset: -8px -12px;
  background: rgba(10,10,11,0.6);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.flying-word:hover {
  color: rgba(196,92,74,0.9);
  filter: blur(1px);
  animation-play-state: paused;
}
.flying-word:hover::before { opacity: 1; }

@keyframes floatWord {
  0%   { transform: translate(var(--mx, 0), var(--my, 0)) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(calc(var(--mx, 0px) + 30px), calc(var(--my, 0px) - 40px)) rotate(3deg); opacity: 0.5; }
  90%  { opacity: 0.8; }
  100% { transform: translate(var(--mx, 0), var(--my, 0)) rotate(0deg); opacity: 0; }
}

.flying-word:nth-child(1)  { animation-duration: 14s; animation-delay: 0s;   }
.flying-word:nth-child(2)  { animation-duration: 11s; animation-delay: 1.5s; }
.flying-word:nth-child(3)  { animation-duration: 16s; animation-delay: 3s;   }
.flying-word:nth-child(4)  { animation-duration: 13s; animation-delay: 0.8s; }
.flying-word:nth-child(5)  { animation-duration: 15s; animation-delay: 2.2s; }
.flying-word:nth-child(6)  { animation-duration: 12s; animation-delay: 4s;   }
.flying-word:nth-child(7)  { animation-duration: 17s; animation-delay: 1s;   }
.flying-word:nth-child(8)  { animation-duration: 10s; animation-delay: 3.5s; }
.flying-word:nth-child(9)  { animation-duration: 14s; animation-delay: 2s;   }
.flying-word:nth-child(10) { animation-duration: 13s; animation-delay: 5s;   }
.flying-word:nth-child(11) { animation-duration: 15s; animation-delay: 1.2s; }
.flying-word:nth-child(12) { animation-duration: 12s; animation-delay: 2.7s; }
.flying-word:nth-child(13) { animation-duration: 16s; animation-delay: 0.5s; }
.flying-word:nth-child(14) { animation-duration: 11s; animation-delay: 3.8s; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: titleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__title-line:nth-child(2) { animation-delay: 0.15s; }
@keyframes titleIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__label {
  display: inline-block;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--s-6);
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(127,211,168,0.3);
  border-radius: var(--r-pill);
  background: rgba(15,81,50,0.2);
  opacity: 0;
  animation: titleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-8);
}
.hero__title em {
  font-style: italic;
  color: var(--accent-bright);
}
.hero__subtitle {
  font-size: 1.25rem;
  max-width: 620px;
  opacity: 0;
  margin-bottom: var(--s-10);
  line-height: 1.5;
  animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero__actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-16);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(247,245,242,0.15);
  opacity: 0;
  animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.hero__stat {
  cursor: default;
  transition: transform 0.3s;
}
.hero__stat:hover { transform: translateY(-4px); }
.hero__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--accent-bright);
  transition: color 0.3s;
  position: relative;
}
.hero__stat:hover .hero__stat-number {
  color: #fff;
  animation: numberShake 0.4s ease-in-out;
}
@keyframes numberShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.hero__stat-label {
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: var(--s-2);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 180px 0 120px;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(127,211,168,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,211,168,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(15,81,50,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(127,211,168,0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page-hero__words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.page-hero__word {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(127,211,168,0.35);
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  pointer-events: auto;
  cursor: default;
  transition: color 0.4s, opacity 0.4s, filter 0.4s;
  animation: floatWord 12s ease-in-out infinite;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.page-hero__word::before {
  content: '';
  position: absolute;
  inset: -8px -12px;
  background: rgba(10,10,11,0.6);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.page-hero__word:hover {
  color: rgba(196,92,74,0.9);
  filter: blur(1px);
  animation-play-state: paused;
}
.page-hero__word:hover::before { opacity: 1; }

.page-hero__word:nth-child(1)  { animation-duration: 14s; animation-delay: 0s;   }
.page-hero__word:nth-child(2)  { animation-duration: 11s; animation-delay: 1.5s; }
.page-hero__word:nth-child(3)  { animation-duration: 16s; animation-delay: 3s;   }
.page-hero__word:nth-child(4)  { animation-duration: 13s; animation-delay: 0.8s; }
.page-hero__word:nth-child(5)  { animation-duration: 15s; animation-delay: 2.2s; }
.page-hero__word:nth-child(6)  { animation-duration: 12s; animation-delay: 4s;   }
.page-hero__word:nth-child(7)  { animation-duration: 17s; animation-delay: 1s;   }
.page-hero__word:nth-child(8)  { animation-duration: 10s; animation-delay: 3.5s; }
.page-hero__word:nth-child(9)  { animation-duration: 14s; animation-delay: 2s;   }
.page-hero__word:nth-child(10) { animation-duration: 13s; animation-delay: 5s;   }
.page-hero__word:nth-child(11) { animation-duration: 15s; animation-delay: 1.2s; }
.page-hero__word:nth-child(12) { animation-duration: 12s; animation-delay: 2.7s; }
.page-hero__word:nth-child(13) { animation-duration: 16s; animation-delay: 0.5s; }
.page-hero__word:nth-child(14) { animation-duration: 11s; animation-delay: 3.8s; }

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.5);
  margin-bottom: var(--s-6);
  font-weight: 500;
}
.breadcrumbs a {
  color: rgba(247,245,242,0.7);
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs span { opacity: 0.5; }

.page-hero__label {
  display: inline-block;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--s-6);
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(127,211,168,0.3);
  border-radius: var(--r-pill);
  background: rgba(15,81,50,0.2);
  opacity: 0;
  animation: titleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
  opacity: 0;
  transform: translateY(30px);
  animation: titleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
.page-hero__title em {
  font-style: italic;
  color: var(--accent-bright);
}

.page-hero__subtitle {
  font-size: 1.125rem;
  max-width: 620px;
  opacity: 0;
  line-height: 1.6;
  margin-bottom: var(--s-10);
  animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.page-hero__actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* ===== СЕКЦИИ ===== */
.section { padding: var(--s-24) 0; }
.section__header { max-width: 720px; margin-bottom: var(--s-16); }
.section__header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__label {
  display: inline-block;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}
.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ===== МАНИФЕСТ ===== */
.section--manifest {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifest {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.manifest__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-16);
}
.manifest__title em {
  font-style: italic;
  color: var(--accent);
}
.manifest__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
  text-align: left;
}
.manifest__item {
  padding: var(--s-6) var(--s-6) var(--s-6) var(--s-8);
  border-left: 2px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: all 0.3s;
}
.manifest__item:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}
.manifest__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-3);
  font-weight: 600;
}
.manifest__item p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}
.manifest__item b {
  color: var(--accent);
  font-weight: 600;
}

/* ===== О НАС ===== */
.section--about {
  background: var(--bg);
}
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.about__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-8);
}
.about__title em {
  font-style: italic;
  color: var(--accent);
}
.about__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--s-5);
  font-weight: 400;
}
.about__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.about__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}
.about__fact-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.about__fact-label {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: sticky;
  top: 120px;
}
.about__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface-2);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about__photo:hover img {
  transform: scale(1.04);
}
.about__photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-6);
  background: linear-gradient(transparent, rgba(10,10,11,0.9));
  color: var(--text-inverse);
}
.about__photo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.about__photo-role {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.about__card--quote {
  background: var(--surface);
  border: 1px solid var(--border);
}
.about__card-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: var(--s-4);
}
.about__card-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: var(--s-6);
}
.about__card-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-small);
  color: var(--accent);
  text-align: right;
}
.about__card--small {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-color: transparent;
}
.about__card--small .about__card-text {
  color: rgba(247,245,242,0.85);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-small);
  margin-bottom: 0;
  line-height: 1.6;
}
.about__card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--s-4);
  color: var(--accent-bright);
}

/* ===== ЛЮДИ ===== */
.section--people {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}
.person {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.person:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.person__photo {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.person:hover .person__photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.person__info {
  padding: var(--s-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.person__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-2);
  color: var(--text);
}
.person__role {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.person__bio {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}
.people-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ДЕНЬ ИЗ ЖИЗНИ ===== */
.section--process {
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.process-item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  aspect-ratio: 4/3;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.process-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-item:hover img {
  transform: scale(1.04);
}
.process-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-6);
  background: linear-gradient(transparent, rgba(10,10,11,0.9));
  color: var(--text-inverse);
  font-size: var(--fs-small);
  line-height: 1.5;
  font-style: italic;
}

/* ===== НАШИ ПРОВАЛЫ ===== */
.section--fails {
  background: var(--surface-2);
}
.fails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}
.fail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.fail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,92,74,0.4);
}
.fail-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--error);
  background: rgba(196,92,74,0.08);
  border: 1px solid rgba(196,92,74,0.25);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  font-weight: 600;
}
.fail-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-3);
  color: var(--text);
}
.fail-card__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: var(--s-6);
}
.fail-card__bottom {
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--error);
  font-weight: 600;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
}
.fails-note {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}
.fails-note b {
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
.fails-note span {
  display: block;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-top: var(--s-3);
  font-style: normal;
}

/* ===== УСЛУГИ ===== */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
}
.service {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--s-6);
  background: var(--accent-soft);
  border-radius: var(--r-md);
}
.service__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.service__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-3);
}
.service__desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  flex: 1;
}
.service__link {
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-top: var(--s-6);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: gap 0.3s;
}
.service:hover .service__link { gap: var(--s-4); }

/* ===== СИСТЕМЫ ===== */
.systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.system {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.system::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.system:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.system:hover::before { transform: scaleX(1); }
.system__number {
  position: absolute;
  top: var(--s-6);
  right: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  color: var(--text-faint);
  font-weight: 500;
  transition: color 0.3s;
}
.system:hover .system__number { color: var(--accent); }
.system__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--s-6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.system__icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.system:hover .system__icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05) rotate(-4deg);
}
.system__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-3);
}
.system__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: var(--s-6);
}
.system__link {
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: gap 0.3s;
}
.system:hover .system__link { gap: var(--s-4); }

/* ===== СТАДИИ ===== */
.section--stages {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.stage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.stage:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.stage__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: var(--s-5);
  font-weight: 500;
}
.stage__badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--s-6);
  box-shadow: 0 8px 20px -8px rgba(15,81,50,0.4);
}
.stage__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-3);
}
.stage__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: var(--s-6);
}
.stage__meta {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
}

/* ===== ПОЧЕМУ МЫ ===== */
.section--why {
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.why-card__title {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.why-card__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text);
}

/* ===== ЦИТАТЫ ===== */
.section--quote {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--s-20) 0;
}
.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.8;
  color: var(--accent-bright);
  opacity: 0.5;
  margin-bottom: var(--s-6);
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quote__text.fading {
  opacity: 0;
  transform: translateY(8px);
}
.quote__author {
  font-size: var(--fs-small);
  color: rgba(247,245,242,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.5s ease;
}
.quote__author.fading {
  opacity: 0;
}
.quote__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--s-8);
}
.quote__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247,245,242,0.25);
  transition: all 0.3s;
  cursor: pointer;
}
.quote__dot.active {
  background: var(--accent-bright);
  transform: scale(1.3);
}

/* ===== ФОРМА ===== */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-12);
  box-shadow: var(--shadow-md);
}
.form__group { margin-bottom: var(--s-5); }
.form__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: var(--s-4) var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,81,50,0.1);
  background: var(--surface);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.form__checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form__checkbox a { color: var(--accent); text-decoration: underline; }
.form__success {
  display: none;
  padding: var(--s-4);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  color: var(--accent);
  font-size: var(--fs-small);
  margin-top: var(--s-4);
  text-align: center;
  font-weight: 500;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--s-20) 0 var(--s-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}
.footer__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--s-4);
}
.footer__title em { font-style: italic; color: var(--accent-bright); }
.footer h4 {
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--s-5);
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--s-3); }
.footer a {
  color: rgba(247,245,242,0.7);
  font-size: var(--fs-small);
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent-bright); }
.footer p {
  color: rgba(247,245,242,0.7);
  font-size: var(--fs-small);
  margin-bottom: var(--s-2);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(247,245,242,0.1);
  font-size: var(--fs-micro);
  color: rgba(247,245,242,0.5);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer__bottom a { color: rgba(247,245,242,0.5); }
.footer__bottom a:hover { color: var(--accent-bright); }

/* ===== МОДАЛКА ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--s-4);
}
.modal.active { display: flex; }
.modal__content {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.2s;
  line-height: 1;
}
.modal__close:hover { background: var(--bg); color: var(--text); }
.modal__content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--s-4);
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calc-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}
.calc-hint {
  font-size: var(--fs-small);
  color: var(--text);
  margin-bottom: var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: rgba(15,81,50,0.06);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  line-height: 1.55;
}
.calc-hint b { color: var(--accent); font-weight: 600; }

.calc-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  background: var(--bg);
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.calc-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--border);
}
.calc-param-row:last-child { border-bottom: none; }
.calc-param-label {
  font-size: var(--fs-small);
  color: var(--text);
  font-weight: 500;
}
.calc-param-value {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--surface);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 110px;
  text-align: right;
  font-size: var(--fs-small);
}
.calc-param-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-small);
  color: var(--text);
  font-family: inherit;
}

/* ===== ТАБЛИЦА КАЛЬКУЛЯТОРА ===== */
.calc-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

#calcTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 1700px;
  background: var(--surface);
}

#calcTable th,
#calcTable td {
  border: 1px solid var(--border);
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
}

#calcTable thead th {
  background: var(--bg-dark);
  color: var(--text-inverse);
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1.25;
}

#calcTable .column-numbers th {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 500;
  font-size: 0.65rem;
  padding: 3px;
}

#calcTable input[type="text"],
#calcTable input[type="number"],
#calcTable select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 3px;
  outline: none;
  border-radius: var(--r-sm);
  color: var(--text);
}

#calcTable input:focus,
#calcTable select:focus {
  border-color: var(--accent);
  background-color: rgba(15,81,50,0.04);
}

#calcTable input.calc {
  background: var(--bg);
  font-weight: 600;
  color: var(--trust);
  cursor: default;
}

#calcTable input.total {
  background: rgba(15,81,50,0.08);
  font-weight: 700;
  color: var(--accent);
}

#calcTable tbody tr:hover { background-color: rgba(15,81,50,0.03); }

#calcTable tfoot td {
  background: var(--bg);
  font-weight: 700;
}

#calcTable .total-cell {
  background: rgba(15,81,50,0.12) !important;
  color: var(--accent) !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.btn-delete {
  color: var(--error);
  font-weight: bold;
  font-size: 1rem;
  padding: 0 4px;
  transition: color 0.2s;
}
.btn-delete:hover { color: #7f1d1d; }

.calc-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ===== КМС В ТАБЛИЦЕ ===== */
.kms-cell { min-width: 180px; text-align: left; padding: 6px 8px !important; }

.kms-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.kms-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15,81,50,0.08);
  border: 1px solid rgba(15,81,50,0.2);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  gap: 6px;
}
.kms-item .kms-name {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kms-item .kms-zeta {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-left: 6px;
  white-space: nowrap;
}
.kms-item .kms-remove {
  color: var(--error);
  font-weight: bold;
  padding: 0 4px;
  font-size: 0.8rem;
  transition: color 0.2s;
  flex-shrink: 0;
}
.kms-item .kms-remove:hover { color: #7f1d1d; }

.kms-add-btn {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  width: 100%;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.kms-add-btn:hover {
  background: var(--accent);
  color: #fff;
}
.kms-empty {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-style: italic;
  display: block;
  text-align: center;
  padding: 2px 0;
}

/* ===== МОДАЛКА КМС ===== */
.calc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--s-4);
}
.calc-modal-overlay.active { display: flex; }

.calc-modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-modal-header {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--s-4) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.calc-modal-close {
  color: var(--text-inverse);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.calc-modal-close:hover { color: var(--accent-bright); }

.calc-modal-body {
  padding: var(--s-6);
  overflow-y: auto;
  flex: 1;
}
.calc-modal-footer {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}

.kms-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.kms-cat-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.kms-cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.kms-cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.kms-items-list {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.kms-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  gap: var(--s-3);
}
.kms-item-row:last-child { border-bottom: none; }
.kms-item-row:hover { background: rgba(15,81,50,0.05); }

.kms-item-row > div:first-child {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: 1;
  min-width: 0;
}
.kms-item-row .name {
  font-size: var(--fs-small);
  color: var(--text);
  font-weight: 500;
}
.kms-item-row .zeta {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.kms-item-row .add-icon {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
  margin-left: var(--s-2);
}
.kms-item-row .preview-img {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.manual-form {
  padding: var(--s-5);
  border: 1px dashed var(--accent);
  border-radius: var(--r-md);
  background: rgba(15,81,50,0.04);
  margin-top: var(--s-4);
}
.manual-form label {
  display: block;
  font-size: var(--fs-small);
  color: var(--text);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.manual-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  margin-bottom: var(--s-3);
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
.manual-form input:focus {
  border-color: var(--accent);
  outline: none;
}
.manual-form .btn-add-manual {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.manual-form .btn-add-manual:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
  .nav { gap: var(--s-4); }
  .nav > li > a { font-size: 0.8rem; }
  .nav .nav__cta { padding: 8px 16px; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .service { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fails-grid { grid-template-columns: 1fr; }
  .about {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }
  .about__right { position: static; }
  .about__facts {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
  }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item--wide { grid-column: span 2; }
  .systems { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--s-5);
    z-index: 999;
    padding: 100px var(--s-6) var(--s-8);
    overflow-y: auto;
  }
  .nav.active { display: flex; }
  .nav > li { width: 100%; text-align: center; }
  .nav > li > a {
    font-size: 1.15rem;
    justify-content: center;
    width: 100%;
    padding: var(--s-3) 0;
  }
  .nav > li > a::after { display: none; }

  .nav__item--dropdown > .nav__link--dropdown {
    justify-content: center;
  }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.3s ease;
    min-width: 0;
    margin-top: 0;
  }
  .nav__item--dropdown.open .nav__dropdown {
    max-height: 500px;
    margin-top: var(--s-3);
  }
  .nav__item--dropdown.open .nav__chevron {
    transform: rotate(180deg);
  }
  .nav__dropdown::before { display: none; }
  .nav__dropdown a {
    font-size: 1rem;
    padding: var(--s-2) var(--s-3);
    text-align: center;
  }
  .nav__dropdown a:hover {
    padding-left: var(--s-3);
  }

  .nav .nav__cta {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    margin-top: var(--s-4);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-column: span 1; min-height: 0; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__stats { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .manifest__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form { padding: var(--s-6); }
  .quote__mark { font-size: 4rem; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .flying-word { font-size: 0.65rem; letter-spacing: 0.15em; }
  .flying-word::before { display: none; }
  .hero__scroll-hint { display: none; }
  .fails-grid { gap: var(--s-4); }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .about__card { padding: var(--s-6); }
  .people-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item--wide { grid-column: span 1; }
  .about__photo { aspect-ratio: 1/1; }
  .page-hero { padding: 140px 0 80px; min-height: auto; }
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; }
  .page-hero__word { font-size: 0.65rem; letter-spacing: 0.15em; }
  .page-hero__word::before { display: none; }
  .calc-wrapper { padding: var(--s-5); }
  .calc-params { grid-template-columns: 1fr; padding: var(--s-4); }
  .calc-actions { flex-direction: column; }
  .calc-actions .btn { width: 100%; justify-content: center; }
  .calc-modal { width: 95%; max-height: 95vh; }
  .calc-modal-body { padding: var(--s-4); }
  .kms-categories { gap: 4px; }
  .kms-cat-btn { padding: 6px 12px; font-size: 0.75rem; }
}

/* ===== АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}