/* Base tokens & fonts */
:root {
  --font-sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  --font-title: "Russo One", "Manrope", sans-serif;
  --bg: #0E0B12;
  --ink: #0E0B12;
  --surface: #1E1B24;
  --primary: #7E3FF2;
  --accent: #DA8CFF;
}
* { box-sizing: border-box; }
body { font-family: var(--font-sans); background: var(--bg); color: #fff; }
.h-title { font-family: var(--font-title); letter-spacing: .3px; }
.lead { color: rgba(255,255,255,.85); font-size: 1.05rem; }

.container { width:100%; max-width:1200px; margin-inline:auto; padding-inline:1.25rem; }
.nav-link { color: rgba(255,255,255,.85); }
.nav-link:hover { color: var(--accent); }

/* Glass header */
.glass { backdrop-filter: blur(10px); background: rgba(20,16,28,.55); border-bottom:1px solid rgba(255,255,255,.08); }
.logo { height: 40px; opacity:.8; transition: opacity .2s ease; }
.logo:hover { opacity:1; }

/* Hero */
.hero-wrap { position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:contrast(1.05) saturate(1.15) brightness(.7); }
.hero-overlay { position:absolute; inset:0; background:
  radial-gradient(circle at 20% 20%, rgba(218,140,255,.25), transparent 40%),
  radial-gradient(circle at 80% 30%, rgba(126,63,242,.25), transparent 45%),
  linear-gradient(180deg, rgba(14,11,18,.2), rgba(14,11,18,.2));
}

/* Trust bar */
.trustbar { margin-top: 28px; display:flex; align-items:center; justify-content:center; gap:12px; color: rgba(255,255,255,.75); font-size:.95rem; }
.trustbar .dot { width:6px; height:6px; border-radius:50%; background: rgba(255,255,255,.35); display:inline-block; }

/* Cards */
.neon-card { position:relative; border-radius:16px; overflow:hidden; background:var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.neon-card::before { content:""; position:absolute; inset:-2px; z-index:0; border-radius:18px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(218,140,255,.35), transparent 60%),
              radial-gradient(120% 120% at 100% 0%, rgba(126,63,242,.35), transparent 60%);
  filter: blur(10px); opacity:.7;
}
.neon-card > * { position:relative; z-index:1; }
.card-title { font-family: var(--font-title); font-size: 1.15rem; margin-bottom:.35rem; }
.card-txt { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.5; }

/* Buttons & inputs */
.btn-primary { background: var(--primary); padding:.9rem 1.5rem; border-radius: .85rem; font-weight:700; display:inline-block; }
.btn-primary:hover { background:#6c2fe3; }
.btn-ghost { border:1px solid rgba(255,255,255,.15); padding:.8rem 1.4rem; border-radius:.85rem; display:inline-block; }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }
.inp { width:100%; padding: .85rem 1rem; border-radius:.6rem; background: #2a2633; color:#fff; border:1px solid rgba(255,255,255,.08); }
.inp::placeholder { color: rgba(255,255,255,.45); }

/* CTA band */
.cta-band { margin-top: 24px; display:flex; gap:16px; align-items:center; justify-content:space-between; background: linear-gradient(90deg, rgba(126,63,242,.15), rgba(218,140,255,.08)); border:1px solid rgba(255,255,255,.08); padding: 18px 20px; border-radius: 14px; }
.cta-txt { font-weight:600; color: rgba(255,255,255,.88); }

/* Steps */
.step { background: #16131B; border:1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 16px; }
.step .num { display:inline-block; font-family: var(--font-title); color: var(--accent); font-size: 1.25rem; margin-bottom:.35rem; }

/* Gallery */
.gallery-img { width:100%; height:auto; border-radius: 12px; display:block; background:#120f16; object-fit:cover; }
.gallery-img[loading="lazy"] { filter: saturate(1.08) contrast(1.02); }

/* Reveal on scroll */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity:1; transform: none; }

/* Mobile nav drawer */
.mobile-nav { position: absolute; top:64px; left:0; right:0; background: rgba(14,11,18,.96); border-bottom: 1px solid rgba(255,255,255,.08); transform-origin: top; transform: scaleY(0.9); opacity:0; transition: transform .18s ease, opacity .18s ease; }
.mobile-nav.open { transform: scaleY(1); opacity:1; }
.m-link { padding:.9rem 1rem; border-radius:.6rem; color: rgba(255,255,255,.9); }
.m-link:hover { background: rgba(255,255,255,.06); color:#fff; }

/* Parallax */
.parallax { background-attachment: fixed; background-size: cover; background-position: center; }

/* Видео с постером */
.video-embed { position: relative; width: 100%; height: 100%; }
.video-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; padding: 0; border: 0; background: #000; cursor: pointer;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Кнопка play по центру */
.video-cover .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 999px;
  background: rgba(126,63,242,.9); box-shadow: 0 10px 30px rgba(126,63,242,.45);
}
.video-cover .play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-38%, -50%);
  border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff;
}
.video-cover:hover .play { filter: brightness(1.05); transform: translate(-50%, -50%) scale(1.05); }

/* Небольшой скруглённый угол у iframe, чтобы совпадал с карточкой */
.video-embed iframe { border-radius: 12px; }
/* === Partners sprite: 3×3, позиционирование 0/50/100 + анти-bleed === */
:root { --cell: clamp(120px, 14vw, 180px); }

.sprite-logo{
  width: var(--cell);
  height: var(--cell);
  display: block;

  /* подрезаем края, чтобы не «подтекали» соседние тайлы */
  --pad: 8px;
  padding: var(--pad);
  background-origin: content-box;
  background-clip: content-box;

  background-image: url("assets/partners-sprite5.png");
  background-repeat: no-repeat;

  /* спрайт масштабируется до 300% × 300% размера ячейки */
  background-size: 300% 300%;
  /* ВАЖНО: 0/50/100 вместо -100% */
  background-position:
    calc(var(--x, 0) * 50%)
    calc(var(--y, 0) * 50%);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.35));
}

