﻿/* =========================================================
   keiththerapist — personal page
   ========================================================= */

:root {
  --bg: #0a0c10;
  --bg-soft: #0e1218;
  --card: #121822;
  --card-2: #151c28;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e9edf3;
  --muted: #94a0b2;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --font: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(50rem 35rem at 0% 20%, rgba(34, 211, 238, .10), transparent 55%),
    radial-gradient(40rem 40rem at 50% 110%, rgba(124, 92, 255, .08), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(124, 92, 255, .45); color: #fff; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Черновик-баннер ---------- */

.draft-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  color: #0a0c10;
  background: linear-gradient(90deg, #f5d76e, #ffb86b);
  position: relative;
  z-index: 60;
}
.draft-banner strong { text-transform: uppercase; letter-spacing: .04em; }
.draft-banner button {
  border: 1px solid rgba(0,0,0,.35);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: .15rem .7rem;
  border-radius: 999px;
  cursor: pointer;
}
.draft-banner button:hover { background: rgba(0,0,0,.12); }

/* ---------- Навигация ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, .55);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-scrolled {
  background: rgba(10, 12, 16, .85);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 650; letter-spacing: .01em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #06080c;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-text { font-size: .98rem; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  padding: .48rem .68rem;
  border-radius: 999px;
  font-size: .89rem;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links .nav-cta {
  margin-left: .35rem;
  color: #06080c;
  background: var(--grad);
  font-weight: 650;
}
.nav-links .nav-cta:hover { color: #06080c; filter: brightness(1.1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
  grid-auto-flow: row;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #06080c;
  box-shadow: 0 12px 30px -12px rgba(124, 92, 255, .8);
}
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(34, 211, 238, .7); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.07); }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 800;
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1rem;
}
.hero-sub .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .16);
}
.hero-sub .sep { opacity: .5; }

.status {
  margin: 0 0 1.5rem;
  padding: .9rem 1.1rem;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  background: linear-gradient(90deg, rgba(124, 92, 255, .10), transparent 70%);
  color: #cfd6e2;
  font-size: .98rem;
  border-radius: 0 12px 12px 0;
  max-width: 34rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.chip {
  padding: .38rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .85rem;
  color: #c6cede;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-photo { position: relative; display: grid; place-items: center; }
.avatar-ring {
  position: relative;
  z-index: 1;
  width: min(340px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: var(--grad);
  box-shadow: 0 30px 70px -30px rgba(124, 92, 255, .9);
}
.avatar-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}
.glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(70px);
  opacity: .35;
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .30; }
  50% { transform: scale(1.08); opacity: .45; }
}

.scroll-hint { display: grid; place-items: center; padding-top: 2.5rem; }
.scroll-hint span {
  width: 22px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--muted);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- Секции ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.section-note { margin: .8rem 0 0; color: var(--muted); max-width: 46rem; }

/* ---------- Обо мне ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-text p { margin: 0 0 1.1rem; color: #c8d0de; font-size: 1.03rem; }
.about-text strong { color: var(--text); }

.placeholder-block {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1.5px dashed rgba(245, 215, 110, .55);
  border-radius: var(--radius);
  background: rgba(245, 215, 110, .06);
}
.placeholder-label {
  display: inline-block;
  margin-bottom: .4rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f5d76e;
}
.placeholder-block p { margin: 0; font-size: .93rem; color: #d8d2bb; }

.facts {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.facts h3 {
  margin: 0 0 1.1rem;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.facts dl { margin: 0; display: grid; gap: .9rem; }
.facts dl > div {
  display: grid;
  gap: .15rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 0; font-size: .97rem; }
.facts a { border-bottom: 1px solid rgba(124, 92, 255, .5); }
.facts a:hover { color: #b9a8ff; }

/* ---------- Галерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.shot { margin: 0; position: relative; }

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: border-color .25s ease, transform .3s ease, box-shadow .3s ease;
}
.shot:nth-child(n) .shot-btn { aspect-ratio: 4 / 3; }

.shot-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
  filter: saturate(.92) contrast(1.02);
}
.shot-btn:hover { border-color: rgba(124, 92, 255, .6); transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(0,0,0,.9); }
.shot-btn:hover img { transform: scale(1.05); filter: saturate(1.05); }
.shot-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.shot figcaption {
  margin-top: .55rem;
  font-size: .8rem;
  color: var(--muted);
  padding-left: .2rem;
}

.shot-cap { display: grid; gap: .2rem; }
.shot-cap strong {
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}
.shot-cap span { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.shot:first-child .shot-btn img { object-position: center 28%; }

.feature-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.feature-work {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.feature-work img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-work figcaption {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .4rem;
}
.feature-work h3 { margin: 0; font-size: 1rem; }
.feature-work p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
html[data-theme="light"] .feature-work { background: #fff; }

.gallery-hint {
  margin: 1.8rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Плеер ---------- */

.player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, .16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
  max-width: 760px;
}

.player-art { filter: drop-shadow(0 10px 30px rgba(124, 92, 255, .35)); }
.eq path { transform-origin: 50% 50%; }
.player.is-playing .eq path { animation: eq 1.1s ease-in-out infinite alternate; }
.player.is-playing .eq path:nth-child(1) { animation-delay: 0s; }
.player.is-playing .eq path:nth-child(2) { animation-delay: .15s; }
.player.is-playing .eq path:nth-child(3) { animation-delay: .3s; }
.player.is-playing .eq path:nth-child(4) { animation-delay: .45s; }
.player.is-playing .eq path:nth-child(5) { animation-delay: .6s; }
@keyframes eq {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1.15); }
}

