/* ===== Гараж Ашота — концепт ===== */
:root {
  --bg: #06060a;
  --bg2: #0b0a12;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --text: #f5f3f8;
  --muted: #a6a2b4;
  --dim: #6d6980;
  --pink: #ff5fa2;
  --red: #ff2d4a;
  --violet: #8b3dff;
  --blue: #3a6dff;
  --grad: linear-gradient(100deg, var(--pink) 0%, var(--red) 36%, var(--violet) 70%, var(--blue) 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --pad: clamp(18px, 5.2vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
body::after { /* зерно плёнки */
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--grad { stroke: url(#gStroke); }

/* Текст: белый в центре, темнее к краям */
.tg {
  display: inline-block;
  background: linear-gradient(90deg, #6a667c 0%, #d8d4e2 16%, #fff 34%, #fff 66%, #d8d4e2 84%, #6a667c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Курсор ===== */
/* Свой курсор вместо системного (только мышь) */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor-dot {
  position: fixed; left: -3px; top: -3px; z-index: 101; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 10px rgba(255, 95, 162, .9); opacity: 0; transition: opacity .3s;
}
.cursor-dot.is-on { opacity: 1; }
.cursor svg {
  position: absolute; width: 38px; height: 38px; left: -19px; top: -19px;
  fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4;
  transition: transform .5s var(--ease), stroke .3s;
}
.cursor.is-link svg { transform: scale(1.5) rotate(30deg); stroke: var(--pink); }
.cursor.is-key svg { transform: scale(2.1) rotate(90deg); stroke: #fff; }
.cursor__label {
  position: absolute; left: 26px; top: 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease);
}
.cursor.is-key .cursor__label { opacity: 1; transform: none; left: 46px; }

/* ===== Первый экран ===== */
.hero { padding: 14px; min-height: 100svh; display: flex; }
.hero__card {
  position: relative; flex: 1; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 28px);
  border-radius: 32px; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  background:
    radial-gradient(55% 65% at 74% 58%, rgba(139, 61, 255, .2), transparent 62%),
    radial-gradient(38% 50% at 58% 32%, rgba(255, 45, 74, .14), transparent 70%),
    radial-gradient(45% 60% at 98% 45%, rgba(58, 109, 255, .22), transparent 70%),
    linear-gradient(180deg, #0e0c17, #07070b);
}
.hero__card::after { /* виньетка между фоном и текстом */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 55%, transparent 55%, rgba(0, 0, 0, .55));
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene--bg { z-index: 0; }
.scene--fg { z-index: 3; pointer-events: none; }

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
}
.nav__side { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav__side--right { justify-content: flex-end; }
.nav__grid {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 8px 30px -8px rgba(255, 45, 74, .7);
  transition: background-position .6s var(--ease), transform .6s var(--ease);
}
.nav__grid .ic { width: 22px; height: 22px; stroke-width: 1.5; transition: transform .7s var(--ease); }
.nav__grid:hover { background-position: 100% 0; }
.nav__grid:hover .ic { transform: rotate(180deg); }

.pill {
  height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, letter-spacing .5s var(--ease);
}
.pill:hover { border-color: rgba(255, 95, 162, .6); background: rgba(255, 95, 162, .08); letter-spacing: .28em; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 46px; height: 46px; transition: transform .9s var(--ease); }
.logo:hover .logo__mark { transform: rotate(120deg); }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
/* отрицательный отступ справа убирает «хвост» от разрядки, иначе текст визуально съезжает влево */
.logo__text b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: .14em; margin-right: -.14em; }
.logo__text small { font-size: 12px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #bdb8ca; margin-top: 6px; margin-right: -.42em; }
.logo--sm .logo__mark { width: 36px; height: 36px; }
.logo--sm .logo__text b { font-size: 16px; }

.round {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .5s var(--ease);
}
.round::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: scale(0); border-radius: 50%; transition: transform .5s var(--ease);
}
.round:hover { border-color: transparent; transform: translateY(-2px); }
.round:hover::before { transform: scale(1.05); }
.round:hover .ic { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 20% { transform: rotate(-14deg); } 45% { transform: rotate(12deg); } 70% { transform: rotate(-6deg); } }

.hero__content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 10px var(--pad) 130px;
}
.badge {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #cdc9d8;
}
.badge__ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 0 6px rgba(255, 45, 74, .1), 0 10px 30px -6px rgba(255, 45, 74, .7);
}
.badge__ic .ic { animation: turn 6s var(--ease) infinite; }
@keyframes turn { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-35deg); } 100% { transform: rotate(0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(42px, 6.3vw, 124px); line-height: .98; letter-spacing: -.025em;
  margin: 28px 0 26px;
}
.hero__title span { display: block; width: fit-content; }
.hero__title span + span { font-weight: 500; }
.hero__lead { max-width: 430px; color: var(--muted); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ===== Кнопки ===== */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 66px; padding: 0 10px 0 30px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-position .7s var(--ease);
}
.btn__label { position: relative; }
.btn__ic { /* шестигранник — при наведении «докручивается» */
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  transition: transform .7s var(--ease), background .4s;
}
.btn__ic .ic { transition: transform .7s var(--ease); }
.btn:hover .btn__ic { transform: rotate(120deg); }
.btn:hover .btn__ic .ic { transform: rotate(-120deg) translateX(2px); }

.btn--primary {
  background: var(--grad); background-size: 180% 100%;
  box-shadow: 0 14px 44px -12px rgba(255, 45, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary .btn__ic { background: rgba(255, 255, 255, .2); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 1s var(--ease);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 18px 54px -10px rgba(58, 109, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover::before { transform: translateX(130%); }

.btn--ghost {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost .btn__ic { background: rgba(255, 255, 255, .08); }
.btn--ghost::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .8s var(--ease);
}
.btn--ghost:hover { border-color: transparent; }
.btn--ghost:hover::after { clip-path: circle(160% at var(--x, 50%) var(--y, 50%)); }
.btn--ghost:hover .btn__ic { background: rgba(255, 255, 255, .2); }
.btn--wide { width: 100%; }

/* Подсказка у ключа */
.hero__hint {
  position: absolute; z-index: 5; right: 4.5vw; bottom: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(10, 9, 16, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #d6d2e0;
  pointer-events: none; transition: border-color .4s, color .4s;
}
.hero__hint .ic { width: 18px; height: 18px; }
.hero__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 95, 162, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 95, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 95, 162, 0); } }
.hero__card.is-active .hero__hint { border-color: rgba(255, 95, 162, .55); color: #fff; }
.hero__card.is-active .hero__hint-dot { background: var(--blue); }

/* Бегущая строка */
.marquee {
  position: relative; z-index: 5; overflow: hidden;
  border-top: 1px solid var(--line); background: rgba(3, 3, 6, .78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 46px; width: max-content; padding: 24px 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #bdb8ca; transition: color .3s, text-shadow .3s; }
.marquee__track span:hover { color: #fff; text-shadow: 0 0 18px rgba(255, 95, 162, .9); }
.spark { width: 14px; height: 14px; fill: url(#gStroke); stroke: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Общие секции ===== */
.section { position: relative; padding: clamp(90px, 11vw, 160px) var(--pad); }
.section__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 12px; height: 13px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.h2 { font-family: var(--f-display); font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 80px); line-height: 1; letter-spacing: -.025em; margin-top: 20px; }
.h2--sm { font-size: clamp(30px, 3vw, 50px); }
.section__lead { color: #c9c5d4; max-width: 500px; justify-self: end; font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; line-height: 1.5; }
.section__lead--left { justify-self: start; margin-top: 26px; }
.footnote { margin-top: 26px; color: var(--dim); font-size: 13px; }
/* точки-индикатор карусели услуг (видны только на телефоне) */
.cards-dots { display: none; justify-content: center; gap: 8px; margin-top: 6px; }
.cards-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--line2); transition: width .4s var(--ease), background .4s; }
.cards-dots span.is-on { width: 22px; background: var(--grad); }

/* ===== Карточки услуг ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 470px; padding: 26px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease), border-color .4s, opacity 1s var(--ease) var(--d, 0s);
  will-change: transform;
}
.card::before { /* пятно света за курсором */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 95, 162, .17), rgba(58, 109, 255, .1) 42%, transparent 72%);
}
.card::after { /* светящийся край */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--pink), var(--blue) 55%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.chip {
  width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255, 255, 255, .05);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  transition: transform .8s var(--ease), background .4s;
}
.chip .ic { width: 22px; height: 22px; transition: transform .8s var(--ease); }
.card:hover .chip { transform: rotate(60deg); background: rgba(255, 255, 255, .1); }
.card:hover .chip .ic { transform: rotate(-60deg); }
.card__num { font-family: var(--f-display); font-size: 13px; color: var(--dim); letter-spacing: .1em; }

.card__visual { position: relative; flex: 1; display: grid; place-items: center; min-height: 230px; margin: 6px 0 14px; }
.card__visual::before {
  content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 74, .28), rgba(139, 61, 255, .16) 45%, transparent 70%);
  filter: blur(10px); transition: transform .8s var(--ease), opacity .5s; opacity: .7;
}
.card__visual::after { /* тень под предметом */
  content: ''; position: absolute; bottom: 8%; width: 46%; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); transition: transform .8s var(--ease), opacity .5s;
}
.card__visual img {
  position: relative; z-index: 1; width: min(250px, 82%); aspect-ratio: 1; object-fit: contain;
  opacity: 0; transform: translateY(14px) scale(.94);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55));
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.card__visual img.is-ready { opacity: 1; transform: none; }
.card:hover .card__visual img { transform: translateY(-14px) scale(1.07) rotate(-7deg); }
.card:hover .card__visual::before { transform: scale(1.3); opacity: 1; }
.card:hover .card__visual::after { transform: scaleX(.7); opacity: .5; }

.card__title { font-family: var(--f-display); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: 15px; margin-top: 10px; min-height: 70px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-weight: 700; font-size: 15px; letter-spacing: .04em; transition: letter-spacing .5s var(--ease); }
.card:hover .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .08em; }
.card__go {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line2); position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .6s var(--ease);
}
.card__go::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .5s var(--ease); }
.card:hover .card__go { border-color: transparent; transform: rotate(45deg); }
.card:hover .card__go::before { transform: none; }

