/* White Light Agency — заглушка на время разработки сайта + кейсы */

:root {
  --green: #76fbb9;
  --card: #0e1819;
  --line: rgba(255, 255, 255, .08);
  --text-soft: rgba(255, 255, 255, .85);
  --text-muted: rgba(255, 255, 255, .62);
  --font: "Onest", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Спрайт не прячем через display:none — иначе пропадает градиент MAX */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
}

/* ---------- Общие элементы ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 13px 6px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font: 700 11px/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pill--live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(118, 251, 185, .6);
  animation: pulse 2s ease-out infinite;
}

.title {
  font-weight: 900;
  font-size: clamp(32px, 3.3vw, 50px);
  line-height: .96;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.title__accent {
  display: block;
  color: var(--green);
}

/* ---------- Экран 1 ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 24px 130px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(520px 340px at 0 0, rgba(10, 44, 38, .55), transparent 70%),
    linear-gradient(180deg, #121d1e 0, #0c1314 100px, #060a0a 190px, #020404 250px, #000 300px);
}

/*
  Все размеры первого экрана сняты с макета шириной 1500px, заголовок там 68.5px.
  --u = 1 px макета; вместе с заголовком масштабируются иконки и свечение.
  Координаты иконок (--x, --y) — центр иконки от левого верхнего угла букв заголовка.
*/
.hero__content {
  --h1: clamp(30px, 4.57vw, 68.5px);
  --u: calc(1em / 68.5);
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: .11em;
  font-size: var(--h1);
}

.hero__title {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  font-size: 1em;
  font-weight: 900;
  line-height: calc(66 / 68.5);
  letter-spacing: .08em;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__line--full {
  grid-column: 1 / -1;
}

.hero__line--white {
  color: #fff;
  letter-spacing: .04em;
}

.hero__side {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding-top: 14.5px;
  font-size: 13px;
}

.hero__text {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 25px;
}

/* Иконки и свечение отсчитываются от угла букв, а не от строки */

.hero__icons,
.hero__glow {
  position: absolute;
  left: calc(5 * var(--u));
  top: calc(6.5 * var(--u));
}

.icon {
  --x: 0;
  --y: 0;
  --w: 80;
  --r: 0deg;
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(var(--w) * var(--u));
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--r));
  box-shadow: 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(0, 0, 0, .28);
  animation: float 7s ease-in-out infinite;
}