.player-kicker {
  margin: 0 0 .2rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.player-body h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.player-meta { margin: .2rem 0 1.2rem; color: var(--muted); font-size: .87rem; }

.player-controls { display: flex; align-items: center; gap: 1rem; }

.play-btn {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #06080c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(34, 211, 238, .9);
  transition: transform .18s ease, filter .2s ease;
}
.play-btn:hover { transform: scale(1.05); filter: brightness(1.08); }
.play-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.play-btn .icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.timeline { flex: 1; min-width: 0; }

input[type="range"]#seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-2) var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%), rgba(255,255,255,.14) 100%);
  cursor: pointer;
  outline: none;
}
input[type="range"]#seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .25);
  cursor: pointer;
}
input[type="range"]#seek::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .25);
  cursor: pointer;
}
input[type="range"]#seek:focus-visible { box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); }

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: .45rem;
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .5); background: rgba(255,255,255,.055); }

.contact-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(124, 92, 255, .16);
  border: 1px solid rgba(124, 92, 255, .3);
  color: #c4b5ff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
}
.contact-body { display: grid; gap: .1rem; min-width: 0; }
.contact-label { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.contact-value { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-arrow { margin-left: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.contact-card:hover .contact-arrow { transform: translateX(3px); color: var(--text); }
.contact-card--soon { opacity: .65; }
.contact-card--soon:hover { transform: none; border-color: var(--line); background: rgba(255,255,255,.03); }

.privacy-note {
  margin: 1.6rem 0 0;
  font-size: .85rem;
  color: var(--muted);
  max-width: 52rem;
}

/* ---------- Подвал ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Лайтбокс ---------- */

.lightbox {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 14, .97);
  padding: 1rem;
  max-width: min(94vw, 1000px);
  max-height: 92vh;
  width: auto;
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 6, 9, .82); backdrop-filter: blur(6px); }
.lightbox img {
  max-width: 100%;
  max-height: min(76vh, 720px);
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  margin-inline: auto;
}
.lightbox p {
  margin: .7rem 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  min-height: 1.2em;
}
.lightbox-close-form { position: absolute; top: .6rem; right: .6rem; margin: 0; }
.lightbox-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.14); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 16, .7);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
}
.lightbox-nav:hover { background: rgba(255,255,255,.14); }
.lightbox-nav.prev { left: .6rem; }
.lightbox-nav.next { right: .6rem; }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Внутренние страницы
   ========================================================= */

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.page-hero {
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(1.8rem, 4vw, 3rem);
  position: relative;
}
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.page-hero .lead {
  margin: 0;
  max-width: 44rem;
  color: #c8d0de;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

/* Хлебные крошки */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1.2rem;
  font-size: .8rem;
  color: var(--muted);
}
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--muted); opacity: .85; }

