/*
 * WaterShow Digital — сайт агентства.
 *
 * Тёмная «вода»: почти чёрный глубокий бирюзовый фон, аква-свет в акцентах,
 * крупная гротескная типографика с курсивной антиквой в акцентных словах.
 * Анимации делают main.js (GSAP, ScrollTrigger, SplitText, Lenis) и шейдер
 * воды на первом экране. Без JS и при «уменьшить движение» страница полностью
 * читается: всё видно сразу, работы идут столбиком.
 */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #04100f;
  --bg-2: #071a19;
  --bg-3: #0b2523;
  --line: rgba(170, 255, 236, 0.12);
  --line-strong: rgba(170, 255, 236, 0.24);

  --ink: #eaf7f4;
  --ink-2: #b2d1cb;
  --ink-3: #7d9f99;

  --aqua: #4ff3d2;
  --aqua-2: #22c7da;
  --aqua-ink: #032521;
  --glow: rgba(79, 243, 210, 0.35);

  --sans: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Lenis ведёт прокрутку сам */
html.lenis,
html.lenis body {
  height: auto;
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--aqua);
  color: var(--aqua-ink);
}

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

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--aqua-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip:focus {
  transform: none;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.aqua {
  color: var(--aqua);
}

/* Зерно поверх всего: убирает «пластиковость» тёмных заливок */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- загрузка ---------- */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--bg);
  /* страховка: если скрипт не загрузится, занавес уходит сам */
  animation: loader-out 0.6s var(--ease) 3s forwards;
}

.js .loader.is-done {
  pointer-events: none;
}

@keyframes loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loader__mark {
  width: min(70vw, 560px);
  overflow: visible;
}

.loader__count {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.loader__label {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- свечение за курсором ---------- */

/* до первого движения мыши не видно (иначе висит в углу) */
.glow {
  opacity: 0;
  transition: opacity 0.6s;
}

.cursor-live .glow {
  opacity: 1;
}

/* мягкое свечение за курсором */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 243, 210, 0.09), transparent 62%);
  pointer-events: none;
  display: none;
}

.cursor-live .glow {
  display: block;
}

/* уровень воды справа: сколько страницы пройдено */
.level {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 80;
  width: 3px;
  background: rgba(170, 255, 236, 0.06);
  pointer-events: none;
}

.level__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--aqua), var(--aqua-2));
  transform-origin: bottom;
  transform: scaleY(0);
}

/* ---------- шапка ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(4, 16, 15, 0.94);
  border-bottom-color: var(--line);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 14px;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-btn span:nth-child(1) {
  top: 18px;
}

.menu-btn span:nth-child(2) {
  top: 26px;
}

.menu-open .menu-btn span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-open .menu-btn span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px var(--pad) 40px;
  background: var(--bg-2);
  clip-path: circle(0% at calc(100% - 46px) 38px);
  /* при закрытии прячем только после того, как круг сожмётся */
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
  visibility: hidden;
}

.menu-open .menu {
  clip-path: circle(150% at calc(100% - 46px) 38px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease), visibility 0s;
}

.menu a {
  font-size: clamp(40px, 12vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.7s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}

.menu-open .menu a {
  opacity: 1;
  transform: none;
}

.menu__foot {
  margin-top: 32px;
  color: var(--ink-3);
  font-size: 15px;
}

/* ---------- кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s;
  white-space: nowrap;
}

/* заливка поднимается волной снизу */
.btn::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 100%;
  height: 220%;
  z-index: -1;
  border-radius: 45% 45% 0 0;
  background: var(--aqua);
  transition: top 0.6s var(--ease), border-radius 0.6s var(--ease);
}

.btn:hover::before {
  top: -60%;
  border-radius: 0;
}

.btn:hover {
  color: var(--aqua-ink);
  border-color: var(--aqua);
}

.btn--primary {
  background: var(--aqua);
  color: var(--aqua-ink);
  border-color: var(--aqua);
}

.btn--primary::before {
  background: var(--ink);
}

.btn--primary:hover {
  border-color: var(--ink);
}

