/* ==========================================================================
   XATA436 tech — dark theme
   Брендовые цвета: --brand #01E358 (основной), --accent #75FFAA (второй)
   ========================================================================== */

:root {
  --bg:        #060B08;
  --surface:   #0C130F;
  --surface-2: #111A15;
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);
  --txt:       #EEF5F0;
  --mut:       #90A498;
  --ink:       #04170C;          /* текст поверх акцентных заливок */
  --brand:     #01E358;
  --accent:    #75FFAA;

  /* тёплая палитра карточки GitLab */
  --warm-grad: linear-gradient(155deg, #FFE7CC 0%, #FFD2A6 42%, #FFB877 100%);
  --warm-ink:  #3B1D06;
  --warm-mid:  #C96A18;

  --r-lg: 34px;
  --r-md: 26px;
  --r-sm: 18px;

  --pad: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: var(--pad);
  background: var(--bg);
  color: var(--txt);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* мягкое свечение бренда за всей страницей */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background:
    radial-gradient(48% 60% at 22% 0%,  rgba(1, 227, 88, .17), transparent 70%),
    radial-gradient(42% 55% at 78% 8%,  rgba(117, 255, 170, .11), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

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

a { color: inherit; text-decoration: none; }

/* Свой фокус вместо дефолтного рыжего кольца Chrome.
   :focus-visible — кольцо появляется при навигации с клавиатуры, но не после клика мышью. */
:focus { outline: none; }

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

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; }

p { margin: 0; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--pad);
}

/* ==========================================================================
   БАННЕР ДНЯ РОЖДЕНИЯ (над шапкой)
   ========================================================================== */
.bday {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 11px 22px 11px 11px;
  border-radius: var(--r-md);
  border: 1px solid rgba(1, 227, 88, .3);
  background:
    radial-gradient(90% 200% at 4% 50%, rgba(255, 160, 60, .16), transparent 58%),
    radial-gradient(80% 180% at 62% 50%, rgba(1, 227, 88, .17), transparent 62%),
    linear-gradient(90deg, #0A140E, #0B1710 55%, #08120C);
}

.bday::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(1, 227, 88, .09);
}

/* фото задаёт высоту баннера: растёт за счёт срезанных отступов,
   поэтому сам баннер остаётся прежней высоты */
.bday__photo {
  position: relative;
  z-index: 2;
  flex: none;
  width: 310px;
  height: 113px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
}

.bday__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

/* текст */
.bday__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.bday__title {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--txt);
  white-space: nowrap;
}

.bday__slogan {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--brand);
  white-space: nowrap;
}

/* живой отсчёт */
.bday__count {
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-width: 104px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(6, 13, 9, .6);
}

.bday__count b {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--txt);
  font-variant-numeric: tabular-nums;
}

.bday__count i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.bday__count u {
  text-decoration: none;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 3px;
}

/* в сам день рождения счётчик превращается в отметку */
.bday__count.is-today b { font-size: 26px; color: var(--brand); }
.bday__count.is-today i { color: var(--txt); }

/* кнопка */
.bday__cta {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.bday__cta svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* — конфетти (только внутри баннера) — */
.bday__confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bday__confetti span {
  position: absolute;
  top: -14px;
  width: 7px;
  height: 11px;
  border-radius: 1.5px;
  opacity: 0;
  animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg);      opacity: 0; }
  12%  {                                             opacity: 1; }
  85%  {                                             opacity: 1; }
  100% { transform: translateY(150px) rotate(540deg); opacity: 0; }
}