.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon--vk     { --x: 88;  --y: -38;  --w: 88; --r: -8deg;  background: #3375f6; animation-delay: -1s; }
.icon--dzen   { --x: 218; --y: -70;  --w: 44; --r: 9deg;   background: #2d3035; animation-delay: -3s; }
.icon--insta  { --x: 686; --y: -91;  --w: 67; --r: 14deg;  background: linear-gradient(142deg, #f8e44b 0%, #f2b048 18%, #ee7d5a 36%, #e8456f 55%, #c8348a 72%, #8f2aab 100%); animation-delay: -5s; }
.icon--max    { --x: 1000; --y: 8;   --w: 64; --r: -11deg; animation-delay: -2s; }
.icon--avito  { --x: 470; --y: -78;  --w: 58; --r: 10deg;  background: #fff; animation-delay: -3.5s; }
.icon--tiktok { --x: 379; --y: 149;  --w: 78; --r: -5deg;  background: #272c37; z-index: 3; animation-delay: -4s; }
.icon--ok     { --x: 52;  --y: 230;  --w: 51; --r: -20deg; background: #f0903a; animation-delay: -6s; }
.icon--fb     { --x: 248; --y: 288;  --w: 89; --r: 4.5deg; background: #3155bf; animation-delay: -2.5s; }
.icon--tg     { --x: 876; --y: 269;  --w: 67; --r: 7deg;   background: #55a9e8; animation-delay: -4.5s; }

/* Текст описания не масштабируется, поэтому на узких экранах отодвигаем Telegram правее него */
.icon--tg {
  left: max(calc(var(--x) * var(--u)), calc(545 * var(--u) + 307px));
}

.icon--vk svg    { width: 100%; }
.icon--dzen svg  { width: 100%; }
.icon--insta svg { width: 100%; }
.icon--tiktok svg { width: 56%; height: 56%; }
.icon--ok svg    { width: 74%; height: 74%; }

/* Зеленое свечение за заголовком */

.hero__glow {
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--r));
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 50%, transparent 100%);
  filter: blur(calc(18 * var(--u)));
}

.glow--top  { --x: 190; --y: -120; --w: 640; --h: 380; --r: 22deg; --c: rgba(50, 112, 95, .95); }
.glow--band { --x: 400; --y: 110;  --w: 820; --h: 300; --r: 52deg; --c: rgba(36, 86, 70, .8); }
.glow--low  { --x: 520; --y: 270;  --w: 470; --h: 230; --r: 60deg; --c: rgba(44, 100, 72, .9); }

/* ---------- Кейсы ---------- */

.cases {
  position: relative;
  padding: 120px 24px 40px;
  background:
    radial-gradient(640px 460px at 100% 18%, rgba(30, 90, 70, .28), transparent 70%),
    radial-gradient(560px 420px at 0 62%, rgba(24, 74, 60, .26), transparent 70%),
    #000;
}

.cases__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 720px;
}

.cases__lead {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.cases__group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 72px 0 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cases__group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cases__grid {
  display: grid;
  gap: 20px;
}

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

.case {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 30px;
  border-radius: 24px;
  background: var(--card);
}

.case__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.case__top .pill {
  align-self: center;
  font-size: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.tag:not(:has(.tag__ico)) {
  padding-left: 12px;
}

.tag__ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.tag__ico--pad {
  padding: 3px;
}

.case__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
}

.case__text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.case__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  margin-top: 4px;
}

.case__stats--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Цифра сверху, подпись под ней: в разметке dt идет первым */
.case__stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid rgba(118, 251, 185, .35);
}

.case__stats dd {
  color: var(--green);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.case__stats dt {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.case__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
}

/* Скрины */

.case__proof {
  display: flex;
  gap: 10px;
}

.shot {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}

/* Один скрин в кейсе — той же высоты, что пара скринов */
.case__proof .shot:only-child {
  aspect-ratio: 32 / 9;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform .35s;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 24, 25, .25);
  transition: background-color .25s;
}

.shot:hover img { transform: scale(1.04); }
.shot:hover::after { background: transparent; }

.shot:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Скрины-полоски друг под другом, без обрезки */
.case__proof--stack {
  flex-direction: column;
  align-self: start;
}

.case__proof--stack .shot,
.case__proof--stack .shot:only-child {
  flex: none;
  aspect-ratio: auto;
}

.case__proof--stack .shot img {
  height: auto;
}

/* Главный кейс: текст слева, скрины справа */

.case--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  padding: 36px;
  background:
    radial-gradient(520px 320px at 0 0, rgba(118, 251, 185, .1), transparent 70%),
    var(--card);
}

.case__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case--featured .case__title {
  font-size: 28px;
}

.case--featured .case__stats dd {
  font-size: clamp(22px, 2.1vw, 32px);
}

.case__proof--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
}

.shot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 1600 / 452;
}

.case__proof--grid .shot:not(.shot--wide) {
  aspect-ratio: 4 / 3;
}

/* Окно просмотра скрина */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 56px 72px 64px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 12px;
  background: #fff;
  cursor: default;
}

.lightbox__caption {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 400 30px/1 var(--font);
  cursor: pointer;
  transition: background-color .2s;
}