.btn--small {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.45s var(--ease);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 48px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, #0d3b39 0%, #061615 55%, var(--bg) 100%);
}

.hero__water {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}

/* затемнение под текстом, чтобы он читался на любом блике */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 15, 0.1) 0%, rgba(4, 16, 15, 0) 35%, rgba(4, 16, 15, 0.75) 82%, var(--bg) 100%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 var(--glow);
  animation: ping 2.4s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 14px rgba(79, 243, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 243, 210, 0); }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(48px, 9.4vw, 152px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 96;
  max-width: 13ch;
}

.hero h1 .serif {
  font-size: 1.08em;
  letter-spacing: -0.03em;
  color: var(--aqua);
}

.hero__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 44px;
}

.rotator {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.rotator__mask {
  display: inline-block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 6.5em;
}

.rotator__word {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--aqua);
  font-family: var(--serif);
  font-style: italic;
  white-space: nowrap;
}

/* без анимации видно первое слово */
.rotator__word + .rotator__word {
  transform: translateY(110%);
}

.hero__sub {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 18px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 15px;
}

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

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 52px;
  width: 26px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--aqua);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- бегущая строка ---------- */

.marquee {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.marquee__group .alt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-3);
}

.marquee__star {
  width: 0.55em;
  height: 0.55em;
  color: var(--aqua);
  flex: none;
}

/* ---------- заголовки разделов ---------- */

.section {
  position: relative;
  padding: clamp(90px, 13vw, 180px) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.section__title {
  margin: 0;
  font-size: clamp(42px, 7vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
}

.section__title .serif {
  color: var(--aqua);
}

.section__note {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-3);
  font-size: 16px;
}

.count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.42em;
  color: var(--ink-3);
  vertical-align: super;
  letter-spacing: 0;
}

/* ---------- работы ---------- */

.work {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.work__intro {
  padding-top: clamp(90px, 13vw, 160px);
}

.work__track {
  display: flex;
  flex-direction: column;
  gap: 90px;
  padding: 0 var(--pad) clamp(90px, 13vw, 160px);
}

.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
}

.panel__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--aqua);
}

.panel__name {
  margin: 12px 0 6px;
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.panel__where {
  color: var(--ink-3);
  font-size: 15px;
}

.panel__text {
  margin: 22px 0 0;
  color: var(--ink-2);
  max-width: 38ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}

.panel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 500;
  color: var(--aqua);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.panel__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease);
}

.panel__link:hover svg {
  transform: translate(3px, -3px);
}

.devices {
  position: relative;
  display: block;
  padding: 0 12% 12% 0;
  perspective: 1400px;
}

.devices__inner {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.device {
  position: relative;
  overflow: hidden;
  background: #0b1414;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(170, 255, 236, 0.1);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device--laptop {
  aspect-ratio: 1440 / 980;
  border-radius: 14px;
  border: 10px solid #0f1b1b;
  border-top-width: 26px;
}

/* три точки окна браузера */
.device--laptop::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b4a49;
  box-shadow: 14px 0 0 #3b4a49, 28px 0 0 #3b4a49;
}

.device--phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  aspect-ratio: 780 / 1688;
  border-radius: 30px;
  border: 7px solid #0f1b1b;
  transform: translateZ(60px);
}

.device--phone::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34%;
  height: 14px;
  margin-left: -17%;
  border-radius: 999px;
  background: #0f1b1b;
}

/* блик стекла, двигается от наклона */
.device__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 45%, transparent 60%);
  transform: translateX(var(--shine, -30%));
}

.panel--end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
}

.panel--end h3 {
  margin: 0;
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.work__progress {
  display: none;
}

/* ---------- зачем сайт ---------- */

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.why__item {
  position: relative;
  padding: 34px 34px 10px 0;
}

.why__item + .why__item {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.why__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 7vw, 110px);
  line-height: 1;
  color: var(--aqua);
}

.why__item h3 {
  margin: 18px 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.why__item p {
  margin: 0;
  color: var(--ink-2);
  max-width: 34ch;
}

/* ---------- услуги ---------- */

.services__list {
  border-top: 1px solid var(--line);
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) 48px;
  gap: 24px;
  align-items: center;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
  transition: color 0.5s var(--ease);
}