/* иконки ------------------------------------------------------------------ */
.ico {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 16px 14px 22px;
  background: rgba(12, 19, 15, .66);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.nav__logo img { height: 26px; width: auto; }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.btn--ghost {
  color: var(--txt);
  border: 1px solid var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--solid {
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
}

.btn--solid:hover { background: var(--accent); }

.btn--lg { height: 52px; padding: 0 30px; font-size: 16px; }

/* ==========================================================================
   STICKER — текст в «наклейке» с обводкой (ключевой приём макета)
   ========================================================================== */
.sticker {
  display: inline-block;
  padding: .1em .34em;
  border-radius: .42em;
  background: rgba(9, 15, 11, .74);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, .17);
  box-shadow:
    0 0 0 5px rgba(6, 11, 8, .5),
    0 18px 44px rgba(0, 0, 0, .45);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sticker--sm {
  padding: .28em .6em;
  border-radius: .55em;
  box-shadow:
    0 0 0 4px rgba(6, 11, 8, .42),
    0 12px 30px rgba(0, 0, 0, .4);
}

.sticker--row {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  flex-wrap: nowrap;      /* «Начать» держится в строке рядом с «Без пауз» */
  justify-content: center;
  white-space: nowrap;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  padding: 64px 40px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

/* СЛОТ ФОТО: фон хедер-блока (заменяется на <img class="hero__bg">) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #071009;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.wave--a {
  inset: -40% 42% 0% -30%;
  background: conic-gradient(from 210deg, rgba(1, 227, 88, .9), rgba(117, 255, 170, .5), rgba(0, 150, 105, .8), rgba(1, 227, 88, .9));
  opacity: .85;
}

.wave--b {
  inset: 12% -26% -46% 32%;
  background: radial-gradient(closest-side, rgba(117, 255, 170, .72), transparent 74%);
  opacity: .8;
}

.wave--c {
  inset: -18% 4% 40% 26%;
  background: radial-gradient(closest-side, rgba(1, 227, 88, .55), transparent 70%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 3px 3px;
}

.hero__title {
  margin: auto 0;
  text-align: center;
  font-size: clamp(32px, 5.2vw, 70px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.045em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .16em;
}

/* CTA внутри заголовка */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  padding: .26em .5em .26em .62em;
  margin-left: .1em;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: .44em;
  font-weight: 600;
  letter-spacing: -.02em;
  box-shadow: 0 10px 30px rgba(1, 227, 88, .3);
}

.cta:hover { background: var(--accent); }

/* десктоп: кнопка внутри строки, отдельная мобильная копия скрыта */
.cta--mobile { display: none; }

.ico--arrow { width: 1em; height: 1em; stroke-width: 2.2; }

.hero__foot {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hero__dots { display: flex; gap: 8px; }

.dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(9, 15, 11, .8);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
}

.dot svg { width: 21px; height: 21px; fill: var(--txt); }

.dot:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.dot:hover svg { fill: var(--ink); }

/* чип «Инфраструктура уровня Tier-2» */
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(9, 15, 11, .78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
}

.chip__txt {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  text-align: right;
  letter-spacing: -.015em;
}

.chip__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

.chip__badge svg { width: 19px; height: 19px; fill: var(--ink); }
.chip__badge .chk { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   ТРИ БЛОКА
   ========================================================================== */
.grid3 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--pad);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--r-lg);
  display: flex;
}

/* — блок 1: GitLab, тёплый градиент, арт слева — */
.card--gitlab {
  background: var(--warm-grad);
  color: var(--warm-ink);
  align-items: flex-end;
}

.card--gitlab .card__body {
  margin-left: auto;
  width: 60%;
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  margin-bottom: auto;
}

.card__mark svg { width: 24px; height: 24px; fill: var(--warm-mid); }

.card__title {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.12;
  font-weight: 600;
}

.card__text {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(59, 29, 6, .76);
}

.pillbtn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--warm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pillbtn__plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--warm-ink);
}

.pillbtn__plus svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #FFB877;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* арт слева / справа */
.card__art {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56%;
  display: grid;
  place-items: center;
  z-index: -1;
}

.card__art--left  { left: 0; }
.card__art--right { right: 0; }

.card__art img { width: 100%; height: 100%; object-fit: cover; }

/* --plain: реальное фото без дуотона и размытия края — жёсткая граница на 40% */
.card__art--plain {
  width: 40%;
}

.card__art--plain img {
  mix-blend-mode: normal;
  opacity: 1;
  -webkit-mask-image: none;
          mask-image: none;
}

/* — блок 2: заполняющее фото — */
.card--fill {
  background: var(--surface-2);
  border: 1px solid var(--line);
  align-items: flex-end;
}

.card__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--fill::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 10, 6, .72), transparent 58%);
}

/* — блок 3: второй акцент, арт справа — */
.card--life {
  background: var(--accent);
  color: var(--ink);
  align-items: flex-end;
}

