/* ==========================================================
   Safe Driver: премиальный минималистичный лендинг
   Палитра: чёрный #0B0B0B -> тёмно-зелёный #0A1A12, акцент серебро #C0C0C0
   Форма: кнопки - pill, карточки - 20px, поля и превью - 14px (единое правило)
   ========================================================== */

:root {
  --black: #0B0B0B;
  --green: #0A1A12;
  --emerald: #082E1E;
  --silver: #C0C0C0;
  --silver-hi: #F2F2F2;
  --silver-lo: #8E9390;
  --text: #E8EBE9;
  --muted: #A3ABA6;
  --line: rgba(192, 192, 192, .18);
  --line-strong: rgba(192, 192, 192, .42);
  --panel: rgba(255, 255, 255, .035);
  --err: #FF9A8F;

  --r-card: 20px;
  --r-field: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-accent: "Unbounded", "Montserrat", system-ui, sans-serif;
  --f-body: "Fira Sans", "Montserrat", system-ui, sans-serif;

  /* единая шкала слоёв */
  --z-header: 50;
  --z-player: 60;
  --z-modal: 100;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text);
  background-color: var(--black);
  /* снизу глубокий чёрный, к верху тёмно-зелёный */
  background-image: linear-gradient(0deg, var(--black) 0%, var(--black) 6%, var(--green) 55%, var(--emerald) 100%);
  background-repeat: no-repeat;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--silver); color: var(--black);
  z-index: var(--z-modal);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 22px; }

.btn--silver {
  color: #0B0B0B;
  background: linear-gradient(135deg, #F7F7F7 0%, #C0C0C0 45%, #9DA29F 70%, #E2E2E2 100%);
  box-shadow: 0 0 0 rgba(192, 192, 192, 0);
}
.btn--outline {
  color: var(--silver-hi);
  background: rgba(255, 255, 255, .02);
  border-color: var(--line-strong);
}
.btn__icon { width: 20px; height: 20px; }

.btn--glow { box-shadow: 0 0 28px rgba(192, 192, 192, .28), 0 0 2px rgba(255, 255, 255, .6); }

@media (hover: hover) and (pointer: fine) {
  .btn--silver:hover { box-shadow: 0 0 34px rgba(220, 224, 222, .45), 0 0 2px rgba(255, 255, 255, .8); }
  .btn--outline:hover { border-color: var(--silver); box-shadow: 0 0 24px rgba(192, 192, 192, .22), inset 0 0 14px rgba(192, 192, 192, .06); }
}

/* ---------- Плашка (Unbounded) ---------- */
.plate {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--f-accent);
  font-weight: 400;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(192, 192, 192, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 14, 11, .78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header__row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img {
  height: 50px; width: auto;
  filter: drop-shadow(0 0 10px rgba(192, 192, 192, .22));
}

.header__slogan {
  display: none;
  max-width: 250px;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--muted);
}
.header__cta { display: none; min-height: 42px; padding: 0 22px; }

.nav__list { display: flex; gap: 32px; }
.nav__list a {
  font-family: var(--f-head); font-weight: 500; font-size: .8125rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
@media (hover: hover) and (pointer: fine) { .nav__list a:hover { color: var(--silver-hi); } }
.nav__slogan { display: none; }

/* Мобильное меню */
.burger {
  width: 44px; height: 44px; margin-right: -8px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer; color: var(--silver-hi);
}
.burger span {
  width: 24px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    padding: 24px 20px 32px;
    background: rgba(8, 14, 11, .96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__slogan { display: block; margin-top: 20px; font-size: .875rem; color: var(--muted); }
}

@media (min-width: 1024px) {
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .header__row { gap: 28px; }
}
@media (min-width: 1180px) {
  .header__slogan { display: block; }
}

/* ---------- Появление при скролле ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  padding-top: 96px;
  isolation: isolate;
}
/* насыщенный изумрудный фон, поверх него едва заметный силуэт Porsche (оригинал фото, без пережатия) */
.hero { background: linear-gradient(180deg, #0B4A2F 0%, #082E1E 48%, #072A1B 100%); }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero.jpg") center 58% / cover no-repeat;
  opacity: .2;
  mix-blend-mode: luminosity;
  image-rendering: auto;
}
/* лёгкое затемнение по краям, чтобы белый текст оставался чётким */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 22, 14, .35) 0%, rgba(4, 22, 14, .2) 50%, rgba(4, 22, 14, .5) 100%);
}
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-bottom: 56px;
}
.hero__top {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
  padding-block: 24px;
}
.hero__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 7.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 22ch;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .5);
}