/* Карточки-ссылки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(124, 92, 255, .18), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, .55);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, .95);
}
.card:hover::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.card-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, .28);
  background: rgba(124, 92, 255, .14);
  color: #c4b5ff;
  margin-bottom: .35rem;
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.card .card-more {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .84rem;
  color: #b9a8ff;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.card:hover .card-more { color: #d5ccff; }
.card .card-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card:hover .card-more svg { transform: translateX(3px); }

/* Список услуг */
.service-list {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.028);
  transition: border-color .2s ease, background .2s ease;
}
.service:hover { border-color: rgba(34, 211, 238, .45); background: rgba(255,255,255,.05); }
.service-num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #06080c;
  font-weight: 800;
  font-size: .9rem;
}
.service h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.service p { margin: 0; color: var(--muted); font-size: .92rem; }
.service .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.tag {
  font-size: .74rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #b9c2d2;
  background: rgba(255,255,255,.03);
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent-2);
}
.step h3 { margin: 0 0 .3rem; font-size: 1rem; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Полоса-призыв */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(124, 92, 255, .3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(124, 92, 255, .22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.cta-band h2 { margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.6vw, 1.75rem); letter-spacing: -.02em; }
.cta-band p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Превью на главной */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: .8rem;
}
.preview-strip a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}
.preview-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
  filter: saturate(.92);
}
.preview-strip a:hover img { transform: scale(1.06); filter: saturate(1.06); }

/* Музыкальная страница */
.track-list { display: grid; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.track.is-active { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .07); }
.track-num { color: var(--muted); font-size: .82rem; width: 1.4rem; }
.track-title { font-size: .95rem; }
.track-meta { margin-left: auto; font-size: .8rem; color: var(--muted); }

