/* tula-tvremont.ru — Black & Neon Lemon Theme
   Minimal, modern, Tula TV repair landing
   ---------------------------------------------- */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-800.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/onest-400.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/onest-500.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-600.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F;
}

/* ---------- 2. Variables — Black & Neon Lemon (#F9F71A) ---------- */
:root {
  /* Palette */
  --bg:           #0A0A0A;
  --bg-2:         #111111;
  --card:         #161616;
  --card-hover:   #1E1E1E;
  --border:       rgba(255, 255, 255, 0.06);
  --border-bright: rgba(249, 247, 26, 0.45);

  --accent:       #F9F71A;
  --accent-hover: #FBFA48;
  --accent-soft:  #CACA00;
  --accent-dim:   rgba(249, 247, 26, 0.12);
  --gold-warm:    #E0DE00;
  --gold-cool:    #FCFB85;

  /* Gradient — diagonal acid-gold shimmer */
  --grad-accent: linear-gradient(135deg, #E0DE00 0%, #F9F71A 45%, #FBFA48 75%, #FCFB85 100%);
  --grad-accent-hover: linear-gradient(135deg, #F9F71A 0%, #FBFA48 50%, #FCFB85 100%);

  --text:         #F4F4F4;
  --text-muted:   #A0A0A0;
  --text-dim:     #6B6B6B;

  /* Typography */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --section-py: clamp(60px, 8vw, 120px);

  /* Glow */
  --glow-accent:  0 0 36px rgba(249, 247, 26, 0.42), 0 0 14px rgba(249, 247, 26, 0.6);
  --glow-warm:    0 0 28px rgba(224, 222, 0, 0.5);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow:    0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- 3. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

/* ---------- 4. Layout helpers ---------- */
.container { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

.section { padding-block: var(--section-py); position: relative; }
.section--alt { background: var(--bg-2); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: var(--accent-dim);
  margin-bottom: 20px;
}

.section-title { max-width: 760px; margin-bottom: 16px; }
.section-lead { max-width: 680px; font-size: 1.05rem; color: #fff; margin-bottom: 48px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Shimmer — recurring light sweep */
.btn--shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes btnShine {
  0%        { left: -150%; }
  55%, 100% { left: 150%; }
}

.btn--primary {
  background: var(--grad-accent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: #0A0A0A;
  box-shadow: var(--glow-accent);
  transition: all .35s ease, background-position .8s ease;
}
.btn--primary:hover {
  background: var(--grad-accent-hover);
  background-size: 200% 200%;
  background-position: 100% 100%;
  color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow: 0 0 56px rgba(249, 247, 26, 0.65), 0 0 20px rgba(249, 247, 26, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-bright);
  color: #fff;
  background: var(--accent-dim);
}
/* On ghost — gold sweep instead of white */
.btn--ghost.btn--shine::before {
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 20%,
    rgba(249, 247, 26, 0.35) 50%,
    transparent 80%,
    transparent 100%
  );
}

.btn--lg { padding: 16px 32px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .btn--shine::before { animation: none; display: none; }
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 16px;
  background: rgba(11, 16, 32, 0.0);
  transition: background .25s ease, padding .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding-block: 10px;
}

.nav__inner { display: flex; align-items: center; gap: 32px; }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: #fff; }
.nav__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.nav__logo-mark svg { width: 20px; height: 20px; color: #0A0A0A; }

.nav__logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(249, 247, 26, 0.35));
  transition: transform .25s ease, filter .25s ease;
  transform-origin: 50% 50%;
  animation: logoEntrance 1.1s ease-in-out .1s 1 both;
}
@keyframes logoEntrance {
  0%   { opacity: 0; transform: scale(0.9) rotate(0deg); }
  20%  { opacity: 1; transform: scale(1) rotate(-22deg); }
  50%  { transform: scale(1) rotate(18deg); }
  78%  { transform: scale(1) rotate(-9deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.nav__logo:hover .nav__logo-img {
  transform: rotate(-8deg) scale(1.1);
  filter: drop-shadow(0 0 20px rgba(249, 247, 26, 0.65));
}
.nav__logo:active .nav__logo-img,
.nav__logo:focus-visible .nav__logo-img {
  animation: none;
  transform: rotate(-18deg) scale(1.2);
  filter:
    drop-shadow(0 0 28px rgba(249, 247, 26, 0.95))
    drop-shadow(0 0 8px rgba(249, 247, 26, 1));
  transition: transform .12s cubic-bezier(.34, 1.56, .64, 1), filter .15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav__logo-img { animation: none; }
}

.nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav__menu a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav__menu a:hover { color: var(--accent); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 10px 18px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  transition: all .2s ease;
}
.nav__phone:hover {
  color: #0A0A0A;
  background: var(--accent);
  box-shadow: var(--glow-accent);
  border-color: var(--accent);
}
.nav__phone svg { width: 16px; height: 16px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger svg { width: 22px; height: 22px; color: var(--text); }

.nav__phone-mobile {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0A0A0A;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(249, 247, 26, 0.45);
  transition: transform .2s ease;
}
.nav__phone-mobile:hover { color: #0A0A0A; transform: scale(1.05); }
.nav__phone-mobile svg { width: 20px; height: 20px; }

/* ---------- 7. Hero slider ---------- */
.hero {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  background: var(--bg);
}
.hero__swiper {
  width: 100%;
  height: clamp(560px, 80vh, 820px);
  position: relative;
}
.hero__slide {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__slide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.35) 35%,
    rgba(10, 10, 10, 0.75) 70%,
    #0A0A0A 100%);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero__slide::after { height: 160px; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 18s ease-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.12); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 50%, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.55) 60%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.95) 100%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url('/assets/img/hero-pattern-2880.webp?v=6') type('image/webp'),
    url('/assets/img/hero-pattern-2880.jpg?v=6')  type('image/jpeg')
  );
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
}
@media (max-width: 1200px) {
  .hero__pattern {
    background-image: image-set(
      url('/assets/img/hero-pattern-1920.webp?v=6') type('image/webp'),
      url('/assets/img/hero-pattern-1920.jpg?v=6')  type('image/jpeg')
    );
  }
}
@media (max-width: 768px) {
  .hero__pattern {
    background-image: image-set(
      url('/assets/img/hero-pattern-mobile-1080.webp?v=4') type('image/webp'),
      url('/assets/img/hero-pattern-mobile-1080.jpg?v=4')  type('image/jpeg')
    );
    background-position: center center;
    opacity: 0.5;
  }
}
@media (max-width: 480px) {
  .hero__pattern {
    background-image: image-set(
      url('/assets/img/hero-pattern-mobile-768.webp?v=4') type('image/webp'),
      url('/assets/img/hero-pattern-mobile-768.jpg?v=4')  type('image/jpeg')
    );
  }
}

/* Скрыть overlay и grid на всех экранах — pattern показывается равномерно */
.hero__overlay,
.hero__grid { display: none; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 247, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 247, 26, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.6;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 760px;
  padding: 100px 20px 60px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-warm);
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}
.hero__title span {
  display: inline-block;
  position: relative;
  background: linear-gradient(110deg, #E0DE00 0%, #F9F71A 35%, #FBFA48 65%, #FCFB85 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroGoldShift 5s ease-in-out infinite alternate;
}
.hero__title span::after {
  content: '';
  position: absolute;
  inset: -8px -12px;
  background: var(--gold-warm);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.22;
  filter: blur(22px);
}
@keyframes heroGoldShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text);
  max-width: 580px;
  margin-bottom: 36px;
  opacity: 0.9;
}
.hero__lead-short { display: none; }
.hero__title-sub { display: inline; }
@media (max-width: 768px) {
  .hero__title-sub { display: none; }
  .hero__lead-full  { display: none; }
  .hero__lead-short { display: inline; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 580px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.hero__badge svg { width: 18px; height: 18px; color: var(--gold-warm); flex-shrink: 0; }

/* Swiper overrides */
.hero .swiper-pagination {
  position: absolute;
  bottom: 28px !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
  transition: all .3s ease;
}
.hero .swiper-pagination-bullet-active {
  background: var(--accent);
  box-shadow: var(--glow-accent);
  width: 56px;
}
.hero .swiper-button-prev,
.hero .swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: #fff;
  transition: all .25s ease;
  z-index: 3;
}
.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.hero .swiper-button-prev::after,
.hero .swiper-button-next::after { font-size: 18px; font-weight: 800; }

/* Hide nav/pagination if only 1 slide */
.hero__swiper.swiper--single .swiper-button-prev,
.hero__swiper.swiper--single .swiper-button-next,
.hero__swiper.swiper--single .swiper-pagination { display: none; }

/* ---------- 7.5. Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 168px;
  right: 62px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 39;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .3s,
              background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  padding: 0;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.scroll-top svg { width: 22px; height: 22px; transition: transform .25s ease; }
.scroll-top:hover {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(249, 247, 26, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.05);
}
.scroll-top:hover svg { transform: translateY(-2px); }
.scroll-top:active {
  transform: translateY(-1px) scale(0.98);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 138px;
    right: 44px;
    width: 44px;
    height: 44px;
  }
  .scroll-top svg { width: 18px; height: 18px; }
}

/* ---------- 8. Floating phone widget ---------- */
.fab-phone {
  position: fixed;
  bottom: 78px;
  right: 48px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: grid;
  place-items: center;
  color: #0A0A0A;
  box-shadow:
    0 0 0 6px rgba(249, 247, 26, 0.15),
    0 0 56px rgba(249, 247, 26, 0.65),
    0 0 22px rgba(249, 247, 26, 0.85),
    0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 40;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fabPulse 2.4s ease-in-out infinite;
}
.fab-phone::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #E0DE00, #FBFA48, #FCFB85, #F9F71A, #E0DE00);
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  animation: fabRotate 6s linear infinite;
}
.fab-phone:hover {
  transform: scale(1.1);
  color: #0A0A0A;
  box-shadow:
    0 0 0 8px rgba(249, 247, 26, 0.22),
    0 0 72px rgba(249, 247, 26, 0.8),
    0 0 30px rgba(249, 247, 26, 1),
    0 14px 36px rgba(0, 0, 0, 0.55);
}
.fab-phone svg {
  width: 30px;
  height: 30px;
  animation: fabRing 1.6s ease-in-out infinite;
  transform-origin: 50% 35%;
}
@keyframes fabRing {
  0%, 100% { transform: rotate(0); }
  10%      { transform: rotate(-12deg); }
  20%      { transform: rotate(12deg); }
  30%      { transform: rotate(-8deg); }
  40%      { transform: rotate(8deg); }
  50%      { transform: rotate(0); }
}
@keyframes fabPulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(249, 247, 26, 0.15),
      0 0 56px rgba(249, 247, 26, 0.65),
      0 0 22px rgba(249, 247, 26, 0.85),
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(249, 247, 26, 0.65);
  }
  70% {
    box-shadow:
      0 0 0 6px rgba(249, 247, 26, 0.15),
      0 0 56px rgba(249, 247, 26, 0.65),
      0 0 22px rgba(249, 247, 26, 0.85),
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 30px rgba(249, 247, 26, 0);
  }
}
@keyframes fabRotate {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fab-phone, .fab-phone::before, .fab-phone svg { animation: none; }
}

/* ---------- 9. Footer ---------- */
.footer {
  position: relative;
  background-color: #0A0A0A;
  background-image: image-set(
    url('/assets/img/footer-bg-1920.webp?v=2') type('image/webp'),
    url('/assets/img/footer-bg-1920.jpg?v=2')  type('image/jpeg')
  );
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-top: none;
  padding-block: 100px 32px;
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  isolation: isolate;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.95),
     1px -1px 0 rgba(0, 0, 0, 0.95),
    -1px  1px 0 rgba(0, 0, 0, 0.95),
     1px  1px 0 rgba(0, 0, 0, 0.95),
     0  0  6px rgba(0, 0, 0, 0.95),
     0  0 14px rgba(0, 0, 0, 0.8),
     0  2px 4px rgba(0, 0, 0, 1);
}
.footer p { color: #fff; }
.footer > .container { position: relative; z-index: 3; }
.footer svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); }

/* Top fade — растворяем верх картинки в чёрный фон сайта */
.footer__top-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(180deg,
    #0A0A0A 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.4)  65%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Sweep — чёрная завеса + 3 жёлтые «вспышки» (соты зажигаются) */
.footer__sweep {
  position: absolute;
  inset: 0;
  background: #0A0A0A;
  z-index: 4;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.5s ease-out;
  overflow: hidden;
}
.footer__spark {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 247, 26, 0.65) 0%, rgba(249, 200, 26, 0.35) 30%, transparent 70%);
  filter: blur(28px);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  mix-blend-mode: screen;
}
.footer__spark--1 { top: 25%; left: 15%; }
.footer__spark--2 { top: 55%; right: 18%; width: 380px; height: 380px; }
.footer__spark--3 { top: 35%; left: 55%; width: 260px; height: 260px; }