/* две кнопки в одну строку */
.hero__pair { display: flex; justify-content: center; gap: 12px; }

.hero__bottom { display: grid; justify-items: center; gap: 20px; width: 100%; }
.hero__cta { min-width: 240px; }

/* Скрытая кнопка "Остальные услуги смотреть" */
.more {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0;
  font-weight: 400; font-size: 1rem;
  color: var(--silver);
  background: none; border: 0; cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  transition: color .25s, border-color .25s;
}
.more__arrow { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.more[aria-expanded="true"] .more__arrow { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .more:hover { color: #fff; border-color: var(--silver); } }

.more__panel {
  width: 100%; max-width: 560px;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: rgba(8, 14, 11, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 40px rgba(192, 192, 192, .06);
  animation: panel-in .45s var(--ease);
}
.more__panel[hidden] { display: none; }
.more__list { display: grid; gap: 18px; }
.more__list h3 { font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: #fff; }
.more__list p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.more__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--silver); font-size: .9375rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* переливающаяся серебром разделительная полоса */
.shine-line {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: min(1240px, calc(100% - 40px));
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg,
    rgba(192, 192, 192, 0) 0%,
    rgba(142, 147, 144, .55) 18%,
    #fff 32%,
    rgba(192, 192, 192, .6) 46%,
    rgba(142, 147, 144, .45) 60%,
    #F2F2F2 76%,
    rgba(192, 192, 192, 0) 100%);
  background-size: 250% 100%;
  filter: drop-shadow(0 0 6px rgba(220, 224, 222, .5));
  animation: shine 6s linear infinite;
}
@keyframes shine { from { background-position: 0% 0; } to { background-position: -250% 0; } }

@media (max-width: 480px) {
  .hero__pair { gap: 8px; }
  .hero__pair .btn { padding: 0 14px; font-size: .6875rem; letter-spacing: .03em; }
}
@media (max-width: 340px) { .hero__pair { flex-wrap: wrap; } }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
}
.lead { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 1.0625rem; }
.plate--inline { margin-bottom: 20px; }

@media (min-width: 900px) { .section { padding: 128px 0; } }

/* ---------- Услуги (bento) ---------- */
.bento {
  margin-top: 48px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* тонкая серебряная линия сверху */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 224, 222, .7), transparent);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
}
.card__title { font-family: var(--f-head); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; color: #fff; }
.card__text { color: var(--muted); max-width: 56ch; font-size: 1rem; }

/* разные фоны ячеек, чтобы сетка не была плоской */
.card--a { background: radial-gradient(120% 90% at 85% 0%, rgba(34, 92, 64, .55), rgba(10, 26, 18, .2) 60%), var(--panel); }
.card--b { background: linear-gradient(160deg, rgba(192, 192, 192, .10), rgba(192, 192, 192, .02) 55%), var(--panel); }
.card--c {
  background:
    repeating-linear-gradient(135deg, rgba(192, 192, 192, .05) 0 1px, transparent 1px 14px),
    var(--panel);
}
.card--d { background: radial-gradient(100% 90% at 10% 100%, rgba(34, 92, 64, .45), rgba(10, 26, 18, .15) 60%), var(--panel); }
.card--e { background: linear-gradient(200deg, rgba(34, 92, 64, .35), rgba(192, 192, 192, .03) 60%), var(--panel); }
.card--f {
  background:
    radial-gradient(110% 100% at 100% 100%, rgba(192, 192, 192, .12), transparent 60%),
    var(--panel);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8), 0 0 30px rgba(192, 192, 192, .07); }
  .card:hover::after { transform: translateX(120%); }
}

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .card--a { grid-column: span 5; }
  .card--b { grid-column: span 7; }
  .card--c { grid-column: span 7; }
  .card--d { grid-column: span 5; }
  .card--e { grid-column: span 5; }
  .card--f { grid-column: span 7; }
  .card { padding: 40px 36px; }
}

