/* ==========================================================================
   LAZUR-IT — египетская дизайн-система
   Палитра выведена из фирменного логотипа (скарабей на лазурном фоне).
   ========================================================================== */

/* ------------------------------ 1. Токены ------------------------------- */
:root {
  /* Основа */
  --night:        #0a192e;
  --night-deep:   #061020;
  --night-abyss:  #030914;
  --night-700:    #0e2340;
  --night-600:    #123057;
  --night-500:    #173c6b;

  /* Металлы и камень */
  --gold:         #d9b45b;
  --gold-light:   #f4e2ae;
  --gold-deep:    #a8822f;
  --gold-glow:    rgba(217, 180, 91, 0.35);

  /* Лазурит и бирюза */
  --lapis:        #1b4b8f;
  --lapis-light:  #3a7bc8;
  --teal:         #2e7e8c;
  --teal-light:   #5fb6c2;

  /* Текст */
  --sand:         #f3e7cf;
  --text:         #dbe6f2;
  --muted:        #93a9c4;
  --muted-dim:    #6c809c;

  /* Служебное */
  --line:         rgba(217, 180, 91, 0.22);
  --line-soft:    rgba(147, 169, 196, 0.14);
  --panel:        linear-gradient(160deg, rgba(18, 48, 87, 0.55) 0%, rgba(10, 25, 46, 0.85) 100%);
  --panel-solid:  #0c1f38;
  --shadow-lg:    0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --shadow-gold:  0 0 0 1px rgba(217, 180, 91, 0.25), 0 24px 60px -28px rgba(217, 180, 91, 0.35);

  /* Типографика */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Ритм */
  --radius:       4px;
  --radius-lg:    10px;
  --shell:        1200px;
  --gutter:       clamp(1.15rem, 4vw, 2.5rem);
  --section-y:    clamp(4.5rem, 10vw, 8.5rem);
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------ 2. Сброс -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--night-abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* height: auto обязателен: атрибуты width/height у <img> работают как CSS-высоты,
   и если переопределить только width, картинка растягивается по вертикали. */
img { height: auto; }

picture { display: contents; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  color: var(--sand);
  letter-spacing: 0.015em;
}

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

a { color: var(--gold-light); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold); }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--night-abyss); }

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

/* --------------------------- 3. Фон страницы ---------------------------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(27, 75, 143, 0.42), transparent 65%),
    radial-gradient(900px 600px at 88% 12%, rgba(46, 126, 140, 0.16), transparent 70%),
    radial-gradient(800px 700px at 6% 62%, rgba(217, 180, 91, 0.09), transparent 72%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 45%, var(--night-abyss) 100%);
}

.bg-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(147, 169, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 169, 196, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* Мелкая «пыль пустыни» — медленно дрейфующие точки */
.bg-dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: dust-drift linear infinite;
}

@keyframes dust-drift {
  0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12%  { opacity: 0.55; }
  70%  { opacity: 0.35; }
  100% { transform: translate3d(-46px, -170px, 0) scale(1.15); opacity: 0; }
}

/* ------------------------- 4. Каркас и утилиты -------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: 1360px; }
.shell--narrow { max-width: 880px; }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: var(--night-abyss);
  font-weight: 700;
}
.skip-link:focus { left: 0; }


/* ---------------------------- 5. Орнаменты ------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.eyebrow::after { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.eyebrow--solo::before, .eyebrow--solo::after { display: none; }

/* Золотой разделитель с ромбом по центру */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.4rem auto 0;
  max-width: 420px;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 55%, var(--gold));
}
.rule::after { background: linear-gradient(270deg, transparent, var(--gold-deep) 55%, var(--gold)); }
.rule .rule-dot {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  flex: none;
}

/* Полоса «иероглифов» — декоративная */
.glyph-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  color: var(--gold-deep);
  opacity: 0.6;
}
.glyph-strip svg { width: 22px; height: 22px; flex: none; }

/* Уголки «каменной плиты» */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel:hover::before,
.panel:hover::after { opacity: 1; }

