:root {
  --bg: #0a0b0e;
  --bg-2: #101217;
  --bg-3: #161920;
  --line: rgba(232, 234, 239, 0.09);
  --line-2: rgba(232, 234, 239, 0.16);
  --text: #eceef2;
  --muted: #a1a7b3;
  --dim: #6d7380;
  --accent: #7ea6ff;
  --accent-soft: rgba(126, 166, 255, 0.14);
  --chrome: linear-gradient(100deg, #f4f6fa 0%, #aab1bd 38%, #ffffff 55%, #8c93a0 78%, #dfe3ea 100%);
  --r-card: 22px;
  --r-input: 14px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
  font-weight: 500;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
  padding-bottom: 0.08em;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

button,
a,
[role="button"],
.btn {
  touch-action: manipulation;
}

button,
.btn,
.nav__burger,
.pills span,
.tags li {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 6, 8, 0.85) 100%);
}

main,
.footer {
  position: relative;
  z-index: 2;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  background: var(--bg);
}

.loader__logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  animation: breathe 2.2s var(--ease-in-out) infinite;
}

.loader__bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 11, 14, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.nav__brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav__links {
  display: flex;
  gap: 6px;
}

.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.nav__links a.is-active {
  color: var(--text);
  background: rgba(232, 234, 239, 0.06);
}

.nav__cta {
  padding: 11px 20px;
  font-size: 14px;
}

.nav__burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(16, 18, 23, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.nav__burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out);
}

.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 9, 12, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  overscroll-behavior: contain;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out), visibility 0s;
}

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

.menu__links a {
  font-size: clamp(36px, 11vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  padding: 4px 0;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}

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

.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }

.menu__cta {
  align-self: stretch;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  will-change: transform;
}

.btn i {
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--text);
  color: #0a0b0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -12px rgba(126, 166, 255, 0.45);
}

.btn--ghost {
  background: rgba(16, 18, 23, 0.4);
  color: var(--text);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.h2 em {
  display: inline-block;
}

section {
  position: relative;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__inner {
  max-width: min(780px, 58vw);
}

.hero__eyebrow {
  margin-bottom: 26px;
  overflow: hidden;
}

.hero__eyebrow span {
  display: inline-block;
}

.hero__title {
  font-size: clamp(42px, 5.3vw, 84px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero__title .line > span {
  display: inline-block;
}

.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  line-height: 1.55;
}

.hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack {
  padding: 40px 0 80px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  padding: 0 clamp(20px, 3vw, 42px);
  animation: marquee 48s linear infinite;
}

.marquee__track img {
  width: 34px;
  height: 34px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

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

.manifesto {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px var(--gutter);
}

.manifesto__text {
  max-width: 22ch;
  font-size: clamp(30px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

.manifesto__text .w {
  display: inline-block;
  opacity: 0.14;
  transition: none;
}

.manifesto__text .w--hl {
  font-style: italic;
}

.services {
  padding-top: 120px;
}

.services__head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.services__pin {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  perspective: 1400px;
}

.services__track {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  width: max-content;
  padding: 0 var(--gutter);
  transform-style: preserve-3d;
  will-change: transform;
}

.svc {
  flex-shrink: 0;
  width: min(56vw, 600px);
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, rgba(22, 25, 32, 0.92), rgba(14, 16, 21, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  transform-origin: center center;
  will-change: transform;
}

.svc__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 16, 21, 0.95));
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) brightness(0.8);
  transform: scale(1.12);
  will-change: transform;
}

.svc__body {
  padding: 4px clamp(22px, 2.4vw, 34px) clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -36px;
  position: relative;
}

.svc__icon {
  font-size: 30px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(10, 11, 14, 0.75);
  border: 1px solid var(--line-2);
  color: var(--accent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.svc h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.svc p {
  color: var(--muted);
  max-width: 48ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.tags li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.games__pin {
  position: relative;
  height: 100svh;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.games__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.fly {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(180px, 24vw, 380px);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  will-change: transform, opacity;
  opacity: 0;
  backface-visibility: hidden;
}

.fly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
}

.games__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 var(--gutter);
  z-index: 2;
}

.games__title {
  position: relative;
  display: grid;
  font-size: clamp(52px, 12vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
  padding-bottom: 0.08em;
}

.games__word {
  grid-area: 1 / 1;
  display: inline-block;
  color: var(--text);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(40%) rotateX(-60deg);
  transform-origin: 50% 100%;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.games__word.is-active {
  opacity: 1;
  transform: none;
}

.games__word.is-past {
  opacity: 0;
  transform: translateY(-40%) rotateX(60deg);
  transform-origin: 50% 0%;
}

.games__sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.why {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px var(--gutter) 120px;
}

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

.cell {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(16, 18, 23, 0.82);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 166, 255, 0.14), transparent 60%);
  transition: opacity 0.4s var(--ease-out);
}

.cell > i {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: auto;
}

.cell h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cell p {
  color: var(--muted);
  max-width: 40ch;
}

.cell--img {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  padding: 0;
  min-height: 460px;
}

.cell--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.4) brightness(0.65);
  will-change: transform;
}

.cell--img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 11, 14, 0.92));
}