/* координаты тайлов */
.sprite-logo.logo-blizzard   { --x:0; --y:0; }
.sprite-logo.logo-googleplay { --x:1; --y:0; }
.sprite-logo.logo-appstore   { --x:2; --y:0; }

.sprite-logo.logo-cyber360   { --x:0; --y:1; }
.sprite-logo.logo-kwork      { --x:1; --y:1; }
.sprite-logo.logo-kaspersky  { --x:2; --y:1; }

.sprite-logo.logo-vtb        { --x:0; --y:2; }
.sprite-logo.logo-ozon       { --x:1; --y:2; }
.sprite-logo.logo-sber       { --x:2; --y:2; }

/* чуть сильнее «подрезаем» самые яркие */
.sprite-logo.logo-googleplay,
.sprite-logo.logo-kaspersky { --pad: 12px; }

/* === Author section === */
.author-card { border-radius: 18px; overflow: hidden; }
.author-media { position: relative; min-height: 360px; }
.author-media::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 20%, rgba(0,0,0,.15) 100%);
  pointer-events:none;
}
@media (min-width:768px){
  .author-media { min-height: 100%; }
}
.author-text { color: rgba(255,255,255,.9); }
.author-text p { line-height: 1.6; }
.author-list { margin: .25rem 0 .5rem; }
.author-list > span { display:block; margin-bottom:.25rem; color:rgba(255,255,255,.9); }
.author-list ul { margin:0; padding-left:1rem; list-style: disc; color:rgba(255,255,255,.9); }
.author-list li { margin:.25rem 0; }
.author-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:.75rem; }

/* Фото всегда сверху, ниже — текст */
.author-card { display: grid; grid-template-columns: 1fr; }

/* Пропорция 3:2 для фото */
.ratio-3-2 { aspect-ratio: 3 / 2; width: 100%; }

/* Fallback для старых браузеров без aspect-ratio */
@supports not (aspect-ratio: 3 / 2) {
  .ratio-3-2 { position: relative; }
  .ratio-3-2::before { content: ""; display: block; padding-top: 66.6667%; }
  .ratio-3-2 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* Лёгкий градиент поверх фото (можно убрать) */
.author-media { position: relative; }
.author-media::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 20%, rgba(0,0,0,.12) 100%);
  pointer-events:none;
}


/* === Автор: десктоп — фото полностью в экране, без обрезки === */
@media (min-width: 1024px){
  :root{
    --header-h: 64px;   /* фактическая высота шапки на десктопе */
    --author-pad: 24px; /* внутренние отступы карточки/контейнера */
  }

  /* убираем жёсткое 3:2 на десктопе, чтобы можно было ограничить высоту */
  #author .author-media.ratio-3-2 { aspect-ratio: auto; }

  /* «сцена» по высоте вьюпорта: не выше экрана, но и не слишком низкая */
  #author .author-media{
    height: clamp(420px, calc(100dvh - var(--header-h) - 2*var(--author-pad)), 78dvh);
    display: grid;
    place-items: center;       /* идеальный центр по двум осям */
    overflow: hidden;
    background: #0b0a10;       /* аккуратные поля по бокам при letterbox */
  }

  /* показываем снимок целиком, без обрезки */
  #author .author-media img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  /* чуть приглушаем затемнение, чтобы не казалось, что «съехало» */
  #author .author-media::after{
    background: linear-gradient(180deg, rgba(0,0,0,.0) 30%, rgba(0,0,0,.10) 100%);
  }

  /* якорь не уезжает под шапку */
  #author { scroll-margin-top: calc(var(--header-h) + 12px); }
}