/* ===== Правила ===== */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.quote {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 3.4vw, 52px); border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #15101f, #0a0910 60%);
  min-height: 460px;
}
.quote__glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: -180px; bottom: -220px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--red), var(--violet), var(--blue), var(--pink));
  filter: blur(90px); opacity: .45; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quote__mark { font-family: var(--f-display); font-size: 120px; line-height: .6; font-weight: 200; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote__text { font-family: var(--f-display); font-weight: 300; text-transform: uppercase; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.quote__who { display: flex; align-items: center; gap: 16px; }
.quote__who b { display: block; font-size: 17px; }
.quote__who small { color: var(--muted); font-size: 14px; }
.avatar {
  width: 58px; height: 58px; display: grid; place-items: center; flex: none;
  font-family: var(--f-display); font-weight: 500; font-size: 20px;
  background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rule {
  position: relative; overflow: hidden; padding: 28px; border-radius: 24px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  transition: border-color .4s, background .4s, transform .6s var(--ease), opacity 1s var(--ease) var(--d, 0s);
}
.rule::after { /* полоска-градиент, «заливается» при наведении */
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.rule:hover { border-color: var(--line2); background: rgba(255, 255, 255, .045); transform: translateY(-6px); }
.rule:hover::after { transform: scaleX(1); }
.rule__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 42px; }
.rule__ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 95, 162, .08); border: 1px solid rgba(255, 95, 162, .2); }
.rule__ic .ic { width: 26px; height: 26px; stroke: url(#gStroke); stroke-dasharray: 1; stroke-dashoffset: 0; }
.rule:hover .rule__ic .ic { animation: draw 1.2s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.rule__num { font-family: var(--f-display); font-weight: 200; font-size: 32px; color: var(--dim); transition: color .4s; }
.rule:hover .rule__num { color: #fff; }
.rule h3 { font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; line-height: 1.2; }
.rule p { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ===== Этапы ===== */
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 40px; }
.steps::before, .steps::after { content: ''; position: absolute; top: 9px; left: 0; height: 2px; border-radius: 2px; }
.steps::before { right: 0; background: var(--line2); }
.steps::after { width: calc(var(--p) * 100%); background: var(--grad); box-shadow: 0 0 18px rgba(255, 45, 74, .7); }
.step { position: relative; padding-right: 10px; transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.step__dot {
  position: absolute; top: -40px; left: 0; width: 20px; height: 20px; background: #1a1824; border: 2px solid var(--line2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .5s, transform .6s var(--ease);
}
.step.is-active .step__dot { background: var(--grad); border-color: transparent; transform: rotate(90deg); }
.step__num {
  display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 6vw, 92px); line-height: 1; margin: 24px 0 18px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .9s var(--ease), -webkit-text-stroke-color .5s;
}
.step:hover .step__num, .step.is-active .step__num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.step__ic { width: 26px; height: 26px; margin-bottom: 14px; transition: transform .6s var(--ease); }
.step:hover .step__ic { transform: translateX(6px) rotate(-10deg); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 19px; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ===== Вопросы ===== */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.faq-wrap__head { position: sticky; top: 40px; }
.faq__item { border-bottom: 1px solid var(--line2); }
.faq__item:first-child { border-top: 1px solid var(--line2); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left;
  padding: 28px 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; transition: color .3s, padding .5s var(--ease);
}
.faq__q:hover { color: #fff; padding-left: 12px; }
.faq__ic {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line2);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: rgba(255, 255, 255, .04);
  transition: transform .6s var(--ease), background .4s;
}
.faq__q:hover .faq__ic { background: rgba(255, 95, 162, .14); }
.faq__item.is-open .faq__ic { transform: rotate(135deg); background: var(--grad); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); padding: 0 70px 28px 0; max-width: 620px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ===== Запись и контакты ===== */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.form-wrap {
  position: relative; padding: clamp(24px, 2.8vw, 44px); border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.contact__lead { color: var(--muted); margin: 14px 0 24px; max-width: 460px; }
.form { display: grid; gap: 12px; transition: opacity .5s, transform .5s var(--ease); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  color: var(--text); font: inherit; font-size: 16px; padding: 26px 18px 10px; outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input { height: 60px; }
.field label { position: absolute; left: 19px; top: 21px; color: var(--dim); font-size: 15px; pointer-events: none; transition: .3s var(--ease); }
.field input:focus, .field textarea:focus { border-color: rgba(255, 95, 162, .6); background: rgba(255, 95, 162, .04); box-shadow: 0 0 0 4px rgba(255, 95, 162, .08); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 9px; font-size: 11px; letter-spacing: .08em; color: var(--pink); }
.field__err { display: none; font-size: 12px; color: #ff6b81; margin: 6px 0 0 4px; }
.field.is-err input { border-color: #ff2d4a; }
.field.is-err .field__err { display: block; }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; }
.chips legend { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.chip-opt span:hover { border-color: rgba(255, 95, 162, .55); transform: translateY(-2px); }
.chip-opt input:checked + span { background: var(--grad); border-color: transparent; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.form__note { font-size: 12px; color: var(--dim); text-align: center; }

.form-done {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
  padding: clamp(26px, 3.6vw, 56px); background: linear-gradient(160deg, #15101f, #0a0910);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: .6s var(--ease);
}
.form-done h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); text-transform: uppercase; line-height: 1.1; }
.form-done p { color: var(--muted); max-width: 420px; }
.form-done__ic { width: 70px; height: 70px; display: grid; place-items: center; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.form-done__ic .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.form-wrap.is-sent .form-done { opacity: 1; visibility: visible; transform: none; }
.form-wrap.is-sent .form { opacity: 0; transform: translateY(-10px); }

.info { display: flex; flex-direction: column; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .02); }
.map { position: relative; height: 290px; overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease); }
.info:hover .map svg { transform: scale(1.06); }
.map__route { animation: dash 2.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.map__pulse { transform-origin: 212px 140px; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map__tag { position: absolute; left: 18px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(6, 6, 10, .75); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.info__list { padding: 10px 26px; }
.info__list li { border-bottom: 1px solid var(--line); }
.info__list li:last-child { border-bottom: 0; }
.info__list .info__row, .info__list li > a { display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; }
.info__list li > a { transition: transform .5s var(--ease); }
.info__list li > a:hover { transform: translateX(8px); }
.info__list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.info__ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.info__note { padding: 0 26px 24px; font-size: 13px; color: var(--dim); margin-top: auto; }

/* ===== Подвал ===== */
.footer { padding: 40px var(--pad) 34px; overflow: hidden; }
.footer__word {
  font-family: var(--f-display); font-weight: 600; font-size: 21vw; line-height: .85; letter-spacing: -.04em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, #fff 8%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .03) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 28%, #000 72%, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 28%, #000 72%, rgba(0, 0, 0, .35));
  user-select: none; transition: letter-spacing 1.2s var(--ease);
}
.footer:hover .footer__word { letter-spacing: -.02em; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }
.footer__copy { color: var(--dim); font-size: 13px; }
.footer__demo { display: inline-block; margin-top: 4px; color: #8a86a0; }
.rev--sum .pill { margin-top: 6px; align-self: flex-start; height: 44px; padding: 0 18px; font-size: 11px; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.footer__top .ic { transition: transform .5s var(--ease); }
.footer__top:hover { color: var(--pink); }
.footer__top:hover .ic { transform: translate(3px, -3px) rotate(-45deg); }

/* ===== Меню ===== */
.menu {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: center; padding: 40px var(--pad);
  background: rgba(6, 6, 10, .86); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__close { position: absolute; top: 38px; right: 42px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 22px; padding: 6px 0;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(38px, 6.5vw, 96px); text-transform: uppercase; line-height: 1.08;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu__nav small { font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--dim); letter-spacing: .1em; }
.menu__nav span { transition: transform .6s var(--ease); }
.menu__nav a:hover span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateX(18px); }
.menu__foot { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 50px; color: var(--muted); font-weight: 600; }

/* ===== Аккаунт: кнопка в шапке ===== */
.acc {
  height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 6px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .3s, background .3s;
}
.acc__ic { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); transition: transform .7s var(--ease), background .3s; }
.acc:hover { border-color: rgba(255, 95, 162, .6); }
.acc:hover .acc__ic { transform: rotate(120deg); }
.acc:hover .acc__ic .ic { transform: rotate(-120deg); }
.acc__ic .ic { transition: transform .7s var(--ease); }
.acc.is-in .acc__ic { background: var(--grad); }

/* Плашка «войдите, чтобы записаться» */
.gate {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -6px 0 22px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid rgba(255, 95, 162, .3); background: linear-gradient(100deg, rgba(255, 95, 162, .08), rgba(58, 109, 255, .06));
}
.gate[hidden] { display: none; }
.gate p { flex: 1 1 240px; font-size: 14px; color: #d6d2e0; }
.gate__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.gate .pill { height: 44px; padding: 0 18px; font-size: 11px; }
.form-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-done__actions .btn { height: 56px; }

/* ===== Окна ===== */
.modal {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 4, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative; width: min(720px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line2);
  background: linear-gradient(170deg, #15111f, #0b0a11 55%);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 95, 162, .06);
  transform: translateY(24px) scale(.98); transition: transform .5s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__panel--sm { width: min(480px, 100%); }
.modal__panel--wide { width: min(980px, 100%); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; }
.modal__title { font-family: var(--f-display); font-weight: 300; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; margin: 14px 50px 18px 0; }
.modal__hint { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.muted { color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 20px; width: fit-content; }
.tabs__btn { height: 42px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .3s, background .3s; }
.tabs__btn b { margin-left: 6px; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.tabs__btn b:empty { display: none; }
.tabs__btn:hover { color: #fff; }
.tabs__btn.is-on { background: var(--grad); color: #fff; }

.field--pass input { padding-right: 56px; }
.field__eye { position: absolute; right: 8px; top: 8px; width: 46px; height: 46px; display: grid; place-items: center; color: var(--muted); border-radius: 12px; transition: color .3s, background .3s; }
.field__eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.auth-form__msg { min-height: 0; font-size: 14px; color: #ff7d92; }
.auth-form__msg:empty { display: none; }
.auth-form__msg.is-ok { color: #8ef0b5; }
.form [hidden] { display: none !important; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn--sm { height: 48px; padding: 0 20px; gap: 10px; font-size: 11px; }
.btn--sm .ic { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pill .ic { width: 17px; height: 17px; }
.pill--grad { background: var(--grad); border-color: transparent; }
.pill--danger:hover { border-color: rgba(255, 45, 74, .8); background: rgba(255, 45, 74, .12); }
.modal .pill { height: 44px; padding: 0 18px; font-size: 11px; }

/* Кабинет и заявки */
.cab__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cab__email { flex: 1 1 100%; color: var(--muted); font-size: 14px; }
.cab__list, .adm__list { display: grid; gap: 12px; }
.adm__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.cab__empty { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px; border-radius: 20px; border: 1px dashed var(--line2); }
.ord { padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: grid; gap: 10px; transition: border-color .3s; }
.ord:hover { border-color: var(--line2); }
.ord__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ord__num { font-family: var(--f-display); font-size: 15px; text-transform: uppercase; }
.ord__meta { color: var(--muted); font-size: 14px; }
.ord__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; }
.ord__who a { color: var(--pink); font-weight: 700; }
.ord__topics { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); }
.ord__msg { font-size: 14px; color: #d0ccda; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); white-space: pre-line; }
.ord__act { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ord__note { flex: 1 1 200px; font-size: 13px; color: var(--dim); }
.ord__note--ok { color: #8ef0b5; }
.status { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.status--new { background: rgba(58, 109, 255, .18); color: #9db4ff; }
.status--accepted { background: rgba(139, 61, 255, .18); color: #c7a5ff; }
.status--done { background: rgba(46, 204, 113, .16); color: #8ef0b5; }
.status--canceled { background: rgba(255, 255, 255, .06); color: var(--dim); }
.sel {
  height: 40px; padding: 0 34px 0 14px; border-radius: 99px; border: 1px solid var(--line2); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none;
}
.sel option { background: #15111f; }
.sel[data-status="new"] { border-color: rgba(58, 109, 255, .7); }
.sel[data-status="accepted"] { border-color: rgba(139, 61, 255, .7); }
.sel[data-status="done"] { border-color: rgba(46, 204, 113, .7); }
.adm__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adm__filters[hidden] { display: none; }
.chip-f { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--muted); transition: .3s; }
.chip-f:hover { color: #fff; }
.chip-f.is-on { color: #fff; border-color: rgba(255, 95, 162, .7); background: rgba(255, 95, 162, .12); }

/* Звёзды в форме отзыва */
.stars { display: flex; gap: 6px; margin-bottom: 4px; }
.stars__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .04); transition: transform .3s var(--ease), background .3s; }
.stars__btn .ic { width: 26px; height: 26px; stroke: var(--dim); transition: fill .2s, stroke .2s; }
.stars__btn:hover { transform: translateY(-3px) rotate(-8deg); }
.stars__btn.is-on .ic { fill: url(#gStroke); stroke: url(#gStroke); }

/* ===== Блок отзывов ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reviews > * { min-width: 0; } /* карточка не шире колонки, иначе на телефоне появляется прокрутка вбок */
.rev__body { overflow-wrap: anywhere; }
.reviews__empty {
  grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; padding: clamp(26px, 3.4vw, 46px); border-radius: 28px;
  border: 1px dashed var(--line2); background: rgba(255, 255, 255, .02);
}
.reviews__empty h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.reviews__empty p { color: var(--muted); max-width: 520px; }
.reviews__empty-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 95, 162, .08); border: 1px solid rgba(255, 95, 162, .2); }
.reviews__empty-ic .ic { width: 26px; height: 26px; }
.reviews__more { display: flex; justify-content: center; margin-top: 26px; }
.reviews__more[hidden] { display: none; }
.rev {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 24px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  animation: rise .8s var(--ease) both; transition: transform .6s var(--ease), border-color .4s;
}
.rev::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: linear-gradient(140deg, var(--pink), transparent 40%, transparent 60%, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.rev:hover { transform: translateY(-6px); }
.rev:hover::after { opacity: 1; }
.rev.is-hidden { opacity: .5; }
.rev__stars { display: flex; gap: 3px; }
.rev__stars .ic { width: 18px; height: 18px; stroke: var(--dim); }
.rev__stars .ic.is-on { fill: url(#gStroke); stroke: url(#gStroke); }
.rev__body { font-size: 16px; color: #e4e0ec; flex: 1; white-space: pre-line; }
.rev__who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rev__name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rev__name small { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev__date { color: var(--dim); font-size: 12px; white-space: nowrap; }
.avatar--sm { width: 40px; height: 40px; font-size: 15px; }
.rev--sum { justify-content: center; background: linear-gradient(160deg, #1a1226, #0b0a11 70%); }
.rev__avg { font-family: var(--f-display); font-weight: 300; font-size: 72px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rev--sum .rev__stars .ic { width: 22px; height: 22px; }

/* Уведомление */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: rgba(20, 17, 30, .95); border: 1px solid rgba(46, 204, 113, .45); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: .45s var(--ease);
}
.toast.is-bad { border-color: rgba(255, 45, 74, .7); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ===== Появление при прокрутке ===== */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.card[data-reveal] { transform: translateY(36px); }
.card[data-reveal].is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card.is-in { transition: transform .7s var(--ease), border-color .4s, opacity 1s var(--ease) var(--d, 0s); }

/* Первый экран появляется сразу, не дожидаясь 3D */
.rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0s) + .15s); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.scene { opacity: 0; transition: opacity 1.4s var(--ease); }
.is-3d .scene { opacity: 1; }

/* Без WebGL */
.no-webgl .hero__hint { display: none; }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .why, .contact, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__head { position: static; }
  .quote { order: 2; } /* в одну колонку цитата Ашота идёт после правил, как вывод */
  /* Планшеты: без 3D-перспективы у карточек — иначе браузер рисует их мутными (картинки и цена) */
  .cards { perspective: none; }
  .card { will-change: auto; }
  .card[data-reveal].is-in { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps::before, .steps::after { display: none; }
  .step__dot { top: -6px; }
}
@media (max-width: 760px) {
  .hero { padding: 8px; }
  /* на невысоких телефонах экран не сжимается, иначе текст наедет на ключ */
  .hero__card { border-radius: 24px; min-height: max(calc(100svh - 16px), 820px); }
  .nav { padding: 16px; }
  .nav .pill { display: none; }
  .nav__grid { width: 48px; height: 48px; }
  .round { width: 46px; height: 46px; }
  .nav__side { flex: 0 0 auto; }
  .nav .logo { position: absolute; left: 50%; transform: translateX(-50%); gap: 8px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__text b { font-size: 15px; }
  .logo__text small { font-size: 9px; margin-top: 4px; }
  .hero__content { justify-content: flex-end; padding: 0 20px 92px; }
  /* затемняем низ сцены, чтобы текст под ключом читался */
  .hero__card::after { background: linear-gradient(180deg, transparent 36%, rgba(6, 6, 10, .72) 54%, rgba(6, 6, 10, .9) 72%); }
  .hero__title { font-size: clamp(34px, 10.4vw, 64px); margin: 20px 0 16px; }
  .hero__lead { font-size: 15px; }
  .badge { font-size: 11px; gap: 12px; letter-spacing: .2em; }
  .badge__ic { width: 40px; height: 40px; }
  .hero__actions { margin-top: 24px; width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; height: 60px; }
  .hero__hint { right: auto; left: 50%; transform: translateX(-50%); bottom: auto; top: 86px; white-space: nowrap; }
  .marquee__track { padding: 18px 0; gap: 30px; }
  .section__head { grid-template-columns: 1fr; gap: 20px; }
  .section__lead { justify-self: start; }
  .cards, .rules, .form__row, .reviews { grid-template-columns: 1fr; }
  .acc { padding: 0 4px; height: 46px; }
  .acc__label { display: none; }
  .acc__ic { width: 36px; height: 36px; }
  .nav__side { gap: 8px; }
  .modal { padding: 10px; align-items: end; }
  .modal__panel { max-height: calc(100svh - 20px); border-radius: 24px; }
  .modal__close { top: 14px; right: 14px; }
  .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section__head { margin-bottom: 32px; }

  /* Услуги на телефоне — карусель: листаются пальцем, следующая карточка выглядывает справа */
  .cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; perspective: none;
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 16px; scroll-padding: 0 var(--pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 84%; scroll-snap-align: start; padding: 22px; }
  .card__visual { min-height: 180px; margin: 0 0 8px; }
  .card__visual img { width: min(190px, 70%); }
  .card__text { min-height: 0; }
  .cards-dots { display: flex; }

  .quote { min-height: 0; gap: 22px; padding: 26px; }
  .quote__mark { font-size: 80px; }
  .rules { gap: 12px; }
  .rule { padding: 22px; }
  .rule__top { margin-bottom: 18px; }
  .rule__ic { width: 48px; height: 48px; border-radius: 14px; }
  /* Этапы на телефоне: номер слева, текст справа — компактно */
  .steps { padding-top: 0; row-gap: 26px; }
  .step { display: grid; grid-template-columns: 70px 1fr; column-gap: 14px; align-items: start; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .step__dot, .step__ic { display: none; }
  .step__num { grid-row: 1 / 3; font-size: 40px; margin: 0; letter-spacing: -.04em; }
  .step h3 { margin-top: 4px; }
  .step p { margin-top: 6px; }
  .faq__q { padding: 22px 0; }
  .form-wrap { padding: 22px; }
  .gate { margin-top: 0; }
  .map { height: 210px; }
  .info__list { padding: 6px 20px; }
  .footer__row { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  /* значок над надписью — тогда и значок, и «ASHOT GARAGE» стоят ровно по центру */
  .footer .logo { flex-direction: column; gap: 10px; }
  .footer .logo__mark { width: 40px; height: 40px; }
  .faq__a p { padding-right: 0; }
  .menu__close { top: 20px; right: 20px; }
}
/* ===== Телефоны и планшеты (сенсорные экраны) =====
   1) Текст с градиентом «по буквам» (background-clip: text) мобильные браузеры, особенно на Xiaomi,
      рисуют с тёмной полосой посередине. Здесь он заменён на сплошной светлый цвет.
   2) Убраны тяжёлые эффекты (размытие фона, зерно поверх всей страницы) — они сильно тормозят 3D. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .tg {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: #f4f2f8; -webkit-text-fill-color: currentColor;
  }
  /* Заголовок первого экрана: ярче и плотнее, с мягким свечением, чтобы не сливался с фоном */
  .hero__title { font-weight: 400; letter-spacing: -.02em; }
  .hero__title span { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }
  .hero__title span + span {
    font-weight: 600; color: #ffd9e4;
    text-shadow: 0 0 22px rgba(255, 45, 74, .55), 0 2px 14px rgba(0, 0, 0, .8);
  }
  .hero__lead { color: #d9d5e3; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
  .badge { color: #e8e4f0; }

  .quote__mark, .rev__avg { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--pink); -webkit-text-fill-color: currentColor; }
  .step__num { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
  .step.is-active .step__num, .step:hover .step__num { color: var(--pink); -webkit-text-stroke-color: transparent; }
  .footer__word { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: rgba(255, 255, 255, .5); -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); mask-image: linear-gradient(180deg, #000 10%, transparent 95%); }

  body::after { display: none; }
  .round, .pill, .acc, .hero__hint, .marquee, .btn--ghost, .modal, .menu { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .round, .pill, .acc, .hero__hint, .btn--ghost { background-color: rgba(18, 16, 26, .82); }
  .marquee { background: rgba(3, 3, 6, .94); }
  .modal { background: rgba(4, 4, 8, .92); }
  .menu { background: rgba(6, 6, 10, .97); }
  .card { will-change: auto; }
  .cards { perspective: none; }
  .card[data-reveal].is-in { transform: none; }
}

@media (max-width: 400px) {
  /* узкие телефоны: телефон в шапке прячем (он есть в меню и в контактах), чтобы логотип не упирался */
  .nav .round[href^="tel"] { display: none; }
  .hero__title { font-size: clamp(32px, 10.2vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== Прайс внутри карточки услуги ===== */
.card__more { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; position: relative; z-index: 1; }
.card__more b { font-size: 15px; font-weight: 700; }
.card__more span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); transition: gap .4s var(--ease); }
.card__more span .ic { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.card__more:hover span { gap: 10px; }
.card__more:hover span .ic { transform: translateY(-2px); }
.card__sheet {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; padding: 22px;
  border-radius: inherit; background: linear-gradient(180deg, #17121f, #0b0a11 70%);
  transform: translateY(102%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
.card.is-open .card__sheet { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.card__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card__sheet-head h4 { font-family: var(--f-display); font-weight: 400; font-size: 16px; line-height: 1.2; text-transform: uppercase; }
.card__close { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); transition: transform .5s var(--ease), border-color .3s; }
.card__close:hover { transform: rotate(90deg); border-color: rgba(255, 95, 162, .7); }
.plist { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin-right: -10px; padding-right: 10px; }
.plist li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.plist li:last-child { border-bottom: 0; }
.plist li span { color: #d8d4e2; }
.plist li b { flex: none; white-space: nowrap; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plist li b.q { background: none; color: var(--dim); font-weight: 600; -webkit-text-fill-color: currentColor; }
.card__sheet-note { margin-top: 10px; font-size: 12px; color: var(--dim); }
.card__sheet .btn { margin-top: 12px; height: 52px; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .plist li b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ff8fb5; -webkit-text-fill-color: currentColor; }
}
.card.has-sheet { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; } /* вся карточка — кнопка «открыть/закрыть цены» */

/* ===== Карта-кнопка: открывает место в 2ГИС ===== */
.map--link { display: block; color: inherit; cursor: pointer; }
.map__open {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; background: rgba(6, 6, 10, .78); border: 1px solid var(--line2);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s, border-color .35s, transform .5s var(--ease);
}
.map__open .ic { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.map--link:hover .map__open { background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.map--link:hover .map__open .ic { transform: translate(2px, -2px); }
/* ===== Статус позиции прайса: «временно не работает» ===== */
.plist li.is-paused span { opacity: .5; }
.plist li b.p { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ffc46b; -webkit-text-fill-color: currentColor; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; text-align: right; }
/* ===== Планшеты в вертикальном положении (iPad mini и похожие) ===== */
@media (max-width: 900px) { .nav .pill { display: none; } } /* без кнопки «Меню» логотипу хватает места */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .hero__content { justify-content: flex-end; padding-bottom: 130px; } /* текст вниз — ключ в верхней половине экрана */
  .hero__card::after { background: linear-gradient(180deg, transparent 40%, rgba(6, 6, 10, .7) 58%, rgba(6, 6, 10, .9) 78%); }
}