/* Контакты — расширенная сетка */
.contact-grid .contact-card.is-link:hover { border-color: rgba(124, 92, 255, .5); }
.contact-card--muted { opacity: .7; }
.copy-btn {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.copy-btn:hover { background: rgba(255,255,255,.12); }
.copy-btn.copied { border-color: rgba(61, 220, 132, .6); color: #8af0b5; }

/* 404 */
.error-wrap {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-code {
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.error-wrap p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.6rem; }

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-photo { order: -1; justify-items: start; }
  .avatar-ring { width: min(240px, 58vw); }
  .about-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem 1.25rem 1.4rem;
    background: rgba(10, 12, 16, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .player { grid-template-columns: 1fr; justify-items: start; }
  .player-art svg { width: 88px; height: 88px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Skip-link ---------- */
.skip {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: var(--grad);
  color: #06080c;
  font-weight: 650;
  font-size: .9rem;
  transition: top .2s ease;
}
.skip:focus { top: 0; }

/* ---------- Визуально скрыто, но доступно скринридерам ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Статьи и FAQ
   ========================================================= */

.article { max-width: 48rem; }
.article-meta {
  margin: 0 0 2rem;
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }

.article h2 {
  margin: 2.4rem 0 .8rem;
  font-size: clamp(1.28rem, 2.6vw, 1.6rem);
  letter-spacing: -.02em;
}
.article h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.article p { margin: 0 0 1rem; color: #c3cbda; }
.article > p:first-of-type { font-size: 1.06rem; color: #d8dfea; }
.article ul, .article ol { margin: 0 0 1.2rem; padding-left: 1.25rem; display: grid; gap: .5rem; color: #c3cbda; }
.article li::marker { color: var(--accent-2); }
.article strong { color: var(--text); }
.article a { color: #b9a8ff; border-bottom: 1px solid rgba(185,168,255,.4); }
.article a:hover { color: #d5ccff; }

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, .28);
  background: #0c1a20;
  font-size: .93rem;
  color: #cfe9f0;
}
.callout strong { color: #eafcff; }

/* FAQ-аккордеон */
.faq { display: grid; gap: .7rem; max-width: 50rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  padding: 0 1.15rem;
  transition: border-color .2s ease, background .2s ease;
}
.faq details[open] { border-color: rgba(124, 92, 255, .45); background: rgba(124, 92, 255, .06); }
.faq details:hover { border-color: rgba(255,255,255,.22); }
.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-2);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); font-size: .93rem; }

/* Карточка статьи */
.post-card { display: flex; flex-direction: column; gap: .6rem; }
.post-card .post-tag {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ef0ff;
  border: 1px solid rgba(34, 211, 238, .3);
  background: rgba(34, 211, 238, .08);
  padding: .18rem .55rem;
  border-radius: 999px;
}
.post-card h3 { font-size: 1.05rem; }
.post-card p { font-size: .9rem; color: var(--muted); }
.post-card time { font-size: .78rem; color: #7d8798; }

/* Оглавление статьи */
.toc {
  margin: 0 0 2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  font-size: .9rem;
}
.toc p { margin: 0 0 .6rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.toc a { color: #c9d2e2; }
.toc a:hover { color: #fff; }

/* ---------- Плейлист: кнопки треков ---------- */
.track { padding: 0; overflow: hidden; }
.track-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .9rem 1.1rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.track-btn:hover { background: rgba(255,255,255,.045); }
.track-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; border-radius: 14px; }
.track.is-active .track-btn { color: #eafcff; }
.track.is-active .track-num { color: var(--accent-2); font-weight: 700; }

/* ---------- Блок цифр ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.stat {
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: .35rem; font-size: .82rem; color: var(--muted); }

/* =========================================================
   Видео
   ========================================================= */

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.video-frame { width: 100%; max-width: 440px; margin-inline: auto; }

.video-screen {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(124, 92, 255, .38);
  background: #05070b;
  box-shadow: 0 34px 90px -44px rgba(124, 92, 255, .85);
}

.video-el {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #05070b;
}

.video-hud { position: absolute; inset: 0; pointer-events: none; }
.video-hud::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.055) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .55;
}

.hud-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent-2);
  opacity: .85;
}
.hud-tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.hud-tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.hud-bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.hud-br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.hud-rec {
  position: absolute;
  left: 42px; top: 18px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .66rem;
  letter-spacing: .2em;
  color: #ff7591;
  text-shadow: 0 0 12px rgba(255, 90, 120, .6);
}
.hud-rec i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, .55);
  animation: recPulse 1.8s ease-out infinite;
}
@keyframes recPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, .55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

.hud-tag {
  position: absolute;
  right: 40px; top: 18px;
  font-size: .62rem;
  letter-spacing: .16em;
  color: rgba(180, 245, 255, .8);
}

.video-caption {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .9rem 0 0;
  font-size: .78rem;
  color: var(--muted);
}
.video-caption span {
  padding: .18rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

.video-copy h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.03em; }
.video-copy p { margin: 0 0 1rem; color: #c3cbda; }

.video-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.video-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.video-facts span { color: var(--muted); }
.video-facts b { font-weight: 600; }

@media (max-width: 860px) {
  .video-layout { grid-template-columns: 1fr; }
  .video-frame { max-width: 400px; }
}

/* =========================================================
   Hi-tech: сетка, сканлайны, блики
   ========================================================= */

/* тонкие горизонтальные сканлайны поверх фона */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  opacity: .28;
  mix-blend-mode: overlay;
}

/* движущаяся сетка в героях */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(124, 92, 255, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, .10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(78% 72% at 50% 28%, #000 0%, transparent 76%);
  mask-image: radial-gradient(78% 72% at 50% 28%, #000 0%, transparent 76%);
  animation: gridDrift 32s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 64px 64px; }
}

/* появление заголовка */
.hero h1, .page-hero h1 { animation: heroRise .85s cubic-bezier(.22, .9, .28, 1) both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* переливающийся градиент в имени */
.grad-text {
  background-size: 220% 220%;
  animation: gradientMove 11s ease-in-out infinite;
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* вращающаяся дуга вокруг аватара */
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg 248deg, rgba(34, 211, 238, .9) 300deg, transparent 342deg);
  filter: blur(.4px);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* HUD-уголки на карточках */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) left 10px top 10px / 16px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) left 10px top 10px / 2px 16px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) right 10px top 10px / 16px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) right 10px top 10px / 2px 16px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) left 10px bottom 10px / 16px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) left 10px bottom 10px / 2px 16px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) right 10px bottom 10px / 16px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) right 10px bottom 10px / 2px 16px no-repeat;
}
.card:hover::before, .card:focus-visible::before { opacity: .9; }