.cell__over {
  padding: clamp(22px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cell__over h3 {
  font-size: clamp(26px, 2.8vw, 40px);
}

.cell--price {
  grid-column: 5 / 7;
  background: radial-gradient(120% 120% at 100% 0%, rgba(126, 166, 255, 0.28), transparent 60%), rgba(16, 18, 23, 0.85);
}

.cell--sec {
  grid-column: 5 / 7;
}

.cell--talk {
  grid-column: 1 / 4;
}

.cell--device {
  grid-column: 4 / 7;
  background-image: radial-gradient(rgba(232, 234, 239, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: rgba(16, 18, 23, 0.85);
}

.devices {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: auto;
  color: var(--text);
}

.devices i:nth-child(1) { font-size: 64px; }
.devices i:nth-child(2) { font-size: 52px; opacity: 0.8; }
.devices i:nth-child(3) { font-size: 42px; opacity: 0.6; }
.devices i:nth-child(4) { font-size: 34px; color: var(--accent); }

.profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.profile__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: #050608;
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.profile__card.is-tilting {
  transition: transform 0.12s linear;
}

.profile__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), rgba(126, 166, 255, 0.7), rgba(255, 255, 255, 0.1), rgba(200, 160, 255, 0.5), rgba(255, 255, 255, 0.1), rgba(126, 166, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  pointer-events: none;
}

.profile__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(40px) scale(1.15);
}

.profile__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(126, 166, 255, 0.12) 45%, rgba(220, 180, 255, 0.1) 55%, transparent 70%);
  mix-blend-mode: screen;
}

.profile__meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(16, 18, 23, 0.55);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.profile__meta strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile__meta span {
  font-size: 14px;
  color: var(--muted);
}

.profile__copy > p {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 56ch;
}

.skills {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skills li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 23, 0.6);
  font-size: 15px;
}

.skills i {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.training {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.training__media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  order: 2;
}

.training__media img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.72) contrast(1.05);
  will-change: transform;
}

.training__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(126, 166, 255, 0.22), transparent 55%);
  mix-blend-mode: screen;
}

.training__copy > p {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 50ch;
}

