/* ============================================================
   Phantom Detailing — styles.css
   Тёмная премиальная автомобильная эстетика, розовый акцент.
   Mobile-first, без внешних библиотек.
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-soft: #0e0e12;
  --panel: #121216;
  --panel-2: #17171c;
  --text: #f3f0f2;
  --muted: #a8a3ab;
  --muted-2: #7d7882;
  --pink: #ec4e83;
  --pink-2: #ff7aa6;
  --peach: #f39a69;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shell: min(1200px, calc(100% - 64px));
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --header-h: 86px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

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

::selection {
  background: rgba(236, 78, 131, 0.35);
  color: #fff;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

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

.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.overline i {
  width: 18px;
  height: 1px;
  background: var(--pink);
  flex: none;
}

.section-top {
  margin-bottom: 26px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  max-width: 760px;
}

.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 380px;
  justify-self: end;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(28px, 3.5vw, 46px);
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn span {
  color: var(--pink-2);
  transition: transform 0.25s ease;
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn-pink {
  background: linear-gradient(100deg, #ff7aa6, #ec4e83 58%, #e34074);
  color: #fff;
  box-shadow: 0 14px 36px -18px rgba(236, 78, 131, 0.9);
}

.btn-pink:hover {
  background: linear-gradient(100deg, #ff8db3, #f25a8d 58%, #ec4e83);
}

.btn-pink span {
  color: #fff;
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink-2);
}

.small-btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 12px;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--pink-2);
  border-color: var(--pink);
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  width: 100%;
  margin: 0;
  padding-inline: max(32px, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #101013;
  border: 1px solid rgba(236, 78, 131, 0.45);
  flex: none;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-word {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.brand-word b {
  color: var(--pink-2);
  font-weight: 800;
}

.brand-location {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.2em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 12px;
  color: #d6d2d8;
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--pink);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--pink-2);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-cta span {
  color: var(--pink-2);
}

.nav-cta:hover {
  border-color: var(--pink);
  color: var(--pink-2);
}

/* Вход в админку на десктопе: компактная кнопка в шапке */
.header-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #b9b4bd;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-admin svg {
  flex: none;
  color: var(--pink-2);
}