/* вода заливает строку слева направо */
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--aqua);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}

.svc:hover::before {
  transform: scaleY(1);
}

.svc:hover {
  color: var(--aqua-ink);
}

.svc__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-3);
  transition: color 0.5s;
}

.svc h3 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: transform 0.6s var(--ease);
}

.svc p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 40ch;
  transition: color 0.5s;
}

.svc__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease), border-color 0.5s;
}

.svc__arrow svg {
  width: 18px;
  height: 18px;
}

.svc:hover .svc__num,
.svc:hover p {
  color: var(--aqua-ink);
}

.svc:hover h3 {
  transform: translateX(14px);
}

.svc:hover .svc__arrow {
  transform: rotate(-45deg);
  border-color: var(--aqua-ink);
}

/* ---------- цены ---------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.price {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 46px);
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

/* прожектор за курсором */
.price::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(79, 243, 210, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.price:hover::before {
  opacity: 1;
}

/* светящаяся рамка у курсора */
.price::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--aqua), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.price:hover::after {
  opacity: 1;
}

.price--featured {
  background: linear-gradient(160deg, #0d3533 0%, var(--bg-2) 70%);
  border-color: var(--line-strong);
}

.price__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.price__name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.price__badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--aqua-ink);
  font-size: 13px;
  font-weight: 600;
}

.price__amount {
  display: flex;
  align-items: flex-start;
  margin: 26px 0 6px;
  font-size: clamp(76px, 10vw, 150px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.price__amount sup {
  font-size: 0.36em;
  margin: 0.12em 0.08em 0 0;
  color: var(--aqua);
  font-weight: 400;
}

.price__once {
  color: var(--ink-3);
  font-size: 15px;
}

.price__desc {
  margin: 22px 0 0;
  color: var(--ink-2);
}

.price__list {
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.price__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--aqua);
}

.price .btn {
  margin-top: auto;
  align-self: flex-start;
}

.care {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.3fr);
  gap: 30px 44px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(7, 26, 25, 0.6);
}

.care__desc {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 36ch;
}

.care__amount {
  display: flex;
  align-items: flex-start;
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.care__amount sup {
  font-size: 0.36em;
  margin: 0.12em 0.08em 0 0;
  color: var(--aqua);
  font-weight: 400;
}

.care__amount small {
  align-self: flex-end;
  margin: 0 0 0.12em 0.2em;
  font-size: 0.2em;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 400;
}

.care__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.care__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
}

.care__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--aqua);
}

.pricing__note {
  margin: 30px 0 0;
  color: var(--ink-3);
  font-size: 16px;
  max-width: 70ch;
}

/* ---------- вопросы ---------- */

.faq__list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(21px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: color 0.3s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover,
.qa summary:focus-visible {
  color: var(--aqua);
}

.qa summary:focus {
  outline: none;
}

.qa summary:focus-visible .qa__icon {
  border-color: var(--aqua);
}

.qa__icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.5s var(--ease), background-color 0.4s;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
}

.qa__icon::after {
  transform: rotate(90deg);
  transition: transform 0.5s var(--ease);
}

.qa[open] .qa__icon {
  transform: rotate(180deg);
  background: var(--aqua);
  color: var(--aqua-ink);
  border-color: var(--aqua);
}

.qa[open] .qa__icon::after {
  transform: rotate(0deg);
}

.qa__body {
  overflow: hidden;
}

.qa__body p {
  margin: 0;
  padding: 0 4px 30px;
  color: var(--ink-2);
  max-width: 62ch;
  font-size: 17px;
}

/* ---------- контакты ---------- */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(80% 70% at 50% 100%, #0e3a37 0%, var(--bg) 70%);
}

.contact__title {
  margin: 0 auto;
  font-size: clamp(64px, 14vw, 230px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-variation-settings: "opsz" 96;
}

.contact__title .serif {
  color: var(--aqua);
}

.contact__text {
  margin: 34px auto 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 18px;
}

.contact__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.contact__ctas .btn {
  height: 62px;
  padding: 0 30px;
  font-size: 17px;
}

/* ---------- WhatsApp ---------- */

.wa-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* в углу экрана: самый короткий путь к сообщению с телефона */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #062a17;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  animation: wa-in 0.8s var(--ease) 2.2s both;
}