/* ---------- Отзывы и галерея ---------- */
.rating { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.rating__text { color: var(--muted); font-size: .9375rem; }

.stars { display: flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; fill: #C0C0C0; filter: drop-shadow(0 0 6px rgba(192, 192, 192, .55)); }

/* компактный превью-блок */
.showcase {
  margin-top: 32px;
  max-width: 960px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(192, 192, 192, .08), transparent 70%),
    var(--panel);
  box-shadow: 0 0 44px rgba(192, 192, 192, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  min-height: 40px; padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  font-family: var(--f-head); font-weight: 500; font-size: .8125rem; letter-spacing: .04em;
  color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s, box-shadow .25s;
}
.tab[aria-selected="true"] {
  color: #0B0B0B;
  background: linear-gradient(135deg, #F7F7F7 0%, #C0C0C0 55%, #A5AAA7 100%);
  border-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: #fff; border-color: var(--line-strong); } }

.panel[hidden] { display: none; }
.strip {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 192, 192, .4) transparent;
}
.strip li { flex: 0 0 auto; scroll-snap-align: start; }

.thumb {
  display: block;
  width: clamp(150px, 42vw, 200px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  overflow: hidden;
  background: #070a09;
  cursor: zoom-in;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: brightness(.9); }
/* скриншоты: показываем начало переписки */
.thumb--shot img { object-position: top; }
.thumb:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .thumb:hover { border-color: var(--silver); box-shadow: 0 0 26px rgba(192, 192, 192, .25); }
  .thumb:hover img { transform: scale(1.04); filter: brightness(1.05); }
}
.showcase__hint { margin-top: 4px; font-size: .8125rem; color: var(--silver-lo); }

/* Instagram CTA */
.insta {
  margin-top: 72px;
  padding: 36px 24px;
  display: grid; gap: 24px; justify-items: start; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background:
    radial-gradient(80% 140% at 100% 50%, rgba(192, 192, 192, .12), transparent 60%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.insta__text {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem); line-height: 1.35;
  max-width: 34ch; color: #fff;
}
@media (min-width: 900px) {
  .insta { grid-template-columns: 1fr auto; padding: 44px 48px; gap: 48px; }
}

/* ---------- Просмотр изображения ---------- */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
}
.lightbox::backdrop { background: rgba(3, 6, 5, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { animation: fade-in .3s ease-out; }
.lb {
  position: relative;
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  padding: 16px 8px;
}
.lb__figure { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb__img {
  max-width: 100%; max-height: calc(100dvh - 96px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-field);
  box-shadow: 0 0 60px rgba(192, 192, 192, .16);
}
.lb__count { font-size: .875rem; color: var(--muted); letter-spacing: .06em; }
.lb__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 18, 14, .7);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .16s var(--ease);
}
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { border-color: var(--silver); box-shadow: 0 0 20px rgba(192, 192, 192, .3); } }
.lb__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.lb__prev { justify-self: start; }
.lb__next { justify-self: end; }
@media (min-width: 900px) { .lb { grid-template-columns: 80px 1fr 80px; padding: 24px; } .lb__btn { width: 52px; height: 52px; } }

/* ---------- Форма ---------- */
.form-wrap { display: grid; gap: 40px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-head); font-weight: 500; font-size: .8125rem;
  letter-spacing: .04em; color: var(--text);
}
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 15px 18px;
  font: inherit; font-weight: 400; color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8F9893; opacity: 1; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--silver-hi);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(192, 192, 192, .18), 0 0 22px rgba(192, 192, 192, .12);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field__err { font-size: .8125rem; color: var(--err); }
.field__err:empty { display: none; }

.field--check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field--check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer; display: grid; place-content: center;
  transition: border-color .2s, background-color .2s;
}
.field--check input::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid #0B0B0B; border-bottom: 2px solid #0B0B0B;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform .18s var(--ease);
}
.field--check input:checked { background: var(--silver); border-color: var(--silver-hi); }
.field--check input:checked::after { transform: rotate(-45deg) scale(1); }
.field--check label { font-family: var(--f-body); font-weight: 300; font-size: .9375rem; color: var(--muted); cursor: pointer; }
.field--check .field__err { grid-column: 2; }
.field--check.is-invalid input { border-color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .9375rem; }
.form__submit { width: 100%; margin-top: 4px; }
.form__submit[disabled] { opacity: .65; cursor: progress; }

@media (min-width: 900px) {
  .form-wrap { grid-template-columns: .8fr 1fr; gap: 80px; align-items: start; }
  .form__submit { width: auto; justify-self: start; min-width: 240px; }
}