.header-admin:hover,
.header-admin:focus-visible {
  color: #fff;
  border-color: var(--pink);
  background: rgba(236, 78, 131, 0.08);
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-content: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu:hover {
  border-color: var(--pink);
}

.menu span {
  display: block;
  width: 16px;
  height: 1px;
  background: #eee;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-close span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-close span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  height: min(980px, 100svh);
  max-height: 1000px;
  overflow: hidden;
  background: #0a0a0d;
}

/* Фото hero: Rolls-Royce, локальная копия в assets.
   Внешние CDN не используются — сайт не зависит от сторонних сервисов. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: #0a0a0d;
  background-image: url("assets/hero-phantom.jpg");
  background-position: center 55%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.68) contrast(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 8, 11, 0.96) 0%, rgba(8, 8, 11, 0.86) 34%, rgba(8, 8, 11, 0.5) 62%, rgba(8, 8, 11, 0.18) 100%),
    linear-gradient(0deg, #0b0b0e 0%, rgba(11, 11, 14, 0.55) 26%, rgba(11, 11, 14, 0) 55%),
    linear-gradient(180deg, rgba(11, 11, 14, 0.6) 0%, rgba(11, 11, 14, 0) 24%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(158px, 20vh, 236px);
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: #f7f4f6;
}

.hero h1 em {
  font-style: normal;
  color: inherit;
}

.hero-desc {
  max-width: 430px;
  color: #b9b4bc;
  font-size: 14px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.hero-stats b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pink-2);
}

.hero-stats span {
  display: block;
  max-width: 210px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.services {
  padding-top: 108px;
}

.feature-service {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.feature-service.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.feature-service.reverse .feature-photo {
  order: 2;
}

.feature-photo {
  position: relative;
  min-height: 440px;
  background: #0d0d10;
}

.feature-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-service:hover .feature-photo img {
  transform: scale(1.03);
}

.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 11, 14, 0.35), rgba(11, 11, 14, 0.05));
  pointer-events: none;
}

/* Старые фотографии услуг из исходного шаблона — локальные копии */
.photo-polish {
  background-image:
    linear-gradient(0deg, rgba(9, 9, 12, 0.09), rgba(9, 9, 12, 0.09)),
    url("assets/works/photo-polish.jpg"),
    url("assets/works/work-mx5.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.photo-ceramic {
  background-image:
    linear-gradient(0deg, rgba(9, 9, 12, 0.09), rgba(9, 9, 12, 0.09)),
    url("assets/works/photo-ceramic.jpg"),
    url("assets/works/work-lexus.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.photo-film {
  background-image:
    linear-gradient(0deg, rgba(9, 9, 12, 0.09), rgba(9, 9, 12, 0.09)),
    url("assets/works/photo-film.jpg"),
    url("assets/works/work-camry.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service-info {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 34px;
  align-items: start;
  padding: 36px;
  min-width: 0;
}

.service-kind {
  color: var(--pink-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.service-main h3 {
  margin: 12px 0 12px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.service-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.price {
  display: block;
  margin: 18px 0 22px;
  color: #f0c3d2;
  font-size: 14px;
  font-weight: 600;
}

.price i {
  color: var(--pink);
  font-style: normal;
  margin: 0 4px;
}

.includes {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  min-width: 0;
}

.includes small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.includes ul {
  display: grid;
  gap: 10px;
}

.includes li {
  position: relative;
  padding-left: 16px;
  color: #c9c4cc;
  font-size: 12px;
  line-height: 1.5;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--pink);
  border-radius: 1px;
}

.price-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.price-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.price-list span {
  color: #c9c4cc;
}

.price-list b {
  color: #f0c3d2;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Каталог ---------- */

.catalog {
  padding-top: 94px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.catalog-card:hover {
  border-color: rgba(236, 78, 131, 0.55);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.catalog-card h3 {
  font-size: 17px;
  font-weight: 500;
}

.catalog-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.catalog-card b {
  margin-top: auto;
  padding-top: 20px;
  color: #f0c3d2;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Комплексы ---------- */

.bundles {
  padding-top: 94px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bundle-grid article {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 160px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.bundle-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(243, 154, 105, 0.7) 60%, transparent);
}

/* Фото-шапка карточки комплекса: растворяется в фоне, не мешает тексту */
.bundle-grid article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 152px;
  background-image: var(--bundle-photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bundle-grid article > * {
  position: relative;
  z-index: 1;
}

.bundle-shine {
  --bundle-photo: url("assets/works/bundle-bg-1.jpg");
}

.bundle-salon {
  --bundle-photo: url("assets/works/bundle-bg-2.jpg");
}

.bundle-shield {
  --bundle-photo: url("assets/works/bundle-bg-3.jpg");
}

.bundle-grid article:hover {
  border-color: rgba(236, 78, 131, 0.4);
  background: var(--panel-2);
}

.bundle-grid article:hover::after {
  opacity: 1;
}

.bundle-grid h3 {
  font-size: 20px;
  font-weight: 500;
}

.bundle-grid p {
  margin-top: 10px;
  color: #c9c4cc;
  font-size: 13px;
  line-height: 1.6;
}

.bundle-grid small {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.bundle-grid a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bundle-grid a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bundle-grid a:hover {
  color: #ffb0c9;
}

.bundle-grid a:hover span {
  transform: translate(2px, -2px);
}

.price-disclaimer {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- Как записаться ---------- */

.booking {
  margin-top: 104px;
  padding: 96px 0 100px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(236, 78, 131, 0.09), transparent 62%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  display: flex;
  gap: 18px;
  padding: 26px 24px;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--pink-2);
}

.steps h3 {
  font-size: 15px;
  font-weight: 600;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

/* ---------- Наши работы ---------- */

.works {
  padding-top: 104px;
}

.works-head {
  margin-bottom: 34px;
}

.works-carousel {
  position: relative;
}

/* Мягкое розовое свечение вокруг кадра — только оформление */
.works-carousel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(760px, 96%);
  height: 68%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(236, 78, 131, 0.16), rgba(236, 78, 131, 0) 72%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.works-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border: 1px solid rgba(236, 78, 131, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d10;
  box-shadow:
    0 50px 120px -60px rgba(236, 78, 131, 0.55),
    0 30px 60px -40px rgba(0, 0, 0, 0.9);
  touch-action: pan-y;
  outline-offset: 4px;
}

/* Тонкий розовый акцент в углу кадра */
.works-stage::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 5;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), rgba(236, 78, 131, 0));
  box-shadow: 0 0 10px rgba(236, 78, 131, 0.55);
  pointer-events: none;
}

.work-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 1.5s ease, transform 7s ease;
  will-change: opacity;
}

.work-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.work-slide img,
.work-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0d;
}

.work-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 54px 24px 22px;
  background: linear-gradient(0deg, rgba(8, 8, 11, 0.92), rgba(8, 8, 11, 0.45) 55%, transparent);
  pointer-events: none;
}

.work-slide figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

.work-slide figcaption span::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 9px rgba(236, 78, 131, 0.8);
  flex: none;
}

.works-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.works-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.works-arrow {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.7);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.works-arrow:hover {
  border-color: var(--pink);
  color: var(--pink-2);
  background: rgba(236, 78, 131, 0.08);
  box-shadow: 0 10px 26px -14px rgba(236, 78, 131, 0.65);
}

.works-arrow:active {
  transform: scale(0.95);
}

.works-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 100%;
}

.works-dot {
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.works-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.works-dot:hover::after {
  background: rgba(255, 255, 255, 0.55);
}

.works-dot[aria-selected="true"]::after {
  width: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink-2), var(--pink));
  box-shadow: 0 0 10px rgba(236, 78, 131, 0.6);
}

.works-toggle {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.7);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.works-toggle:hover {
  border-color: var(--pink);
  color: var(--pink-2);
}

.works-toggle[hidden] {
  display: none;
}

.works-toggle .icon-play {
  display: none;
}

.works-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.works-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.works-hint {
  margin-top: 12px;
  text-align: center;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}

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

.contacts {
  padding-top: 104px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-row small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-row p,
.contact-row a {
  color: #e7e3e8;
  font-size: 15px;
  line-height: 1.6;
}

.contact-row a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-row a:hover {
  color: var(--pink-2);
  border-color: var(--pink);
}

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

.map-panel {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.25s ease;
}

.map-panel:hover {
  border-color: rgba(236, 78, 131, 0.45);
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9e7e2;
}

.map-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(11, 11, 14, 0.86);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.map-link span {
  color: var(--pink-2);
  transition: transform 0.2s ease;
}

.map-link:hover {
  border-color: var(--pink);
  color: var(--pink-2);
  background: rgba(11, 11, 14, 0.94);
}

.map-link:hover span {
  transform: translate(2px, -2px);
}
/* ---------- Футер ---------- */

.footer {
  margin-top: 104px;
  padding-top: 64px;
  background: #08080b;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 52px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  border-color: var(--pink);
  color: var(--pink-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.footer-col h2 {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: #c9c4cc;
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--pink-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--pink-2);
}

/* ============================================================
   Адаптивность
   ============================================================ */

@media (max-width: 1100px) {
  :root {
    --shell: calc(100% - 48px);
  }

  .header {
    padding-inline: 24px;
  }

  .brand-word {
    font-size: 12px;
  }

  .nav {
    gap: 20px;
  }

  .service-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .includes {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 22px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.9fr)) minmax(0, 1.1fr);
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 76px;
  }

  .nav {
    display: none;
  }

  .menu {
    display: grid;
  }

  .header-admin {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .section-lead {
    justify-self: start;
    max-width: 560px;
  }

  .feature-service,
  .feature-service.reverse {
    grid-template-columns: 1fr;
  }

  .feature-service.reverse .feature-photo {
    order: 0;
  }

  .feature-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

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

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

  .bundle-grid article {
    min-height: 0;
    padding-top: 142px;
  }

  .bundle-grid article::after {
    height: 134px;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
    --header-h: 68px;
  }

  body {
    font-size: 14px;
  }

  .header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-word {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .brand-location {
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: 100svh;
    max-height: 920px;
  }

  .hero-photo {
    background-position: 62% center;
  }

  .hero-inner {
    padding-top: 128px;
  }

  .hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(36px, 10.4vw, 56px);
  }

  .hero-desc {
    font-size: 12px;
    max-width: 340px;
  }

  .hero-buttons {
    gap: 9px;
    margin-top: 24px;
  }

  .hero-buttons .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 11px;
  }

  .hero-stats {
    gap: 12px;
    padding: 18px 0 22px;
  }

  .hero-stats b {
    font-size: 15px;
  }

  .hero-stats span {
    font-size: 9px;
    line-height: 1.45;
  }

  .services,
  .catalog,
  .bundles,
  .booking,
  .works,
  .contacts {
    padding-top: 72px;
  }

  .booking {
    padding: 64px 0 68px;
    margin-top: 72px;
  }

  .footer {
    margin-top: 72px;
    padding-top: 48px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .feature-photo {
    aspect-ratio: 4 / 3;
  }

  .service-info {
    padding: 24px 20px 26px;
  }

  .service-main h3 {
    font-size: 20px;
  }

  .catalog-card {
    min-height: 180px;
    padding: 20px 18px;
  }

  .catalog-card h3 {
    font-size: 15px;
  }

  .catalog-card p {
    font-size: 11px;
  }

  .catalog-card b {
    font-size: 13px;
  }

  .works-stage {
    width: 100%;
    max-width: 480px;
  }

  .works-bar {
    flex-wrap: wrap;
    row-gap: 8px;
    gap: 8px;
  }

  .works-dots {
    order: 5;
    flex: 0 0 100%;
    gap: 0;
  }

  .works-toggle {
    order: 4;
  }

  .works-dot {
    width: 20px;
    height: 20px;
  }

  .works-arrow {
    width: 42px;
    height: 42px;
  }

  .map-panel {
    min-height: 250px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  :root {
    --shell: calc(100% - 26px);
  }

  .header {
    padding-inline: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-word {
    font-size: 10px;
  }

  .brand-location {
    display: none;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero-buttons .btn {
    padding: 0 14px;
    font-size: 10px;
  }

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

  .catalog-card {
    min-height: 0;
  }

  .catalog-card b {
    padding-top: 16px;
  }

  .works-stage {
    border-radius: 14px;
  }

  .work-slide figcaption {
    padding: 44px 18px 18px;
  }

  .socials .btn {
    flex: 1 1 auto;
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-stats b {
    background: linear-gradient(100deg, #ff7aa6, #f39a69);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .step-num {
    background: linear-gradient(160deg, var(--pink-2), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---------- Уважение к prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .work-slide {
    transition: none;
    transform: none;
  }

  .feature-service:hover .feature-photo img {
    transform: none;
  }
}

/* ---------- Форма заявки ---------- */

.lead-form-wrap {
  margin-top: 44px;
  padding: 30px;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.lead-form-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.lead-form-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}

.lead-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0b0b0e;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--pink);
}

.lead-form input[type="date"] {
  color-scheme: dark;
}

.lead-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.65;
  cursor: pointer;
}

.lead-hint {
  margin: -6px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--pink);
  flex: none;
}

.consent a {
  color: var(--pink-2);
}

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

.form-status {
  font-size: 13px;
  margin: 0;
}

.form-status.ok {
  color: #7be3a8;
}

.form-status.err {
  color: #ff8fa8;
}

.lead-form .btn {
  justify-self: start;
  min-width: 220px;
}

@media (max-width: 680px) {
  .lead-row {
    grid-template-columns: 1fr;
  }

  .lead-form-wrap {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .lead-modal {
    padding: 10px;
  }

  .lead-modal-panel {
    padding: 26px 18px 22px;
    max-height: 94vh;
    border-radius: 16px;
  }

  .lead-form {
    gap: 12px;
  }

  .lead-form .field input,
  .lead-form .field select,
  .lead-form .field textarea {
    padding: 10px 12px;
  }

  .lead-modal-panel .lead-form-sub {
    margin-bottom: 14px;
  }

  .lead-form .btn {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

/* ---------- Мобильное меню (оверлей) ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(236, 78, 131, 0.12), transparent 62%),
    rgba(8, 8, 11, 0.97);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 7vh;
}

.mobile-nav a {
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: #efecef;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

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

.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.17s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.23s; }

.mobile-nav a:hover {
  color: var(--pink-2);
}

.mobile-menu-bottom {
  margin-top: auto;
  display: grid;
  gap: 18px;
}

.mobile-menu-bottom .btn {
  width: 100%;
}

.mobile-menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-menu-contact {
  display: grid;
  gap: 4px;
}

.mobile-menu-meta a {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.mobile-menu-meta span {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Окно заявки ---------- */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(7px);
}

.lead-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 30px;
  background: #121216;
  border: 1px solid rgba(236, 78, 131, 0.2);
  border-radius: 18px;
  box-shadow: 0 50px 120px -50px rgba(236, 78, 131, 0.5);
  transform: translateY(16px) scale(0.99);
  transition: transform 0.28s ease;
}

.lead-modal.is-open .lead-modal-panel {
  transform: none;
}

.lead-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lead-modal-close:hover {
  border-color: var(--pink);
}

.lead-modal-close svg {
  display: block;
}

.lead-modal-panel .lead-form-sub {
  margin-bottom: 20px;
}

.lead-modal-panel .lead-form-title {
  padding-right: 46px;
}

/* ---------- Успешная отправка заявки ---------- */

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.success-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.success-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 38px 32px 28px;
  text-align: center;
  background:
    radial-gradient(460px 280px at 50% 0%, rgba(236, 78, 131, 0.17), transparent 72%),
    #121216;
  border: 1px solid rgba(236, 78, 131, 0.28);
  border-radius: 22px;
  box-shadow:
    0 50px 140px -45px rgba(236, 78, 131, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateY(24px) scale(0.94);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.success-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0.9;
}

.success-modal.is-open .success-panel {
  transform: none;
  opacity: 1;
}

.success-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.success-close:hover,
.success-close:focus-visible {
  border-color: var(--pink);
  color: var(--pink-2);
}

.success-close svg {
  display: block;
}

.success-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 78, 131, 0.2), rgba(236, 78, 131, 0.03) 70%);
  border: 1px solid rgba(236, 78, 131, 0.3);
  box-shadow: 0 0 44px rgba(236, 78, 131, 0.22);
}

.success-icon svg {
  width: 54px;
  height: 54px;
  overflow: visible;
}

.success-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
}

.success-circle-active {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  transform: rotate(-90deg);
  transform-origin: 26px 26px;
  animation: successRing 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.success-check {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: successTick 0.45s 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes successRing {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes successTick {
  to {
    stroke-dashoffset: 0;
  }
}

.success-overline {
  margin: 0 0 8px;
  color: var(--pink-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.success-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display, "Unbounded", sans-serif);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.success-text {
  max-width: 330px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.success-contact {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.success-contact a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.success-done {
  width: 100%;
}

.success-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .success-modal {
    padding: 14px;
  }

  .success-panel {
    padding: 32px 20px 24px;
    border-radius: 18px;
  }

  .success-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 15px;
  }

  .success-icon svg {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-modal,
  .success-panel,
  .success-close,
  .success-done {
    transition: none;
  }

  .success-circle-active,
  .success-check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu.is-open .mobile-nav a,
  .lead-modal,
  .lead-modal.is-open .lead-modal-panel {
    transition: none;
  }

  .mobile-nav a,
  .mobile-menu.is-open .mobile-nav a {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Вход в админ-панель ---------- */

.admin-fab {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 11, 14, 0.6);
  color: #d6d2d8;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-fab:hover {
  border-color: var(--pink);
  color: var(--pink-2);
  background: rgba(236, 78, 131, 0.1);
}

.admin-fab:active {
  transform: scale(0.94);
}

.admin-fab svg {
  display: block;
}

.login-modal-panel {
  width: min(380px, 100%);
}

.login-form {
  gap: 14px;
}

.login-form .btn {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

/* ---------- Страница политики ---------- */

.policy-page {
  background: var(--bg);
}

.policy-header {
  width: var(--shell);
  margin-inline: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.policy-back {
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.policy-back:hover {
  color: var(--pink-2);
}

.policy-wrap {
  max-width: 880px;
  padding: 56px 0 90px;
}

.policy-wrap h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 18px 0 20px;
}

.policy-meta {
  display: grid;
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.policy-meta b {
  color: var(--text);
  font-weight: 600;
}

.policy-meta a,
.policy-content a {
  color: var(--pink-2);
}

.policy-content h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 10px;
  color: var(--text);
}

.policy-content p {
  color: #c9c4cc;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 8px;
}

.policy-footer {
  padding: 20px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 11px;
}

.policy-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.policy-footer a:hover {
  color: var(--pink-2);
}

@media (max-width: 680px) {
  .policy-header {
    padding: 14px 0;
  }

  .policy-wrap {
    padding: 40px 0 60px;
  }

  .policy-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .policy-header {
    gap: 10px;
  }

  .policy-header .brand-location {
    display: none;
  }

  .policy-header .brand-word {
    font-size: 11px;
  }

  .policy-back {
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ---------- Экран загрузки ---------- */

html.preloading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(620px 420px at 50% 42%, rgba(124, 58, 237, 0.16), transparent 68%),
    #0b0b0e;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  animation: preloader-fallback 0s 3s forwards;
}

@keyframes preloader-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(420px, 84vw);
}

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

.preloader-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: #101013;
}

.preloader-word {
  color: #f3f0f2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.preloader-word b {
  color: var(--pink-2);
}

.preloader-car {
  width: min(340px, 82vw);
  height: auto;
  aspect-ratio: 340 / 120;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.28));
}

.preloader-car .car-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: preloader-draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.preloader-car .car-body { animation-delay: 0.02s; }
.preloader-car .car-window { animation-delay: 0.18s; }
.preloader-car .car-door { animation-delay: 0.3s; }
.preloader-car .car-grille,
.preloader-car .car-light { animation-delay: 0.38s; }
.preloader-car .car-wheel { animation-delay: 0.34s; }
.preloader-car .car-rim { animation-delay: 0.46s; }

@keyframes preloader-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-track {
  position: relative;
  width: min(300px, 76vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preloader-bar {
  display: block;
  position: relative;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #a855f7 55%, #ec4e83);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.75);
  transition: width 0.45s ease;
}

.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: preloader-shimmer 1.2s ease-in-out infinite;
}

@keyframes preloader-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.preloader-caption {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-car .car-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .preloader-bar::after {
    animation: none;
  }

  .preloader {
    transition: none;
  }
}