/* блик, следующий за курсором */
.card::after {
  background: radial-gradient(260px circle at var(--mx, 100%) var(--my, 0%), rgba(124, 92, 255, .22), transparent 65%);
}

/* подчёркивание заголовков секций */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: .8rem;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.22, .9, .28, 1);
}
.section-head.in h2::after { transform: scaleX(1); }

/* полоса прогресса чтения */
.scroll-progress {
  position: fixed;
  left: 0; top: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, .65);
  pointer-events: none;
}

/* уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .hero::before, .page-hero::before, .avatar-ring::before,
  .grad-text, .hero h1, .page-hero h1, .hud-rec i {
    animation: none !important;
  }
  .section-head h2::after { transform: scaleX(1); }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   Форма заявки
   ========================================================= */

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  max-width: 780px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, .12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}

.field { display: grid; gap: .4rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

.field label,
.order-preview label {
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea,
.order-preview textarea {
  width: 100%;
  padding: .75rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: .94rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a0b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  cursor: pointer;
}

.field select option { background: var(--card); color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus,
.order-preview textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, .7);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}

.field input::placeholder,
.field textarea::placeholder { color: #6b768a; }

.field input:invalid:not(:placeholder-shown) { border-color: rgba(255, 117, 145, .6); }

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: .18rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.form-status { margin: 0; font-size: .87rem; color: var(--muted); }
.form-status.is-error { color: #ff8fa3; }
.form-status.is-ok { color: #5fe3c0; }

.order-preview {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px dashed rgba(34, 211, 238, .45);
  border-radius: 16px;
  background: rgba(34, 211, 238, .06);
}
.order-preview[hidden] { display: none; }
.order-preview textarea { min-height: 170px; font-size: .88rem; line-height: 1.55; }

/* =========================================================
   Карта и QR
   ========================================================= */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 1.2rem;
  align-items: stretch;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  min-height: 380px;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(.2) contrast(1.05);
}

.map-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
}

.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.zone-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.zone-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.zone-list span { color: var(--muted); font-size: .8rem; text-align: right; }

.qr-block {
  display: flex;
  gap: .9rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.qr-block img {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.qr-block h3 { margin: 0 0 .2rem; font-size: .95rem; }
.qr-block p { margin: 0; font-size: .8rem; color: var(--muted); }

/* =========================================================
   Цены
   ========================================================= */

.price-list {
  max-width: 780px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .95rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.price-row b {
  flex: 0 0 auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.price-note,
.reviews-note {
  margin: 1.1rem 0 0;
  max-width: 60rem;
  font-size: .85rem;
  color: var(--muted);
}

/* =========================================================
   Отзывы
   ========================================================= */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.review {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.45rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.review.is-sample { border-style: dashed; }

.review-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd479;
  border: 1px solid rgba(255, 212, 121, .45);
  background: rgba(255, 212, 121, .12);
}

.stars { font-size: .92rem; letter-spacing: .16em; color: #ffc94d; }

.review blockquote {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
}

.review figcaption {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: .78rem; }

/* =========================================================
   Переключатель темы и поиск в шапке
   ========================================================= */

.nav-tools { display: flex; align-items: center; gap: .4rem; }

.nav-icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .18s ease;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(124,92,255,.6); transform: translateY(-1px); }
.nav-icon-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn .ico-sun { display: none; }
[data-theme="light"] .nav-icon-btn .ico-sun { display: block; }
[data-theme="light"] .nav-icon-btn .ico-moon { display: none; }

.search-dialog {
  width: min(640px, 92vw);
  max-height: 82vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0d1119;
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-dialog::backdrop { background: rgba(4, 6, 9, .72); backdrop-filter: blur(5px); }

.search-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.search-head svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
.search-head input {
  flex: 1;
  min-width: 0;
  padding: .55rem .2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.search-head input:focus { outline: none; }
.search-head input::placeholder { color: #6b768a; }
.search-close {
  flex: 0 0 auto;
  padding: .25rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}
.search-close:hover { color: var(--text); background: rgba(255,255,255,.08); }

.search-results {
  list-style: none;
  margin: 0;
  padding: .5rem;
  max-height: min(62vh, 430px);
  overflow: auto;
  display: grid;
  gap: .12rem;
  align-content: start;
}
.search-results a {
  display: block;
  padding: .65rem .8rem;
  border-radius: 10px;
  transition: background .15s ease;
}
.search-results a:hover,
.search-results a:focus-visible { background: rgba(124, 92, 255, .16); outline: none; }
.search-results b { display: block; font-weight: 600; font-size: .93rem; }
.search-results span { display: block; font-size: .79rem; color: var(--muted); }
.search-results mark { background: rgba(34,211,238,.22); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 1rem 1.2rem 1.3rem; color: var(--muted); font-size: .9rem; }

/* =========================================================
   Светлая тема
   ========================================================= */

html[data-theme="light"] {
  --bg: #f2f4f9;
  --bg-soft: #e8ecf5;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: rgba(14, 22, 42, .10);
  --line-strong: rgba(14, 22, 42, .18);
  --text: #101728;
  --muted: #5a6478;
  --shadow: 0 24px 60px -30px rgba(16, 24, 40, .28);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(124, 92, 255, .14), transparent 60%),
    radial-gradient(50rem 35rem at 0% 20%, rgba(34, 211, 238, .12), transparent 55%);
}

html[data-theme="light"] .nav { background: rgba(242, 244, 249, .72); }
html[data-theme="light"] .nav.is-scrolled { background: rgba(242, 244, 249, .94); }
html[data-theme="light"] .nav-links a:hover { background: rgba(14, 22, 42, .06); }
html[data-theme="light"] .nav-icon-btn { background: rgba(14, 22, 42, .04); }
html[data-theme="light"] .nav-icon-btn:hover { background: rgba(14, 22, 42, .08); }

html[data-theme="light"] .card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .player,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .order-form,
html[data-theme="light"] .map-side,
html[data-theme="light"] .review,
html[data-theme="light"] .qr-block,
html[data-theme="light"] .price-list,
html[data-theme="light"] .stats,
html[data-theme="light"] .stat {
  background: #ffffff;
}

html[data-theme="light"] .card:hover { background: #ffffff; }
html[data-theme="light"] .price-row:nth-child(odd) { background: rgba(14, 22, 42, .025); }
html[data-theme="light"] .contact-ico { color: var(--accent); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .order-preview textarea { background: rgba(14, 22, 42, .03); }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus,
html[data-theme="light"] .order-preview textarea:focus {
  background: #ffffff;
  border-color: rgba(14, 130, 160, .7);
}
html[data-theme="light"] .order-preview { background: rgba(34, 211, 238, .07); }
html[data-theme="light"] .search-dialog { background: #ffffff; }
html[data-theme="light"] .search-close:hover,
html[data-theme="light"] .lightbox-close:hover,
html[data-theme="light"] .lightbox-nav:hover { background: rgba(14, 22, 42, .08); }
html[data-theme="light"] input[type="range"]#seek {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-2) var(--p, 0%), rgba(14,22,42,.15) var(--p, 0%), rgba(14,22,42,.15) 100%);
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder,
html[data-theme="light"] .search-head input::placeholder { color: #8890a3; }
html[data-theme="light"] .video-copy p { color: var(--muted); }

@media (max-width: 1000px) {
  html[data-theme="light"] .nav-links { background: rgba(255, 255, 255, .98); }
}

/* =========================================================
   Адаптив новых блоков
   ========================================================= */

@media (max-width: 860px) {
  .order-form { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 300px; }
}

@media (max-width: 560px) {
  .price-row { padding: .8rem 1rem; font-size: .9rem; }
  .qr-block { align-items: flex-start; }
  .review { padding: 1.25rem 1.15rem 1rem; }
  .nav-icon-btn { width: 38px; height: 38px; }
}

/* ---------- Отзывы: ротация и форма ---------- */

.review[hidden] { display: none; }

.reviews-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.reviews-toolbar .reviews-note { flex: 1 1 320px; margin: 0; }

.review-form-block { margin-top: clamp(2.5rem, 6vw, 4rem); }

.section-head h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -.02em;
}

.review-form-block .order-form { max-width: 100%; }

@media (max-width: 560px) {
  .reviews-toolbar { align-items: stretch; }
  .reviews-toolbar .btn { width: 100%; }
}

/* =========================================================
   Работы «до / после»
   ========================================================= */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}

.work-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.work-pair { display: grid; grid-template-columns: 1fr 1fr; }

.work-half {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, transparent 10px 20px);
}
.work-half:last-child { border-right: 0; }
.work-half span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-card figcaption {
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}

/* светлая тема: тексты статей и работ */
html[data-theme="light"] .article p,
html[data-theme="light"] .article ul,
html[data-theme="light"] .article ol,
html[data-theme="light"] .article > p:first-of-type { color: var(--muted); }
html[data-theme="light"] .article a { color: #5b3fd6; border-bottom-color: rgba(91,63,214,.35); }
html[data-theme="light"] .article a:hover { color: #3f2bb0; }
html[data-theme="light"] .callout {
  background: #e6f6fa;
  border-color: rgba(13, 53, 64, .18);
  color: #0d3540;
}
html[data-theme="light"] .callout strong { color: #072b34; }
html[data-theme="light"] .work-card,
html[data-theme="light"] .work-half { background-color: #fff; }
html[data-theme="light"] .post-card time { color: #6b7280; }

/* светлая тема: контраст мелких элементов */
html[data-theme="light"] .status { color: #39415a; }
html[data-theme="light"] .chip,
html[data-theme="light"] .tag { color: #46506a; }
html[data-theme="light"] .facts a:hover { color: #4f38c9; }
html[data-theme="light"] .card-ico { color: #5747d6; }
html[data-theme="light"] .placeholder-block p { color: #4a4020; }
html[data-theme="light"] .track.is-active .track-btn { color: #101728; }
html[data-theme="light"] .review-badge {
  color: #8a5a00;
  border-color: rgba(138, 90, 0, .35);
  background: rgba(245, 215, 110, .28);
}
html[data-theme="light"] .stars { color: #c98a00; }
html[data-theme="light"] .gallery-hint { color: var(--muted); }

/* светлая тема: тексты блока «Обо мне», метки, плеер, контакты */
html[data-theme="light"] .about-text p { color: var(--muted); }
html[data-theme="light"] .placeholder-label { color: #7a5600; }
html[data-theme="light"] .track.is-active .track-num { color: #0b5f6b; }
html[data-theme="light"] .contact-ico {
  color: #4c3bc4;
  background: rgba(76, 59, 196, .12);
  border-color: rgba(76, 59, 196, .26);
}

/* ---------- Принципы работы ---------- */
.principles {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.principles h3 { margin: 0 0 .8rem; font-size: 1rem; }
.principles ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; }
.principles li { color: var(--muted); font-size: .95rem; }
.principles strong { color: var(--text); }
html[data-theme="light"] .principles { background: #ffffff; }
html[data-theme="light"] .principles li { color: var(--muted); }

/* ---------- Плавающий чат ---------- */
.chat-widget {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.6rem);
  bottom: clamp(.9rem, 3vw, 1.6rem);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.chat-fab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #070a10;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(34, 211, 238, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab svg { width: 20px; height: 20px; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(34, 211, 238, .7); }
.chat-fab:focus-visible { outline: 2px solid #0a0c10; outline-offset: 3px; }
.chat-panel {
  width: min(20rem, calc(100vw - 2rem));
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  display: grid;
  gap: .3rem;
}
.chat-panel-title {
  margin: .15rem .35rem .4rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .18s ease;
}
.chat-link:hover { background: rgba(124, 92, 255, .12); }
.chat-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-2);
  flex: none;
}
.chat-txt { display: grid; line-height: 1.25; }
.chat-txt b { font-size: .88rem; font-weight: 600; }
.chat-txt em { font-style: normal; font-size: .76rem; color: var(--muted); }
html[data-theme="light"] .chat-panel { background: #fff; }
@media (max-width: 480px) {
  .chat-fab-text { display: none; }
  .chat-fab { padding: .85rem; }
}