.lightbox__btn:hover { background: rgba(118, 251, 185, .25); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev  { top: 50%; left: 14px; translate: 0 -50%; }
.lightbox__btn--next  { top: 50%; right: 14px; translate: 0 -50%; }
.lightbox--single .lightbox__btn--prev,
.lightbox--single .lightbox__btn--next { display: none; }

/* ---------- Экран 2 ---------- */

.soon {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 32px;
  overflow: hidden;
  background:
    linear-gradient(#000 0, transparent 180px),
    radial-gradient(760px 520px at 92% -8%, rgba(78, 168, 118, .55), transparent 70%),
    radial-gradient(620px 420px at 70% 8%, rgba(30, 90, 70, .35), transparent 70%),
    radial-gradient(560px 380px at -6% 104%, rgba(24, 74, 60, .4), transparent 70%),
    #000;
}

.soon__inner {
  display: flex;
  flex-direction: column;
}

.soon__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 720px;
}

.soon__lead {
  max-width: 470px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 80px 0 64px;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 30px 30px 28px;
  border-radius: 24px;
  background: var(--card);
  transition: background-color .25s, transform .25s;
}

.card:hover {
  background: #122021;
  transform: translateY(-4px);
}

.card__icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
}

.card__text {
  margin: 22px 0 26px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card .pill {
  margin-top: auto;
  font-size: 10px;
}

.pill--link {
  color: #000;
  background: var(--green);
  text-decoration: none;
  transition: opacity .2s;
}

.pill--link:hover { opacity: .85; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Анимации ---------- */

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 calc(-8 * var(--u)); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(118, 251, 185, .6); }
  100% { box-shadow: 0 0 0 10px rgba(118, 251, 185, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icon,
  .pill--live i { animation: none; }
  .shot img { transition: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .case--featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .cases__grid--2,
  .cases__grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    place-items: center start;
    padding: 160px 16px 190px;
  }

  .hero__content {
    --h1: clamp(28px, 10vw, 46px);
    position: static;
    display: block;
    width: 100%;
  }

  .hero__title {
    display: block;
    white-space: normal;
  }

  .hero__line--full {
    display: block;
  }

  .hero__side {
    padding-top: 22px;
  }

  .hero__text {
    font-size: 15px;
    line-height: 24px;
  }

  .hero__text br {
    display: none;
  }

  /* На телефоне иконки стоят над заголовком и под текстом */
  .hero__icons,
  .hero__glow {
    inset: 0;
  }

  .icon {
    left: var(--mx);
    top: var(--my);
    width: var(--mw);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  }

  .icon--vk     { --mx: 12%; --my: 74px;  --mw: 56px; }
  .icon--dzen   { --mx: 31%; --my: 40px;  --mw: 30px; }
  .icon--avito  { --mx: 49%; --my: 84px;  --mw: 42px; }
  .icon--max    { --mx: 69%; --my: 46px;  --mw: 42px; }
  .icon--insta  { --mx: 88%; --my: 88px;  --mw: 46px; }
  .icon--ok     { --mx: 12%; --my: calc(100% - 118px); --mw: 40px; }
  .icon--fb     { --mx: 36%; --my: calc(100% - 66px);  --mw: 60px; }
  .icon--tiktok { --mx: 63%; --my: calc(100% - 120px); --mw: 52px; }
  .icon--tg     { --mx: 87%; --my: calc(100% - 62px);  --mw: 48px; }

  .glow {
    left: var(--mx);
    top: var(--my);
    width: var(--mw);
    height: var(--mh);
    filter: blur(14px);
  }

  .glow--top  { --mx: 30%; --my: 0;   --mw: 520px; --mh: 300px; }
  .glow--band { --mx: 52%; --my: 45%; --mw: 640px; --mh: 220px; }
  .glow--low  { --mx: 70%; --my: 70%; --mw: 380px; --mh: 180px; }

  .cases {
    padding: 96px 16px 24px;
  }

  .cases__lead {
    font-size: 16px;
  }

  .cases__group {
    margin: 48px 0 16px;
  }

  .case,
  .case--featured {
    padding: 24px 20px;
  }

  .case--featured .case__title {
    font-size: 23px;
  }

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

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

  .case__proof--grid .shot:last-child {
    display: none;
  }

  .lightbox {
    padding: 64px 8px 72px;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 14px;
    translate: none;
  }

  .lightbox__btn--prev { left: calc(50% - 60px); }
  .lightbox__btn--next { right: calc(50% - 60px); }

  .soon {
    padding: 96px 16px 24px;
  }

  .soon__lead {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 48px 0;
  }

  .card {
    min-height: 0;
    padding: 26px 24px 24px;
  }
}