.footer.is-revealed .footer__sweep { opacity: 0; }
.footer.is-revealed .footer__spark--1 { animation: footerSpark 1.6s cubic-bezier(.4, 0, .2, 1) 0s    forwards; }
.footer.is-revealed .footer__spark--2 { animation: footerSpark 1.7s cubic-bezier(.4, 0, .2, 1) 0.18s forwards; }
.footer.is-revealed .footer__spark--3 { animation: footerSpark 1.5s cubic-bezier(.4, 0, .2, 1) 0.35s forwards; }

@keyframes footerSpark {
  0%   { opacity: 0;    transform: scale(0.4); }
  35%  { opacity: 1;    transform: scale(1.25); }
  100% { opacity: 0;    transform: scale(2.2); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__sweep { opacity: 0; transition: none; }
  .footer__spark { animation: none !important; display: none; }
}

@media (max-width: 1200px) {
  .footer {
    background-image: image-set(
      url('/assets/img/footer-bg-1200.webp?v=2') type('image/webp'),
      url('/assets/img/footer-bg-1200.jpg?v=2')  type('image/jpeg')
    );
  }
}

@media (max-width: 768px) {
  .footer {
    background-image: image-set(
      url('/assets/img/footer-bg-mobile-1080.webp') type('image/webp'),
      url('/assets/img/footer-bg-mobile-1080.jpg')  type('image/jpeg')
    );
    background-position: center center;
  }
}
@media (max-width: 480px) {
  .footer {
    background-image: image-set(
      url('/assets/img/footer-bg-mobile-768.webp') type('image/webp'),
      url('/assets/img/footer-bg-mobile-768.jpg')  type('image/jpeg')
    );
  }
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { color: #fff; transition: color .2s ease; }
.footer__list a:hover,
.footer__list a:active,
.footer__list a:focus-visible { color: var(--accent); }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  isolation: isolate;
}
.footer__brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.footer__brand-mark svg { width: 22px; height: 22px; color: #0A0A0A; }

/* Electric discharge shockwave behind logo */
.footer__brand::before {
  content: '';
  position: absolute;
  left: 22px; top: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 220, 0.9) 0%,
    rgba(249, 247, 26, 0.6) 25%,
    rgba(249, 200, 26, 0.2) 55%,
    transparent 80%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
  mix-blend-mode: screen;
}
.footer.is-revealed .footer__brand::before {
  animation: brandShockwave 1s ease-out 0.25s 1;
}

.footer__brand-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.55) rotate(-22deg);
  filter: drop-shadow(0 0 0 rgba(249, 247, 26, 0)) blur(6px);
  position: relative;
  z-index: 1;
}
.footer.is-revealed .footer__brand-img {
  animation: brandZap 0.9s cubic-bezier(.34, 1.56, .64, 1) 0.3s forwards;
}