.wa-float .wa-icon {
  width: 26px;
  height: 26px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* мягкое кольцо: кнопку замечают, но она не мигает */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-ring 3s ease-out 3s infinite;
  pointer-events: none;
}

@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
}

@keyframes wa-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  60%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

.menu-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

.menu__foot a {
  color: var(--aqua);
}

/* ---------- подвал ---------- */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wordmark text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 236px;
  letter-spacing: -14px;
}

.wordmark__outline {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.wave {
  fill: var(--aqua);
}

.wave--back {
  fill: var(--aqua-2);
  opacity: 0.55;
}

.wave--front {
  animation: wave-x 7s linear infinite;
}

.wave--back {
  animation: wave-x 11s linear infinite reverse;
}

@keyframes wave-x {
  to {
    transform: translateX(-600px);
  }
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  color: var(--ink-3);
  font-size: 14px;
}

.footer__row a:hover {
  color: var(--aqua);
}

/* ---------- появление (с JS) ---------- */

.js .fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.js .fade-in,
.js .hero__title {
  opacity: 0;
}

/* страховка: если main.js не загрузился, всё проявляется само */
.js:not(.motion) .fade-up,
.js:not(.motion) .fade-in,
.js:not(.motion) .hero__title {
  animation: fallback-in 0.6s ease 2.5s forwards;
}

@keyframes fallback-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- широкие экраны: работы листаются вбок ---------- */

@media (min-width: 900px) {
  .js-hscroll .work__track {
    flex-direction: row;
    align-items: center;
    gap: 6vw;
    width: max-content;
    height: 100vh;
    padding: 90px 8vw 0 var(--pad);
  }

  .js-hscroll .panel {
    width: min(78vw, 1180px);
    flex: none;
  }

  .js-hscroll .panel--end {
    width: min(48vw, 640px);
  }

  .js-hscroll .work__intro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding-top: 0;
    pointer-events: none;
  }

  .js-hscroll .work__intro .section__head {
    padding-top: 110px;
    margin-bottom: 0;
  }

  .js-hscroll .work__intro .section__title {
    font-size: clamp(28px, 3vw, 44px);
  }

  .js-hscroll .work__progress {
    display: block;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 40px;
    height: 1px;
    background: var(--line);
  }

  .js-hscroll .work__progress span {
    position: absolute;
    inset: 0;
    background: var(--aqua);
    transform-origin: left;
    transform: scaleX(0);
  }
}

/* ---------- узкие экраны ---------- */

@media (max-width: 899px) {
  .nav__links,
  .nav__right .btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .hero__row {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 34px;
  }

  .scroll-cue {
    display: none;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    grid-template-columns: 1fr;
  }

  .panel__info {
    order: 2;
  }

  .svc {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 26px 4px;
  }

  .svc p {
    grid-column: 2;
  }

  .svc__arrow {
    display: none;
  }

  .pricing__grid,
  .why__grid,
  .care {
    grid-template-columns: 1fr;
  }

  .why__item,
  .why__item + .why__item {
    padding: 28px 0 24px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  /* на телефоне только значок, чтобы не закрывать текст */
  .wa-float {
    width: 58px;
    padding: 0;
    justify-content: center;
  }

  .wa-float__label {
    display: none;
  }

  .contact__ctas .btn {
    padding: 0 22px;
    font-size: 16px;
  }

  .hero__sub {
    font-size: 17px;
  }

  .btn {
    height: 50px;
    padding: 0 22px;
  }

  .hero__meta {
    gap: 8px 22px;
    margin-top: 40px;
  }

  .wordmark text {
    letter-spacing: -10px;
  }
}

/* ---------- меньше движения ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .fade-up,
  .js .fade-in,
  .js .hero__title {
    opacity: 1;
    transform: none;
  }

  .grain {
    display: none;
  }
}