/* Главная фотография: 100% ширины, без обрезки */
#author .author-media { height: auto !important; }
#author .author-media.ratio-3-2 { aspect-ratio: auto !important; } /* снимаем фиксацию 3:2 */
#author .author-media img{
  display:block;
  width:100%;
  height:auto;                /* сохраняет оригинальную пропорцию, без crop */
  object-fit: contain !important;
  object-position:center;
}
/* убираем затемнение поверх фото, чтобы не казалось “съехало” */
#author .author-media::after{ display:none; }

/* Вертикальные фото 9:16 ниже */
.author-portraits{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:16px;
}
@media (min-width:768px){
  .author-portraits{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.frame{ border-radius:14px; overflow:hidden; background:#0b0a10; }
.ratio-9-16{ aspect-ratio:9/16; width:100%; margin:0;}
.ratio-9-16 img{ width:100%; height:100%; /*object-fit:cover; object-position:center;*/ }

/* Если хочешь 9:16 тоже без обрезки — просто замени cover на contain: */
/* .ratio-9-16 img{ object-fit:contain; background:#0b0a10; } */

/* Fallback, если aspect-ratio не поддерживается */
@supports not (aspect-ratio: 9 / 16) {
  .ratio-9-16{ position:relative; }
  .ratio-9-16::before{ content:""; display:block; padding-top:177.78%; }
  .ratio-9-16 > img{ position:absolute; inset:0; }
}

/* спрятать бейдж reCAPTCHA v3 корректно */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

/* вариант: прятать только на мобильных */
@media (max-width: 640px){ .f-actions{ justify-content: center;} } 

/* ВАЖНО: формы наследуют шрифт от body */
button, input, select, textarea{
  font: inherit;            /* наследует и family, и size/weight/line-height */
  color: inherit;
}

/* Поля формы */
.inp{ font-family: inherit; }

/* Плейсхолдеры тоже тем же шрифтом/цветом */
.inp::placeholder{ font: inherit; color: rgba(255,255,255,.6); opacity: 1; }
/* кросс-браузер */
.inp::-webkit-input-placeholder{ font: inherit; color: rgba(255,255,255,.6); }
.inp::-moz-placeholder{ font: inherit; color: rgba(255,255,255,.6); }
.inp:-ms-input-placeholder{ font: inherit; color: rgba(255,255,255,.6); }

/* Кнопка отправки — тем же шрифтом */
.btn-primary{ font-family: inherit; }


/* Footer */
.site-footer{
  background: rgba(14,11,18,.85);            /* bg-ink/80 */
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  font-size: .95rem;
}
.site-footer .container{ padding: 28px 20px; }

/* grid layout */
.f-grid{
  display:grid; gap:24px; align-items:start; text-align:center;
  grid-template-columns: 1fr;
}
@media (min-width:768px){
  .f-grid{ grid-template-columns: 1fr 1fr 1fr; text-align:left; }
}
.f-col a{ color: inherit; text-decoration: none; }
.f-col a:hover{ color:#fff; }

/* left */
.f-copy{ margin:0; }

/* middle links */
.f-links{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
@media (min-width:768px){ .f-links{ justify-content:flex-start; } }

/* right contacts */
.f-title{ margin:0 0 6px; color:#fff; font-weight:600; }
.f-phone{ display:block; margin-bottom:8px; font-weight:600; color:#fff; }
.f-actions{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 0; }
.f-time{ margin:0; font-size:.9rem; color:rgba(255,255,255,.6); }

/* tg buttons */
.btn-tg{
  display:inline-block; padding:10px 18px; border-radius:9999px;
  background:#0088cc; color:#fff; box-shadow:0 6px 16px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border:1px solid transparent;
}
.btn-tg:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.28); }
.btn-tg.btn-outline{
  background:transparent; border-color:#0088cc; color:#fff;
}
.btn-tg.btn-outline:hover{ background:rgba(0,136,204,.15); }

/* recaptcha note */
.f-note{
  margin:18px auto 0; text-align:center; font-size:.8rem;
  color:rgba(255,255,255,.55);
}
.f-note a{ color:inherit; text-decoration: underline; text-underline-offset: 2px; }
.f-note a:hover{ color:#fff; }


/* Shop / Pricing */
#shop .card-title{ font-weight:700; }
#shop .card-txt{ color:rgba(255,255,255,.8); }

#shop .price{
  margin-top:6px;
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:.01em;
  color:#fff;
}
#shop .price .from{ font-weight:600; color:rgba(255,255,255,.75); margin-right:.35rem; }
#shop .price .rub{ opacity:.9; }

#shop .list{ margin:12px 0 14px; padding-left:1rem; color:rgba(255,255,255,.85); }
#shop .list li{ margin:.25rem 0; list-style:disc; }

#shop .actions{ display:flex; flex-direction:column; gap:10px; }
#shop .actions .alt{ display:flex; gap:8px; flex-wrap:wrap; }
#shop .actions .btn-ghost{ padding:.55rem .9rem; }

/* Скрины с подписью */
.shot{ position:relative; aspect-ratio:1/1; }
.shot > img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Плашка подписи (выезжает вверх) */
.shot-caption{
  position:absolute; inset:auto 0 0 0;
  padding:12px 14px 14px;
  color:#fff; font-size:.95rem;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.75) 100%);
  transform:translateY(58%); /* скрыта по умолчанию */
  transition:transform .25s ease, opacity .25s ease;
  opacity:.98;
}
.shot:hover .shot-caption,
.shot.is-open .shot-caption{ transform:translateY(0); }

.shot-title{ font-weight:700; margin:0 0 4px; }
.shot-text{ margin:0; color:rgba(255,255,255,.9); }

/* Небольшая подстройка на очень узких экранах */
@media (max-width:420px){
  .shot-caption{ padding:10px 12px 12px; transform:translateY(62%); }
  .shot-title{ font-size:1rem; }
  .shot-text{ font-size:.9rem; }
}


/* сетка скринов: авто-подгон под ширину контейнера */
.shots-wrap{ margin-top: 2.5rem; }
.shots-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;                 /* одинаковые отступы */
}

/* карточка-скрин: всегда квадрат 1:1 и на всю ширину колонки */
.shot{
  position:relative;
  overflow:hidden;
  aspect-ratio: 1 / 1;       /* КВАДРАТ! */
}
.shot > img{
  width:100%; height:100%;
  object-fit: cover;         /* заполняем без искажений */
  display:block;
}

/* подпись: выезжает вверх (как раньше) */
.shot-caption{
  position:absolute; inset:auto 0 0 0;
  padding:12px 14px 14px;
  color:#fff; font-size:.95rem;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.75) 100%);
  transform:translateY(58%);
  transition:transform .25s ease, opacity .25s ease;
}
.shot:hover .shot-caption,
.shot.is-open .shot-caption{ transform:translateY(0); }

.shot-title{ margin:0 0 4px; font-weight:700; }
.shot-text{ margin:0; color:rgba(255,255,255,.92); }

/* на очень узких — чуть компактнее */
@media (max-width:420px){
  .shots-grid{ gap:16px; }
  .shot-caption{ padding:10px 12px 12px; transform:translateY(62%); }
  .shot-title{ font-size:1rem; }
  .shot-text{ font-size:.9rem; }
}


/* === Shots: tighter spacing === */

/* 1) Сбросить дефолтные отступы figure */
.shot { margin: 0; }                /* у figure обычно 1em 40px — убираем */

/* 2) Сетка: одинаковые и небольшие gap'ы */
.shots-wrap { margin-top: 1.25rem; } /* было 2.5rem */
.shots-grid { gap: 12px; }           /* было 24px */
@media (max-width: 640px){
  .shots-grid { gap: 8px; }          /* на мобилках ещё компактнее */
}

/* 3) Остаёмся квадратными и на всю ширину колонки (как раньше) */
.shot{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.shot > img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* подпись (без изменений) */
.shot-caption{
  position:absolute; inset:auto 0 0 0;
  padding:12px 14px 14px;
  color:#fff; font-size:.95rem;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.75) 100%);
  transform:translateY(58%);
  transition:transform .25s ease, opacity .25s ease;
}
.shot:hover .shot-caption,
.shot.is-open .shot-caption{ transform:translateY(0); }

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; /* было 24px или больше */
}