/* Hover / tap re-trigger */
.footer__brand:hover .footer__brand-img,
.footer__brand:active .footer__brand-img,
.footer__brand:focus-visible .footer__brand-img {
  animation: brandZapHover 0.6s ease-out;
}
.footer__brand:hover::before,
.footer__brand:active::before,
.footer__brand:focus-visible::before {
  animation: brandShockwave 0.7s ease-out;
}

@keyframes brandShockwave {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0); }
  35%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.6); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(3.4); }
}
@keyframes brandZap {
  0%   {
    opacity: 0;
    transform: scale(0.55) rotate(-22deg);
    filter: drop-shadow(0 0 0 rgba(249, 247, 26, 0)) blur(6px);
  }
  45%  {
    opacity: 1;
    transform: scale(1.38) rotate(10deg);
    filter: drop-shadow(0 0 22px rgba(249, 247, 26, 1)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) blur(0);
  }
  72%  {
    transform: scale(0.94) rotate(-4deg);
    filter: drop-shadow(0 0 16px rgba(249, 247, 26, 0.85)) blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 12px rgba(249, 247, 26, 0.5)) blur(0);
  }
}
@keyframes brandZapHover {
  0%   { transform: scale(1) rotate(0); filter: drop-shadow(0 0 12px rgba(249, 247, 26, 0.5)); }
  40%  { transform: scale(1.2) rotate(8deg); filter: drop-shadow(0 0 26px rgba(249, 247, 26, 1)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)); }
  100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 12px rgba(249, 247, 26, 0.5)); }
}