.card--life .sticker {
  background: rgba(4, 23, 12, .82);
  color: var(--txt);
}

.card__play {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--ink);
}

.card__play svg { width: 22px; height: 22px; fill: var(--accent); }

/* растянутая ссылка на всю карточку */
.card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card__over {
  position: relative;
  z-index: 3;
  pointer-events: none;
  padding: 26px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.03em;
}

/* — заглушки под реальные фото (временно) — */
.ph {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1.5px dashed currentColor;
  border-radius: var(--r-md);
  opacity: .28;
  text-align: center;
}

.ph svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph span {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 16ch;
}

.ph--fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  min-height: 0;
  border-radius: 0;
  border: none;
  color: var(--txt);
  opacity: .22;
}

/* ==========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pad);
}

.stat {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat b {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--brand);
  line-height: 1;
}

.stat span { font-size: 14px; color: var(--mut); }

/* — SLI / SLA: парный показатель — */
.slo {
  grid-column: span 2;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 28px 30px;
  border-radius: var(--r-md);
  border: 1px solid rgba(1, 227, 88, .28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(1, 227, 88, .13), transparent 62%),
    var(--surface);
}

.slo__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.slo__sep {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
  flex: none;
  margin: 0 18px;
}

.slo__tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

.slo__tag--alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(117, 255, 170, .45);
}

.slo__num {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--txt);
}

.slo__num i {
  font-style: normal;
  font-size: .46em;
  color: var(--brand);
  margin-left: .06em;
  vertical-align: super;
}

.slo__cap {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mut);
  margin-top: auto;
}

/* ==========================================================================
   СЕКЦИЯ + ФОТО СБОКУ (колонки одной высоты)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.22fr .78fr;   /* текст шире, фото уже */
  gap: var(--pad);
  align-items: stretch;
}

.split--photo-first { grid-template-columns: .78fr 1.22fr; }

.split > section { height: 100%; }

.shot {
  position: relative;
  margin: 0;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 10, 6, .55), transparent 58%);
}

/* кадрирование под конкретные снимки */
.shot--sea  img { object-position: 50% 62%; }   /* держим линию прибоя в кадре */
.shot--crew img { object-position: 50% 42%; }
.shot--bridge img { object-position: 62% 30%; }

/* ==========================================================================
   СЕКЦИИ
   ========================================================================== */
.sec__title {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 22px;
}

/* заголовок лежит прямо на фоне страницы, а не внутри карточки —
   нужен свой отступ сверху вместо того, что раньше давал padding секции */
.sec__title--loose {
  margin: 16px 0 4px;
}

.rely, .team, .final, .win-intro, .win-soft {
  padding: 46px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   СТРАНИЦА WINDOWS ВАРМ
   ========================================================================== */
.win-intro { display: flex; flex-direction: column; justify-content: center; }

.kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(9, 15, 11, .7);
  font-size: 13px;
  color: var(--mut);
  letter-spacing: .02em;
}

.win-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.win-soft__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 32px;
  margin-top: 34px;
}

.win-soft__col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.win-soft__col-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

.win-soft__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.win-soft__list li {
  position: relative;
  padding-left: 15px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--txt);
}

.win-soft__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}

.team__grid {
  display: grid;
  gap: 28px 44px;
}

.team__grid { grid-template-columns: repeat(2, 1fr); }

/* Плитки без собственных рамок: секция уже карточка, вкладывать в неё
   такие же карточки незачем. Структуру держит тонкая линия сверху. */
.tile {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.tile h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 9px;
}

.tile p { font-size: 15px; line-height: 1.55; color: var(--mut); }

.tile--sm h3 { font-size: 16px; color: var(--brand); }

/* три фото-карточки в блоке «О XATA436»: текст пишется прямо на снимке */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
}

.ph-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

.ph-card__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 10, 6, .88) 8%, rgba(4, 10, 6, .1) 62%, transparent);
}

.ph-card__over { padding: 24px; }

.ph-card__over h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.ph-card__over p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

.ph-card__photo--grows { object-position: 68% 65%; }
.ph-card__photo--own   { object-position: 62% 30%; }
.ph-card__photo--247   { object-position: 50% 55%; }