/* ---------- Модальное окно ---------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: calc(100vw - 32px); width: 440px;
  margin: auto;
}
.modal::backdrop { background: rgba(3, 6, 5, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .45s var(--ease); }
.modal[open]::backdrop { animation: fade-in .35s ease-out; }
.modal__box {
  display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: 40px 28px 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(192, 192, 192, .16), transparent 70%),
    #0c1511;
  box-shadow: 0 0 60px rgba(192, 192, 192, .18), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.modal__check { width: 64px; height: 64px; filter: drop-shadow(0 0 12px rgba(192, 192, 192, .5)); }
.modal__title { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.modal__text { color: var(--muted); max-width: 32ch; margin-bottom: 8px; }

@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Подвал ---------- */
.footer {
  margin-top: 40px;
  padding: 72px 0 32px;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0, #070707 140px);
  border-top: 1px solid var(--line);
}
.footer__contacts { display: grid; gap: 28px; }
.contact { display: grid; gap: 6px; align-content: start; }
.contact__label { font-size: .8125rem; color: var(--muted); letter-spacing: .04em; }
.contact__value { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; color: #fff; transition: color .25s; }
.contact__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .contact__value:hover { color: var(--silver); } }

@media (min-width: 760px) {
  .footer__contacts { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* логотип с серебряным переливом */
.brand { display: grid; place-items: center; margin: 72px auto 8px; }
.brand__svg {
  width: min(380px, 78vw); height: auto;
  filter: drop-shadow(0 0 22px rgba(192, 192, 192, .18));
}

/* переключатель языка: серебряные буквы PL | UA | RU */
.lang { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 36px; }
.lang__btn {
  min-width: 52px; min-height: 44px; padding: 0 12px;
  font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: .2em; text-indent: .2em;
  background: linear-gradient(120deg, #fff 0%, var(--silver) 40%, var(--silver-lo) 70%, #e6e6e6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 0; cursor: pointer; position: relative;
  opacity: .5;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang__btn::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 7px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-hi), transparent);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.lang__btn[aria-pressed="true"] { opacity: 1; filter: drop-shadow(0 0 8px rgba(220, 224, 222, .55)); }
.lang__btn[aria-pressed="true"]::after { transform: scaleX(1); }
.lang__btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lang__btn:hover { opacity: 1; } }
.lang__sep { width: 1px; height: 16px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }

.footer__copy { margin-top: 12px; text-align: center; font-size: .8125rem; color: #7E8782; }

/* ---------- Фоновая музыка: серебряный плеер в стиле iPod nano ---------- */
.yt {
  position: fixed; left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden; pointer-events: none;
}

.ipod {
  --metal:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, rgba(0, 0, 0, .04) 1px 2px),
    linear-gradient(100deg, #E9EBEC 0%, #C4C7C9 22%, #F4F5F6 46%, #B5B9BB 70%, #DADDDF 100%);
  position: fixed;
  right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: var(--z-player);
  color: #fff;
}

/* корпус: алюминий */
.ipod__body {
  position: relative;
  width: 148px;
  padding: 10px 9px 14px;
  display: grid; gap: 14px; justify-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: var(--metal);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .6),
    0 0 28px rgba(220, 224, 222, .22),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -2px 5px rgba(0, 0, 0, .3);
  transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s;
}
.ipod[data-open="false"] .ipod__body {
  position: absolute; right: 0; bottom: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.82);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}

/* экран */
.ipod__screen {
  width: 100%; height: 202px;
  display: grid; grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid #050607;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 8px rgba(255, 255, 255, .06);
}
.ipod__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 5px;
  font-size: 8.5px; font-weight: 500; letter-spacing: .02em;
  background: linear-gradient(180deg, #4A4F54 0%, #1C1F22 100%);
  color: #F2F4F5;
}
.ipod__icons { display: flex; align-items: center; gap: 5px; }
.ipod__icons svg { height: 7px; width: auto; }
.ipod__st-play { opacity: 0; }
.ipod[data-playing="true"] .ipod__st-play { opacity: 1; }

.ipod__meta { padding: 5px 7px 3px; text-align: center; min-width: 0; }
.ipod__artist { font-size: 8.5px; line-height: 1.2; color: #C9CED1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipod__title { font-family: var(--f-head); font-weight: 700; font-size: 10.5px; line-height: 1.35; color: #fff; overflow: hidden; white-space: nowrap; }
.ipod__title span { display: inline-block; --shift: 0px; }
.ipod__title.is-scroll span { animation: ipod-marquee 9s ease-in-out infinite alternate; }
@keyframes ipod-marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(-1 * var(--shift))); } }