@media (prefers-reduced-motion: reduce) {
  .footer__brand-img { opacity: 1; transform: none; filter: drop-shadow(0 0 12px rgba(249, 247, 26, 0.5)); animation: none !important; }
  .footer__brand::before { display: none; }
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer__about { color: #fff; line-height: 1.6; margin-bottom: 16px; }

.footer__contact { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer__contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.footer__contact a, .footer__contact span { color: #fff; transition: color .2s ease; }
.footer__contact a:hover,
.footer__contact a:active,
.footer__contact a:focus-visible { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #fff;
}
.footer__bottom a { color: #fff; transition: color .2s ease; }
.footer__bottom a:hover,
.footer__bottom a:active,
.footer__bottom a:focus-visible { color: var(--accent); }
.footer__legal { margin-left: auto; }

/* ---------- 10. Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.service-card__text { color: #fff; margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.service-card__price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ---------- 11. Lead form ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.form-info h2 { margin-bottom: 16px; }
.form-info p { font-size: 1.05rem; color: #fff; }
.form-info__list { list-style: none; padding: 0; margin: 24px 0 0; }
.form-info__list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; color: var(--text);
}
.form-info__list svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}

.lead-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.lead-form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.lead-form__sub { color: #fff; font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #0A0A0A;
}
.field textarea { resize: vertical; min-height: 100px; }
.field--honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.lead-form .btn { width: 100%; margin-top: 8px; }
.lead-form__legal { font-size: 12px; color: var(--text-dim); margin: 16px 0 0; line-height: 1.5; text-align: center; }
.lead-form__legal a { color: var(--text-muted); text-decoration: underline; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.form-status.is-success { display: block; background: rgba(34, 197, 94, 0.12); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.3); }
.form-status.is-error { display: block; background: rgba(239, 68, 68, 0.12); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ---------- 12. Prices table ---------- */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prices-table thead {
  background: rgba(249, 247, 26, 0.06);
  border-bottom: 1px solid var(--border-bright);
}
.prices-table th {
  text-align: left;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.prices-table td {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.prices-table tr:hover td { background: rgba(249, 247, 26, 0.03); }
.prices-table td:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-hover);
  text-align: right;
  white-space: nowrap;
}
.prices-note { margin-top: 16px; color: var(--text-dim); font-size: 13px; text-align: center; }

/* ---------- 13. Discount banner ---------- */
.discount-banner {
  position: relative;
  background: linear-gradient(135deg, #1A1308 0%, #2A1F0A 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  overflow: hidden;
}
.discount-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.discount-banner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}
.discount-item__percent {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.discount-item__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.discount-item__sub { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- 14. Brands ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: all .25s ease;
}
.brand-card:hover {
  border-color: var(--border-bright);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 15. How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.how-step {
  position: relative;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.4, 0, .2, 1),
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
  cursor: default;
  isolation: isolate;
}
.how-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.2;
  line-height: 1;
  transition: opacity .35s ease, transform .4s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}
.how-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(249, 247, 26, 0.14) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.how-step > * { position: relative; z-index: 2; }

.how-step__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  margin-bottom: 20px;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}
.how-step__icon svg { width: 22px; height: 22px; transition: transform .35s ease; }
.how-step h3 { font-size: 1.05rem; margin-bottom: 8px; transition: color .25s ease; }
.how-step p { font-size: 14px; margin: 0; color: #fff; }

/* Hover (desktop) + Active (touch) + Focus (keyboard) */
.how-step:hover,
.how-step:focus-within,
.how-step:active {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(249, 247, 26, 0.22);
}
.how-step:hover::before,
.how-step:focus-within::before,
.how-step:active::before {
  opacity: 0.55;
  transform: translate(6px, -4px) scale(1.08);
}
.how-step:hover::after,
.how-step:focus-within::after,
.how-step:active::after { opacity: 1; }

.how-step:hover .how-step__icon,
.how-step:focus-within .how-step__icon,
.how-step:active .how-step__icon {
  background: var(--grad-accent);
  border-color: var(--accent);
  color: #0A0A0A;
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 22px rgba(249, 247, 26, 0.5);
}
.how-step:hover .how-step__icon svg,
.how-step:focus-within .how-step__icon svg,
.how-step:active .how-step__icon svg {
  transform: scale(1.1);
}
.how-step:hover h3,
.how-step:focus-within h3,
.how-step:active h3 { color: var(--accent); }

/* Mobile tap — instant feedback */
@media (hover: none) {
  .how-step { transition-duration: .2s; }
  .how-step:active { transform: translateY(-3px) scale(0.99); }
}

/* ---------- 16. Reviews ---------- */
.reviews-swiper { padding-bottom: 50px !important; }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: auto;
}
.review-card__stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--gold-warm);
}
.review-card__stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-card__text {
  color: var(--text);
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
}
.review-card__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.review-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.review-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  margin: 0;
}
.review-card__meta { color: var(--text-dim); font-size: 13px; margin: 0; }

.reviews-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.4;
}
.reviews-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