.rely__title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .16em;
  margin-bottom: 22px;
}

.rely__lead {
  max-width: 62ch;
  font-size: 17px;
  color: var(--mut);
  margin-bottom: 32px;
}

.rely__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 32px;
}

/* ==========================================================================
   ФИНАЛЬНЫЙ CTA
   ========================================================================== */
.final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 68px 40px;
}

.final__title {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.15;
}

.final p { color: var(--mut); font-size: 17px; }

.final__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* без коробки: текст прямо на фоне страницы, выключка влево — как финальный слоган на странице ДР */
.final--plain {
  background: none;
  border: none;
  padding: 24px 0 8px;
  text-align: left;
  align-items: flex-start;
}

.final--plain .final__btns { justify-content: flex-start; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* футер — две карточки в ряд, под ними леттеринг */
.foot {
  display: flex;
  flex-direction: column;
  gap: var(--pad);
  padding: 0;
  background: none;
  border: none;
}

.foot__cards {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--pad);
  align-items: stretch;
}

/* — левая карточка: призыв к действию — */
.foot__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 44px 36px 36px;
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, .34), transparent 62%),
    linear-gradient(158deg, var(--accent), var(--brand) 62%, #00C24A);
}

.foot__cta-title {
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  max-width: 15ch;
}

.foot__cta-mark {
  width: auto;
  height: clamp(92px, 11vw, 148px);
  margin: auto 0;
  opacity: .17;
  filter: brightness(0) saturate(100%);
}

.foot__cta-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 34px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}

/* — правая карточка: ссылки и реквизиты — */
.foot__main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 40px 40px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.foot__cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.foot__col-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mut);
}

.foot__col a {
  font-size: 15px;
  line-height: 1.3;
  color: var(--txt);
}

.foot__col a:hover { color: var(--brand); }

.foot__addr {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mut);
  margin-top: auto;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mut);
}

.foot__bottom-r { text-align: right; }
.foot__bottom a { display: block; }
.foot__bottom a:hover { color: var(--brand); }

/* — леттеринг: сплошная заливка во всю ширину, обрезается по краям — */
.foot__wordmark {
  overflow: hidden;
  margin: 0;
  font-size: clamp(46px, 18vw, 226px);
  font-weight: 600;
  line-height: .78;
  letter-spacing: -.05em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .16);
  user-select: none;
}

.foot__wordmark span { -webkit-text-stroke-color: rgba(1, 227, 88, .45); }

/* ==========================================================================
   ЮРИДИЧЕСКАЯ СТРАНИЦА (политика ПДн)
   ========================================================================== */
.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 48px 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #071009;
}

.legal-hero__glow {
  position: absolute;
  inset: -50% 30% 20% -20%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(closest-side, rgba(1, 227, 88, .45), transparent 72%);
}

.legal-hero__kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(9, 15, 11, .7);
  font-size: 13px;
  color: var(--mut);
  letter-spacing: .02em;
}

.legal-hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.14;
  max-width: 20ch;
  margin-bottom: 22px;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--mut);
}

.legal-hero__meta b { color: var(--txt); font-weight: 500; }

/* макет: оглавление + текст */
.legal-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--pad);
  align-items: start;
}