.pills {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pills span {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(16, 18, 23, 0.6);
  font-size: 14px;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px var(--gutter) 120px;
}

.contact__copy {
  max-width: 760px;
}

.contact__title {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact__title em {
  display: inline-block;
}

.contact__copy p {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 48ch;
}

.form {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 21, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(8, 9, 12, 0.7);
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff8a8a;
}

.field__hint {
  font-size: 13px;
  color: var(--muted);
}

.field__error {
  font-size: 13px;
  color: #ff9d9d;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.choices-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choices-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice:last-child {
  grid-column: span 2;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-2);
  background: rgba(8, 9, 12, 0.7);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.16s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice i {
  font-size: 22px;
  flex-shrink: 0;
  color: var(--dim);
  transition: color 0.25s var(--ease-out), transform 0.4s var(--ease-out);
}

.choice span {
  line-height: 1.25;
}

.choice:active {
  transform: scale(0.97);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(126, 166, 255, 0.18), rgba(126, 166, 255, 0.06));
  color: var(--text);
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.choice:has(input:checked) i {
  color: var(--accent);
  transform: scale(1.1);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.direct {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(16, 18, 23, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), transform 0.16s var(--ease-out);
}

.direct a:active {
  transform: scale(0.98);
}

.direct i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.direct span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.direct small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.footer__contact {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__contact i {
  color: var(--accent);
  font-size: 18px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.btn--submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn--submit.is-loading i {
  animation: send 0.9s var(--ease-in-out) infinite;
}

@keyframes send {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

.form__status {
  font-size: 15px;
  color: var(--muted);
}

.form__status.is-ok {
  color: #9fe3b8;
}

.form__status.is-error {
  color: #ff9d9d;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  margin-right: auto;
}

.footer__brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer__copy {
  width: 100%;
  font-size: 13px;
  color: var(--dim);
}


@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    color: var(--text);
  }

  .btn--primary:hover {
    background: #ffffff;
  }

  .btn:hover i {
    transform: translateX(3px);
  }

  .btn--ghost:hover {
    border-color: rgba(232, 234, 239, 0.4);
    background: rgba(22, 25, 32, 0.6);
  }

  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }

  .marquee__track img:hover {
    opacity: 1;
    transform: scale(1.12);
  }

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

  .choice:hover {
    border-color: rgba(232, 234, 239, 0.32);
    color: var(--text);
  }

  .choice:hover i {
    color: var(--text);
  }

  .choice:has(input:checked):hover i {
    color: var(--accent);
  }

  .direct a:hover {
    border-color: var(--accent);
    background: rgba(22, 25, 32, 0.8);
  }

  .footer__contact a:hover {
    color: var(--text);
  }

  .pills span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }

  .footer__links a:hover {
    color: var(--text);
  }
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 1099px) {
  .hero__inner {
    max-width: 680px;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .nav__brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .hero__title {
    font-size: clamp(40px, 12.4vw, 64px);
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .stack {
    padding: 24px 0 40px;
  }

  .manifesto {
    min-height: 90svh;
  }

  .services {
    padding-top: 80px;
  }

  .services__head {
    padding-bottom: 32px;
  }

  .services__pin {
    height: auto;
    overflow: visible;
    display: block;
    perspective: none;
  }

  .services__track {
    width: auto;
    flex-direction: column;
    gap: 18px;
  }

  .svc {
    width: 100%;
  }

  .fly {
    width: clamp(140px, 46vw, 240px);
  }

  .why {
    padding: 100px var(--gutter) 80px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    margin-top: 36px;
  }

  .cell,
  .cell--img,
  .cell--price,
  .cell--sec,
  .cell--talk,
  .cell--device {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
  }

  .cell--img {
    min-height: 340px;
  }

  .profile,
  .training {
    grid-template-columns: 1fr;
    padding: 80px var(--gutter);
  }

  .profile__card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

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

  .training__media {
    order: 0;
  }

  .contact {
    padding: 100px var(--gutter) 80px;
  }

  .form {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .form__foot .btn {
    flex: 1 1 100%;
  }

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

  .choice {
    padding: 12px;
    gap: 10px;
    font-size: 14px;
  }

  .direct {
    flex-direction: column;
  }

  .direct a {
    width: 100%;
  }

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

@media (min-width: 768px) and (max-width: 1024px) {
  .svc {
    width: min(78vw, 600px);
  }

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

  .cell--img {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 380px;
  }

  .cell--price,
  .cell--sec,
  .cell--talk,
  .cell--device {
    grid-column: auto;
  }

  .profile,
  .training {
    grid-template-columns: 1fr;
  }

  .profile__card {
    max-width: 440px;
  }

  .training__media {
    order: 0;
  }
}

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

  .manifesto__text .w {
    opacity: 1 !important;
    transform: none !important;
  }

  .services__pin {
    height: auto;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
  }

  .svc {
    scroll-snap-align: center;
  }

  .games__pin {
    height: auto;
    perspective: none;
  }

  .games__scene {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 120px var(--gutter) 20px;
  }

  .fly {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none !important;
  }

  .games__copy {
    position: static;
    padding: 20px var(--gutter) 60px;
  }

  .games__word {
    position: static;
    opacity: 1;
    transform: none;
    grid-area: auto;
    font-size: 0.4em;
  }

  .games__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.4em;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled,
  .menu,
  .form,
  .cell,
  .profile__meta {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-2);
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.reviews__score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-2);
  background: rgba(16, 18, 23, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.reviews__score[hidden] {
  display: none;
}

.reviews__avg {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.reviews__score div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews__count {
  font-size: 14px;
  color: var(--muted);
}

.stars {
  --v: 0;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
}

.stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--text) calc(var(--v) / 5 * 100%), rgba(232, 234, 239, 0.18) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reviews__rail {
  position: relative;
  margin-top: 56px;
}

.reviews__rail[hidden] {
  display: none;
}

.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 2px 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.reviews__rail.is-static .reviews__track {
  -webkit-mask-image: none;
  mask-image: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-card);
}

.review {
  position: relative;
  flex: 0 0 min(390px, 84vw);
  scroll-snap-align: start;
  padding: 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 30, 40, 0.92), rgba(13, 15, 20, 0.94));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
}

.review::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at 0% 0%, rgba(126, 166, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review__head .stars {
  font-size: 17px;
}

.review__quote {
  font-size: 34px;
  color: var(--accent);
  opacity: 0.55;
}

.review__text {
  font-size: 16px;
  color: #d6dae2;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.review.is-open .review__text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.review__more {
  align-self: flex-start;
  margin-top: -8px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}

.review__more[hidden] {
  display: none;
}

.review__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  background: var(--chrome);
  box-shadow: 0 0 0 3px rgba(126, 166, 255, 0.18);
}

.review__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review__name {
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review__meta {
  font-size: 13px;
  color: var(--muted);
}

.review__tag {
  margin-left: auto;
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.rail__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(16, 18, 23, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.16s var(--ease-out);
}

.rail__btn--prev {
  left: -25px;
}

.rail__btn--next {
  right: -25px;
}

.rail__btn:active {
  transform: translateY(-50%) scale(0.94);
}

.rail__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.reviews__rail.is-static .rail__btn {
  display: none;
}

.rail__dots {
  display: none;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
}

.rail__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rail__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(232, 234, 239, 0.25);
  transition: width 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.rail__dot.is-on::before {
  width: 22px;
  background: var(--accent);
}

@media (hover: none), (pointer: coarse) {
  .rail__btn {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .rail__btn:hover {
    border-color: var(--accent);
  }
}

@media (max-width: 767px) {
  .reviews__rail {
    margin: 32px calc(var(--gutter) * -1) 0;
  }

  .reviews__track {
    padding: 6px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
    gap: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .review {
    flex-basis: 84vw;
    padding: 22px;
  }

  .services__pin {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .services__pin::-webkit-scrollbar {
    display: none;
  }

  .services__track {
    flex-direction: row;
    width: max-content;
    gap: 12px;
  }

  .svc {
    width: 82vw;
    scroll-snap-align: start;
  }

  .svc__media {
    aspect-ratio: 16 / 10;
  }

  .svc__body {
    gap: 10px;
    padding: 0 20px 22px;
  }

  .svc__icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .rail__dots {
    display: flex;
  }

  .manifesto {
    min-height: 72svh;
    padding: 56px var(--gutter);
  }

  .services {
    padding-top: 56px;
  }

  .why {
    padding: 72px var(--gutter) 56px;
  }

  .cell,
  .cell--price,
  .cell--sec,
  .cell--talk,
  .cell--device {
    min-height: 0;
    padding: 22px;
  }

  .cell > i,
  .devices {
    margin-bottom: 18px;
  }

  .cell--img {
    min-height: 280px;
  }

  .profile,
  .training {
    padding: 64px var(--gutter);
    gap: 36px;
  }

  .reviews {
    padding: 64px var(--gutter);
  }

  .contact {
    padding: 72px var(--gutter) 64px;
  }
}

.review--skeleton {
  height: 260px;
  gap: 14px;
}

.review--skeleton span {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(232, 234, 239, 0.05) 0%, rgba(232, 234, 239, 0.12) 50%, rgba(232, 234, 239, 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.review--skeleton span:first-child {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.review--skeleton span:nth-child(2) {
  width: 70%;
}

.review--skeleton span:nth-child(3) {
  width: 90%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.reviews__empty {
  margin-top: 56px;
  padding: 56px 24px;
  border-radius: var(--r-card);
  border: 1px dashed var(--line-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(16, 18, 23, 0.5);
}

.reviews__empty[hidden],
.reviews__error[hidden] {
  display: none;
}

.reviews__empty i {
  font-size: 42px;
  color: var(--accent);
}

.reviews__empty h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.reviews__empty p {
  color: var(--muted);
  max-width: 44ch;
}

.reviews__error {
  margin-top: 40px;
  color: #ff9d9d;
}

.reviews__foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: #0f1116;
  color: var(--text);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: rgba(5, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal[open] {
  animation: modal-in 0.45s var(--ease-out);
}

.modal[open]::backdrop {
  animation: fade-in 0.35s var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal__inner {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}

.modal__close:active {
  transform: scale(0.94);
}

.modal__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding-right: 48px;
}

.modal__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

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

.review-form .modal__sub {
  margin-top: -14px;
}

.rating-field,
.chips-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.rating-field legend,
.chips-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rating label {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.2s var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}

.rating label::before {
  content: "★";
  font-size: 34px;
  line-height: 1;
  color: rgba(232, 234, 239, 0.16);
  transition: color 0.2s var(--ease-out), transform 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}

.rating label:active {
  transform: scale(0.9);
}

.rating input:checked ~ label::before {
  color: var(--text);
  text-shadow: 0 0 18px rgba(126, 166, 255, 0.55);
}

.rating input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rating-field.has-error .rating label::before {
  color: rgba(255, 138, 138, 0.35);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(8, 9, 12, 0.7);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.chip i {
  font-size: 17px;
}

.chip:active {
  transform: scale(0.96);
}

.chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.chip:has(input:checked) i {
  color: var(--accent);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 0 8px;
}

.modal__done[hidden] {
  display: none;
}

.modal__done > i {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal__done .modal__title {
  padding-right: 0;
}

.modal__done .btn {
  margin-top: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .rating:hover input ~ label::before {
    color: rgba(232, 234, 239, 0.16);
    text-shadow: none;
  }

  .rating label:hover::before,
  .rating label:hover ~ label::before {
    color: var(--text);
    text-shadow: 0 0 18px rgba(126, 166, 255, 0.55);
  }

  .rating label:hover::before {
    transform: scale(1.12);
  }

  .chip:hover {
    border-color: rgba(232, 234, 239, 0.32);
    color: var(--text);
  }

  .modal__close:hover {
    background: rgba(232, 234, 239, 0.08);
  }
}

@media (max-width: 767px) {
  .reviews {
    padding: 80px var(--gutter);
  }

  .reviews__score {
    width: 100%;
  }


  .reviews__empty {
    margin-top: 32px;
  }

  .reviews__foot .btn {
    width: 100%;
  }

  .review {
    padding: 22px;
  }

  .rating label {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review--skeleton span {
    animation: none;
  }
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.rating__word {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease-out);
}

.rating__word.is-set {
  color: var(--text);
}

.review.is-new {
  border-color: rgba(126, 166, 255, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.review:focus {
  outline: none;
}