/* ------------------------------ 6. Кнопки ------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--gold-light);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 40%, var(--gold-light) 70%, var(--gold));
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}

.btn:hover {
  color: var(--night-abyss);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px var(--gold-glow);
}
.btn:active { transform: translateY(0); }
.btn:hover::after { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(120deg, var(--gold-deep), var(--gold));
  --btn-fg: var(--night-abyss);
  border-color: var(--gold);
  box-shadow: 0 16px 40px -22px var(--gold-glow);
}
.btn--primary::after { background: linear-gradient(120deg, var(--gold-light), #fff6dc 50%, var(--gold-light)); }
.btn--primary:hover { color: var(--night-abyss); }

.btn--ghost { --btn-fg: var(--text); border-color: var(--line-soft); }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.76rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* ------------------------------ 7. Шапка -------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.is-stuck {
  padding-block: 0.5rem;
  background: rgba(6, 16, 32, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--sand);
  flex: none;
}

.brand__mark {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(217, 180, 91, 0.3));
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.05); }

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sand);
  white-space: nowrap;
}
.brand__name em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.8em;
  letter-spacing: 0.2em;
  margin-left: 0.1em;
}

.brand__tag {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 0.42rem;
}

.nav { display: flex; align-items: center; gap: 0.2rem; }

.nav__link {
  position: relative;
  padding: 0.55rem 0.8rem;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: var(--radius);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--sand); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; flex: none; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.header__phone svg { width: 15px; height: 15px; color: var(--gold); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 35, 64, 0.6);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  padding: 6.5rem var(--gutter) 2.5rem;
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.985), rgba(3, 9, 20, 0.99));
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sand);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__link span { color: var(--gold-deep); font-size: 0.75rem; font-family: var(--font-body); letter-spacing: 0.2em; }
.mobile-nav__foot { display: grid; gap: 0.75rem; margin-top: 2rem; }
.mobile-nav__foot .btn { width: 100%; }

/* ------------------------------- 8. Hero -------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 16vw, 10.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hero__wings {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(1120px, 118%);
  transform: translateX(-50%);
  opacity: 0.28;
  color: var(--lapis-light);
  pointer-events: none;
  z-index: -1;
}

.hero__logo {
  position: relative;
  width: clamp(240px, 46vw, 420px);
  aspect-ratio: 610 / 394;
  margin: 0 auto 1.9rem;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.65));
  animation: float-soft 9s ease-in-out infinite;
}

/* Слои одного и того же логотипа. Разложены масками так, чтобы крылья
   можно было анимировать отдельно от тела и вордмарка — при этом в статике
   все слои точно совпадают и картинка выглядит как единый логотип. */
.hero__glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Логотип разрезан на 4 непересекающихся прямоугольника через clip-path.
   Горизонтальная граница проходит по пустой полосе между лапками и вордмарком
   (y ≈ 265 px), поэтому при взмахе ничего не обрезается и не появляется щелей.
   Каждый пиксель принадлежит ровно одному слою — в статике картинка совпадает
   с исходным логотипом пиксель в пиксель. */
.hero__glyph--wing-l {
  clip-path: inset(0 55% 32.75% 0);
  transform-origin: 45% 32%;
  animation: beetle-flap-left 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero__glyph--wing-r {
  clip-path: inset(0 0 32.75% 55.4%);
  transform-origin: 55.4% 32%;
  animation: beetle-flap-right 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Тело — между крыльями */
.hero__glyph--core {
  clip-path: inset(0 44.6% 32.75% 45%);
}

/* Вордмарк и точки — неподвижны */
.hero__glyph--lower {
  clip-path: inset(67.25% 0 0 0);
}

/* Мягкое золотое свечение вокруг жука */
.hero__halo {
  position: absolute;
  inset: -10% -14%;
  opacity: 0.5;
  background: radial-gradient(46% 40% at 50% 42%, rgba(217, 180, 91, 0.3), rgba(95, 182, 194, 0.12) 55%, transparent 72%);
  animation: beetle-halo 8s ease-in-out infinite;
  pointer-events: none;
}

/* Медленный мах: крыло поднимается внешним краем и разворачивается наружу.
   Темп прежний (8 с), размах увеличен. Амплитуда безопасна для стыков:
   по горизонтали точка отсчёта стоит на самой линии стыка с телом, а по
   вертикали граница слоёв проходит по пустой полосе под лапками. */
@keyframes beetle-flap-left {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50%      { transform: skewY(4deg) scaleX(1.075); }
}

@keyframes beetle-flap-right {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50%      { transform: skewY(-4deg) scaleX(1.075); }
}

/* Дыхание золотого света под жуком */
@keyframes beetle-halo {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50%      { opacity: 0.75; transform: scale(1.05); }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero__title {
  font-size: clamp(2.05rem, 6vw, 4.15rem);
  letter-spacing: 0.01em;
  max-width: 20ch;
  margin-inline: auto;
}
.hero__title .accent {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-light) 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 62ch;
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 0.95rem + 0.45vw, 1.2rem);
  color: var(--muted);
  line-height: 1.75;
}

.hero__actions { margin-top: 2.6rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold-deep);
  flex: none;
}