/* ---------- 17. FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item.is-open { border-color: var(--border-bright); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-item__q::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q::after { transform: rotate(-135deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item__a-inner {
  padding: 0 28px 22px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.is-open .faq-item__a { max-height: 500px; }

/* ---------- 18. Contacts ---------- */
.contacts-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contacts-info--center {
  max-width: 640px;
  margin: 0 auto;
}
.contacts-info__row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.contacts-info__row:first-child { padding-top: 0; }
.contacts-info__row:last-child { border-bottom: none; padding-bottom: 0; }
.contacts-info__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  flex-shrink: 0;
}
.contacts-info__icon svg { width: 18px; height: 18px; }
.contacts-info__label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contacts-info__value { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 17px; line-height: 1.35; }
.contacts-info__value a { color: #fff; }
.contacts-info__value a:hover { color: var(--accent); }

/* ---------- 19. Mobile menu (drawer) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
}
.mobile-menu__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(249, 247, 26, 0.4);
}
.mobile-menu__brand-mark svg { width: 18px; height: 18px; color: #0A0A0A; }
.mobile-menu__brand-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(249, 247, 26, 0.4));
  transition: transform .25s ease, filter .25s ease;
  transform-origin: 50% 50%;
}
.mobile-menu__brand:active .mobile-menu__brand-img {
  transform: rotate(-18deg) scale(1.2);
  filter:
    drop-shadow(0 0 28px rgba(249, 247, 26, 0.95))
    drop-shadow(0 0 8px rgba(249, 247, 26, 1));
  transition: transform .12s cubic-bezier(.34, 1.56, .64, 1);
}
.mobile-menu__close {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu__list li { border-bottom: 1px solid var(--border); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  transition: color .2s ease, padding .2s ease;
}
.mobile-menu__list a::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-top: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: border-color .2s ease, transform .2s ease;
}
.mobile-menu__list a:active,
.mobile-menu__list a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu__list a:hover::after { border-color: var(--accent); transform: translateX(4px) rotate(45deg); }

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 20px;
}
.mobile-menu__hours {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  justify-content: center;
}
.mobile-menu__hours svg { width: 16px; height: 16px; color: var(--accent); }
.mobile-menu__phone { width: 100%; margin-top: 0; }

/* ---------- 19.5 Quiz / Calculator ---------- */
.quiz {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.quiz::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.quiz__bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.quiz__bar-fill {
  height: 100%;
  width: 16.66%;
  background: var(--grad-accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(249, 247, 26, 0.5);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.quiz__counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.quiz__counter span { color: var(--accent); }

.quiz__form { position: relative; }
.quiz__step { display: none; animation: quizFade .4s ease both; }
.quiz__step.is-active { display: block; }
@keyframes quizFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes quizShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.quiz__q {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.3;
}

.quiz__options { display: grid; gap: 12px; }
.quiz__options--grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.quiz__options--row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quiz__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  user-select: none;
}
.quiz__opt:hover {
  border-color: var(--border-bright);
  background: var(--card-hover);
  color: #fff;
}
.quiz__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz__opt-mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: all .2s ease;
}
.quiz__opt-mark::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-accent);
  transform: scale(0);
  transition: transform .2s ease;
}
.quiz__opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 18px rgba(249, 247, 26, 0.18);
}
.quiz__opt:has(input:checked) .quiz__opt-mark {
  border-color: var(--accent);
}
.quiz__opt:has(input:checked) .quiz__opt-mark::after {
  transform: scale(1);
}