.ipod__art {
  margin: 2px 7px 4px;
  min-height: 0;
  border-radius: 2px;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 40%, #3A4044, #0E1113);
}
.ipod__art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

.ipod__prog {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px;
  padding: 0 6px;
  font-size: 7.5px; color: #D8DCDF; font-variant-numeric: tabular-nums;
}
.ipod__seek {
  --p: 0%;
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 14px; margin: 0; min-width: 0;
  background: transparent; cursor: pointer;
}
.ipod__seek:disabled { cursor: default; opacity: .6; }
.ipod__seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #F4F8FF 0 var(--p), #4B5155 var(--p) 100%);
}
.ipod__seek::-moz-range-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #F4F8FF 0 var(--p), #4B5155 var(--p) 100%);
}
.ipod__seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 10px; margin-top: -3px; background: #fff; border: 0; border-radius: 1px; }
.ipod__seek::-moz-range-thumb { width: 2px; height: 10px; background: #fff; border: 0; border-radius: 1px; }
.ipod__seek:focus-visible { outline: 1px solid #fff; outline-offset: 1px; }

.ipod__count { padding: 0 0 4px; text-align: center; font-size: 7.5px; color: #AEB4B8; }

/* колесо */
.ipod__wheel {
  position: relative;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2A2D2F 0%, #0C0D0E 70%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .15), 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(0, 0, 0, .5);
}
.ipod__center {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F8F9FA, #BFC3C5 55%, #8E9395);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(0, 0, 0, .35), 0 0 0 2px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.wbtn {
  position: absolute;
  display: grid; place-items: center;
  padding: 0; border: 0; background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: 8.5px; letter-spacing: .12em;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease), color .25s, filter .25s;
}
.wbtn:active { transform: scale(.9); }
.wbtn:disabled { opacity: .45; cursor: not-allowed; }
.wbtn:focus-visible { outline: 1px solid #fff; outline-offset: -3px; border-radius: 8px; }
.wbtn svg { width: 14px; height: 14px; }
.wbtn--menu { top: 3px; left: 50%; width: 56px; height: 30px; margin-left: -28px; }
.wbtn--prev { left: 3px; top: 50%; width: 30px; height: 56px; margin-top: -28px; }
.wbtn--next { right: 3px; top: 50%; width: 30px; height: 56px; margin-top: -28px; }
.wbtn--play { bottom: 3px; left: 50%; width: 56px; height: 30px; margin-left: -28px; }
.wbtn--play svg { width: 24px; height: 12px; }
.ipod[data-playing="true"] .wbtn--play { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .85)); }
@media (hover: hover) and (pointer: fine) { .wbtn:not(:disabled):hover { color: #D5DADD; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); } }

/* свёрнутый диск */
.ipod__disc {
  display: none;
  width: 56px; height: 56px;
  place-items: center;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .8);
  background: var(--metal);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55), 0 0 22px rgba(220, 224, 222, .3), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 4px rgba(0, 0, 0, .25);
  transition: transform .16s var(--ease), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.ipod__disc svg { width: 36px; height: 36px; }
.ipod__disc:active { transform: scale(.94); }
.ipod[data-open="false"] .ipod__disc { display: grid; }
.ipod__disc::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(220, 224, 222, .7);
  opacity: 0; pointer-events: none;
}
.ipod[data-playing="true"] .ipod__disc::after { animation: ipod-pulse 2.6s ease-out infinite; }
@keyframes ipod-pulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- Широкие экраны (4K) ---------- */
@media (min-width: 1700px) {
  html { font-size: 112.5%; }
  .container { max-width: 1480px; }
  :root { --header-h: 80px; }
}
@media (min-width: 2400px) {
  html { font-size: 137.5%; }
  .container { max-width: 1800px; }
}

/* ---------- Уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .card::after { display: none; }
  .shine-line { animation: none; background-position: -60% 0; }
  .ipod[data-playing="true"] .ipod__disc::after { animation: none; }
  .ipod__title.is-scroll span { animation: none; }
  .modal[open], .modal[open]::backdrop, .lightbox[open], .more__panel { animation: none; }
}