.toc {
  position: sticky;
  top: var(--pad);
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.toc__title {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 16px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc li { counter-increment: toc; }

.toc a {
  display: flex;
  gap: 9px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--mut);
}

.toc a::before {
  content: counter(toc) '.';
  color: var(--brand);
  flex: none;
}

.toc a:hover { color: var(--txt); }

.legal-body {
  padding: 46px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  counter-reset: sec;
}

.legal-sec { scroll-margin-top: 20px; }

.legal-sec + .legal-sec {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-sec > h2 {
  counter-increment: sec;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
}

.legal-sec > h2::before {
  content: counter(sec) '.';
  color: var(--brand);
  flex: none;
}

.legal-sec h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 12px;
  color: var(--txt);
}

.legal-sec p,
.legal-sec li {
  font-size: 15.5px;
  line-height: 1.62;
  color: #C4D2CA;
}

.legal-sec p + p { margin-top: 13px; }

.legal-sec ul,
.legal-sec ol {
  margin: 13px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sec ul li,
.legal-sec ol li {
  position: relative;
  padding-left: 26px;
}

.legal-sec ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.legal-sec ol { counter-reset: item; }

.legal-sec ol li {
  counter-increment: item;
}

.legal-sec ol li::before {
  content: counter(item) ')';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 14px;
}

.legal-sec strong { color: var(--txt); font-weight: 600; }

.legal-sec a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* врезка с реквизитами / контактами */
.legal-note {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
}

.legal-note p + p { margin-top: 9px; }

.legal-dl {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 10px 24px;
  font-size: 15px;
}

.legal-dl dt { color: var(--mut); }
.legal-dl dd { margin: 0; color: var(--txt); }

/* таблица целей/данных */
.legal-table-wrap { overflow-x: auto; margin-top: 16px; }

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.legal-table th {
  color: var(--txt);
  font-weight: 600;
  background: var(--surface-2);
  white-space: nowrap;
}

.legal-table td { color: #C4D2CA; }

.legal-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   СТРАНИЦА ДНЯ РОЖДЕНИЯ
   ========================================================================== */
.hb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  padding: 64px 40px 32px;
  border: 1px solid rgba(1, 227, 88, .22);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  text-align: center;
}

.hb-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hb-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* кадр с шарами светлый, поэтому вуаль плотнее — иначе белый текст не читается */
  background:
    radial-gradient(78% 68% at 50% 42%, rgba(4, 12, 7, .62), rgba(3, 9, 5, .88) 82%),
    linear-gradient(to top, rgba(3, 9, 5, .94) 2%, transparent 58%);
}

.hb-confetti {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hb-confetti span {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  animation: hb-fall linear infinite;
}

@keyframes hb-fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1);      opacity: 0; }
  8%   {                                                      opacity: 1; }
  88%  {                                                      opacity: 1; }
  100% { transform: translateY(720px) rotate(760deg) scale(.8); opacity: 0; }
}

.hb-hero__inner { position: relative; z-index: 1; margin: auto 0; }


.hb-title {
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .14em;
}

.hb-title em {
  font-style: normal;
  color: var(--brand);
}

.hb-hero__lead {
  margin: 30px auto 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: #C8D6CD;
}

/* планы */
.hb-plans {
  padding: 56px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hb-plans h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.16;
  margin-bottom: 32px;
}

.hb-plans ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.hb-plans li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: -.02em;
}

.hb-plans li:last-child { border-bottom: 1px solid var(--line); }

.hb-plans li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: .48em;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(1, 227, 88, .14);
}

/* заголовок пункта — фиксированная колонка, иначе описание «гуляет»
   по горизонтали вслед за длиной заголовка (текст без обёртки в flex
   получает ширину по своему содержимому, а не общую сетку) */
.hb-plans li b {
  flex: 0 0 300px;
  font-weight: inherit;
  color: inherit;
}

.hb-plans li span {
  flex: 1;
  min-width: 0;
  color: var(--mut);
  font-size: .82em;
  letter-spacing: 0;
}

/* финальный слоган — без коробки: текст прямо на фоне страницы */
.hb-slogan {
  position: relative;
  isolation: isolate;
  padding: 104px 0 96px;
  text-align: center;
}

.hb-slogan__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(1, 227, 88, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 227, 88, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 60%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 60%, #000, transparent 76%);
}

.hb-slogan__txt {
  margin: 0;
  font-size: clamp(42px, 11.4vw, 166px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--txt);
}

.hb-slogan__txt em {
  font-style: normal;
  color: var(--brand);
  text-shadow: 0 0 70px rgba(1, 227, 88, .5);
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1040px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .card--gitlab { grid-column: 1 / -1; }
  .stats, .rely__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .foot__cards { grid-template-columns: 1fr; }
  .foot__cta { gap: 22px; padding: 36px 28px 28px; }
  .foot__cta-mark { height: 88px; }

  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }


}