/* Final step */
.quiz__step--final { text-align: center; max-width: 540px; margin: 0 auto; }
.quiz__step--final .quiz__q { text-align: center; }
.quiz__final-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0A0A0A;
  margin: 0 auto 18px;
  box-shadow: var(--glow-accent);
}
.quiz__final-icon svg { width: 32px; height: 32px; }
.quiz__final-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.quiz__field { margin-bottom: 14px; text-align: left; }
.quiz__field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.quiz__field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
  font-family: inherit;
}
.quiz__field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #0A0A0A;
}
.quiz__field--honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.quiz__legal { font-size: 12px; color: var(--text-dim); margin: 14px 0 18px; line-height: 1.5; }
.quiz__legal a { color: var(--text-muted); text-decoration: underline; }

.quiz__status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin: 12px 0 0; font-size: 14px; text-align: center; }
.quiz__status.is-success { display: block; background: rgba(34, 197, 94, 0.12); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.3); }
.quiz__status.is-error { display: block; background: rgba(239, 68, 68, 0.12); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.quiz__nav {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  flex-wrap: wrap;
}
.quiz__nav .btn { min-width: 160px; }
.quiz__nav #quizNext, .quiz__nav #quizSubmit { margin-left: auto; }
.quiz__nav .btn:disabled { opacity: .35; cursor: not-allowed; }
.quiz__nav .btn:disabled:hover { transform: none; }

@media (max-width: 768px) {
  .quiz { padding: 24px 18px; }
  .quiz__progress { gap: 12px; margin-bottom: 24px; }
  .quiz__counter { font-size: 12px; }
  .quiz__opt { padding: 14px 16px; font-size: 14px; }
  .quiz__options--row, .quiz__options--grid { grid-template-columns: 1fr 1fr; }
  .quiz__nav { gap: 10px; }
  .quiz__nav .btn { min-width: 0; flex: 1; padding: 12px 18px; font-size: 14px; }
}
@media (max-width: 380px) {
  .quiz { padding: 20px 14px; }
  .quiz__options--row, .quiz__options--grid { grid-template-columns: 1fr; }
}

/* ---------- 20. Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
  pointer-events: none;
}
.cookie-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-notice__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  flex-shrink: 0;
}
.cookie-notice__icon svg { width: 22px; height: 22px; }
.cookie-notice__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.cookie-notice__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-notice__btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: all .2s ease;
}
.cookie-notice__btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(249, 247, 26, 0.4);
}

@media (max-width: 576px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .cookie-notice__icon { margin: 0 auto; }
  .cookie-notice__btn { width: 100%; padding: 12px; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 992px) {
  .nav__menu, .nav__phone { display: none; }
  .nav__burger, .nav__phone-mobile { display: inline-flex; }
  .nav__inner { gap: 12px; }
  .nav__menu { margin-left: auto; }
  .nav__phone-mobile { margin-left: auto; }

  .hero__swiper { height: auto; min-height: 580px; }
  .hero__content { padding: 110px 20px 70px; }

  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .discount-banner { padding: 40px 28px; }

  .section-lead { margin-bottom: 36px; }
  :root { --section-py: clamp(56px, 8vw, 96px); }
}

@media (max-width: 768px) {
  .container { padding-inline: 16px; }

  .hero__content { padding: 100px 16px 56px; text-align: center; }
  .hero__title { font-size: clamp(1.85rem, 7vw, 2.5rem); line-height: 1.15; margin-bottom: 18px; }
  .hero__lead { font-size: 1rem; margin: 0 auto 28px; max-width: 460px; }
  .hero__eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 32px; justify-content: center; }
  .hero__cta .btn { width: 100%; padding: 14px 24px; }
  .hero__badges {
    gap: 12px 20px;
    padding-top: 24px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__badge { font-size: 13px; }
  .hero__swiper { min-height: 620px; }

  .nav { padding-block: 12px; }
  .nav.is-scrolled { padding-block: 8px; }
  .nav__logo { font-size: 17px; }
  .nav__logo-mark { width: 34px; height: 34px; }
  .nav__logo-mark svg { width: 18px; height: 18px; }

  .section-title { font-size: clamp(1.55rem, 5vw, 2rem); }
  .section-lead { font-size: 0.98rem; margin-bottom: 28px; }
  .section-eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px 22px; }

  .lead-form { padding: 24px 20px; }
  .lead-form__title { font-size: 1.2rem; }
  .field input, .field textarea { padding: 12px 14px; font-size: 14px; }

  .prices-table th, .prices-table td { padding: 14px 16px; font-size: 13px; }
  .prices-table th:first-child, .prices-table td:first-child { padding-left: 18px; }
  .prices-table th:last-child, .prices-table td:last-child { padding-right: 18px; }

  .discount-banner { padding: 32px 22px; }
  .discount-banner__grid { gap: 24px; }
  .discount-item__percent { font-size: 2.4rem; }
  .discount-item__title { font-size: 1rem; }

  .how-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-step { padding: 26px 22px; }
  .how-step::before { font-size: 2.4rem; top: 14px; right: 16px; }

  .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brand-card { padding: 18px 10px; font-size: 14px; }

  .review-card { padding: 22px; }
  .review-card__text { font-size: 14px; }

  .faq-item__q { padding: 18px 20px; font-size: 0.97rem; }
  .faq-item__a-inner { padding: 0 20px 20px; font-size: 14px; }

  .contacts-info { padding: 24px 20px; }
  .contacts-info__value { font-size: 16px; }

  .footer { padding-block: 48px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer__legal { margin-left: 0; }
  .footer__bottom { gap: 10px 20px; font-size: 12px; }

  .fab-phone { bottom: 66px; right: 36px; width: 60px; height: 60px; }
  .fab-phone svg { width: 24px; height: 24px; }
  .fab-phone::before { display: none; }

  .cookie-notice { padding: 16px; gap: 12px; }
  .cookie-notice__text { font-size: 13px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 1.7rem; }
  .hero__lead { font-size: 0.95rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card { font-size: 13px; padding: 16px 8px; }
  .nav__logo span:not(.nav__logo-mark) { font-size: 15px; }
  .nav__phone-mobile { width: 40px; height: 40px; }
  .nav__phone-mobile svg { width: 18px; height: 18px; }
  .nav__burger { width: 40px; height: 40px; }
}

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===================================================================
 * Consent checkbox (152-ФЗ / 156-ФЗ, действ. с 01.09.2025)
 * Отдельный непредзаполненный чекбокс согласия на обработку ПДн.
 * Блокирует кнопку submit пока не отмечен.
 * =================================================================== */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.consent-checkbox:hover {
  background: rgba(0, 0, 0, 0.03);
}
.consent-checkbox .consent-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: #1e88e5;
}
.consent-checkbox span {
  flex: 1;
  min-width: 0;
}
.quiz__legal,
.lead-form__legal {
  font-size: 13px;
  color: #667;
  margin: 6px 0 0;
  line-height: 1.4;
}
.quiz__legal a,
.lead-form__legal a {
  color: inherit;
  text-decoration: underline;
}
/* Disabled state — кнопка заблокирована пока чекбокс не отмечен */
.btn[disabled],
button[type="submit"]:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.3);
  pointer-events: none;
}