/* Полоса показателей */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 7vw, 4.8rem);
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats__item {
  padding: clamp(1.4rem, 3vw, 2.1rem) 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 35, 64, 0.72), rgba(6, 16, 32, 0.85));
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stats__label {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 0.7rem;
  display: block;
}

/* --------------------------- 9. Шапка секции ---------------------------- */
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-head__title { font-size: clamp(1.65rem, 4vw, 2.7rem); }
.section-head__lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.02rem; }

/* --------------------------- 10. Сетки карточек ------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Карточка-плита */
.card {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 180, 91, 0.45);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 25%, rgba(217, 180, 91, 0.22), rgba(14, 35, 64, 0.5));
  color: var(--gold);
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }

.card__title {
  font-size: 1.14rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.card__text { color: var(--muted); font-size: 0.95rem; line-height: 1.72; margin: 0; }

.card__index {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  opacity: 0.55;
}

.card__list { display: grid; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.card__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ------------------------- 11. Плитки преимуществ ----------------------- */
.creed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.creed__item { padding: clamp(1.4rem, 2.6vw, 1.9rem); }

.creed__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}
.creed__title { font-size: 1.06rem; margin-bottom: 0.55rem; }
.creed__text { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ------------------------------- 12. Кейсы ------------------------------ */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.5rem); }

.case {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.case:hover { transform: translateY(-5px); border-color: rgba(217, 180, 91, 0.42); box-shadow: var(--shadow-lg); }

.case__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

.case__period {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  flex: none;
}

.case__title { font-size: 1.16rem; line-height: 1.3; }
.case__org {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 0.6rem;
}

.case__text { color: var(--muted); font-size: 0.94rem; margin: 0; }

.case__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  padding-top: 0.35rem;
}
.case__metrics div { display: flex; flex-direction: column; }
.case__metrics strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  line-height: 1.1;
}
.case__metrics span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  color: var(--muted);
  background: rgba(18, 48, 87, 0.35);
}

/* ---------------------------- 13. Технологии ---------------------------- */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.5rem); }

.stack__group { padding: clamp(1.4rem, 2.8vw, 1.9rem); }

.stack__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.stack__head svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.stack__head h3 {
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--sand);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li {
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 32, 58, 0.6);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chips li:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* ------------------------------ 14. Процесс ----------------------------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
  padding-top: 3.4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 8%, var(--gold-deep) 92%, transparent);
  opacity: 0.6;
}

.step { position: relative; text-align: center; }

.step__dot {
  position: absolute;
  top: -2.95rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 13px;
  height: 13px;
  background: var(--night);
  border: 1px solid var(--gold);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover .step__dot { background: var(--gold); box-shadow: 0 0 18px var(--gold-glow); }

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.step__title { font-size: 1rem; margin-bottom: 0.5rem; }
.step__text { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* --------------------------- 16. О студии / автор ----------------------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }

.about__portrait {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(27, 75, 143, 0.45), transparent 65%),
    linear-gradient(180deg, rgba(18, 48, 87, 0.5), rgba(6, 16, 32, 0.9));
  box-shadow: var(--shadow-lg);
}
.about__portrait img {
  width: clamp(150px, 22vw, 210px);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}