@media (max-width: 760px) {
  :root { --r-lg: 26px; --r-md: 20px; }

  .nav { padding: 12px 12px 12px 16px; gap: 12px; }
  .nav__logo img { height: 21px; }
  .nav__actions { gap: 7px; }
  .btn { height: 38px; padding: 0 15px; font-size: 14px; }
  .btn .ico { display: none; }

  .hero { min-height: 0; padding: 46px 20px 20px; gap: 36px; }

  /* на узком экране строка не влезает — разрешаем перенос,
     иначе nowrap выталкивает текст за пределы блока */
  .hero__title {
    max-width: none;
    width: 100%;
    font-size: clamp(27px, 7.4vw, 44px);
  }

  .hb-title { width: 100%; }
  .hb-title .sticker { max-width: 100%; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .chip { align-self: flex-start; }
  .chip__txt { text-align: left; }

  /* мобильная кнопка «Начать» — своя строка под заголовком, а не пилюля
     внутри переносящейся наклейки: так все три строки заголовка остаются
     одинаковыми по форме (одна короткая пилюля-текст), без разнобоя */
  .cta--inline { display: none; }

  .cta--mobile {
    display: inline-flex;
    align-self: center;
    font-size: 16px;
    padding: .55em .8em .55em .95em;
    gap: .32em;
  }

  .grid3 { grid-template-columns: 1fr; }
  .card { min-height: 320px; }

  /* на мобильном фото и текст не накладываются, а идут друг за другом */
  .card--gitlab { flex-direction: column; align-items: stretch; }

  .card--gitlab .card__art--plain {
    position: static;
    display: block;
    width: 100%;
    height: 200px;
    flex: none;
    z-index: 0;
  }

  /* высота задаётся картинке: у grid-контейнера нет определённой высоты,
     и height:100% на img схлопывается в натуральный размер.
     Фото — коллаж из двух склеенных кадров, шов проходит на ~54% высоты.
     Держим окно кропа в первой (верхней) сцене, иначе видно стык. */
  .card--gitlab .card__art--plain img {
    height: 200px;
    object-fit: cover;
    object-position: 50% 22%;
  }

  .card--gitlab .card__body {
    width: 100%;
    margin-left: 0;
    padding: 24px;
  }

  .card--gitlab .card__mark { margin-bottom: 0; }

  .stats, .rely__grid, .team__grid { grid-template-columns: 1fr; }
  .rely, .team, .final, .win-intro, .win-soft { padding: 32px 22px; }
  .win-soft__cols { grid-template-columns: 1fr 1fr; gap: 26px 24px; }

  .foot__cta { padding: 32px 22px 24px; }
  .foot__cta-mark { height: 76px; }
  .foot__main { padding: 30px 22px 24px; gap: 26px; }
  .foot__cols { grid-template-columns: 1fr; gap: 26px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .foot__bottom-r { text-align: left; }

  .slo { grid-column: auto; flex-direction: column; gap: 22px; padding: 26px 22px; }
  .slo__sep { width: auto; height: 1px; margin: 0; background: linear-gradient(to right, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent); }

  /* один ряд: фото — «Нам год» / слоган — счётчик. Кнопка на телефоне не влезает по смыслу баннера, убрана. */
  .bday { flex-wrap: nowrap; gap: 10px; padding: 7px; }
  .bday__photo { width: 92px; height: 66px; border-radius: 11px; }
  .bday__body { flex: 1; min-width: 0; gap: 2px; }
  .bday__title { font-size: 16px; }
  .bday__slogan { font-size: 11.5px; }
  .bday__count { min-width: 0; padding: 6px 12px; border-radius: 12px; }
  .bday__count b { font-size: 19px; }
  .bday__count i { font-size: 9px; }
  .bday__count u { display: none; }
  .bday__cta { display: none; }

  .hb-hero { min-height: 0; padding: 46px 20px 26px; gap: 32px; }


  .hb-plans { padding: 34px 22px; }
  .hb-plans li { flex-direction: column; gap: 6px; }
  .hb-plans li b { flex-basis: auto; }
  .hb-slogan { padding: 60px 22px; }
  .split, .split--photo-first { grid-template-columns: 1fr; }
  .shot { min-height: 260px; }
  .split--photo-first .shot { order: 2; }   /* на мобильном фото уходит под текст */

  .legal-hero { padding: 44px 22px 36px; }
  .legal-body { padding: 32px 22px; }
  .toc ol { grid-template-columns: 1fr; }
  .legal-dl { grid-template-columns: 1fr; gap: 4px; }
  .legal-dl dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