/* === Consent checkbox v2 — переопределение под тёмный фон .card === */
.consent-checkbox {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.consent-checkbox:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}
.consent-checkbox .consent-input {
  accent-color: var(--accent);
}
.consent-checkbox span {
  color: #fff;
}
.quiz__legal,
.lead-form__legal {
  color: rgba(255, 255, 255, 0.85) !important;
}
.quiz__legal a,
.lead-form__legal a {
  color: #fff !important;
  text-decoration: underline;
}
.quiz__legal a:hover,
.lead-form__legal a:hover {
  color: var(--accent) !important;
}

/* === Disabled button v2 — мягче, без grayscale === */
.btn[disabled],
button[type="submit"]:disabled {
  opacity: 0.85 !important;
  filter: none !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none;
}

/* === Hero readability v2 — glass-плашка под текстом лида и бейджами === */
.hero__lead {
  color: #fff !important;
  opacity: 1 !important;
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  display: inline-block;
  max-width: 620px;
}

.hero__badges {
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.hero__badge {
  color: #fff !important;
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background .18s ease, border-color .18s ease;
}
.hero__badge:hover {
  background: rgba(10, 10, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}
.hero__badge svg {
  color: var(--gold-warm);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* На мобилке подложку чуть компактнее */
@media (max-width: 768px) {
  .hero__lead {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
  }
  .hero__badge {
    padding: 7px 12px 7px 10px;
    font-size: 13px;
  }
}

/* === Hero readability v3 — только drop-shadow, без плашек === */
.hero__lead {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: block;
  color: #fff !important;
  opacity: 1 !important;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.40);
}

.hero__badge {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.40);
}
.hero__badge:hover {
  background: none !important;
  border: 0 !important;
}
.hero__badge svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

/* === Disabled button v3 — тёмный фон + читаемый белый текст === */
.btn[disabled],
.btn--primary[disabled],
button[type="submit"]:disabled {
  background: #3a3a3a !important;
  background-image: none !important;
  color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn[disabled] svg,
.btn--primary[disabled] svg,
button[type="submit"]:disabled svg {
  color: #fff !important;
  stroke: #fff !important;
  opacity: 0.9;
}