.about__name { font-size: 1.3rem; }
.about__role {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.about__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }
.about__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
}
.about__links a:hover { border-color: var(--gold); color: var(--gold-light); }
.about__links svg { width: 14px; height: 14px; color: var(--gold); }

.about__body p { color: var(--muted); }
.about__body strong { color: var(--sand); font-weight: 600; }

.fact-list { display: grid; gap: 0.8rem; margin: 1.8rem 0 0; }
.fact-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt, .fact-list .fact-list__key {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0.25rem;
}
.fact-list li span:last-child { color: var(--text); }

/* --------------------------- 17. Контакты и форма ----------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.6rem, 4vw, 3.2rem); }

.contact-list { display: grid; gap: 0.9rem; margin-top: 2rem; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(11, 32, 58, 0.45);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-list a:hover { border-color: var(--gold); transform: translateX(4px); color: var(--gold-light); }
.contact-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.contact-list small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.15rem;
}

.form { padding: clamp(1.5rem, 3vw, 2.2rem); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(3, 9, 20, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 180, 91, 0.13);
}
.form .btn { width: 100%; margin-top: 1.3rem; }
.form__note { font-size: 0.76rem; color: var(--muted-dim); margin-top: 0.9rem; text-align: center; }
.form__ok {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(95, 182, 194, 0.5);
  border-radius: var(--radius);
  background: rgba(46, 126, 140, 0.16);
  color: var(--teal-light);
  font-size: 0.88rem;
  text-align: center;
}

.form__err {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 106, 106, 0.55);
  border-radius: var(--radius);
  background: rgba(201, 106, 106, 0.12);
  color: #e9adad;
  font-size: 0.88rem;
  text-align: center;
}

/* Ловушка для спам-ботов: скрыта от людей и не убирается через display:none,
   чтобы боты её всё-таки видели. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Капча «одним кликом» */
.form__captcha {
  margin-top: 1.2rem;
  min-height: 0;
}
.form__captcha[hidden] { display: none; }
.form__captcha > div { max-width: 100%; }

/* ------------------------------ 18. Подвал ------------------------------ */
.footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.6), rgba(3, 9, 20, 0.95));
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.footer__brand img { width: 150px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.88rem; color: var(--muted); max-width: 34ch; }

.footer__col h4 {
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a,
.footer__col li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer__col a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--muted-dim);
}
.footer__bottom a { color: var(--muted); }

/* --------------------------- 19. Наверх / скролл ------------------------ */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.7rem);
  bottom: clamp(0.9rem, 3vw, 1.7rem);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--gold); background: rgba(18, 48, 87, 0.9); }
.to-top svg { width: 18px; height: 18px; }

/* Полоса прогресса чтения */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  z-index: 101;
  pointer-events: none;
}

/* --------------------------- 20. Анимация входа ------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Разделитель-волна (мемфисский водный знак) */
.wave-divider {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--gold-deep);
  opacity: 0.35;
  margin-bottom: -1px;
}

/* ========================== 21. Адаптивность ============================ */
@media (max-width: 1180px) {
  .nav__link { padding-inline: 0.6rem; font-size: 0.79rem; }
  .brand__tag { display: none; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .timeline::before { display: none; }
  .step__dot { top: -1.5rem; }
}

@media (max-width: 1000px) {
  .header__phone { display: none; }
  .nav { display: none; }
  .burger { display: block; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

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

@media (max-width: 620px) {
  :root { --section-y: clamp(3.4rem, 12vw, 4.6rem); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .creed { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__grid { grid-template-columns: 1fr; }
  .fact-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: column; align-items: center; gap: 0.7rem; }
  .hero__meta li::before { display: none; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.24em; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .header__actions .btn { width: auto; }
  .brand__name { font-size: 1.1rem; }
  .brand__mark { width: 42px; }
}

@media (max-width: 400px) {
  .timeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* ====================== 22. Предпочтения движения ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .bg-dust { display: none; }
}

/* ============================ 23. Печать ================================ */
@media print {
  .header, .mobile-nav, .to-top, .bg-dust, .progress, .hero__wings { display: none !important; }
  body { background: #fff; color: #111; }
  .panel, .card, .case { background: #fff !important; box-shadow: none !important; }
}
