/* styles.css — аккуратно приведённая в порядок версия
  Структура: база → шапка → секции сайта → формы → модальные окна → адаптив.
  Повторяющиеся правила и конфликтующие временные фиксы объединены по фактическому каскаду. */

/* =========================================================
   01. База, переменные и общие элементы
========================================================= */

:root {
  --bg: #0b0908;
  --bg-soft: #15100d;
  --bg-card: rgba(22, 17, 13, 0.96);
  --line: rgba(197, 140, 66, 0.22);
  --line-strong: rgba(197, 140, 66, 0.38);
  --gold: #d4a05b;
  --gold-2: #9a672f;
  --text: #f5e8cd;
  --muted: #d8c4a3;
  --danger: #ff635b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius-card: 28px;
  --radius-box: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(173, 124, 55, 0.2), transparent 28%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04), transparent 18%), linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 18%);
  z-index: -1;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 14, 11, 0.85);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card,
.info-card,
.service-card,
.review-card,
.contact-form,
.hero-top,
.hero-form,
.media-card,
.quiz-live__side,
.quiz-live__main {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.98), rgba(14, 11, 9, 0.98));
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-box);
  border: 1px solid transparent;
  transition: 0.2s ease;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button--gold {
  color: #1e1309;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 30px rgba(171, 116, 45, 0.2);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(22, 17, 13, 0.9);
  color: var(--text);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10000 !important;
  border-bottom: 1px solid rgba(197, 140, 66, 0.14);
  backdrop-filter: blur(18px);
  background: rgba(11, 9, 8, 0.84);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav a {
  color: rgba(245, 232, 205, 0.84);
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.header-socials--left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95));
  color: #e8d4b2;
  transition: 0.2s ease;
}

.header-social:hover {
  border-color: rgba(212, 160, 91, 0.5);
  transform: translateY(-1px);
}

.header-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-social--max {
  color: #e8d4b2;
}

.header-social__svg-max {
  width: 25px;
  height: 25px;
  display: block;
}

.hero,
.quiz,
.services,
.gallery,
.reviews,
.contact,
.youtube-preview {
  padding: 78px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head h2,
.youtube-preview h2,
.gallery h2,
.contact__box h2,
.info-card--wide h2 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.section-head p,
.info-card p,
.youtube-preview p,
.gallery p,
.contact__box p,
.review-card p,
.service-card p {
  color: var(--muted);
  font-size: 16px;
}

.hero-layout {
  display: grid;
  gap: 28px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: 28px;
  align-items: stretch;
}

.hero-top--editorial {
  padding: 38px 34px 36px;
  background: radial-gradient(circle at top left, rgba(212, 160, 91, 0.07), transparent 28%), linear-gradient(180deg, rgba(24, 18, 14, 0.98), rgba(11, 8, 6, 0.98));
}

.hero-title-art {
  margin: 0;
  max-width: 540px;
  font-family: Forum, serif;
  font-size: clamp(44px, 4.7vw, 68px);
  line-height: 0.94;
  font-weight: 400;
  color: #f3e6cb;
  text-wrap: balance;
}

.hero-title-art span {
  display: block;
  margin-top: 18px;
  max-width: 470px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #cfa061;
}

.hero-person__name {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: #f1dfc0;
}

.hero-person__meta {
  margin-top: 8px;
  color: rgba(216, 196, 163, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.hero-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 26px;
}

.hero-tags-line span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-box);
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: linear-gradient(180deg, rgba(32, 23, 17, 0.95), rgba(17, 13, 10, 0.95));
  color: #e6d2b0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.03);
}

.hero-copy__lead {
  margin: 0;
  color: #f2e4c8;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.38;
  font-weight: 600;
}

.hero-form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-form__badge {
  padding: 8px 12px;
  border-radius: var(--radius-box);
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: rgba(19, 15, 12, 0.9);
  color: #d8c4a3;
  font-size: 13px;
  white-space: nowrap;
}

.form-group label {
  color: #d4a05b;
  font-size: 14px;
}

.hero-form input,
.hero-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(197, 140, 66, 0.22);
  border-radius: var(--radius-box);
  background: rgba(19, 15, 12, 0.92);
  color: #f5e8cd;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(216, 196, 163, 0.45);
}

.hero-form input:focus,
.hero-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(212, 160, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 160, 91, 0.08);
}

.hero-form textarea {
  min-height: 86px;
  resize: vertical;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-method {
  position: relative;
  cursor: pointer;
}

.contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-method span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: var(--radius-box);
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95));
  color: #ead8b9;
  font-weight: 600;
  transition: 0.2s ease;
}

.contact-method input:checked+span {
  border-color: rgba(212, 160, 91, 0.5);
  background: rgba(33, 24, 18, 0.98);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 91, 0.18);
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #d8c4a3;
}

.form-status.is-success {
  color: #d8c98b;
}

.form-status.is-error {
  color: #ffb3a8;
}

.hero-form input:disabled,
.hero-form textarea:disabled,
.hero-form button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.form-success__icon path {
  fill: none;
  stroke: #f4d18b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual-bottom.media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.media-card {
  padding: 18px;
}

.media-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.media-card__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.media-card__counter {
  color: #f2e4c8;
  font-size: 16px;
  font-weight: 600;
}

.media-card__main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.media-card__viewport {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at 35% 20%, rgba(214, 161, 91, 0.18), transparent 20%), linear-gradient(180deg, #241912, #110d0b);
}

.media-card__viewport--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #100c09;
}

.media-card__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.media-card__nav {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95));
  color: #f2e4c8;
  font-size: 32px;
  line-height: 1;
}

.media-card__nav:hover {
  border-color: rgba(212, 160, 91, 0.45);
}

.media-card__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.media-thumb {
  padding: 0;
  border: 1px solid rgba(197, 140, 66, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(17, 13, 10, 0.9);
  aspect-ratio: 1 / 1;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
  transition: 0.2s ease;
}

.media-thumb:hover img,
.media-thumb.is-active img {
  opacity: 1;
}

.media-thumb.is-active {
  border-color: rgba(212, 160, 91, 0.5);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 91, 0.2);
}

.video-shell__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: 2px solid rgba(255, 216, 139, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 241, 199, 0.42), transparent 38%),
    linear-gradient(180deg, rgba(230, 176, 85, 0.96), rgba(154, 103, 47, 0.96));
  box-shadow:
    0 0 0 10px rgba(212, 160, 91, 0.16),
    0 0 0 22px rgba(0, 0, 0, 0.28),
    0 20px 70px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(255, 201, 96, 0.34);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  animation: videoPlayPulse 2.2s ease-in-out infinite;
}

.video-shell__play:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 12px rgba(212, 160, 91, 0.2),
    0 0 0 26px rgba(0, 0, 0, 0.32),
    0 24px 80px rgba(0, 0, 0, 0.68),
    0 0 58px rgba(255, 201, 96, 0.48);
}

.video-shell__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 32px solid #1e1309;
  filter:
    drop-shadow(0 1px 0 rgba(255, 244, 216, 0.35)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

@keyframes videoPlayPulse {
  0% {
    box-shadow:
      0 0 0 8px rgba(212, 160, 91, 0.14),
      0 0 0 18px rgba(0, 0, 0, 0.24),
      0 20px 70px rgba(0, 0, 0, 0.62),
      0 0 42px rgba(255, 201, 96, 0.28);
  }

  50% {
    box-shadow:
      0 0 0 13px rgba(212, 160, 91, 0.22),
      0 0 0 28px rgba(0, 0, 0, 0.32),
      0 24px 80px rgba(0, 0, 0, 0.68),
      0 0 58px rgba(255, 201, 96, 0.44);
  }

  100% {
    box-shadow:
      0 0 0 8px rgba(212, 160, 91, 0.14),
      0 0 0 18px rgba(0, 0, 0, 0.24),
      0 20px 70px rgba(0, 0, 0, 0.62),
      0 0 42px rgba(255, 201, 96, 0.28);
  }
}

@media (max-width: 640px) {
  .video-shell__play {
    width: 82px;
    height: 82px;
  }

  .video-shell__play-icon {
    margin-left: 6px;
    border-top-width: 16px;
    border-bottom-width: 16px;
    border-left-width: 26px;
  }
}

.video-shell__player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  background: #000;
}

.alert-section {
  padding: 12px 0 84px;
}

.emergency-contact {
  display: grid;
  grid-template-columns: 1.18fr 0.96fr;
  gap: 26px;
  align-items: stretch;
}

.emergency-contact__warning,
.emergency-contact__panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: linear-gradient(180deg, rgba(28, 20, 15, 0.98), rgba(13, 10, 8, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.emergency-contact__warning {
  padding: 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.emergency-contact__warning::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 28%);
  pointer-events: none;
}

.emergency-contact__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 84, 84, 0.32);
  background: rgba(54, 13, 13, 0.72);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-self: flex-start;
}

.emergency-contact__glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 70, 70, 0.14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.emergency-contact__title {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  max-width: 620px;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f6e9d0;
}

.emergency-contact__title span {
  display: block;
  color: #ff6a60;
}

.emergency-contact__phone-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 91, 0.24);
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.96), rgba(18, 13, 10, 0.96));
  transition: 0.2s ease;
  align-self: flex-start;
}

.emergency-contact__phone-box:hover {
  border-color: rgba(212, 160, 91, 0.48);
  transform: translateY(-1px);
}

.emergency-contact__phone-caption {
  color: rgba(216, 196, 163, 0.72);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.emergency-contact__phone-number {
  color: #ffd79e;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.emergency-contact__note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff6f6a;
  letter-spacing: 0.08em;
}

.emergency-contact__panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.emergency-contact__panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: rgba(18, 14, 11, 0.8);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-self: flex-start;
}

.emergency-contact__subtext {
  margin-top: 18px;
  color: rgba(216, 196, 163, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.emergency-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.emergency-link__meta {
  margin-top: 7px;
  color: rgba(216, 196, 163, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.emergency-link--call {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.emergency-link--call .emergency-link__title,
.emergency-link--call .emergency-link__meta {
  color: #1e1309;
}

.quiz-live__head {
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 0 6px;
  text-align: left;
}

.quiz-live__layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  align-items: stretch;
}

.quiz-live__side,
.quiz-live__main {
  padding: 24px;
}

.quiz-live__steps span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.24);
  color: var(--muted);
  background: rgba(20, 15, 12, 0.82);
  font-weight: 600;
}

.quiz-live__steps .is-active,
.quiz-live__steps .is-done {
  color: #1e1309;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.quiz-live__side-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: radial-gradient(circle at 28% 18%, rgba(214, 161, 91, 0.14), transparent 18%), linear-gradient(180deg, #211710, #100c09);
}

.quiz-live__side-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.quiz-live__side-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(12, 9, 7, 0.78);
  backdrop-filter: blur(8px);
}

.quiz-live__side-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: rgba(18, 14, 11, 0.82);
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.quiz-live__question-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: rgba(18, 14, 11, 0.82);
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.quiz-live__actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.quiz-live__actions .button {
  min-width: 96px;
}

.quiz-live__lead,
.quiz-live__success {
  min-height: 100%;
}

.youtube-preview__grid,
.gallery__grid,
.contact__box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.video-cards,
.services__grid,
.reviews__grid {
  display: grid;
  gap: 20px;
}

.video-cards {
  grid-template-columns: repeat(3, 1fr);
}

.video-card,
.service-card__image,
.gallery__items div {
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at 40% 30%, rgba(214, 161, 91, 0.15), transparent 18%), linear-gradient(180deg, #241912, #120e0b);
}

.video-card {
  aspect-ratio: 16 / 10;
}

.info-card,
.service-card,
.review-card {
  padding: 28px;
}

.service-card__image {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
}

.service-card h3,
.review-card__name {
  margin: 0;
  font-size: 24px;
}

.service-card__subtitle {
  margin-top: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 10px;
  line-height: 1.45;
}

.service-card p {
  min-height: 96px;
}

.gallery__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery__items div {
  aspect-ratio: 1;
}

.contact__box {
  padding: 40px;
}

.contact-form {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

#quizQuestionStatus {
  margin-top: 12px;
}

.hero-form input,
.hero-form textarea,
.contact-form input,
.contact-form textarea,
.quiz-live__form input,
.quiz-live__form textarea {
  width: 100%;
  border: 1px solid rgba(197, 140, 66, 0.22);
  border-radius: var(--radius-box);
  background: rgba(19, 15, 12, 0.92);
  color: #f5e8cd;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.quiz-live__form input::placeholder,
.quiz-live__form textarea::placeholder {
  color: rgba(216, 196, 163, 0.45);
}

.hero-form input:focus,
.hero-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.quiz-live__form input:focus,
.quiz-live__form textarea:focus {
  border-color: rgba(212, 160, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 160, 91, 0.08);
}

.quiz-live__form .form-group label {
  color: #d4a05b;
  font-size: 14px;
}

.quiz-live__section-head,
.quiz-live__head,
.quiz-live__intro {
  display: none !important;
}

.quiz-live__topbar {
  margin: 0 auto 22px;
}

.quiz-live__topbar-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at 50% 0%, rgba(212, 160, 91, 0.08), transparent 26%), linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(12, 9, 7, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.quiz-live__topbar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-live__mini-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: rgba(18, 14, 11, 0.82);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-live__topbar-center {
  min-width: 0;
}

.quiz-live__topbar-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  color: #f5e8cd;
}

.quiz-live__topbar-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
}

.quiz-live__topbar-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.quiz-live__mini-stat {
  min-width: 84px;
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(18, 14, 11, 0.72);
  text-align: center;
}

.quiz-live__mini-stat-num {
  display: block;
  color: #f3dfbe;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.quiz-live__mini-stat-label {
  display: block;
  margin-top: 6px;
  color: rgba(216, 196, 163, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card__actions .button {
  min-height: 46px;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 12px;
}

.reviews-video__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 16px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 0 12px;
  scroll-snap-type: none !important;
  scrollbar-width: none;
  scrollbar-color: rgba(212, 160, 91, 0.35) transparent;
  scroll-behavior: auto !important;
  cursor: grab !important;
  user-select: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.reviews-video__track::-webkit-scrollbar {
  height: 8px;
  display: none;
}

.reviews-video__track::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-video__track::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 91, 0.35);
  border-radius: 999px;
}

.review-video-card {
  scroll-snap-align: none !important;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.06), transparent 24%), linear-gradient(180deg, rgba(24, 18, 14, 0.98), rgba(12, 9, 7, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  transition: 0.2s ease;
}

.review-video-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.review-video-card img {
  user-select: none;
  -webkit-user-drag: none;
}

.hero-form__after {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 28%), linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(12, 9, 7, 0.96));
  display: none !important;
}

.hero-form__after-title {
  color: #f3dfbe;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-form__after-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hero-form__after-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
}

.hero-form__after-item span {
  width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 91, 0.22);
  background: rgba(18, 14, 11, 0.88);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  min-width: 32px;
}

.hero-form__after-item p {
  margin: 0;
  color: rgba(216, 196, 163, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.hero-form__trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(18, 14, 11, 0.72);
  color: rgba(216, 196, 163, 0.76);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.hero-form__trust span::before {
  content: "✦";
  margin-right: 6px;
  color: var(--gold);
  font-size: 10px;
}

.hero-copy--promo .hero-copy__lead {
  margin: 0;
  color: #f2e4c8;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.35;
  font-weight: 800;
}

.promo-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 91, 0.24);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.12), transparent 24%), linear-gradient(180deg, rgba(22, 16, 12, 0.98), rgba(10, 8, 6, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 223, 151, 0.04), 0 20px 50px rgba(0, 0, 0, 0.26);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 30%);
  pointer-events: none;
}

.promo-card__top,
.promo-card__grid,
.promo-card__bottom {
  position: relative;
  z-index: 1;
}

.promo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.promo-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 99, 91, 0.28);
  background: rgba(61, 18, 16, 0.72);
  color: #ff8f84;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-timer__label {
  display: block;
  margin-top: 4px;
  color: rgba(216, 196, 163, 0.7);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.promo-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.promo-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 160, 91, 0.12);
}

.promo-card__text {
  max-width: 260px;
  color: #d8c4a3;
  font-size: 13px;
  line-height: 1.45;
}

.promo-card__cta {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  flex: 0 0 auto;
  animation-delay: 1s !important;
}

.services-premium__head,
.services-premium__banner {
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.services-premium__head {
  padding: 22px 26px;
  background: radial-gradient(circle at top left, rgba(212, 160, 91, 0.08), transparent 28%), linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(12, 9, 7, 0.96));
}

.services-premium__head h2 {
  margin: 12px 0 10px;
  max-width: 560px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.services-premium__head p {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.services-premium__banner {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(255, 99, 91, 0.12), transparent 24%), radial-gradient(circle at bottom left, rgba(212, 160, 91, 0.10), transparent 26%), linear-gradient(180deg, rgba(29, 19, 14, 0.98), rgba(12, 9, 7, 0.98));
}

.services-premium__banner-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 99, 91, 0.28);
  background: rgba(61, 18, 16, 0.68);
  color: #ff958c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-premium__banner-old {
  margin-top: 12px;
  color: rgba(216, 196, 163, 0.58);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: rgba(216, 196, 163, 0.58);
}

.services-premium__banner-title {
  margin-top: 12px;
  max-width: 360px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.02;
  font-weight: 800;
  color: #f8e6c2;
}

.services-premium__banner-text {
  margin-top: 10px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
  color: #d7c09a;
}

.services-premium__banner .button {
  margin-top: 18px;
  width: 100%;
  min-height: 50px;
}

.services-cards-visual .service-card--premium {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 24px;
}

.service-card--visual {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card--visual .button,
.service-card--visual a {
  position: relative;
  z-index: 2;
}

.service-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 91, 0.22);
  background: rgba(42, 27, 16, 0.88);
  color: #ffd08a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.service-card__badge--dark {
  color: #e8d4b2;
  background: rgba(18, 14, 11, 0.88);
}

.service-card__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.service-card__price-old {
  color: rgba(216, 196, 163, 0.58);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: rgba(216, 196, 163, 0.58);
}

.service-card__price {
  color: #f7e2bb;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.service-card__image-placeholder {
  height: 132px;
  margin: 12px 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 28%), linear-gradient(180deg, rgba(26, 19, 14, 0.96), rgba(13, 10, 8, 0.96));
}

.service-card__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.services-cards-visual .service-card--premium h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  color: #f5e8cd;
}

.services-cards-visual .service-card--premium p {
  margin-top: 10px;
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
}

.service-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.service-card--accent {
  background: radial-gradient(circle at top right, rgba(255, 99, 91, 0.08), transparent 22%), radial-gradient(circle at bottom left, rgba(212, 160, 91, 0.08), transparent 24%), linear-gradient(180deg, rgba(28, 20, 16, 0.98), rgba(13, 10, 8, 0.98));
  border-color: rgba(212, 160, 91, 0.28);
}

.reviews-video__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.reviews-video__nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.reviews-video__arrow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95));
  color: #f2e4c8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.reviews-video__arrow:hover {
  border-color: rgba(212, 160, 91, 0.48);
  transform: translateY(-1px);
}

.reviews-video__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.reviews-video__track.is-dragging .review-video-card {
  pointer-events: auto !important;
  transform: none !important;
}

.review-video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 160, 91, 0.38);
}

.review-video-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 340px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 24%), linear-gradient(180deg, rgba(26, 19, 14, 0.96), rgba(13, 10, 8, 0.96));
}

.review-video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 91, 0.32);
  background: radial-gradient(circle at 30% 30%, rgba(255, 223, 151, 0.24), transparent 45%), linear-gradient(180deg, rgba(212, 160, 91, 0.26), rgba(154, 103, 47, 0.24));
  box-shadow: 0 0 0 10px rgba(212, 160, 91, 0.04), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.review-video-card__play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  margin-left: 27px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #f4d18b;
}

.review-video-card__body {
  padding: 14px 14px 16px;
}

.review-video-card__name {
  color: #f5e8cd;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.review-video-card__text {
  margin-top: 8px;
  color: rgba(216, 196, 163, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.hero-form.is-attention {
  animation: heroFormAttention 1.6s ease-in-out 3;
}

.gallery-photo {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at 40% 30%, rgba(214, 161, 91, 0.15), transparent 18%), linear-gradient(180deg, #241912, #120e0b);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition: 0.22s ease;
  padding: 0;
  cursor: pointer;
}

.gallery__items--photos {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}

.gallery-loading {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(14, 11, 9, 0.96));
  color: rgba(216, 196, 163, 0.78);
  font-size: 15px;
}

.gallery-photo:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 160, 91, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 24px rgba(212, 160, 91, 0.08);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  transition: 0.25s ease;
}

.gallery-photo:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28)), radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 30%);
  pointer-events: none;
}

.gallery-photo--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-info {
  max-width: 560px;
}

.gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px;
  border: 0 !important;
  background: none !important;
  color: #f0dfbf;
  box-shadow: none !important;
}

.gallery-count__label {
  color: rgba(216, 196, 163, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: none !important;
}

.gallery-count__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1e1309;
  font-size: 15px;
  font-weight: 900;
}

.gallery-info--premium {
  position: relative;
  max-width: 610px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.09), transparent 30%), linear-gradient(180deg, rgba(24, 18, 14, 0.9), rgba(10, 8, 6, 0.9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.gallery-info--premium::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 160, 91, 0.14), transparent 68%);
  pointer-events: none;
}

.gallery-info--premium h2 {
  margin-bottom: 14px;
  margin: 0;
  max-width: 560px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.gallery-info--premium p {
  max-width: 520px;
  margin-bottom: 0;
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gallery-stat {
  padding: 17px 18px;
  border-radius: 20px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 30%), rgba(18, 14, 11, 0.76);
  overflow: hidden;
}

.gallery-stat__label {
  display: block;
  color: rgba(216, 196, 163, 0.72);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-stat__num {
  display: block !important;
  margin-top: 8px;
  color: #ffd48f !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}

.gallery-note {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.14);
  background: rgba(12, 9, 7, 0.56);
  color: rgba(216, 196, 163, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.gallery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.gallery-action {
  min-height: 52px;
  font-size: 14px;
  padding: 0 16px;
  white-space: nowrap;
}

.gallery-info--premium .eyebrow {
  margin-bottom: 18px;
}

.gallery-info__lead {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(216, 196, 163, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

.final-contact {
  padding: 88px 0 42px;
}

.final-contact__box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.final-contact__content,
.final-contact__form {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.09), transparent 28%), linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(10, 8, 6, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.final-contact__content {
  padding: 34px;
}

.final-contact__content h2 {
  margin: 18px 0 14px;
  max-width: 620px;
  color: #f5e8cd;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.final-contact__content p {
  max-width: 620px;
  margin: 0;
  color: rgba(216, 196, 163, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.final-contact__features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.final-contact__feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(197, 140, 66, 0.14);
  background: rgba(12, 9, 7, 0.52);
}

.final-contact__feature span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1e1309;
  font-size: 13px;
  font-weight: 900;
}

.final-contact__feature p {
  margin: 0;
  color: rgba(216, 196, 163, 0.8);
  font-size: 14px;
  line-height: 1.45;
}

.final-contact__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.final-contact__quick a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: linear-gradient(180deg, rgba(30, 22, 16, 0.96), rgba(15, 12, 10, 0.96));
  color: #ead8b9;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.final-contact__quick a:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 91, 0.45);
  color: #fff1d6;
}

.final-contact__form-wrap {
  display: flex;
}

.final-contact__form {
  width: 100%;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.final-contact__form-title {
  color: #f5e8cd;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.final-contact__form input,
.final-contact__form textarea {
  width: 100%;
  border: 1px solid rgba(197, 140, 66, 0.22);
  border-radius: var(--radius-box);
  background: rgba(19, 15, 12, 0.92);
  color: #f5e8cd;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.final-contact__form input::placeholder,
.final-contact__form textarea::placeholder {
  color: rgba(216, 196, 163, 0.46);
}

.final-contact__form input:focus,
.final-contact__form textarea:focus {
  border-color: rgba(212, 160, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 160, 91, 0.08);
}

.final-contact__form textarea {
  min-height: 150px;
  resize: vertical;
}

.final-contact__form .button {
  width: 100%;
}

.final-contact__note {
  color: rgba(216, 196, 163, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.final-field {
  display: grid;
  gap: 6px;
}

.final-field__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.final-field__error {
  min-height: 18px;
  color: #ffb3a8;
  font-size: 12px;
  line-height: 1.35;
}

.final-field__counter {
  color: rgba(216, 196, 163, 0.62);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.final-contact__form input.is-invalid,
.final-contact__form textarea.is-invalid {
  border-color: rgba(255, 99, 91, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(255, 99, 91, 0.1) !important;
}

.final-contact__status {
  min-height: 22px;
  color: rgba(216, 196, 163, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.final-contact__status.is-success {
  color: #d8c98b;
}

.final-contact__status.is-error {
  color: #ffb3a8;
}

.final-contact__status.is-loading {
  color: #ffd48f;
}

.final-contact__submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.final-field__hint {
  margin-top: -2px;
  color: rgba(216, 196, 163, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.final-contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.final-contact-method {
  position: relative;
  cursor: pointer;
}

.final-contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.final-contact-method span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-box);
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95));
  color: rgba(245, 232, 205, 0.82);
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.final-contact-method input:checked+span {
  border-color: rgba(212, 160, 91, 0.58);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.12), transparent 30%), linear-gradient(180deg, rgba(42, 29, 18, 0.98), rgba(20, 14, 10, 0.98));
  color: #ffd48f;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 91, 0.18), 0 0 18px rgba(212, 160, 91, 0.08);
}

.final-contact-method span::before {
  content: "○";
  margin-right: 7px;
  color: rgba(216, 196, 163, 0.55);
  font-size: 13px;
}

.final-contact-method input:checked+span::before {
  content: "●";
  color: #ffd48f;
}

.final-field--phone .iti {
  width: 100%;
}

.final-field--phone .iti__country-container {
  z-index: 5;
}

.final-field--phone .iti__selected-country {
  border-radius: var(--radius-box) 0 0 var(--radius-box);
  background: rgba(25, 18, 13, 0.9);
  border-right: 1px solid rgba(197, 140, 66, 0.18);
}

.final-field--phone .iti__dropdown-content {
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: #120d0a;
  color: #f5e8cd;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.final-field--phone .iti__country {
  color: #f5e8cd;
}

.final-field--phone .iti__country:hover,
.final-field--phone .iti__country.iti__highlight {
  background: rgba(212, 160, 91, 0.14);
}

.final-field--phone .iti__dial-code {
  color: #d4a05b;
}

.final-field--phone #contactValueFinal {
  padding-left: 68px !important;
}

.quiz-live__form input.is-invalid,
.quiz-live__form textarea.is-invalid {
  border-color: rgba(255, 99, 91, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(255, 99, 91, 0.08) !important;
}

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

.quiz-field--phone .iti__dial-code {
  color: #d4a05b;
}

.quiz-field--phone #quizContact {
  padding-left: 68px !important;
}

.hero-form .eyebrow {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.hero-form input,
.hero-form textarea {
  padding: 12px 14px;
}

.hero-form .contact-method span {
  min-height: 44px;
}

.hero-field--phone #contactValue {
  padding-left: 58px !important;
}

.hero-turnstile .final-field__hint {
  font-size: 11px;
  line-height: 1.25;
}

#formStatus {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
}

.final-contact__form.is-hidden {
  display: none !important;
}

.final-contact-success {
  min-height: 520px;
  width: 100%;
  padding: 44px 28px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-card);
}

.final-contact-success:not([hidden]),
.final-contact-success.is-visible {
  display: flex;
}

.final-contact-success__icon {
  width: 118px;
  height: 118px;
  margin-bottom: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 223, 151, 0.24), transparent 45%), linear-gradient(180deg, rgba(212, 160, 91, 0.2), rgba(154, 103, 47, 0.22));
  border: 1px solid rgba(212, 160, 91, 0.28);
  box-shadow: 0 0 0 10px rgba(212, 160, 91, 0.04), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.final-contact-success__icon svg {
  width: 64px;
  height: 64px;
}

.final-contact-success__icon circle {
  fill: rgba(212, 160, 91, 0.16);
  stroke: rgba(212, 160, 91, 0.7);
  stroke-width: 2;
}

.final-contact-success__icon path {
  fill: none;
  stroke: #f4d18b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.final-contact-success__title {
  margin: 18px 0 12px;
  max-width: 560px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  color: #f5e8cd;
}

.final-contact-success__text {
  max-width: 560px;
  margin: 0;
  color: #d8c4a3;
  font-size: 17px;
  line-height: 1.7;
}

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

.emergency-contact__grid--compact .emergency-link {
  min-height: 118px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}

.emergency-contact__grid--compact .emergency-link__title {
  font-size: 20px;
  line-height: 1.15;
}

.emergency-contact__grid--compact .emergency-link__meta {
  margin-top: 8px;
  font-size: 14px;
}

.emergency-contact__grid--compact .emergency-link--call {
  background: linear-gradient(180deg, #d3a054, #b67d35);
  color: #130d08;
  border-color: rgba(255, 215, 146, 0.45);
  box-shadow: 0 18px 44px rgba(190, 126, 50, 0.2);
}

.emergency-contact__grid--compact .emergency-link--call .emergency-link__title,
.emergency-contact__grid--compact .emergency-link--call .emergency-link__meta {
  color: #130d08;
}

.emergency-contact__hint {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(8, 6, 5, 0.34);
  color: rgba(245, 232, 205, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.review-video-card,
.review-video-card * {
  user-select: none;
}

.header-socials .header-social[aria-label="WhatsApp"],
.header-socials .header-social[aria-label="Telegram"],
.header__cta,
.promo-card__cta {
  position: relative !important;
  animation: siteAttentionWave 3.8s ease-in-out infinite !important;
  will-change: transform, box-shadow !important;
}

.header-socials .header-social[aria-label="WhatsApp"] {
  animation-delay: 0.45s !important;
}

.header-socials .header-social[aria-label="Telegram"] {
  animation-delay: 0.6s !important;
}

.header__cta {
  animation-delay: 0.85s !important;
}

.header__cta::after,
.promo-card__cta::after {
  content: "" !important;
  position: absolute !important;
  inset: -5px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(197, 140, 66, 0.45) !important;
  opacity: 0 !important;
  transform: scale(0.88) !important;
  pointer-events: none !important;
  animation: siteAttentionGlow 3.8s ease-in-out infinite !important;
}

.header__cta::after {
  animation-delay: 0.85s !important;
}

.promo-card__cta::after {
  animation-delay: 1s !important;
}

.header-socials .header-social[aria-label="WhatsApp"]::after,
.header-socials .header-social[aria-label="Telegram"]::after {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(197, 140, 66, 0.38) !important;
  opacity: 0 !important;
  transform: scale(0.82) !important;
  pointer-events: none !important;
  animation: siteAttentionGlow 3.8s ease-in-out infinite !important;
}

.header-socials .header-social[aria-label="WhatsApp"]::after {
  animation-delay: 0.45s !important;
}

.header-socials .header-social[aria-label="Telegram"]::after {
  animation-delay: 0.6s !important;
}

.header-socials .header-social[aria-label="WhatsApp"]:hover,
.header-socials .header-social[aria-label="Telegram"]:hover,
.header__cta:hover,
.promo-card__cta:hover {
  animation-play-state: paused !important;
  transform: translateY(-3px) scale(1.05) !important;
}

.hero-form.form-attention {
  animation: heroFormAttention 1.15s ease-in-out 0s 3 !important;
  position: relative !important;
}

.hero-form.form-attention::after {
  content: "" !important;
  position: absolute !important;
  inset: -8px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(197, 140, 66, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(197, 140, 66, 0.28), 0 0 34px rgba(197, 140, 66, 0.28), 0 0 70px rgba(197, 140, 66, 0.14) !important;
  pointer-events: none !important;
  animation: heroFormAttentionRing 1.15s ease-in-out 0s 3 !important;
  z-index: 2 !important;
}

body.modal-open .header {
  z-index: 1 !important;
}

.reviews-video__track:active {
  cursor: grabbing !important;
}

.review-video-card,
.review-video-card__media,
.review-video-card__media img {
  touch-action: pan-x pan-y !important;
}

.form-success,
.quiz-live__success,
.final-contact-success {
  scroll-margin-top: 110px !important;
}

.form-success.success-attention,
.quiz-live__success.success-attention,
.final-contact-success.success-attention {
  position: relative !important;
  animation: successAttentionCard 1.15s ease-in-out 0s 3 !important;
  overflow: visible !important;
}

.form-success.success-attention::after,
.quiz-live__success.success-attention::after,
.final-contact-success.success-attention::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(212, 160, 91, 0.82) !important;
  box-shadow: 0 0 0 1px rgba(212, 160, 91, 0.28), 0 0 34px rgba(212, 160, 91, 0.34), 0 0 80px rgba(212, 160, 91, 0.18) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  animation: successAttentionRing 1.15s ease-in-out 0s 3 !important;
}

.form-success.success-attention .form-success__icon,
.quiz-live__success.success-attention .quiz-live__success-icon,
.final-contact-success.success-attention .final-contact-success__icon {
  animation: successAttentionIcon 1.15s ease-in-out 0s 3 !important;
}

.hero-tags-line .hero-tag-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: var(--radius-box) !important;
  border: 1px solid rgba(197, 140, 66, 0.2) !important;
  background: radial-gradient(circle at top, rgba(212, 160, 91, 0.08), transparent 55%), linear-gradient(180deg, rgba(32, 23, 17, 0.95), rgba(17, 13, 10, 0.95)) !important;
  color: #e6d2b0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
  user-select: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.04), 0 0 0 rgba(212, 160, 91, 0) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease !important;
  animation: heroTagSoftPulse 3.8s ease-in-out infinite !important;
}

.hero-tags-line .hero-tag-link:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212, 160, 91, 0.58) !important;
  color: #fff0d2 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 22px rgba(212, 160, 91, 0.16), inset 0 0 0 1px rgba(212, 160, 91, 0.16) !important;
}

.hero-tags-line .hero-tag-link:active {
  transform: translateY(0) scale(0.98) !important;
}

.hero-tags-line .hero-tag-link:focus-visible {
  outline: 2px solid rgba(212, 160, 91, 0.75) !important;
  outline-offset: 3px !important;
}

.hero-tags-line .hero-tag-link:nth-child(2) {
  animation-delay: 0.35s !important;
}

.hero-tags-line .hero-tag-link:nth-child(3) {
  animation-delay: 0.7s !important;
}

.hero-tags-line .hero-tag-link:nth-child(4) {
  animation-delay: 1.05s !important;
}

.hero-tags-line .hero-tag-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: var(--radius-box) !important;
  border: 1px solid rgba(197, 140, 66, 0.2) !important;
  background: radial-gradient(circle at top, rgba(212, 160, 91, 0.08), transparent 55%), linear-gradient(180deg, rgba(32, 23, 17, 0.95), rgba(17, 13, 10, 0.95)) !important;
  color: #e6d2b0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
  user-select: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.04), 0 0 0 rgba(212, 160, 91, 0) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease !important;
  animation: heroTagSoftPulse 3.8s ease-in-out infinite !important;
}

.hero-tags-line .hero-tag-button:nth-child(2) {
  animation-delay: 0.35s !important;
}

.hero-tags-line .hero-tag-button:nth-child(3) {
  animation-delay: 0.7s !important;
}

.hero-tags-line .hero-tag-button:nth-child(4) {
  animation-delay: 1.05s !important;
}

.hero-tags-line .hero-tag-button:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212, 160, 91, 0.58) !important;
  color: #fff0d2 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 22px rgba(212, 160, 91, 0.16), inset 0 0 0 1px rgba(212, 160, 91, 0.16) !important;
}

.hero-tags-line .hero-tag-button:active {
  transform: translateY(0) scale(0.98) !important;
}

@media (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto auto auto;
  }

  .nav {
    position: fixed;
    inset: 82px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(12, 10, 8, 0.96);
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .header__cta {
    justify-self: end;
  }

  .youtube-preview__grid,
  .gallery__grid,
  .contact__box,
  .services__grid,
  .reviews__grid,
  .video-cards,
  .gallery__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-live__layout {
    grid-template-columns: 1fr;
  }

  .quiz-live__side-card {
    min-height: 360px;
  }

  .promo-card__top,
  .promo-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-card__grid {
    grid-template-columns: 1fr;
  }

  .gallery__items--photos {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    gap: 14px !important;
  }

  .gallery-photo--wide {
    grid-column: span 2;
  }

  .gallery .gallery__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    align-items: start !important;
  }

  .gallery-info--premium {
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .gallery-info--premium .eyebrow,
  .gallery-info--premium h2,
  .gallery-info--premium p,
  .gallery-note {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gallery-stats {
    justify-content: center !important;
  }

  .gallery-actions {
    justify-content: center !important;
  }

  .gallery__items--photos>* {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .gallery__items--photos img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 24px !important;
    align-items: start !important;
    justify-items: center !important;
  }

  .hero-visual-bottom.media-duo,
  .emergency-contact {
    grid-template-columns: 1fr;
  }

  .media-card__viewport,
  .media-card__image,
  .video-shell,
  .video-shell__poster,
  .video-shell__player {
    min-height: 360px;
  }

  .quiz-live__topbar-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quiz-live__topbar-right {
    justify-content: flex-start;
  }

  .final-contact__box {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    gap: 24px !important;
  }

  .emergency-contact__grid--compact {
    grid-template-columns: 1fr;
  }

  .emergency-contact__grid--compact .emergency-link {
    min-height: 92px;
  }

  .hero-top--editorial {
    padding: 34px 32px !important;
  }

  .hero-title-art {
    max-width: 100% !important;
    font-size: clamp(42px, 6vw, 58px) !important;
    line-height: 0.98 !important;
  }

  .hero-title-art span {
    max-width: 620px !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  .hero-person__name {
    font-size: 28px !important;
  }

  .hero-person__meta {
    max-width: 620px !important;
  }

  .hero-tags-line {
    max-width: 680px !important;
  }

  .promo-card {
    max-width: 680px !important;
  }

  .hero-form__head {
    align-items: flex-start !important;
  }

  .hero-form input,
  .hero-form textarea {
    font-size: 16px !important;
  }

  .hero-form textarea {
    min-height: 120px !important;
  }

  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 520px !important;
  }

  .emergency-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    display: grid !important;
    max-width: 620px !important;
    margin-top: 24px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .emergency-link__meta {
    font-size: 14px !important;
    line-height: 1.35 !important;
    width: 100% !important;
    margin-top: 8px !important;
    text-align: center !important;
  }

  .emergency-link--call {
    grid-column: 1 / -1 !important;
    min-height: 82px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .alert-section {
    padding: 42px 0 58px !important;
  }

  .emergency-contact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    justify-items: center !important;
  }

  .emergency-contact__warning,
  .emergency-contact__panel {
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 32px !important;
    border-radius: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .emergency-contact__title {
    max-width: 620px !important;
    font-size: clamp(34px, 5vw, 48px) !important;
    line-height: 1.04 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .emergency-contact__phone-box {
    max-width: 420px !important;
    width: min(100%, 440px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    text-align: center !important;
  }

  .emergency-contact__panel {
    display: block !important;
  }

  .emergency-contact__subtext {
    max-width: 560px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .emergency-link--call .emergency-link__title,
  .emergency-link--call .emergency-link__meta {
    width: 100% !important;
    text-align: center !important;
  }

  .emergency-contact__note {
    max-width: 620px !important;
    margin-top: 24px !important;
    font-size: clamp(22px, 3.4vw, 30px) !important;
    line-height: 1.18 !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    letter-spacing: 0.11em !important;
  }

  .emergency-contact__label,
  .emergency-contact__panel-label {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .emergency-contact__phone-caption,
  .emergency-contact__phone-number {
    width: 100% !important;
    text-align: center !important;
  }

  .quiz-live__topbar,
  .quiz-live__layout {
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .quiz-live__layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    justify-items: center !important;
  }

  .quiz-live__side,
  .quiz-live__main {
    width: 100% !important;
    max-width: 760px !important;
    padding: 26px !important;
    border-radius: 26px !important;
  }

  .quiz-live__side-card {
    min-height: 360px !important;
    max-height: 420px !important;
  }

  .quiz-live__side-image {
    background-size: cover !important;
    background-position: center 36% !important;
  }

  .quiz-live__side-overlay {
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    padding: 20px !important;
  }

  .contact {
    padding: 54px 0 66px !important;
  }

  .contact__box {
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 34px !important;
    border-radius: 28px !important;
  }

  .contact__box>div:first-child {
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .contact__box .eyebrow {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contact__box h2 {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(32px, 4.8vw, 44px) !important;
    line-height: 1.06 !important;
    text-align: center !important;
  }

  .contact__box p {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .contact-form {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px !important;
    border-radius: 26px !important;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
  }

  .contact-form textarea {
    min-height: 140px !important;
  }

  .contact-form .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .contact-form .button,
  .contact-form button[type="submit"] {
    width: 100% !important;
  }

  .contact-form .final-field--turnstile {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .final-contact {
    padding: 54px 0 66px !important;
  }

  .final-contact__content,
  .final-contact__form-wrap,
  .final-contact__form {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .final-contact__content {
    padding: 32px !important;
    border-radius: 28px !important;
    text-align: center !important;
  }

  .final-contact__content .eyebrow,
  .final-contact__content h2,
  .final-contact__content p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .final-contact__content h2 {
    max-width: 560px !important;
    font-size: clamp(32px, 4.8vw, 44px) !important;
    line-height: 1.06 !important;
  }

  .final-contact__content p {
    max-width: 560px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .final-contact__features {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .final-contact__feature {
    text-align: left !important;
  }

  .final-contact__quick {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .final-contact__form {
    padding: 28px !important;
    border-radius: 26px !important;
  }

  .final-contact__form-title {
    text-align: center !important;
    font-size: 26px !important;
  }

  .final-contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .final-contact__submit {
    width: 100% !important;
  }
}

@media (max-width: 760px) {

  .hero,
  .quiz,
  .services,
  .gallery,
  .reviews,
  .contact,
  .youtube-preview {
    padding: 58px 0;
  }

  .header__inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    min-height: 74px;
  }

  .header-socials--left {
    gap: 8px;
    flex-wrap: wrap;
  }

  .header-social {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .header-social svg {
    width: 18px;
    height: 18px;
  }

  .header__cta {
    min-height: 44px;
    padding: 0 16px;
  }

  .youtube-preview__grid,
  .gallery__grid,
  .contact__box,
  .services__grid,
  .reviews__grid,
  .video-cards,
  .gallery__items,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .hero-top--editorial {
    padding: 24px 22px 26px;
  }

  .hero-title-art {
    font-size: 42px;
  }

  .hero-title-art span {
    font-size: 16px;
    margin-top: 14px;
  }

  .hero-person__name {
    font-size: 24px;
  }

  .hero-copy__lead {
    font-size: 20px;
  }

  .contact__box,
  .info-card,
  .service-card,
  .review-card {
    padding: 22px;
  }

  .hero-form__head {
    flex-direction: column;
  }

  .hero-form__badge {
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .media-card {
    padding: 14px;
  }

  .media-card__main {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .media-card__nav {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .media-card__viewport,
  .media-card__image,
  .video-shell,
  .video-shell__poster,
  .video-shell__player {
    min-height: 260px;
  }

  .media-card__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-shell__play {
    width: 74px;
    height: 74px;
  }

  .video-shell__play-icon {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 22px;
  }

  .alert-section {
    padding: 0 0 58px;
  }

  .emergency-contact__warning,
  .emergency-contact__panel,
  .quiz-live__side,
  .quiz-live__main {
    padding: 22px;
    border-radius: 24px;
  }

  .emergency-contact__title {
    font-size: 30px;
    line-height: 1.03;
  }

  .emergency-contact__phone-number {
    font-size: 24px;
  }

  .emergency-contact__note {
    font-size: 15px;
  }

  .emergency-contact__grid,
  .quiz-live__options {
    grid-template-columns: 1fr;
  }

  .quiz-live__head {
    margin-bottom: 20px;
  }

  .quiz-live__side-card {
    min-height: 300px;
  }

  .quiz-live__actions {
    grid-template-columns: 1fr;
  }

  .quiz-live__topbar-card {
    padding: 18px;
    border-radius: 20px;
  }

  .quiz-live__topbar-title {
    font-size: 30px;
  }

  .quiz-live__topbar-text {
    font-size: 14px;
  }

  .reviews-video__head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  .reviews-video__nav {
    justify-content: flex-start !important;
  }

  .reviews-video__track {
    grid-auto-columns: 280px !important;
    gap: 14px !important;
    padding: 4px 0 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .review-video-card {
    border-radius: 20px !important;
    width: 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start !important;
  }

  .review-video-card__media {
    max-height: 390px !important;
    width: 100% !important;
    height: 390px !important;
    aspect-ratio: auto !important;
  }

  .review-video-card__play {
    width: 60px;
    height: 60px;
  }

  .review-video-card__play::before {
    margin-left: 24px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
  }

  .hero-form__after {
    margin-top: 18px;
    padding: 16px;
  }

  .services-premium__head,
  .services-premium__banner,
  .service-card--premium {
    padding: 18px;
    border-radius: 20px;
  }

  .service-card__price-wrap {
    align-items: flex-start;
  }

  .service-card__actions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 16px;
  }

  .service-card__image-placeholder {
    height: 110px;
  }

  .promo-card {
    padding: 16px;
  }

  .promo-card__cta {
    width: 100%;
  }

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

  .gallery__items--photos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .gallery-photo {
    border-radius: 18px;
  }

  .gallery-photo--wide {
    grid-column: span 2;
  }

  .gallery-info--premium {
    padding: 22px;
  }

  .gallery-stats,
  .gallery-actions {
    grid-template-columns: 1fr;
  }

  .gallery-stat__num {
    font-size: 30px;
  }

  .gallery-info--premium h2 {
    font-size: 36px;
  }

  .gallery-info__lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .gallery-action {
    width: 100%;
  }

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

  .hero-form textarea {
    min-height: 100px;
  }

  .final-contact-success {
    min-height: 420px;
    padding: 34px 20px;
  }

  .final-contact-success__icon {
    width: 96px;
    height: 96px;
  }

  .final-contact-success__icon svg {
    width: 54px;
    height: 54px;
  }

  .reviews-video__arrow {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .review-video-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .review-video-card__body {
    padding: 14px 14px 16px !important;
  }

  .review-video-card__name {
    font-size: 16px !important;
  }

  .review-video-card__text {
    font-size: 13px !important;
  }

  .gallery__items--photos>* {
    border-radius: 16px !important;
  }
}

@media (max-width: 640px) {
  .promo-card {
    padding: 16px;
  }

  .promo-card__cta {
    width: 100%;
  }

  .final-contact {
    padding: 58px 0 34px;
  }

  .final-contact__content,
  .final-contact__form {
    padding: 22px;
    border-radius: 24px;
  }

  .final-contact__quick {
    grid-template-columns: 1fr 1fr;
  }

  .final-contact__content h2 {
    font-size: 36px;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-top,
  .hero-form,
  .emergency-contact__warning,
  .emergency-contact__panel,
  .quiz-live__side,
  .quiz-live__main,
  .media-card,
  .service-card,
  .review-card,
  .contact__box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-main,
  .emergency-contact,
  .quiz-live__layout,
  .hero-visual-bottom,
  .services-premium__grid,
  .reviews__grid,
  .gallery__grid,
  .contact__box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .alert-section .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .emergency-contact {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .emergency-contact__warning,
  .emergency-contact__panel {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 1180px) {

  .services-premium__banner-title,
  .services-premium__banner-text {
    max-width: none;
  }

  .services-premium__head,
  .services-premium__banner {
    width: 100% !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 26px !important;
  }

  .services-premium__head {
    padding: 30px 32px !important;
  }

  .services-premium__head h2 {
    max-width: 620px !important;
    font-size: clamp(32px, 4vw, 44px) !important;
    line-height: 1.04 !important;
  }

  .services-premium__head p {
    max-width: 720px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .services-premium__banner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
    align-items: center !important;
    padding: 24px 26px !important;
  }

  .services-premium__banner-label {
    grid-column: 1 / -1 !important;
    align-self: center !important;
    justify-self: start !important;
  }

  .services-premium__banner-old,
  .services-premium__banner-title,
  .services-premium__banner-text {
    grid-column: 1 / 2 !important;
  }

  .services-premium__banner-old {
    margin-top: 6px !important;
  }

  .services-premium__banner-title {
    margin-top: 2px !important;
    max-width: 560px !important;
    font-size: clamp(26px, 3vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .services-premium__banner-text {
    max-width: 560px !important;
    margin-top: 4px !important;
    font-size: 15px !important;
  }

  .services-premium__banner .button {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 5 !important;
    width: auto !important;
    min-width: 190px !important;
    min-height: 52px !important;
    margin-top: 0 !important;
    align-self: center !important;
  }
}

@media (max-width: 520px) {
  .final-contact-methods {
    grid-template-columns: 1fr !important;
  }

  .header__inner {
    grid-template-columns: auto auto auto !important;
    gap: 8px !important;
    min-height: 64px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .header-socials--left {
    gap: 5px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .header-social {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 38px !important;
    border-radius: 9px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex: 0 0 32px !important;
  }

  .header-social svg {
    width: 15px !important;
    height: 15px !important;
  }

  .header__cta {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
    width: auto !important;
    min-width: 86px !important;
    max-width: 96px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .nav {
    top: 74px !important;
    left: 10px !important;
    right: 10px !important;
    max-width: none !important;
    padding: 10px !important;
    border-radius: 18px !important;
    width: auto !important;
  }

  .nav a {
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  body.menu-open::before {
    inset: 70px 0 0 0 !important;
  }

  .header .container {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .burger span {
    width: 17px !important;
    height: 2px !important;
  }

  .hero-top--editorial,
  .hero-form {
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }

  .hero-title-art {
    font-size: clamp(34px, 12vw, 44px) !important;
    line-height: 1.02 !important;
  }

  .hero-title-art span {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .hero-person__name {
    font-size: 24px !important;
  }

  .hero-person__meta {
    font-size: 14px !important;
  }

  .hero-tags-line {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero-tags-line span {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-copy__lead {
    font-size: 20px !important;
  }

  .promo-card {
    padding: 14px !important;
  }

  .promo-timer__label {
    font-size: 9px !important;
  }

  .hero-form__head {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-form__badge {
    width: 100% !important;
    text-align: center !important;
  }

  .contact-methods {
    grid-template-columns: 1fr !important;
  }

  .contact-method span {
    min-height: 50px !important;
  }

  .hero-form input,
  .hero-form textarea {
    padding: 14px 15px !important;
  }

  .hero-form textarea {
    min-height: 110px !important;
  }

  .services-premium__head,
  .services-premium__banner {
    border-radius: 22px !important;
  }

  .services-premium__head {
    padding: 24px 18px !important;
  }

  .services-premium__head h2 {
    font-size: 30px !important;
    line-height: 1.06 !important;
  }

  .services-premium__head p {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  .services-premium__banner {
    padding: 22px 18px !important;
  }

  .services-premium__banner-title {
    font-size: 25px !important;
  }

  .services-premium__banner-text {
    font-size: 14px !important;
  }

  .services-premium__banner .button {
    width: 100% !important;
  }

  .container,
  .services .container,
  .services-premium .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .services-premium__grid,
  .services-cards-visual {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services-cards-visual .service-card--premium,
  .service-card--premium {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .service-card__image-placeholder {
    height: 150px !important;
    border-radius: 16px !important;
  }

  .service-card__actions {
    grid-template-columns: 1fr !important;
  }

  .reviews-video__track {
    grid-auto-columns: 250px !important;
    gap: 12px !important;
  }

  .review-video-card {
    width: 250px !important;
    max-width: 250px !important;
  }

  .review-video-card__media {
    height: 350px !important;
    max-height: 350px !important;
  }

  .contact {
    padding: 38px 0 48px !important;
  }

  .contact__box {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .contact-form {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .contact-form .contact-methods {
    grid-template-columns: 1fr !important;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 15px !important;
  }

  .contact-form textarea {
    min-height: 120px !important;
  }

  .contact__box h2 {
    font-size: 28px !important;
  }

  .contact__box p {
    font-size: 15px !important;
  }

  .final-contact {
    padding: 38px 0 48px !important;
  }

  .final-contact__content,
  .final-contact__form {
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }

  .final-contact__content h2 {
    font-size: 28px !important;
  }

  .final-contact__content p {
    font-size: 15px !important;
  }

  .final-contact__features {
    gap: 10px !important;
  }

  .final-contact__feature {
    grid-template-columns: 38px 1fr !important;
    padding: 10px !important;
  }

  .final-contact__feature span {
    width: 38px !important;
    height: 38px !important;
  }

  .final-contact__quick {
    grid-template-columns: 1fr !important;
    max-width: 360px !important;
  }

  .final-contact__form input,
  .final-contact__form textarea {
    padding: 14px 15px !important;
  }

  .final-contact__form textarea {
    min-height: 120px !important;
  }

  .final-contact__quick a,
  .final-contact__quick .final-contact__quick-item,
  .final-contact__quick a[href^="tel:"],
  .final-contact__quick .final-contact__quick-item[href^="tel:"] {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .hero-tags-line .hero-tag-link {
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
  }

  .gallery {
    padding: 36px 0 48px !important;
  }

  .gallery-info--premium {
    padding: 24px 18px !important;
    border-radius: 24px !important;
  }

  .gallery-info--premium h2 {
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  .gallery-info--premium p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .gallery-stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gallery-stat {
    min-height: 74px !important;
    padding: 14px !important;
  }

  .gallery-stat__num {
    font-size: 30px !important;
  }

  .gallery-note {
    padding: 14px !important;
    font-size: 13.5px !important;
  }

  .gallery-actions {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gallery-actions .button {
    min-height: 48px !important;
  }

  .gallery__items--photos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gallery__items--photos>* {
    border-radius: 16px !important;
  }
}

@media (max-width: 768px) {

  .header-socials .header-social[aria-label="WhatsApp"],
  .header-socials .header-social[aria-label="Telegram"],
  .header__cta,
  .promo-card__cta {
    animation-duration: 4.4s !important;
  }

  .header__cta::after,
  .promo-card__cta::after,
  .header-socials .header-social[aria-label="WhatsApp"]::after,
  .header-socials .header-social[aria-label="Telegram"]::after {
    animation-duration: 4.4s !important;
  }

  .hero-top--editorial,
  .hero-form {
    padding: 26px 22px !important;
    border-radius: 24px !important;
  }

  .hero-title-art {
    font-size: clamp(38px, 9vw, 50px) !important;
  }

  .hero-title-art span {
    font-size: 16px !important;
  }

  .hero-tags-line {
    gap: 9px !important;
  }

  .hero-tags-line span {
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
  }

  .promo-card {
    border-radius: 22px !important;
  }

  .promo-card__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .promo-card__grid {
    grid-template-columns: 1fr !important;
  }

  .promo-card__bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .promo-card__text {
    max-width: none !important;
  }

  .promo-card__cta {
    width: 100% !important;
  }

  .contact-methods {
    grid-template-columns: 1fr 1fr !important;
    max-width: none !important;
  }

  .hero-copy--promo .promo-card {
    width: 100% !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
  }

  .hero-copy--promo .promo-card__top {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .promo-card__grid {
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero-copy--promo .promo-card__bottom {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__text {
    width: 100% !important;
    max-width: 420px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__cta {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .emergency-contact {
    max-width: 620px !important;
  }

  .emergency-contact__warning,
  .emergency-contact__panel {
    max-width: 620px !important;
    padding: 28px 22px !important;
    border-radius: 24px !important;
  }

  .emergency-contact__grid {
    max-width: 440px !important;
    grid-template-columns: 1fr !important;
  }

  .emergency-link,
  .emergency-link--call {
    grid-column: auto !important;
    min-height: 82px !important;
    text-align: left !important;
    align-items: flex-start !important;
    max-width: 440px !important;
    width: 100% !important;
  }

  .emergency-link--call .emergency-link__title,
  .emergency-link--call .emergency-link__meta {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .emergency-contact__note {
    font-size: clamp(20px, 5vw, 26px) !important;
  }

  .emergency-contact__title {
    font-size: clamp(30px, 7vw, 40px) !important;
  }

  .emergency-link--call {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .emergency-link--call .emergency-link__title {
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  .emergency-link--call .emergency-link__meta {
    margin-top: 8px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .quiz-live__topbar,
  .quiz-live__layout {
    max-width: 620px !important;
  }

  .quiz-live__side,
  .quiz-live__main {
    max-width: 620px !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .quiz-live__side-card {
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .quiz-live__question-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .quiz-live__actions {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .quiz-live__actions .button {
    width: 100% !important;
  }

  .quiz-live__side-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    display: block !important;
    background-size: cover !important;
    background-position: center 32% !important;
    opacity: 0.9 !important;
  }

  .quiz-live__side-overlay {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 0 20px 20px !important;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.96), rgba(10, 8, 6, 0.98)) !important;
    backdrop-filter: none !important;
    text-align: left !important;
  }

  .quiz-live__side-label {
    min-height: 30px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
  }

  .contact {
    padding: 46px 0 58px !important;
  }

  .contact__box {
    max-width: 620px !important;
    padding: 28px 22px !important;
    border-radius: 24px !important;
  }

  .contact-form {
    max-width: 560px !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .contact-form .contact-methods {
    grid-template-columns: 1fr 1fr !important;
  }

  .contact__box h2 {
    font-size: clamp(28px, 6vw, 38px) !important;
  }

  .final-contact {
    padding: 46px 0 58px !important;
  }

  .final-contact__box {
    max-width: 620px !important;
  }

  .final-contact__content,
  .final-contact__form-wrap,
  .final-contact__form {
    max-width: 560px !important;
  }

  .final-contact__content,
  .final-contact__form {
    padding: 24px 22px !important;
    border-radius: 24px !important;
  }

  .final-contact__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-items: stretch !important;
  }

  .final-contact__quick a,
  .final-contact__quick .final-contact__quick-item {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

  .final-contact__quick a[href^="tel:"],
  .final-contact__quick .final-contact__quick-item[href^="tel:"] {
    grid-column: 1 / -1 !important;
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
  }

  .form-success,
  .quiz-live__success,
  .final-contact-success {
    scroll-margin-top: 88px !important;
  }

  .form-success.success-attention::after,
  .quiz-live__success.success-attention::after,
  .final-contact-success.success-attention::after {
    inset: -7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .header-socials .header-social[aria-label="WhatsApp"],
  .header-socials .header-social[aria-label="Telegram"],
  .header__cta,
  .promo-card__cta,
  .header__cta::after,
  .promo-card__cta::after,
  .header-socials .header-social[aria-label="WhatsApp"]::after,
  .header-socials .header-social[aria-label="Telegram"]::after {
    animation: none !important;
  }

  .hero-form.form-attention,
  .hero-form.form-attention::after {
    animation: none !important;
  }

  .form-success.success-attention,
  .quiz-live__success.success-attention,
  .final-contact-success.success-attention,
  .form-success.success-attention::after,
  .quiz-live__success.success-attention::after,
  .final-contact-success.success-attention::after,
  .form-success.success-attention .form-success__icon,
  .quiz-live__success.success-attention .quiz-live__success-icon,
  .final-contact-success.success-attention .final-contact-success__icon {
    animation: none !important;
  }

  .hero-tags-line .hero-tag-link {
    animation: none !important;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 20px !important;
    min-height: 82px !important;
  }

  .nav {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(245, 232, 205, 0.84) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  .header-socials--left {
    gap: 8px !important;
  }

  .header-social {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  .header__cta {
    min-height: 50px !important;
    padding: 0 22px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 920px) {
  .header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 14px !important;
    min-height: 76px !important;
  }

  .header-socials--left {
    justify-self: start !important;
  }

  .header__cta {
    justify-self: end !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
  }

  .nav {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: 88px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 12px !important;
    border: 1px solid rgba(197, 140, 66, 0.22) !important;
    border-radius: 22px !important;
    background: radial-gradient(circle at top, rgba(212, 160, 91, 0.08), transparent 34%), linear-gradient(180deg, rgba(21, 16, 12, 0.98), rgba(9, 7, 6, 0.98)) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 220, 160, 0.04) !important;
    backdrop-filter: blur(14px) !important;
    z-index: 10002 !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .nav.is-open {
    display: flex !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(197, 140, 66, 0.12) !important;
    background: rgba(18, 14, 11, 0.72) !important;
    color: #ead8b9 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .nav a:hover {
    border-color: rgba(212, 160, 91, 0.38) !important;
    background: rgba(31, 23, 17, 0.94) !important;
    color: #fff !important;
  }

  body.menu-open::before {
    content: "" !important;
    position: fixed !important;
    inset: 76px 0 0 0 !important;
    background: rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 9998 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 20px), var(--container)) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header__inner {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 66px !important;
  }

  .header-socials--left {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .header-social {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
  }

  .header-social svg {
    width: 16px !important;
    height: 16px !important;
  }

  .header-social__svg-max {
    width: 18px !important;
    height: 18px !important;
  }

  .burger span {
    width: 18px !important;
  }

  .header__cta {
    min-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    justify-self: end !important;
  }

  .nav {
    top: 76px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .nav a {
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .hero-copy--promo .promo-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .hero-copy--promo .promo-timer__label {
    font-size: 9px !important;
  }

  .hero-copy--promo .promo-card__cta {
    width: 100% !important;
  }

  .alert-section {
    padding: 32px 0 46px !important;
  }

  .emergency-contact__warning,
  .emergency-contact__panel {
    padding: 22px 18px !important;
    border-radius: 22px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .emergency-contact__title {
    font-size: 26px !important;
    line-height: 1.08 !important;
  }

  .emergency-contact__phone-box {
    width: 100% !important;
    padding: 14px 16px !important;
  }

  .emergency-contact__phone-number {
    font-size: 22px !important;
  }

  .emergency-contact__note {
    font-size: 18px !important;
    letter-spacing: 0.08em !important;
    line-height: 1.22 !important;
  }

  .header .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .alert-section .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .quiz-live__side,
  .quiz-live__main {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .quiz-live__side-card {
    min-height: 260px !important;
    max-height: 300px !important;
  }

  .quiz-live__side-overlay {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .quiz-live__steps span {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .gallery__items--photos {
    gap: 10px !important;
  }

  .gallery-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gallery-actions .button {
    width: 100% !important;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 16px), var(--container)) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header__inner {
    gap: 6px !important;
    min-height: 64px !important;
  }

  .header-socials--left {
    gap: 4px !important;
  }

  .header-social {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex-basis: 30px !important;
    border-radius: 9px !important;
    max-width: 30px !important;
  }

  .header-social svg {
    width: 14px !important;
    height: 14px !important;
  }

  .header__cta {
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
    border-radius: 9px !important;
    min-width: 82px !important;
    max-width: 90px !important;
    height: 36px !important;
  }

  .header .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .header__inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 78px !important;
  }

  .nav {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .nav.is-open {
    display: flex !important;
  }

  .nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(245, 232, 205, 0.84) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  .nav a:hover {
    color: #fff !important;
    background: transparent !important;
    border-color: transparent !important;
  }

  .header-socials--left {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .header-social {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  .header-social svg {
    width: 18px !important;
    height: 18px !important;
  }

  .header__cta {
    width: auto !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  body.menu-open {
    overflow: auto !important;
  }

  body.menu-open::before {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 720px) {
  .header__inner {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 72px !important;
  }

  .nav {
    position: fixed !important;
    top: 82px !important;
    left: 12px !important;
    right: 12px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 12px !important;
    border: 1px solid rgba(197, 140, 66, 0.22) !important;
    border-radius: 20px !important;
    background: radial-gradient(circle at top, rgba(212, 160, 91, 0.08), transparent 34%), linear-gradient(180deg, rgba(21, 16, 12, 0.98), rgba(9, 7, 6, 0.98)) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(14px) !important;
    z-index: 10002 !important;
  }

  .nav.is-open {
    display: flex !important;
  }

  .nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(197, 140, 66, 0.12) !important;
    background: rgba(18, 14, 11, 0.72) !important;
    color: #ead8b9 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.menu-open::before {
    display: none !important;
    content: none !important;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .hero-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  .hero-top--editorial {
    padding: 34px 28px 30px !important;
  }

  .hero-title-art {
    font-size: clamp(42px, 4.2vw, 60px) !important;
  }

  .hero-title-art span {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .hero-person__name {
    font-size: 26px !important;
  }

  .hero-tags-line {
    gap: 10px !important;
  }

  .hero-tags-line span {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
  }

  .promo-card__top,
  .promo-card__bottom {
    flex-direction: row !important;
    align-items: center !important;
  }

  .promo-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .promo-card__text {
    max-width: 260px !important;
  }

  .promo-card__cta {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .hero-form textarea {
    min-height: 86px !important;
  }

  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .quiz-live__layout {
    display: grid !important;
    grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr) !important;
    gap: 22px !important;
    align-items: stretch !important;
  }

  .quiz-live__side,
  .quiz-live__main {
    padding: 22px !important;
    border-radius: 26px !important;
  }

  .quiz-live__side-card {
    min-height: 470px !important;
    height: 100% !important;
  }

  .quiz-live__side-image {
    background-size: cover !important;
    background-position: center !important;
  }

  .quiz-live__side-overlay {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    padding: 18px !important;
  }

  .quiz-live__actions {
    grid-template-columns: auto 1fr auto !important;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .hero-copy--promo .promo-card {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px !important;
  }

  .hero-copy--promo .promo-card__top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__grid {
    width: 100% !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-copy--promo .promo-card__bottom {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__text {
    max-width: 360px !important;
    text-align: center !important;
  }

  .hero-copy--promo .promo-card__cta {
    width: auto !important;
    min-width: 150px !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .emergency-contact {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  .emergency-contact__panel {
    padding: 30px !important;
  }

  .emergency-contact__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .emergency-link__meta {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 620px) {
  .emergency-contact__grid {
    grid-template-columns: 1fr !important;
  }

  .emergency-link,
  .emergency-link--call {
    grid-column: auto !important;
    min-height: 82px !important;
  }
}

@media (min-width: 981px) and (max-width: 1123px) {
  .emergency-contact {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  .emergency-contact__panel {
    padding: 30px !important;
  }

  .emergency-contact__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .emergency-link__meta {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .emergency-link--call {
    grid-column: 1 / -1 !important;
    min-height: 86px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .emergency-link--call .emergency-link__title {
    font-size: 26px !important;
  }
}

@media (max-width: 489px) {
  .quiz-live__side-card {
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .quiz-live__side-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    display: block !important;
    background-size: cover !important;
    background-position: center 32% !important;
    opacity: 0.9 !important;
  }

  .quiz-live__side-overlay {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 0 20px 20px !important;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.96), rgba(10, 8, 6, 0.98)) !important;
    backdrop-filter: none !important;
    text-align: left !important;
  }

  .quiz-live__side-label {
    min-height: 30px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
  }
}

@media (max-width: 380px) {
  .quiz-live__side-image {
    height: 230px !important;
    min-height: 230px !important;
  }

  .quiz-live__side-overlay {
    padding: 16px !important;
  }

  .container,
  .services .container,
  .services-premium .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .services-premium__grid,
  .services-cards-visual {
    max-width: 360px !important;
  }

  .service-card__image-placeholder {
    height: 132px !important;
  }

  .services-cards-visual .service-card--premium h3 {
    font-size: 20px !important;
  }

  .services-cards-visual .service-card--premium p {
    font-size: 14px !important;
  }

  .reviews-video__track {
    grid-auto-columns: 230px !important;
  }

  .review-video-card {
    width: 230px !important;
    max-width: 230px !important;
  }

  .review-video-card__media {
    height: 320px !important;
    max-height: 320px !important;
  }

  .contact-form .final-field--turnstile {
    padding: 10px !important;
    overflow: visible !important;
  }

  .contact-form .cf-turnstile {
    transform: scale(0.92) !important;
    transform-origin: left top !important;
    width: 109% !important;
    margin-bottom: -4px !important;
  }

  .gallery-info--premium {
    padding: 22px 16px !important;
  }

  .gallery-info--premium h2 {
    font-size: 26px !important;
  }

  .gallery__items--photos {
    gap: 8px !important;
  }

  .gallery__items--photos>* {
    border-radius: 14px !important;
  }
}

@media (max-width: 900px) {

  .services-premium__head,
  .services-premium__banner {
    max-width: 720px !important;
  }

  .services-premium__head {
    text-align: center !important;
    padding: 28px 24px !important;
  }

  .services-premium__head .eyebrow,
  .services-premium__head h2,
  .services-premium__head p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services-premium__banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 26px 24px !important;
    text-align: center !important;
  }

  .services-premium__banner-label {
    align-self: center !important;
  }

  .services-premium__banner-old,
  .services-premium__banner-title,
  .services-premium__banner-text {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .services-premium__banner .button {
    width: min(100%, 420px) !important;
    min-width: 0 !important;
    margin-top: 18px !important;
  }
}

@media (max-width: 740px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services .container,
  .services-premium .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services-premium__hero,
  .services-premium__head,
  .services-premium__banner,
  .services-premium__grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services-premium__head,
  .services-premium__banner,
  .service-card--premium {
    box-sizing: border-box !important;
  }

  .service-card--premium {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 521px) and (max-width: 760px) {

  .services-premium__grid,
  .services-cards-visual {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services-cards-visual .service-card--premium,
  .service-card--premium {
    width: 100% !important;
    max-width: none !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .service-card__image-placeholder {
    height: 120px !important;
    margin: 10px 0 12px !important;
    border-radius: 16px !important;
  }

  .services-cards-visual .service-card--premium h3 {
    font-size: 19px !important;
    line-height: 1.12 !important;
  }

  .service-card__subtitle {
    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.08em !important;
  }

  .services-cards-visual .service-card--premium p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .service-card__topline {
    gap: 8px !important;
  }

  .service-card__badge {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
  }

  .service-card__price-old {
    font-size: 12px !important;
  }

  .service-card__price {
    font-size: 16px !important;
  }

  .service-card__actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding-top: 14px !important;
  }

  .service-card__actions .button {
    min-height: 42px !important;
    font-size: 13px !important;
  }

  .gallery {
    padding: 42px 0 54px !important;
  }

  .gallery .gallery__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .gallery-info--premium {
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 26px 24px !important;
    border-radius: 26px !important;
    text-align: center !important;
  }

  .gallery-info--premium .eyebrow {
    min-height: 34px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gallery-info--premium h2 {
    max-width: 520px !important;
    margin: 16px auto 12px !important;
    font-size: 34px !important;
    line-height: 1.06 !important;
  }

  .gallery-info--premium p {
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .gallery-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 520px !important;
    margin: 22px auto 0 !important;
  }

  .gallery-stat {
    min-height: 86px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .gallery-stat__label {
    font-size: 10px !important;
    letter-spacing: .18em !important;
  }

  .gallery-stat__num {
    font-size: 34px !important;
    line-height: 1 !important;
  }

  .gallery-note {
    max-width: 520px !important;
    margin: 16px auto 0 !important;
    padding: 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .gallery-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 520px !important;
    margin: 18px auto 0 !important;
  }

  .gallery-actions .button {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 14px !important;
  }

  .gallery__items--photos {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gallery__items--photos>* {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    overflow: hidden !important;
  }

  .gallery__items--photos img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 1024px) {
  .reviews-video__track {
    touch-action: pan-x pan-y !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .review-video-card,
  .review-video-card__media,
  .review-video-card__media img {
    touch-action: pan-x pan-y !important;
  }
}

@media (max-width: 330px) {
  .contact-form .cf-turnstile {
    transform: scale(0.86) !important;
    width: 116% !important;
    margin-bottom: -8px !important;
  }
}

/* =========================================================
   02. Шапка и навигация
========================================================= */

.logo,
.logo__top,
.logo__bottom {
  display: none !important;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 17, 13, 0.85);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

body.review-video-modal-open .header {
  z-index: 1 !important;
}

body.gallery-modal-open .header {
  z-index: 1 !important;
}

@media (max-width: 1100px) {
  .burger {
    display: inline-flex;
    justify-self: center;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .burger {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .burger {
    display: inline-flex !important;
    justify-self: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 520px) {
  .burger {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 420px) {
  .burger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    justify-self: center !important;
  }
}

@media (max-width: 360px) {
  .burger {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
    max-width: 36px !important;
    flex-basis: 36px !important;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .burger {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .burger {
    display: inline-flex !important;
    justify-self: center !important;
  }
}

/* =========================================================
   03. Первый экран, промо и основная форма
========================================================= */

.hero {
  padding: 64px 0 78px;
}

.hero-top__kicker {
  display: inline-block;
  padding: 0 0 10px;
  color: #d7a25e;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title-divider {
  width: 120px;
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, rgba(212, 160, 91, 0.9), rgba(212, 160, 91, 0));
}

.hero-copy {
  margin-top: 18px;
  max-width: 100%;
}

.hero-copy__text {
  margin: 10px 0 0;
  color: #cdb893;
  font-size: 14px;
  line-height: 1.55;
}

.hero-form {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 24px;
  height: 100%;
}

.hero-form__form,
.form-success {
  width: 100%;
}

.hero-form__form {
  display: block;
}

.hero-form__form.is-hidden {
  display: none;
}

.hero-form__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  margin-top: 8px;
}

.form-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-form__submit {
  width: 100%;
  margin-top: 0;
  min-height: 46px;
}

.field-hint {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(216, 196, 163, 0.72);
}

.form-success {
  display: none;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
}

.form-success.is-visible {
  display: flex;
}

.form-success__icon {
  width: 118px;
  height: 118px;
  margin-bottom: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 223, 151, 0.24), transparent 45%), linear-gradient(180deg, rgba(212, 160, 91, 0.2), rgba(154, 103, 47, 0.22));
  border: 1px solid rgba(212, 160, 91, 0.28);
  box-shadow: 0 0 0 10px rgba(212, 160, 91, 0.04), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.form-success__icon svg {
  width: 64px;
  height: 64px;
}

.form-success__icon circle {
  fill: rgba(212, 160, 91, 0.16);
  stroke: rgba(212, 160, 91, 0.7);
  stroke-width: 2;
}

.form-success__title {
  margin: 18px 0 12px;
  max-width: 520px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  color: #f5e8cd;
}

.form-success__text {
  max-width: 520px;
  margin: 0;
  color: #d8c4a3;
  font-size: 17px;
  line-height: 1.7;
}

.quiz-live__form .field-hint {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(216, 196, 163, 0.72);
}

.hero-copy--promo {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.hero-form__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-copy__intro {
  display: grid;
  gap: 0;
}

.hero-copy--promo .hero-copy__text {
  margin: 10px 0 0;
  color: #cdb893;
  font-size: 14px;
  line-height: 1.55;
}

.promo-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-timer__item {
  min-width: 60px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 91, 0.2);
  background: rgba(18, 13, 10, 0.88);
  text-align: center;
}

.promo-timer__num {
  display: block;
  color: #f7e7c7;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.promo-timer__sep {
  color: rgba(212, 160, 91, 0.65);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.promo-price {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 160, 91, 0.16);
  background: linear-gradient(180deg, rgba(27, 20, 15, 0.96), rgba(13, 10, 8, 0.96));
}

.promo-price__title {
  min-height: 34px;
  color: #f0dfbf;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.promo-price__old {
  margin-top: 8px;
  color: rgba(216, 196, 163, 0.48);
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-color: rgba(216, 196, 163, 0.48);
}

.promo-price__now {
  margin-top: 2px;
  color: #ffd48f;
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.promo-price__note {
  margin-top: 6px;
  color: rgba(216, 196, 163, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.hero-top,
.hero-form {
  height: 100%;
}

.hero-form .form-group {
  gap: 6px;
  margin-bottom: 10px;
}

.hero-form .field-hint {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.25;
}

.hero-form .field-error {
  min-height: 0;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.hero-turnstile {
  margin-top: 2px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.hero-turnstile .cf-turnstile {
  min-height: 60px;
}

@media (max-width: 760px) {
  .hero-form {
    padding: 20px;
  }

  .hero-title-divider {
    margin: 22px 0 20px;
  }

  .hero-copy__text {
    font-size: 16px;
  }

  .promo-timer {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .promo-timer__item {
    min-width: 0;
    flex: 1 1 0;
  }

  .promo-timer__sep {
    display: none;
  }

  .promo-price__title {
    min-height: auto;
  }

  .hero-turnstile {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .promo-timer {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .promo-timer__item {
    min-width: 0;
    flex: 1 1 0;
  }

  .promo-timer__num {
    font-size: 22px;
  }

  .promo-timer__sep {
    display: none;
  }

  .promo-price__title {
    min-height: auto;
  }
}

@media (max-width: 980px) {

  .hero-top,
  .hero-form {
    height: auto;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero {
    padding: 44px 0 58px !important;
  }

  .hero-copy {
    max-width: 680px !important;
  }

  .hero-form {
    max-width: 680px !important;
    padding: 30px !important;
  }

  .hero-form__title {
    max-width: 520px !important;
    font-size: clamp(30px, 4vw, 38px) !important;
  }

  .hero-form__submit {
    max-width: 100% !important;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {

  .hero-top,
  .hero-form {
    height: 100% !important;
  }

  .hero-form {
    padding: 24px !important;
  }

  .promo-timer {
    width: auto !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .promo-timer__item {
    min-width: 56px !important;
    flex: 0 0 auto !important;
  }

  .promo-timer__sep {
    display: inline-block !important;
  }

  .promo-price__title {
    min-height: 34px !important;
  }

  .hero-form__title {
    font-size: clamp(28px, 2.6vw, 34px) !important;
  }

  .hero-form__submit {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 34px 0 48px !important;
  }

  .hero-top,
  .hero-form {
    max-width: 620px !important;
  }

  .promo-timer {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .hero-copy--promo {
    width: 100% !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .hero-copy__intro {
    width: 100% !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .hero-copy__text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .promo-timer {
    width: auto !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .promo-price {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 26px 0 42px !important;
  }

  .hero-top,
  .hero-form {
    max-width: none !important;
  }

  .hero-copy__text {
    font-size: 15px !important;
  }

  .promo-timer {
    gap: 5px !important;
  }

  .promo-timer__item {
    min-width: 56px !important;
    padding: 10px 8px !important;
  }

  .promo-timer__num {
    font-size: 22px !important;
  }

  .hero-form__title {
    font-size: 27px !important;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .hero-copy--promo {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .hero-copy__intro {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .hero-copy__text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy--promo .promo-timer {
    justify-content: center !important;
  }

  .hero-copy--promo .promo-price {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .hero-copy--promo .promo-timer {
    gap: 5px !important;
  }

  .hero-copy--promo .promo-timer__item {
    min-width: 54px !important;
    padding: 10px 8px !important;
  }

  .hero-copy--promo .promo-timer__num {
    font-size: 22px !important;
  }
}

/* =========================================================
   04. Видео-блок в hero
========================================================= */

.video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #100c09;
  overflow: hidden;
}

.video-shell__poster {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

/* =========================================================
   05. Срочный блок связи
========================================================= */

.emergency-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: linear-gradient(180deg, rgba(31, 23, 17, 0.96), rgba(16, 12, 10, 0.96));
  transition: 0.2s ease;
}

.emergency-link:hover {
  border-color: rgba(212, 160, 91, 0.45);
  transform: translateY(-1px);
}

.emergency-link__title {
  color: #f1dfc0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 981px) and (max-width: 1180px) {
  .emergency-link {
    min-width: 0 !important;
    min-height: 118px !important;
    padding: 16px 14px !important;
  }

  .emergency-link__title {
    font-size: 22px !important;
    line-height: 1.08 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 980px) {
  .emergency-link {
    min-width: 0 !important;
    min-height: 94px !important;
    padding: 18px 20px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .emergency-link__title {
    font-size: 24px !important;
    line-height: 1.12 !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 620px) {
  .emergency-link__title {
    font-size: 20px !important;
  }
}

@media (min-width: 981px) and (max-width: 1123px) {
  .emergency-link {
    min-width: 0 !important;
    min-height: 104px !important;
    padding: 18px 20px !important;
  }

  .emergency-link__title {
    font-size: 24px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 420px) {
  .emergency-link {
    min-height: 76px !important;
    padding: 16px !important;
  }

  .emergency-link__title {
    font-size: 20px !important;
  }
}

/* =========================================================
   06. Квиз
========================================================= */

.quiz-live {
  padding: 72px 0 84px;
}

.quiz-live__title {
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  color: #f5e8cd;
}

.quiz-live__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.quiz-live__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-live__steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-live__side-title {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #f5e8cd;
}

.quiz-live__side-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.quiz-live__question {
  margin: 18px 0 22px;
  max-width: 760px;
  font-size: clamp(26px, 2.7vw, 42px);
  line-height: 1.08;
  color: #f5e8cd;
}

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

.quiz-live__option {
  min-height: 132px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: linear-gradient(180deg, rgba(24, 18, 14, 0.96), rgba(14, 11, 9, 0.96));
  text-align: left;
  transition: 0.2s ease;
}

.quiz-live__option:hover {
  border-color: rgba(212, 160, 91, 0.38);
  transform: translateY(-1px);
}

.quiz-live__option.is-selected {
  border-color: rgba(212, 160, 91, 0.48);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 91, 0.16);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 22%), linear-gradient(180deg, rgba(28, 20, 16, 0.98), rgba(16, 12, 10, 0.98));
}

.quiz-live__option-title {
  display: block;
  color: #f2e4c8;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 700;
}

.quiz-live__option-text {
  display: block;
  margin-top: 10px;
  color: rgba(216, 196, 163, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.quiz-live__form {
  margin-top: 18px;
}

.quiz-live__success {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  min-height: 420px;
}

.quiz-live__success:not([hidden]) {
  display: flex;
}

.quiz-live__success-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1e1309;
  font-size: 42px;
  font-weight: 800;
}

.quiz-live__success-title {
  margin: 18px 0 10px;
  font-size: 34px;
  color: #f5e8cd;
}

.quiz-live__success-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.quiz-live__mini-note {
  color: rgba(216, 196, 163, 0.7);
  font-size: 13px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quiz-field--phone .iti__selected-country {
  border-radius: var(--radius-box) 0 0 var(--radius-box);
  background: rgba(25, 18, 13, 0.92);
  border-right: 1px solid rgba(197, 140, 66, 0.18);
}

.quiz-field--phone .iti {
  width: 100%;
}

.quiz-field--phone .iti__dropdown-content {
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: #120d0a;
  color: #f5e8cd;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.quiz-field--phone .iti__country {
  color: #f5e8cd;
}

.quiz-field--phone .iti__country:hover,
.quiz-field--phone .iti__country.iti__highlight {
  background: rgba(212, 160, 91, 0.14);
}

.quiz-turnstile {
  margin-top: 8px;
}

.quiz-turnstile .cf-turnstile {
  min-height: 65px;
}

@media (max-width: 760px) {
  .quiz-live {
    padding: 58px 0;
  }

  .quiz-live__title {
    font-size: 36px;
  }

  .quiz-live__text {
    font-size: 15px;
  }

  .quiz-live__question {
    font-size: 30px;
  }

  .quiz-live__option {
    min-height: 112px;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .quiz-live {
    padding: 64px 0 76px !important;
  }

  .quiz-live__question {
    font-size: clamp(28px, 2.8vw, 38px) !important;
    line-height: 1.08 !important;
  }

  .quiz-live__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .quiz-live__option {
    min-height: 126px !important;
    padding: 18px !important;
  }

  .quiz-live__option-title {
    font-size: 18px !important;
  }

  .quiz-live__option-text {
    font-size: 14px !important;
  }
}

@media (max-width: 980px) {
  .quiz-live {
    padding: 54px 0 66px !important;
  }

  .quiz-live__question {
    max-width: 680px !important;
    font-size: clamp(30px, 4.5vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .quiz-live__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .quiz-live__option {
    min-height: 118px !important;
  }
}

@media (max-width: 768px) {
  .quiz-live {
    padding: 46px 0 58px !important;
  }

  .quiz-live__steps {
    justify-content: center !important;
  }

  .quiz-live__question {
    text-align: center !important;
    font-size: clamp(28px, 6vw, 36px) !important;
  }

  .quiz-live__options {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .quiz-live__option {
    min-height: 96px !important;
    text-align: center !important;
  }

  .quiz-live__side-title {
    margin: 12px 0 6px !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .quiz-live__side-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  #quizNext {
    display: none !important;
  }

  #quizPrev {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .quiz-live {
    padding: 36px 0 48px !important;
  }

  .quiz-live__side-title {
    font-size: 20px !important;
  }

  .quiz-live__side-text {
    font-size: 14px !important;
  }

  .quiz-live__question {
    font-size: 26px !important;
  }

  .quiz-live__option-title {
    font-size: 17px !important;
  }

  .quiz-live__option-text {
    font-size: 13px !important;
  }
}

@media (max-width: 489px) {
  .quiz-live__side-title {
    margin: 12px 0 6px !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .quiz-live__side-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 380px) {
  .quiz-live__side-title {
    font-size: 20px !important;
  }

  .quiz-live__side-text {
    font-size: 14px !important;
  }
}

/* =========================================================
   07. Услуги и попап услуги
========================================================= */

.services__grid,
.reviews__grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-modal__close,
.review-video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  border-radius: 12px;
  background: rgba(18, 14, 11, 0.92);
  color: #f5e8cd;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.services-premium {
  position: relative;
}

.services-premium__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-bottom: 20px;
  align-items: stretch;
}

.services-premium__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.service-modal[hidden],
.review-video-modal[hidden] {
  display: none !important;
}

.service-modal,
.review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.service-modal__overlay,
.review-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.72);
  backdrop-filter: blur(6px);
}

.service-modal__dialog,
.review-video-modal__dialog {
  position: relative;
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 24%), linear-gradient(180deg, rgba(25, 19, 14, 0.98), rgba(11, 9, 8, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.service-modal__image {
  margin-top: 18px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(197, 140, 66, 0.18);
}

.service-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.service-modal__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: rgba(18, 14, 11, 0.82);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-modal__price {
  margin-top: 16px;
  color: #f7e2bb;
  font-size: 24px;
  font-weight: 800;
}

.service-modal__title {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  color: #f5e8cd;
}

.service-modal__subtitle {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-modal__text {
  margin: 18px 0 0;
  color: #d8c4a3;
  font-size: 16px;
  line-height: 1.72;
}

.service-modal__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-modal__list li {
  position: relative;
  padding-left: 20px;
  color: #ead8b9;
  font-size: 15px;
  line-height: 1.55;
}

.service-modal__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.service-modal__cta {
  margin-top: 22px;
  width: 100%;
}

.service-modal {
  z-index: 30000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.service-modal__overlay {
  z-index: 30001 !important;
}

.service-modal__dialog {
  z-index: 30002 !important;
  margin-top: 90px !important;
  margin-bottom: 40px !important;
  margin: 0 auto !important;
  width: min(680px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
}

.service-modal__close {
  z-index: 30003 !important;
}

.service-modal[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .services-premium__hero {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 22px !important;
    align-items: stretch !important;
  }

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

  .services-premium {
    padding-top: 58px !important;
  }
}

@media (max-width: 760px) {
  .services-premium__grid {
    grid-template-columns: 1fr;
  }

  .service-modal__dialog {
    padding: 20px;
    border-radius: 22px;
  }

  .service-modal__image {
    height: 170px;
    margin-top: 16px;
    border-radius: 16px;
  }

  .service-modal__title {
    font-size: 30px;
  }

  .service-modal__text,
  .service-modal__list li {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .services-premium__hero {
    max-width: 720px !important;
  }
}

@media (max-width: 520px) {
  .services-premium {
    padding-top: 44px !important;
  }

  .services-premium__hero {
    gap: 14px !important;
  }
}

@media (max-width: 740px) {

  .services,
  .services-premium {
    overflow: hidden !important;
  }

  .services-premium__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {
  .service-modal__dialog {
    margin-top: 78px !important;
    margin-bottom: 28px !important;
    width: min(680px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 36px) !important;
  }

  .service-modal {
    padding: 18px !important;
  }
}

@media (max-width: 420px) {
  .service-modal__dialog {
    margin-top: 72px !important;
    margin-bottom: 20px !important;
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  .service-modal {
    padding: 12px !important;
  }
}

/* =========================================================
   08. Видео-отзывы и попап видео
========================================================= */

.review-video-modal[hidden] {
  display: none !important;
}

.review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 31000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.review-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.72);
  backdrop-filter: blur(6px);
  z-index: 31001 !important;
}

.review-video-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow: auto;
  margin: 0 auto !important;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.08), transparent 24%), linear-gradient(180deg, rgba(25, 19, 14, 0.98), rgba(11, 9, 8, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  z-index: 31002 !important;
  overflow-y: auto !important;
}

.review-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  border-radius: 12px;
  background: rgba(18, 14, 11, 0.92);
  color: #f5e8cd;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 31003 !important;
}

.review-video-modal__player {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: #000;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}

.review-video-modal__player video {
  width: 100%;
  max-height: none;
  display: block;
  background: #000;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.review-video-modal-open {
  overflow: hidden;
}

.reviews-video {
  padding: 78px 0;
}

.reviews-video__intro {
  margin-bottom: 0;
}

.reviews-video__intro p {
  max-width: 620px;
}

.review-video-modal__title {
  margin: 0 0 14px;
  padding-right: 48px;
  color: #f5e8cd;
  font-size: 24px;
  line-height: 1.15;
}

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

@media (max-width: 760px) {
  .review-video-modal__dialog {
    padding: 16px;
    border-radius: 22px;
    width: min(420px, calc(100% - 20px));
  }

  .review-video-modal__title {
    font-size: 20px;
  }

  .review-video-modal__player {
    max-height: 74vh;
  }

  .reviews-video {
    padding: 46px 0 58px !important;
  }

  .reviews-video__intro {
    max-width: 100% !important;
  }

  .reviews-video__intro h2,
  .reviews-video h2 {
    font-size: 30px !important;
    line-height: 1.08 !important;
  }

  .reviews-video__intro p {
    max-width: 520px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 768px) {
  .review-video-modal {
    padding: 18px !important;
  }

  .review-video-modal__dialog {
    width: min(520px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 36px) !important;
  }
}

@media (max-width: 420px) {
  .review-video-modal {
    padding: 12px !important;
  }

  .review-video-modal__dialog {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
  }
}

/* =========================================================
   09. Галерея и попап галереи
========================================================= */

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 33000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.78);
  backdrop-filter: blur(7px);
  z-index: 33001 !important;
}

.gallery-modal__dialog {
  position: relative;
  z-index: 33002 !important;
  width: min(1120px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(197, 140, 66, 0.24);
  background: radial-gradient(circle at top right, rgba(212, 160, 91, 0.09), transparent 24%), linear-gradient(180deg, rgba(25, 19, 14, 0.98), rgba(11, 9, 8, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 18px !important;
}

.gallery-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(197, 140, 66, 0.24);
  border-radius: 14px;
  background: rgba(18, 14, 11, 0.94);
  color: #f5e8cd;
  font-size: 28px;
  line-height: 1;
  z-index: 33003 !important;
}

.gallery-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 56px;
  margin-bottom: 16px;
}

.gallery-modal__eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-modal__title {
  margin: 8px 0 0;
  color: #f5e8cd;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
}

.gallery-modal__counter {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.2);
  background: rgba(18, 14, 11, 0.82);
  color: #f0dfbf;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.gallery-modal__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 0 !important;
  max-height: calc(100vh - 230px) !important;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.18);
  background: radial-gradient(circle at center, rgba(212, 160, 91, 0.08), transparent 32%), #050403;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto !important;
}

.gallery-modal__image {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 250px) !important;
  object-fit: contain !important;
  display: block;
}

.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 66, 0.28);
  background: rgba(18, 14, 11, 0.82);
  color: #f5e8cd;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.gallery-modal__nav:hover {
  border-color: rgba(212, 160, 91, 0.5);
  background: rgba(30, 22, 16, 0.92);
}

.gallery-modal__nav--prev {
  left: 14px;
}

.gallery-modal__nav--next {
  right: 14px;
}

.gallery-modal__thumbs {
  display: flex !important;
  grid-auto-flow: column;
  grid-auto-columns: 74px;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 0 0 6px !important;
  scrollbar-width: none;
  width: 100% !important;
  max-width: 680px !important;
  margin: 14px auto 0 !important;
  justify-content: center !important;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.14);
  background: rgba(10, 8, 6, 0.48);
  flex: 0 0 auto !important;
  overflow-y: visible !important;
}

.gallery-modal__thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(18, 14, 11, 0.9);
  opacity: 0.62;
  transition: 0.2s ease;
  flex: 0 0 74px;
}

.gallery-modal__thumb.is-active {
  opacity: 1;
  border-color: rgba(212, 160, 91, 0.58);
  box-shadow: 0 0 0 1px rgba(212, 160, 91, 0.14), 0 0 18px rgba(212, 160, 91, 0.16);
}

body.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-modal__thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal__thumbs button,
.gallery-modal__thumbs img {
  flex: 0 0 auto !important;
}

@media (max-width: 760px) {
  .gallery-modal__dialog {
    padding: 16px;
    border-radius: 22px;
  }

  .gallery-modal__top {
    padding-right: 48px;
  }

  .gallery-modal__image-wrap {
    min-height: 320px;
    border-radius: 18px;
  }

  .gallery-modal__nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .gallery-modal__nav--prev {
    left: 8px;
  }

  .gallery-modal__nav--next {
    right: 8px;
  }

  .gallery-modal__thumbs {
    grid-auto-columns: 62px;
    justify-content: flex-start;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
  }

  .gallery-modal__thumb {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    flex-basis: 62px;
  }
}

@media (max-width: 768px) {
  .gallery-modal {
    padding: 18px !important;
  }

  .gallery-modal__dialog {
    width: calc(100vw - 36px) !important;
    max-height: calc(100vh - 36px) !important;
  }

  .gallery-modal__image-wrap {
    max-height: calc(100vh - 220px) !important;
  }

  .gallery-modal__image {
    max-height: calc(100vh - 240px) !important;
  }

  .gallery-modal__thumbs {
    max-width: 100% !important;
    justify-content: center !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-padding-left: 10px !important;
    scroll-padding-right: 10px !important;
  }

  .gallery-modal__thumbs button {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
  }

  .gallery-modal__thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 420px) {
  .gallery-modal {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gallery-modal__dialog {
    width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 24px) !important;
    max-width: 320px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    margin: 0 auto !important;
    padding-top: 58px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .gallery-modal__image-wrap {
    max-height: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  .gallery-modal__image {
    max-height: 270px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 16px !important;
  }

  .gallery-modal__thumbs {
    margin-top: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px auto 0 !important;
    padding: 0 2px 4px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    flex: 0 0 auto !important;
  }

  .gallery-modal__top {
    display: block !important;
    grid-template-columns: 1fr auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    grid-template-areas: "eyebrow counter close" "title title title" !important;
    margin-bottom: 14px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .gallery-modal__top>div:first-child {
    min-width: 0 !important;
    display: block !important;
  }

  .gallery-modal__eyebrow {
    font-size: 10px !important;
    letter-spacing: .18em !important;
    grid-area: eyebrow !important;
    margin: 0 0 8px !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .gallery-modal__title {
    max-width: none !important;
    font-size: 22px !important;
    line-height: 1.12 !important;
    grid-area: title !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    display: block !important;
  }

  .gallery-modal__counter {
    position: absolute !important;
    width: auto !important;
    min-width: 58px !important;
    height: 38px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    grid-area: counter !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    top: 14px !important;
    right: 60px !important;
    z-index: 20 !important;
  }

  .gallery-modal__close {
    position: absolute !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    line-height: 1 !important;
    grid-area: close !important;
    border-radius: 12px !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    z-index: 20 !important;
  }

  .gallery-modal__nav {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 26px !important;
    z-index: 12 !important;
  }

  .gallery-modal__nav--prev {
    left: 8px !important;
  }

  .gallery-modal__nav--next {
    right: 8px !important;
  }

  .gallery-modal__thumbs button {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }

  .gallery-modal__thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gallery-modal__thumbs button,
  .gallery-modal__thumb {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }

  .gallery-modal__thumbs img,
  .gallery-modal__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 520px) {
  .gallery-modal__thumbs {
    justify-content: center !important;
    gap: 7px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .gallery-modal__thumbs button {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
  }
}

@media (max-width: 380px) {
  .gallery-modal__thumbs button {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (max-width: 340px) {
  .gallery-modal__dialog {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: calc(100vw - 24px) !important;
    max-width: 296px !important;
    padding: 15px !important;
    padding-top: 56px !important;
  }

  .gallery-modal__top {
    gap: 6px !important;
  }

  .gallery-modal__title {
    max-width: 128px !important;
    font-size: 21px !important;
  }

  .gallery-modal__counter {
    min-width: 54px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    right: 56px !important;
  }

  .gallery-modal__close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 23px !important;
  }

  .gallery-modal__image {
    max-height: 245px !important;
  }

  .gallery-modal__thumbs button {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
  }

  .gallery-modal__thumbs button,
  .gallery-modal__thumb {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
  }
}

/* =========================================================
   10. Финальная форма и футер
========================================================= */

.site-footer {
  padding: 34px 0 28px;
  border-top: 1px solid rgba(197, 140, 66, 0.12);
  background: radial-gradient(circle at top, rgba(212, 160, 91, 0.05), transparent 24%), rgba(7, 6, 5, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: start;
}

.site-footer__name {
  color: #f5e8cd;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.site-footer__text {
  max-width: 360px;
  margin-top: 8px;
  color: rgba(216, 196, 163, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  max-width: 420px;
}

.site-footer__nav a,
.site-footer__contacts a {
  color: rgba(216, 196, 163, 0.78);
  font-size: 14px;
  transition: 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__contacts a:hover {
  color: #fff1d6;
}

.site-footer__contacts {
  justify-self: end;
  display: grid;
  gap: 8px;
  text-align: right;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 140, 66, 0.1);
  color: rgba(216, 196, 163, 0.52);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-footer__inner {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-items: center !important;
    align-items: center !important;
  }

  .site-footer__nav {
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 10px 18px !important;
    text-align: center !important;
  }

  .site-footer__contacts {
    justify-self: start;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 10px 14px !important;
  }

  .site-footer {
    padding: 38px 0 28px !important;
    border-top: 1px solid rgba(197, 140, 66, 0.14) !important;
    background: radial-gradient(circle at top, rgba(212, 160, 91, 0.06), transparent 32%), rgba(7, 6, 5, 0.98) !important;
  }

  .site-footer .container {
    width: 100% !important;
    max-width: 760px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer__brand {
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .site-footer__name {
    font-size: 24px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  .site-footer__text {
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 8px !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .site-footer__nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .site-footer__contacts a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(197, 140, 66, 0.18) !important;
    background: rgba(18, 14, 11, 0.72) !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .site-footer__bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 26px !important;
    padding-top: 18px !important;
    gap: 8px !important;
    border-top: 1px solid rgba(197, 140, 66, 0.12) !important;
    text-align: center !important;
  }

  .site-footer__bottom div {
    width: 100% !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 640px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 32px 0 26px !important;
  }

  .site-footer .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .site-footer__inner {
    gap: 20px !important;
  }

  .site-footer__name {
    font-size: 22px !important;
  }

  .site-footer__text {
    font-size: 14px !important;
  }

  .site-footer__nav {
    max-width: 340px !important;
    gap: 8px 14px !important;
  }

  .site-footer__nav a {
    font-size: 13px !important;
    min-height: 30px !important;
  }

  .site-footer__contacts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-width: 320px !important;
    gap: 10px !important;
  }

  .site-footer__contacts a {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  .site-footer__bottom {
    margin-top: 22px !important;
    padding-top: 16px !important;
  }
}

@media (max-width: 360px) {
  .site-footer .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-footer__nav {
    max-width: 300px !important;
    gap: 6px 10px !important;
  }

  .site-footer__nav a {
    font-size: 12.5px !important;
  }

  .site-footer__contacts {
    max-width: 290px !important;
  }
}

/* =========================================================
   11. Плавающие кнопки и кнопка наверх
========================================================= */

.floating-messengers {
  position: fixed !important;
  left: 20px !important;
  top: auto !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transform: none !important;
  pointer-events: none;
  right: auto !important;
  bottom: 20px !important;
  align-items: center !important;
}

.floating-messengers__btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  pointer-events: auto;
  text-decoration: none !important;
  color: #f5e8cd;
  border: 1px solid rgba(212, 160, 91, 0.28);
  background: radial-gradient(circle at 35% 25%, rgba(255, 224, 155, 0.18), transparent 38%), linear-gradient(180deg, rgba(30, 22, 15, 0.96), rgba(10, 8, 6, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  animation: floatingMessengerNudge 3s ease-in-out infinite !important;
  will-change: transform, box-shadow !important;
}

.floating-messengers__btn:hover {
  transform: translateY(-3px) scale(1.06) !important;
  border-color: rgba(212, 160, 91, 0.62);
  box-shadow: 0 0 0 1px rgba(197, 140, 66, 0.38), 0 14px 34px rgba(197, 140, 66, 0.22) !important;
}

.floating-messengers__icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: rgba(212, 160, 91, 0.13);
  color: #f4d18b;
}

.floating-messengers__btn--whatsapp .floating-messengers__icon {
  color: #25d366 !important;
}

.floating-messengers__btn--telegram .floating-messengers__icon {
  color: #2aabee !important;
}

.floating-messengers__text {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  min-width: 94px;
  padding: 8px 11px;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-8px, -50%);
  color: #f5e8cd;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(18, 13, 10, 0.96);
  border: 1px solid rgba(212, 160, 91, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  display: none !important;
}

.floating-messengers__btn:hover .floating-messengers__text {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(212, 160, 91, 0.32);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f5e8cd;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  background: radial-gradient(circle at 35% 25%, rgba(255, 224, 155, 0.18), transparent 38%), linear-gradient(180deg, rgba(30, 22, 15, 0.96), rgba(10, 8, 6, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  border-color: rgba(212, 160, 91, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 24px rgba(212, 160, 91, 0.14);
}

.floating-messengers__icon svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: currentColor !important;
}

.floating-messengers__btn--telegram .floating-messengers__icon svg {
  transform: translateX(-2px) translateY(0.5px) !important;
}

.floating-messengers__btn--telegram {
  animation-delay: 0.18s !important;
}

.floating-messengers__btn::after {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(197, 140, 66, 0.35) !important;
  opacity: 0 !important;
  transform: scale(0.82) !important;
  pointer-events: none !important;
  animation: floatingMessengerPulse 3s ease-in-out infinite !important;
}

.floating-messengers__btn--telegram::after {
  animation-delay: 0.18s !important;
}

@media (max-width: 980px) {
  .floating-messengers {
    left: 12px;
  }

  .floating-messengers__btn,
  .scroll-to-top {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .floating-messengers {
    left: 10px;
    top: auto;
    bottom: 86px;
    transform: none;
    gap: 8px;
  }

  .floating-messengers__btn {
    width: 48px;
    height: 48px;
  }

  .floating-messengers__text {
    display: none;
  }

  .scroll-to-top {
    right: 12px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .floating-messengers {
    left: 10px !important;
    bottom: 78px !important;
    gap: 10px !important;
  }

  .floating-messengers__btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    animation-duration: 3.4s !important;
  }

  .floating-messengers__icon {
    width: 22px !important;
    height: 22px !important;
  }

  .floating-messengers__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .floating-messengers__btn::after {
    animation-duration: 3.4s !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .floating-messengers__btn,
  .floating-messengers__btn::after {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  .floating-messengers {
    left: 8px !important;
    bottom: 68px !important;
    gap: 8px !important;
  }

  .floating-messengers__btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .floating-messengers__icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 520px) {
  .floating-messengers {
    left: 10px !important;
    bottom: 20px !important;
    gap: 8px !important;
  }

  .floating-messengers__btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .floating-messengers__icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* =========================================================
   13. Остальное
========================================================= */

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #ffb3a8;
  min-height: 18px;
}

.bot-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

@media (max-width: 980px) {
  .cf-turnstile {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* =========================================================
   14. Keyframes
========================================================= */

@keyframes heroFormAttention {

  0%,
  100% {
    border-color: rgba(197, 140, 66, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
  }

  25%,
  75% {
    border-color: rgba(255, 214, 143, 0.95);
    box-shadow: 0 0 0 4px rgba(212, 160, 91, 0.12), 0 0 36px rgba(212, 160, 91, 0.22), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
  }

  50% {
    border-color: rgba(197, 140, 66, 0.28);
    box-shadow: 0 0 0 10px rgba(212, 160, 91, 0.04), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
  }
}

@keyframes siteAttentionWave {

  0%,
  68%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  72% {
    transform: translateY(-3px) rotate(-1.5deg) scale(1.045);
  }

  76% {
    transform: translateY(1px) rotate(1.5deg) scale(1.025);
  }

  80% {
    transform: translateY(-2px) rotate(-0.8deg) scale(1.035);
  }

  84% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes siteAttentionGlow {

  0%,
  66%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  73% {
    opacity: 0.75;
    transform: scale(1);
  }

  90% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@keyframes floatingMessengerNudge {

  0%,
  72%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 0 0 1px rgba(197, 140, 66, 0.18), 0 10px 26px rgba(0, 0, 0, 0.32);
  }

  76% {
    transform: translateY(-3px) rotate(-2deg) scale(1.04);
    box-shadow: 0 0 0 1px rgba(197, 140, 66, 0.36), 0 12px 30px rgba(197, 140, 66, 0.18);
  }

  80% {
    transform: translateY(2px) rotate(2deg) scale(1.02);
  }

  84% {
    transform: translateY(-2px) rotate(-1deg) scale(1.04);
  }

  88% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes floatingMessengerPulse {

  0%,
  70%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  76% {
    opacity: 0.7;
    transform: scale(1);
  }

  92% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes heroFormAttention {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(197, 140, 66, 0.12);
  }

  45% {
    transform: scale(1.012);
    box-shadow: 0 24px 80px rgba(197, 140, 66, 0.18), inset 0 0 0 1px rgba(197, 140, 66, 0.42);
  }
}

@keyframes heroFormAttentionRing {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  35% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.035);
  }
}

@keyframes successAttentionCard {

  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.018);
  }
}

@keyframes successAttentionRing {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  35% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.045);
  }
}

@keyframes successAttentionIcon {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(212, 160, 91, 0));
  }

  45% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(212, 160, 91, 0.55));
  }
}

@keyframes heroTagSoftPulse {

  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.04), 0 0 0 rgba(212, 160, 91, 0) !important;
  }

  45% {
    box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.06), 0 0 18px rgba(212, 160, 91, 0.12) !important;
  }
}

/* =========================================================
   QUIZ AUTO POPUP
   Квиз автоматически открывается как попап
========================================================= */

body.quiz-popup-open {
  overflow: hidden !important;
}

body.quiz-popup-open .header {
  z-index: 1 !important;
}

.quiz-popup-close {
  display: none;
}

body.quiz-popup-open #quiz {
  position: fixed !important;
  inset: 0 !important;
  z-index: 35000 !important;
  display: block !important;
  padding: 28px 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: radial-gradient(circle at center, rgba(212, 160, 91, 0.09), transparent 42%), rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px) !important;
}

body.quiz-popup-open #quiz::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

body.quiz-popup-open #quiz .quiz-live__topbar,
body.quiz-popup-open #quiz .quiz-live__layout {
  position: relative !important;
  z-index: 2 !important;
  width: min(calc(100vw - 48px), 1080px) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.quiz-popup-open #quiz .quiz-live__topbar {
  margin-bottom: 18px !important;
}

body.quiz-popup-open #quiz .quiz-live__layout {
  align-items: stretch !important;
}

body.quiz-popup-open #quiz .quiz-live__topbar-card,
body.quiz-popup-open #quiz .quiz-live__side,
body.quiz-popup-open #quiz .quiz-live__main {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 214, 153, 0.03) inset !important;
}

body.quiz-popup-open .quiz-popup-close {
  position: fixed !important;
  top: 22px !important;
  right: 22px !important;
  z-index: 35010 !important;
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 140, 66, 0.28) !important;
  background: rgba(18, 14, 11, 0.92) !important;
  color: #f5e8cd !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.quiz-popup-open .quiz-popup-close:hover {
  border-color: rgba(212, 160, 91, 0.58) !important;
  color: #fff0d2 !important;
}

/* 980px и ниже */

@media (max-width: 980px) {
  body.quiz-popup-open #quiz {
    padding: 24px 0 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(calc(100vw - 36px), 760px) !important;
    max-width: 760px !important;
  }
}

/* 768px и ниже */

@media (max-width: 768px) {
  body.quiz-popup-open #quiz {
    padding: 18px 0 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: calc(100vw - 28px) !important;
  }

  body.quiz-popup-open .quiz-popup-close {
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 28px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    padding-right: 56px !important;
  }
}

/* 420px и ниже */

@media (max-width: 420px) {
  body.quiz-popup-open #quiz {
    padding: 14px 0 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: calc(100vw - 22px) !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar {
    margin-bottom: 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side,
  body.quiz-popup-open #quiz .quiz-live__main {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    padding: 16px 56px 16px 16px !important;
    border-radius: 22px !important;
  }

  body.quiz-popup-open .quiz-popup-close {
    top: 11px !important;
    right: 11px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 26px !important;
  }
}

/* =========================================================
   FINAL QUIZ AUTO POPUP RESPONSIVE
   Попап квиза: планшет / мобильные / закрытие по пустому месту
========================================================= */

body.quiz-popup-open {
  overflow: hidden !important;
}

body.quiz-popup-open .header {
  z-index: 1 !important;
}

.quiz-popup-close {
  display: none;
}

/* Затемнённый фон попапа */

body.quiz-popup-open #quiz {
  position: fixed !important;
  inset: 0 !important;
  z-index: 35000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 26px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: radial-gradient(circle at center, rgba(212, 160, 91, 0.09), transparent 42%), rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px) !important;
}

/* Внутренний контейнер попапа */

body.quiz-popup-open #quiz .quiz-live__topbar,
body.quiz-popup-open #quiz .quiz-live__layout {
  position: relative !important;
  z-index: 2 !important;
  width: min(100%, 1080px) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.quiz-popup-open #quiz .quiz-live__topbar {
  margin-bottom: 16px !important;
}

body.quiz-popup-open #quiz .quiz-live__layout {
  display: grid !important;
  grid-template-columns: 0.85fr 1.15fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

/* Карточки внутри попапа */

body.quiz-popup-open #quiz .quiz-live__topbar-card,
body.quiz-popup-open #quiz .quiz-live__side,
body.quiz-popup-open #quiz .quiz-live__main {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 214, 153, 0.03) inset !important;
}

/* Кнопка закрытия */

body.quiz-popup-open .quiz-popup-close {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 35010 !important;
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 140, 66, 0.28) !important;
  background: rgba(18, 14, 11, 0.92) !important;
  color: #f5e8cd !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.quiz-popup-open .quiz-popup-close:hover {
  border-color: rgba(212, 160, 91, 0.58) !important;
  color: #fff0d2 !important;
}

/* =========================================================
   TABLET: 981px–1100px
========================================================= */

@media (min-width: 981px) and (max-width: 1100px) {
  body.quiz-popup-open #quiz {
    padding: 24px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 940px) !important;
    max-width: 940px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    grid-template-columns: 0.8fr 1.2fr !important;
    gap: 16px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    padding: 18px 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side,
  body.quiz-popup-open #quiz .quiz-live__main {
    padding: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side-card {
    min-height: 390px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 32px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    min-height: 108px !important;
    padding: 15px !important;
  }
}

/* =========================================================
   TABLET / SMALL TABLET: 769px–980px
   Убираем верхнюю плашку, оставляем квиз компактнее
========================================================= */

@media (min-width: 769px) and (max-width: 980px) {
  body.quiz-popup-open #quiz {
    padding: 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    padding: 24px !important;
    border-radius: 26px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    margin: 14px 0 16px !important;
    font-size: 32px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    min-height: 96px !important;
    padding: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 16px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-text {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

/* =========================================================
   MOBILE: 768px и ниже
   Убираем лишнее, чтобы квиз помещался без длинного скролла
========================================================= */

@media (max-width: 768px) {
  body.quiz-popup-open #quiz {
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__side {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    display: block !important;
    margin: 0 auto !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  body.quiz-popup-open .quiz-popup-close {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 26px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question-badge {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    letter-spacing: .12em !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    margin: 12px 0 14px !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    min-height: auto !important;
    padding: 12px 13px !important;
    border-radius: 15px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-text {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__actions {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  body.quiz-popup-open #quiz #quizNext {
    display: none !important;
  }

  body.quiz-popup-open #quiz #quizPrev {
    min-height: 42px !important;
    width: 100% !important;
  }

  body.quiz-popup-open #quiz #quizQuestionStatus {
    min-height: 0 !important;
    margin-top: 8px !important;
    font-size: 12px !important;
  }
}

/* =========================================================
   VERY SMALL MOBILE: 420px и ниже
========================================================= */

@media (max-width: 420px) {
  body.quiz-popup-open #quiz {
    padding: 10px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    max-height: calc(100vh - 20px) !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    padding: 11px 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 14px !important;
  }

  body.quiz-popup-open .quiz-popup-close {
    top: 8px !important;
    right: 8px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 25px !important;
  }
}

/* =========================================================
   360px и ниже
========================================================= */

@media (max-width: 360px) {
  body.quiz-popup-open #quiz .quiz-live__main {
    padding: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question-badge {
    font-size: 9px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    padding: 10px 11px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 13.5px !important;
  }
}

/* =========================================================
   FIX QUIZ POPUP LAYOUT
   Убираем левую лишнюю плашку и нормально центрируем попап
========================================================= */

body.quiz-popup-open #quiz {
  position: fixed !important;
  inset: 0 !important;
  z-index: 35000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: radial-gradient(circle at center, rgba(212, 160, 91, 0.09), transparent 42%), rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px) !important;
}

/* В попапе верхнюю плашку "Ответьте на 6 вопросов" убираем полностью */

body.quiz-popup-open #quiz .quiz-live__topbar {
  display: none !important;
}

/* Основное окно квиза */

body.quiz-popup-open #quiz .quiz-live__layout {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Левая карточка */

body.quiz-popup-open #quiz .quiz-live__side {
  padding: 20px !important;
  border-radius: 24px !important;
}

/* Правая карточка */

body.quiz-popup-open #quiz .quiz-live__main {
  padding: 24px !important;
  border-radius: 24px !important;
}

/* Картинка слева не должна быть огромной */

body.quiz-popup-open #quiz .quiz-live__side-card {
  min-height: 430px !important;
}

/* Вопрос */

body.quiz-popup-open #quiz .quiz-live__question {
  margin: 16px 0 18px !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
}

/* Варианты */

body.quiz-popup-open #quiz .quiz-live__options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.quiz-popup-open #quiz .quiz-live__option {
  min-height: 112px !important;
  padding: 16px !important;
}

/* Крестик */

body.quiz-popup-open .quiz-popup-close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 35010 !important;
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 140, 66, 0.28) !important;
  background: rgba(18, 14, 11, 0.92) !important;
  color: #f5e8cd !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

/* =========================================================
   981px–1100px
========================================================= */

@media (min-width: 981px) and (max-width: 1100px) {
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side-card {
    min-height: 390px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 30px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    min-height: 98px !important;
    padding: 14px !important;
  }
}

/* =========================================================
   769px–980px
   На планшетах убираем левую картинку
========================================================= */

@media (min-width: 769px) and (max-width: 980px) {
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    display: block !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    padding: 26px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 30px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
   768px и ниже
   Мобильная версия без лишнего
========================================================= */

@media (max-width: 768px) {
  body.quiz-popup-open #quiz {
    padding: 12px !important;
    overflow: hidden !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    display: block !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question-badge {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    letter-spacing: .12em !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    margin: 12px 0 14px !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__options {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    min-height: auto !important;
    padding: 12px 13px !important;
    border-radius: 15px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-text {
    display: none !important;
  }

  body.quiz-popup-open #quiz #quizNext {
    display: none !important;
  }

  body.quiz-popup-open #quiz #quizPrev {
    width: 100% !important;
    min-height: 42px !important;
  }

  body.quiz-popup-open .quiz-popup-close {
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 26px !important;
  }
}

/* 420px и ниже */

@media (max-width: 420px) {
  body.quiz-popup-open #quiz {
    padding: 10px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    max-height: calc(100vh - 20px) !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__question {
    font-size: 22px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option {
    padding: 11px 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__option-title {
    font-size: 14px !important;
  }
}

/* =========================================================
   FINAL QUIZ POPUP FIX
   1100–981px: шаги не переносятся
   980px и ниже: понятно, что это квиз
========================================================= */

/* 1100px–981px: все 6 цифр должны влезать в одну строку */

@media (min-width: 981px) and (max-width: 1100px) {
  body.quiz-popup-open #quiz .quiz-live__steps {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 7px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__steps span {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    font-size: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__side {
    padding: 18px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    grid-template-columns: 310px minmax(0, 1fr) !important;
  }
}

/* 980px и ниже: попап становится вертикальным — сверху компактная плашка "Квиз" */

@media (max-width: 980px) {
  body.quiz-popup-open #quiz {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar {
    display: block !important;
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: auto !important;
    padding: 14px 18px !important;
    border-radius: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-badge {
    min-height: 30px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-note,
  body.quiz-popup-open #quiz .quiz-live__topbar-text {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-title {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-right {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-stat {
    min-width: 64px !important;
    padding: 9px 8px !important;
    border-radius: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-stat-num {
    font-size: 18px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-stat-label {
    margin-top: 4px !important;
    font-size: 9px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin: 0 auto !important;
  }
}

/* 768px и ниже: ещё компактнее, но плашку "Квиз" оставляем */

@media (max-width: 768px) {
  body.quiz-popup-open #quiz {
    gap: 10px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    grid-template-columns: auto minmax(0, 1fr) !important;
    padding: 12px 56px 12px 14px !important;
    border-radius: 18px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-right {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-title {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    max-height: calc(100vh - 94px) !important;
  }
}

/* 420px и ниже */

@media (max-width: 420px) {
  body.quiz-popup-open #quiz {
    gap: 8px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    padding: 11px 54px 11px 12px !important;
    border-radius: 17px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__mini-badge {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-title {
    font-size: 16px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    max-height: calc(100vh - 86px) !important;
  }
}

/* =========================================================
   QUIZ POPUP FINAL FORM FIX
   980px и ниже — последний шаг с формой компактнее
========================================================= */

@media (max-width: 980px) {
  body.quiz-popup-open #quiz .quiz-live__lead {
    max-height: none !important;
    overflow: visible !important;
  }

  body.quiz-popup-open #quiz .quiz-live__lead .quiz-live__question {
    margin: 10px 0 14px !important;
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form {
    margin-top: 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form .form-group {
    gap: 7px !important;
    margin-bottom: 11px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form label {
    font-size: 13px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form input,
  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 86px !important;
    max-height: 100px !important;
    resize: none !important;
  }

  body.quiz-popup-open #quiz .quiz-contact-methods,
  body.quiz-popup-open #quiz .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.quiz-popup-open #quiz .contact-method span {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  body.quiz-popup-open #quiz .field-hint {
    margin-top: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.quiz-popup-open #quiz .quiz-turnstile,
  body.quiz-popup-open #quiz .final-field--turnstile {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-turnstile .final-field__hint,
  body.quiz-popup-open #quiz .final-field--turnstile .final-field__hint {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.quiz-popup-open #quiz .quiz-live__actions {
    margin-top: 12px !important;
    gap: 10px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__actions .button {
    min-height: 46px !important;
    font-size: 14px !important;
  }
}

/* 768px и ниже — ещё компактнее */

@media (max-width: 768px) {
  body.quiz-popup-open #quiz .quiz-live__lead {
    max-height: calc(100vh - 98px) !important;
  }

  body.quiz-popup-open #quiz .quiz-live__lead .quiz-live__question {
    font-size: 22px !important;
    margin: 8px 0 12px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form .form-group {
    margin-bottom: 9px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form input,
  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 72px !important;
    max-height: 82px !important;
  }

  body.quiz-popup-open #quiz .field-hint {
    display: none !important;
  }

  body.quiz-popup-open #quiz .contact-method span {
    min-height: 40px !important;
    font-size: 13px !important;
  }

  body.quiz-popup-open #quiz .quiz-turnstile,
  body.quiz-popup-open #quiz .final-field--turnstile {
    padding: 8px !important;
  }

  body.quiz-popup-open #quiz .quiz-turnstile .final-field__hint,
  body.quiz-popup-open #quiz .final-field--turnstile .final-field__hint {
    display: none !important;
  }

  body.quiz-popup-open #quiz .quiz-live__actions .button {
    min-height: 42px !important;
  }
}

/* 420px и ниже */

@media (max-width: 420px) {
  body.quiz-popup-open #quiz .quiz-live__lead {
    max-height: calc(100vh - 86px) !important;
  }

  body.quiz-popup-open #quiz .quiz-live__lead .quiz-live__question {
    font-size: 20px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form input,
  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 40px !important;
    padding: 9px 11px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__form textarea {
    min-height: 64px !important;
    max-height: 72px !important;
  }

  body.quiz-popup-open #quiz .quiz-contact-methods,
  body.quiz-popup-open #quiz .contact-methods {
    gap: 8px !important;
  }

  body.quiz-popup-open #quiz .contact-method span {
    min-height: 38px !important;
  }
}

/* =========================================================
   QUIZ POPUP WIDTH + MOBILE SCROLL FIX
   768–548px: верхняя плашка такой же ширины, как квиз
========================================================= */

@media (min-width: 548px) and (max-width: 768px) {
  body.quiz-popup-open #quiz {
    padding: 18px !important;
    overflow: hidden !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px 58px 14px 16px !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-title {
    font-size: 20px !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  body.quiz-popup-open #quiz .quiz-live__main {
    width: 100% !important;
    max-height: calc(100vh - 104px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

/* 547px и ниже — тоже плашка на всю ширину карточки */

@media (max-width: 547px) {

  body.quiz-popup-open #quiz .quiz-live__topbar,
  body.quiz-popup-open #quiz .quiz-live__layout {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.quiz-popup-open #quiz .quiz-live__topbar-card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* =========================================================
   PHONE INPUT PLACEHOLDER FIX
   Флаг страны не должен перекрывать плейсхолдер телефона
========================================================= */

.iti {
  width: 100% !important;
}

.iti input,
.iti input[type="tel"],
.iti .iti__tel-input {
  padding-left: 62px !important;
}

.iti__selected-country {
  z-index: 5 !important;
}

/* В попапе квиза — точечно перебиваем компактные стили */

body.quiz-popup-open #quiz .iti input,
body.quiz-popup-open #quiz .iti input[type="tel"],
body.quiz-popup-open #quiz .iti .iti__tel-input {
  padding-left: 62px !important;
}

/* 420px и ниже */

@media (max-width: 420px) {

  .iti input,
  .iti input[type="tel"],
  .iti .iti__tel-input,
  body.quiz-popup-open #quiz .iti input,
  body.quiz-popup-open #quiz .iti input[type="tel"],
  body.quiz-popup-open #quiz .iti .iti__tel-input {
    padding-left: 58px !important;
  }
}


/* =========================================================
   Messenger precheck popups: MAX / VK / WhatsApp / Telegram
========================================================= */

body.messenger-modal-open {
  overflow: hidden;
}

.header-social__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.header-social--vk {
  color: #8fb6ff;
}

.header-social--max {
  color: #f6d08a;
}

/* =========================================================
   Emergency contact links — brand colors
========================================================= */

.emergency-contact__grid--compact .emergency-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.emergency-contact__grid--compact .emergency-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.emergency-contact__grid--compact .emergency-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.emergency-contact__grid--compact .emergency-link:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

/* WhatsApp */
.emergency-contact__grid--compact .emergency-link[data-messenger="whatsapp"] {
  border-color: rgba(37, 211, 102, 0.42);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(37, 211, 102, 0.08);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="whatsapp"]::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 255, 161, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(16, 78, 43, 0.98), rgba(10, 33, 22, 0.98));
}

.emergency-contact__grid--compact .emergency-link[data-messenger="whatsapp"] .emergency-link__title {
  color: #d9ffe7;
}

.emergency-contact__grid--compact .emergency-link[data-messenger="whatsapp"] .emergency-link__meta {
  color: rgba(217, 255, 231, 0.72);
}

/* Telegram */
.emergency-contact__grid--compact .emergency-link[data-messenger="telegram"] {
  border-color: rgba(39, 167, 231, 0.44);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(39, 167, 231, 0.1);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="telegram"]::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(102, 205, 255, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(17, 94, 145, 0.98), rgba(9, 33, 55, 0.98));
}

.emergency-contact__grid--compact .emergency-link[data-messenger="telegram"] .emergency-link__title {
  color: #e3f6ff;
}

.emergency-contact__grid--compact .emergency-link[data-messenger="telegram"] .emergency-link__meta {
  color: rgba(227, 246, 255, 0.72);
}

/* MAX */
.emergency-contact__grid--compact .emergency-link[data-messenger="max"],
.emergency-contact__grid--compact .emergency-link--max {
  border-color: rgba(119, 126, 255, 0.52);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(80, 101, 255, 0.14);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="max"]::before,
.emergency-contact__grid--compact .emergency-link--max::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(77, 207, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #2ca8ff 0%, #2958ff 46%, #9b59f3 100%);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="max"] .emergency-link__title,
.emergency-contact__grid--compact .emergency-link--max .emergency-link__title {
  color: #ffffff;
}

.emergency-contact__grid--compact .emergency-link[data-messenger="max"] .emergency-link__meta,
.emergency-contact__grid--compact .emergency-link--max .emergency-link__meta {
  color: rgba(255, 255, 255, 0.76);
}

/* VK */
.emergency-contact__grid--compact .emergency-link[data-messenger="vk"],
.emergency-contact__grid--compact .emergency-link--vk {
  border-color: rgba(39, 135, 245, 0.52);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(39, 135, 245, 0.14);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="vk"]::before,
.emergency-contact__grid--compact .emergency-link--vk::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(128, 187, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #2787f5 0%, #1f5fbf 52%, #122a63 100%);
}

.emergency-contact__grid--compact .emergency-link[data-messenger="vk"] .emergency-link__title,
.emergency-contact__grid--compact .emergency-link--vk .emergency-link__title {
  color: #ffffff;
}

.emergency-contact__grid--compact .emergency-link[data-messenger="vk"] .emergency-link__meta,
.emergency-contact__grid--compact .emergency-link--vk .emergency-link__meta {
  color: rgba(255, 255, 255, 0.76);
}

/* Позвонить оставляем золотым */
.emergency-contact__grid--compact .emergency-link--call::before {
  display: none;
}

.floating-messengers__btn--max {
  color: #1e1309;
  background: linear-gradient(180deg, #f1c66e, #9a672f) !important;
}

.floating-messengers__btn--vk {
  color: #fff;
  border-color: rgba(70, 130, 255, 0.45) !important;
  background: linear-gradient(180deg, #4f84ff, #2463d8) !important;
}

.floating-messengers__icon--text {
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.messenger-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.messenger-modal[hidden] {
  display: none !important;
}

.messenger-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(10px);
}

.messenger-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 26px;
  border: 1px solid rgba(212, 160, 91, 0.52);
  background:
    radial-gradient(circle at top right, rgba(212, 160, 91, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(35, 27, 19, 0.98), rgba(14, 11, 9, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62);
}

.messenger-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f5e8cd;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.messenger-modal__close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.14);
}

.messenger-precheck {
  padding: 34px 34px 30px;
}

.messenger-precheck__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 91, 0.45);
  background: rgba(35, 27, 18, 0.88);
  color: #ffd37f;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.messenger-precheck__title {
  margin: 18px 54px 12px 0;
  color: #f8ead1;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.messenger-precheck__text {
  margin: 0;
  color: #f3e4c9;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  font-weight: 800;
  text-transform: uppercase;
}

.messenger-precheck__text strong,
.messenger-precheck__brand--danger {
  color: #ff5757;
}

.messenger-precheck__brand--whatsapp {
  color: #33d56b;
}

.messenger-precheck__brand--telegram {
  color: #5da2ff;
}

.messenger-precheck__brand--max {
  color: #ffd57d;
}

.messenger-precheck__brand--vk {
  color: #5d91ff;
}

.messenger-precheck__form,
.messenger-precheck__warning-box,
.messenger-precheck__alternative {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(13, 11, 9, 0.38);
}

.messenger-precheck__field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.messenger-precheck__field label {
  color: #f1d89e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messenger-precheck__field label span {
  color: rgba(241, 216, 158, 0.74);
}

.messenger-precheck__field input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #15100d;
  padding: 0 18px;
  outline: none;
  font-size: 20px;
  font-weight: 800;
}

.messenger-precheck__field input::placeholder {
  color: rgba(21, 16, 13, 0.38);
}

.messenger-precheck__hint {
  color: #f3e4c9;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
}

.messenger-precheck__agree {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #f3e4c9;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  cursor: pointer;
}

.messenger-precheck__agree input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.messenger-precheck__agree a {
  color: #24a4ff;
  text-decoration: none;
}

.messenger-precheck__agree a:hover {
  text-decoration: underline;
}

.messenger-precheck__agree--large {
  font-size: 15px;
  text-transform: uppercase;
}

.messenger-precheck__turnstile {
  margin-top: 14px;
  overflow-x: auto;
}

.messenger-precheck__status {
  min-height: 22px;
  margin-top: 12px;
  color: rgba(245, 232, 205, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.messenger-precheck__status.is-error {
  color: #ff9b91;
}

.messenger-precheck__status.is-success {
  color: #d8c98b;
}

.messenger-precheck__status.is-loading {
  color: #ffd287;
}

.messenger-precheck__submit,
.messenger-precheck__alt {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.messenger-precheck__submit {
  margin-top: 18px;
  color: #1e1309;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
}

.messenger-precheck__submit:hover,
.messenger-precheck__alt:hover {
  transform: translateY(-1px);
}

.messenger-precheck__submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.messenger-precheck__alternative-title {
  margin-bottom: 14px;
  color: #f1d89e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messenger-precheck__alternative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.messenger-precheck__alt--max {
  color: #1e1309;
  background: linear-gradient(180deg, #f1c66e, #9a672f);
}

.messenger-precheck__alt--vk {
  color: #fff;
  background: linear-gradient(180deg, #4f84ff, #2463d8);
}

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

  .messenger-precheck {
    padding: 24px 18px 20px;
  }

  .messenger-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .messenger-precheck__title {
    margin-right: 48px;
    font-size: 30px;
  }

  .messenger-precheck__text {
    font-size: 16px;
  }

  .messenger-precheck__alternative-grid {
    grid-template-columns: 1fr;
  }

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

  .floating-messengers {
    gap: 8px !important;
  }

  .floating-messengers__btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
  }
}

/* =========================================================
   BRAND COLORS FIX
   Фирменные цвета иконок:
   WhatsApp / Telegram / VK / MAX
========================================================= */

/* ---------------------------------
   HEADER ICONS
--------------------------------- */

/* Базово: сами кнопки в шапке остаются в дизайне сайта */
.header-socials .header-social {
  border: 1px solid rgba(197, 140, 66, 0.22) !important;
  background: linear-gradient(180deg,
      rgba(28, 21, 16, 0.95),
      rgba(17, 13, 10, 0.95)) !important;
  box-shadow: none !important;
}

.header-socials .header-social:hover {
  border-color: rgba(212, 160, 91, 0.5) !important;
  background: linear-gradient(180deg,
      rgba(34, 25, 18, 0.98),
      rgba(17, 13, 10, 0.98)) !important;
}

/* WhatsApp — фирменный зелёный */
.header-socials .header-social[aria-label="WhatsApp"] svg,
.header-socials .header-social[aria-label="WhatsApp"] .header-social__icon-svg {
  fill: #25D366 !important;
  color: #25D366 !important;
}

/* Telegram — фирменный голубой */
.header-socials .header-social[aria-label="Telegram"] svg,
.header-socials .header-social[aria-label="Telegram"] .header-social__icon-svg {
  fill: #27A7E7 !important;
  color: #27A7E7 !important;
}

/* YouTube — фирменный белый/светлый, как и был в дизайне */
.header-socials .header-social[aria-label="YouTube"] svg,
.header-socials .header-social[aria-label="YouTube"] .header-social__icon-svg {
  fill: #f5e8cd !important;
  color: #f5e8cd !important;
}

/* VK — фирменный синий */
.header-socials .header-social--vk,
.header-socials .header-social--vk:hover {
  color: inherit !important;
}

.header-socials .header-social--vk::before,
.header-socials .header-social--vk::after {
  display: none !important;
  content: none !important;
}

.header-socials .header-social--vk .header-social__icon-wrap {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.header-socials .header-social--vk .header-social__icon-svg,
.header-socials .header-social--vk .header-social__icon-svg--vk {
  width: 20px !important;
  height: 20px !important;
  fill: #2787F5 !important;
  color: #2787F5 !important;
  filter: none !important;
}

/* MAX — фирменный градиентный бейдж + белая иконка */
.header-socials .header-social--max,
.header-socials .header-social--max:hover {
  color: inherit !important;
}

.header-socials .header-social--max::before,
.header-socials .header-social--max::after {
  display: none !important;
  content: none !important;
}

.header-socials .header-social--max .header-social__icon-wrap {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #2ca8ff 0%, #2958ff 42%, #9b59f3 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 10px rgba(71, 103, 255, 0.22) !important;
}

.header-socials .header-social--max .header-social__icon-svg,
.header-socials .header-social--max .header-social__icon-svg--max {
  width: 14px !important;
  height: 14px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  filter: none !important;
}


/* ---------------------------------
   FLOATING BUTTONS
--------------------------------- */

/* Все кнопки одинаковые по корпусу */
.floating-messengers .floating-messengers__btn,
.floating-messengers .floating-messengers__btn--whatsapp,
.floating-messengers .floating-messengers__btn--telegram,
.floating-messengers .floating-messengers__btn--max,
.floating-messengers .floating-messengers__btn--vk {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(197, 140, 66, 0.26) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(214, 161, 91, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(28, 21, 16, 0.95), rgba(17, 13, 10, 0.95)) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(212, 160, 91, 0.14) !important;
}

.floating-messengers .floating-messengers__btn:hover,
.floating-messengers .floating-messengers__btn--whatsapp:hover,
.floating-messengers .floating-messengers__btn--telegram:hover,
.floating-messengers .floating-messengers__btn--max:hover,
.floating-messengers .floating-messengers__btn--vk:hover {
  border-color: rgba(212, 160, 91, 0.62) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(214, 161, 91, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(34, 25, 18, 0.98), rgba(17, 13, 10, 0.98)) !important;
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow:
    0 0 0 1px rgba(197, 140, 66, 0.38),
    0 14px 34px rgba(197, 140, 66, 0.22) !important;
}

/* Убираем лишние внутренние подложки у всех */
.floating-messengers .floating-messengers__btn>.floating-messengers__icon,
.floating-messengers .floating-messengers__btn>.floating-messengers__icon--brand,
.floating-messengers .floating-messengers__btn--max>.floating-messengers__icon,
.floating-messengers .floating-messengers__btn--max>.floating-messengers__icon--brand,
.floating-messengers .floating-messengers__btn--vk>.floating-messengers__icon,
.floating-messengers .floating-messengers__btn--vk>.floating-messengers__icon--brand {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* SVG внутри плавающих кнопок */
.floating-messengers .floating-messengers__icon svg,
.floating-messengers .floating-messengers__brand-svg {
  display: block !important;
  fill: currentColor !important;
  color: currentColor !important;
  transform: none !important;
  filter: none !important;
}

/* WhatsApp */
.floating-messengers .floating-messengers__btn--whatsapp .floating-messengers__icon,
.floating-messengers .floating-messengers__btn--whatsapp .floating-messengers__icon svg {
  color: #25D366 !important;
}

.floating-messengers .floating-messengers__btn--whatsapp .floating-messengers__icon svg {
  width: 22px !important;
  height: 22px !important;
}

/* Telegram */
.floating-messengers .floating-messengers__btn--telegram .floating-messengers__icon,
.floating-messengers .floating-messengers__btn--telegram .floating-messengers__icon svg {
  color: #27A7E7 !important;
}

.floating-messengers .floating-messengers__btn--telegram .floating-messengers__icon svg {
  width: 22px !important;
  height: 22px !important;
  transform: translateX(-1px) !important;
}

/* VK — фирменный синий */
.floating-messengers .floating-messengers__btn--vk .floating-messengers__icon,
.floating-messengers .floating-messengers__btn--vk .floating-messengers__brand-svg {
  color: #2787F5 !important;
}

.floating-messengers .floating-messengers__btn--vk .floating-messengers__brand-svg,
.floating-messengers .floating-messengers__brand-svg--vk {
  width: 22px !important;
  height: 22px !important;
}

/* MAX — градиентный бейдж как на приложении */
.floating-messengers .floating-messengers__btn--max>.floating-messengers__icon,
.floating-messengers .floating-messengers__btn--max>.floating-messengers__icon--brand {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #2ca8ff 0%, #2958ff 42%, #9b59f3 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 12px rgba(71, 103, 255, 0.20) !important;
}

.floating-messengers .floating-messengers__btn--max .floating-messengers__brand-svg,
.floating-messengers .floating-messengers__brand-svg--max {
  width: 16px !important;
  height: 16px !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Текст оставляем скрытым */
.floating-messengers .floating-messengers__text {
  display: none !important;
}


/* ---------------------------------
   MOBILE
--------------------------------- */

@media (max-width: 768px) {

  .floating-messengers .floating-messengers__btn,
  .floating-messengers .floating-messengers__btn--whatsapp,
  .floating-messengers .floating-messengers__btn--telegram,
  .floating-messengers .floating-messengers__btn--max,
  .floating-messengers .floating-messengers__btn--vk {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
  }

  .floating-messengers .floating-messengers__btn>.floating-messengers__icon,
  .floating-messengers .floating-messengers__btn>.floating-messengers__icon--brand {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }

  .floating-messengers .floating-messengers__btn--max>.floating-messengers__icon,
  .floating-messengers .floating-messengers__btn--max>.floating-messengers__icon--brand {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 8px !important;
  }

  .floating-messengers .floating-messengers__btn--max .floating-messengers__brand-svg,
  .floating-messengers .floating-messengers__brand-svg--max {
    width: 14px !important;
    height: 14px !important;
  }

  .floating-messengers .floating-messengers__btn--vk .floating-messengers__brand-svg,
  .floating-messengers .floating-messengers__brand-svg--vk {
    width: 19px !important;
    height: 19px !important;
  }
}

@media (max-width: 420px) {
  .header-socials .header-social--max .header-social__icon-wrap {
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
  }

  .header-socials .header-social--max .header-social__icon-svg,
  .header-socials .header-social--max .header-social__icon-svg--max {
    width: 13px !important;
    height: 13px !important;
  }

  .floating-messengers .floating-messengers__btn,
  .floating-messengers .floating-messengers__btn--whatsapp,
  .floating-messengers .floating-messengers__btn--telegram,
  .floating-messengers .floating-messengers__btn--max,
  .floating-messengers .floating-messengers__btn--vk {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .floating-messengers .floating-messengers__btn>.floating-messengers__icon,
  .floating-messengers .floating-messengers__btn>.floating-messengers__icon--brand {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
  }

  .floating-messengers .floating-messengers__btn--max>.floating-messengers__icon,
  .floating-messengers .floating-messengers__btn--max>.floating-messengers__icon--brand {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    border-radius: 7px !important;
  }

  .floating-messengers .floating-messengers__btn--max .floating-messengers__brand-svg,
  .floating-messengers .floating-messengers__brand-svg--max {
    width: 12px !important;
    height: 12px !important;
  }

  .floating-messengers .floating-messengers__btn--vk .floating-messengers__brand-svg,
  .floating-messengers .floating-messengers__brand-svg--vk {
    width: 17px !important;
    height: 17px !important;
  }
}

/* =========================================================
   Header socials animation
   Анимация иконок в шапке: WhatsApp / Telegram / MAX / VK / YouTube
========================================================= */

.header-socials--left .header-social {
  position: relative !important;
  transform-origin: center center !important;
  will-change: transform, box-shadow !important;
  animation: headerSocialDance 4.6s ease-in-out infinite !important;
}

/* Разная задержка, чтобы они плясали не одновременно */
.header-socials--left .header-social:nth-child(1) {
  animation-delay: 0s !important;
}

.header-socials--left .header-social:nth-child(2) {
  animation-delay: 0.28s !important;
}

.header-socials--left .header-social:nth-child(3) {
  animation-delay: 0.56s !important;
}

.header-socials--left .header-social:nth-child(4) {
  animation-delay: 0.84s !important;
}

.header-socials--left .header-social:nth-child(5) {
  animation-delay: 1.12s !important;
}

/* При наведении кнопка чуть оживает сильнее */
.header-socials--left .header-social:hover {
  animation-play-state: paused !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 0 0 1px rgba(197, 140, 66, 0.36),
    0 12px 26px rgba(197, 140, 66, 0.20) !important;
}

/* Мягкий золотой пульс вокруг кнопки */
.header-socials--left .header-social::after {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(212, 160, 91, 0.28) !important;
  opacity: 0 !important;
  transform: scale(0.84) !important;
  pointer-events: none !important;
  animation: headerSocialPulse 4.6s ease-in-out infinite !important;
}

/* Задержка пульса тоже разная */
.header-socials--left .header-social:nth-child(1)::after {
  animation-delay: 0s !important;
}

.header-socials--left .header-social:nth-child(2)::after {
  animation-delay: 0.28s !important;
}

.header-socials--left .header-social:nth-child(3)::after {
  animation-delay: 0.56s !important;
}

.header-socials--left .header-social:nth-child(4)::after {
  animation-delay: 0.84s !important;
}

.header-socials--left .header-social:nth-child(5)::after {
  animation-delay: 1.12s !important;
}

@keyframes headerSocialDance {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  8% {
    transform: translateY(-3px) rotate(-2deg) scale(1.04);
  }

  14% {
    transform: translateY(0) rotate(2deg) scale(1);
  }

  20% {
    transform: translateY(-2px) rotate(-1deg) scale(1.03);
  }

  26% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes headerSocialPulse {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }

  8% {
    opacity: 0.55;
    transform: scale(1);
  }

  24% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* На мобильных делаем чуть спокойнее */
@media (max-width: 640px) {
  .header-socials--left .header-social {
    animation-duration: 5.4s !important;
  }

  .header-socials--left .header-social::after {
    animation-duration: 5.4s !important;
  }
}

/* Для людей с отключёнными анимациями */
@media (prefers-reduced-motion: reduce) {

  .header-socials--left .header-social,
  .header-socials--left .header-social::after {
    animation: none !important;
  }
}

/* =========================================================
   Cloudflare Turnstile removed — clean form layout
========================================================= */

/* Если старый блок Turnstile где-то случайно остался — скрываем */
.final-field--turnstile,
.hero-turnstile,
.quiz-turnstile,
.messenger-precheck__turnstile,
.cf-turnstile {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Убираем лишнее пустое место перед кнопками */
.hero-form__submit,
.final-contact__submit,
.messenger-precheck__submit {
  margin-top: 10px !important;
}

/* Основная форма после удаления капчи выглядит плотнее */
.hero-form .form-status {
  margin-top: 10px !important;
}

/* Нижняя форма */
.final-contact__form .final-contact__submit {
  margin-top: 12px !important;
}

/* Квиз: после удаления капчи кнопки ближе к полям */
.quiz-live__actions {
  margin-top: 16px !important;
}

/* Попап MAX/VK: после удаления капчи статус и кнопка не проваливаются вниз */
.messenger-precheck__status {
  margin-top: 12px !important;
}

.messenger-precheck__form {
  padding-bottom: 18px !important;
}

/* =========================================================
   Hide all prices on site
========================================================= */

.promo-price__old,
.promo-price__now,
.service-card__price-wrap,
.service-card__price-old,
.service-card__price,
.service-modal__price,
.services-premium__banner-old {
  display: none !important;
  visibility: hidden !important;
}

/* Чтобы карточки услуг после удаления цены выглядели ровно */
.service-card__topline {
  align-items: flex-start !important;
}

.service-card__badge {
  margin-right: auto !important;
}

/* Новый промо-блок без цен */
.promo-card__grid--no-prices .promo-price {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-card__grid--no-prices .promo-price__title {
  min-height: auto !important;
  color: #f0dfbf;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.promo-card__grid--no-prices .promo-price__note {
  margin-top: 8px;
  color: rgba(216, 196, 163, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

/* Баннер услуг без цены */
.services-premium__banner-title {
  margin-top: 10px;
}

.services-premium__banner-text {
  margin-top: 12px;
}

/* =========================================================
   Remove promo timer / old action badge
========================================================= */

.promo-card__top,
.promo-card__badge,
.promo-timer {
  display: none !important;
}

/* После удаления таймера промо-карточка выглядит ровнее */
.promo-card {
  padding-top: 18px !important;
}

.promo-card__grid--no-prices {
  margin-top: 0 !important;
}

.promo-card__grid--no-prices .promo-price {
  min-height: 116px !important;
}

.promo-card__bottom {
  margin-top: 18px !important;
}

/* =========================================================
   Hero: form moved to popup + photo trust slider
========================================================= */

body.lead-form-modal-open {
  overflow: hidden;
}

/* ---------- Hero photo slider ---------- */

.hero-photo-slider {
  position: relative;
  overflow: hidden;
  padding: 22px !important;
  min-height: 100%;
}

.hero-photo-slider__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-photo-slider__title {
  margin: 8px 0 0;
  color: #f5e8cd;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-photo-slider__counter {
  min-width: 64px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.24);
  background: rgba(17, 13, 10, 0.82);
  color: #f2ddb7;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-photo-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(197, 140, 66, 0.22);
  background:
    radial-gradient(circle at top right, rgba(212, 160, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 15, 12, 0.96), rgba(10, 8, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

.hero-photo-slider__slides {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
}

.hero-photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.75s ease;
  pointer-events: none;
}

.hero-photo-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-photo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-photo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at bottom left, rgba(212, 160, 91, 0.12), transparent 38%);
  pointer-events: none;
}

.hero-photo-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(197, 140, 66, 0.28);
  border-radius: 999px;
  background: rgba(12, 9, 7, 0.72);
  color: #f6e5c5;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
  backdrop-filter: blur(10px);
}

.hero-photo-slider__nav:hover {
  border-color: rgba(212, 160, 91, 0.6);
  background: rgba(30, 22, 15, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.hero-photo-slider__nav--prev {
  left: 14px;
}

.hero-photo-slider__nav--next {
  right: 14px;
}

.hero-photo-slider__bottom {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.hero-photo-slider__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-photo-slider__trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(18, 14, 11, 0.72);
  color: rgba(216, 196, 163, 0.82);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.hero-photo-slider__trust span::before {
  content: "✦";
  margin-right: 6px;
  color: var(--gold);
  font-size: 10px;
}

.hero-photo-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-photo-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 196, 163, 0.28);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-photo-slider__dots button.is-active {
  width: 28px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
}

.hero-photo-slider__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 66, 0.16);
  background: rgba(13, 10, 8, 0.58);
}

.hero-photo-slider__cta p {
  margin: 0;
  color: rgba(245, 232, 205, 0.82);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}


/* ---------- Lead form popup ---------- */

.lead-form-modal {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lead-form-modal[hidden] {
  display: none !important;
}

.lead-form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(12px);
}

.lead-form-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 28px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.7);
}

.lead-form-modal__card {
  width: 100%;
  padding: 28px !important;
}

.lead-form-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f5e8cd;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.lead-form-modal__close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.14);
}

.lead-form-modal .hero-form__head {
  padding-right: 52px;
}

.lead-form-modal .hero-contact-methods--modal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lead-form-modal .hero-form__submit {
  margin-top: 12px !important;
}


/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .hero-photo-slider__slides {
    min-height: 460px;
  }

  .lead-form-modal .hero-contact-methods--modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lead-form-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .lead-form-modal__dialog {
    max-height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .lead-form-modal__card {
    padding: 22px 18px !important;
  }

  .lead-form-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .lead-form-modal .hero-form__head {
    padding-right: 46px;
  }

  .hero-photo-slider {
    padding: 18px !important;
  }

  .hero-photo-slider__head {
    flex-direction: column;
  }

  .hero-photo-slider__counter {
    align-self: flex-start;
  }

  .hero-photo-slider__slides {
    aspect-ratio: 4 / 5;
    min-height: 360px;
  }

  .hero-photo-slider__nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-photo-slider__cta {
    grid-template-columns: 1fr;
  }

  .hero-photo-slider__cta .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-photo-slider__slides {
    min-height: 320px;
  }

  .lead-form-modal .hero-contact-methods--modal {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Hero photo slider: loading/error state
========================================================= */

.hero-photo-slider__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(245, 232, 205, 0.78);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(212, 160, 91, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(20, 15, 12, 0.96), rgba(10, 8, 6, 0.98));
}

.hero-photo-slider__loading::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 999px;
  border: 2px solid rgba(212, 160, 91, 0.28);
  border-top-color: var(--gold);
  animation: heroPhotoLoaderSpin 0.9s linear infinite;
}

@keyframes heroPhotoLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Hero slider: убрать лишние подписи и добавить анимацию фото
========================================================= */

/* Нижняя часть слайдера теперь только с точками */
.hero-photo-slider__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-slider__dots {
  margin: 0 auto;
}

/* На всякий случай полностью скрываем старый блок доверия */
.hero-photo-slider__trust {
  display: none !important;
}

/* Анимация фотографий */
.hero-photo-slide {
  overflow: hidden;
}

.hero-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  will-change: transform;
  backface-visibility: hidden;
}

/* Для активного слайда запускаем плавную анимацию */
.hero-photo-slide.is-active img {
  animation: heroPhotoKenBurnsIn 5.2s ease-in-out both;
}

/* Для чётных слайдов чуть другая траектория, чтобы было живее */
.hero-photo-slide:nth-child(even).is-active img {
  animation: heroPhotoKenBurnsAlt 5.2s ease-in-out both;
}

@keyframes heroPhotoKenBurnsIn {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.10) translate3d(-8px, -6px, 0);
  }
}

@keyframes heroPhotoKenBurnsAlt {
  0% {
    transform: scale(1.10) translate3d(6px, 4px, 0);
  }

  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

/* =========================================================
   Hero photo slider: compact clean version
   Убираем заголовок и нижний CTA-блок
========================================================= */

.hero-photo-slider__title,
.hero-photo-slider__cta {
  display: none !important;
}

.hero-photo-slider__head--compact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 14px !important;
}

.hero-photo-slider__head--compact .eyebrow {
  margin: 0 !important;
}

.hero-photo-slider__bottom {
  margin-top: 14px !important;
}

.hero-photo-slider__dots {
  justify-content: center !important;
}


/* =========================================================
   Disable form pulse animation inside lead popup
   Убираем пульсацию формы в попапе "Записаться"
========================================================= */

.lead-form-modal .hero-form.form-attention,
.lead-form-modal .hero-form.form-attention::after,
.lead-form-modal .lead-form-modal__card.form-attention,
.lead-form-modal .lead-form-modal__card.form-attention::after {
  animation: none !important;
}

.lead-form-modal .hero-form.form-attention::after,
.lead-form-modal .lead-form-modal__card.form-attention::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   Quiz contact methods: WhatsApp / Telegram / MAX / VK
   Добавить в самый конец styles.css
========================================================= */

/* Обычный квиз на ПК: 4 кнопки в одну строку */
.quiz-contact-methods {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Делаем кнопки чуть компактнее, чтобы 4 штуки нормально влезали */
.quiz-contact-methods .contact-method span {
  min-height: 54px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

/* Автоквиз/попап: 2 на 2, чтобы не было тесно */
body.quiz-popup-open #quiz .quiz-contact-methods,
body.quiz-popup-open #quiz .contact-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* Планшеты и мобильные: 2 на 2 */
@media (max-width: 980px) {
  .quiz-contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Очень узкие экраны: тоже 2 на 2, но компактнее */
@media (max-width: 420px) {
  .quiz-contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .quiz-contact-methods .contact-method span {
    min-height: 42px !important;
    font-size: 13px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* =========================================================
   Final contact form + footer compact messengers
   Добавить в самый конец styles.css
========================================================= */

/* ---------- Короткая заявка: 4 способа связи ---------- */

.final-contact-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.final-contact-method span {
  min-height: 46px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap !important;
}

/* Фирменные акценты в короткой заявке */
.final-contact-method input[value="WhatsApp"]:checked+span {
  border-color: rgba(37, 211, 102, 0.55) !important;
  color: #d9ffe7 !important;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(20, 48, 31, 0.98), rgba(13, 18, 14, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(37, 211, 102, 0.12),
    0 0 18px rgba(37, 211, 102, 0.08) !important;
}

.final-contact-method input[value="Telegram"]:checked+span {
  border-color: rgba(39, 167, 231, 0.55) !important;
  color: #e3f6ff !important;
  background:
    radial-gradient(circle at top left, rgba(39, 167, 231, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(19, 48, 70, 0.98), rgba(11, 18, 26, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(39, 167, 231, 0.12),
    0 0 18px rgba(39, 167, 231, 0.08) !important;
}

.final-contact-method input[value="MAX"]:checked+span {
  border-color: rgba(119, 126, 255, 0.6) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at top left, rgba(77, 207, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #2ca8ff 0%, #2958ff 46%, #9b59f3 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(80, 101, 255, 0.16) !important;
}

.final-contact-method input[value="VK"]:checked+span {
  border-color: rgba(39, 135, 245, 0.6) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at top left, rgba(128, 187, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #2787f5 0%, #1f5fbf 52%, #122a63 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(39, 135, 245, 0.14) !important;
}

/* ---------- Футер: компактные контакты ---------- */

.site-footer__contacts {
  justify-self: end !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(86px, auto)) !important;
  gap: 7px !important;
  align-items: center !important;
  justify-content: end !important;
  text-align: right !important;
  max-width: 300px !important;
}

/* Телефон — отдельной аккуратной строкой сверху */
.site-footer__contacts a:first-child {
  grid-column: 1 / -1 !important;
  justify-self: end !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(245, 232, 205, 0.9) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Мессенджеры — маленькими пилюлями 2 на 2 */
.site-footer__contacts a:not(:first-child) {
  min-height: 30px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(197, 140, 66, 0.18) !important;
  background: rgba(18, 14, 11, 0.62) !important;
  color: rgba(216, 196, 163, 0.82) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-footer__contacts a:not(:first-child):hover {
  border-color: rgba(212, 160, 91, 0.46) !important;
  color: #fff1d6 !important;
  transform: translateY(-1px) !important;
}

/* Мобильный футер — всё по центру, но компактно */
@media (max-width: 980px) {
  .site-footer__contacts {
    justify-self: center !important;
    justify-content: center !important;
    text-align: center !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer__contacts a:first-child {
    justify-self: center !important;
  }
}

@media (max-width: 520px) {
  .site-footer__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 280px !important;
    gap: 8px !important;
  }

  .site-footer__contacts a:first-child {
    grid-column: 1 / -1 !important;
  }

  .site-footer__contacts a:not(:first-child) {
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }
}

/* =========================================================
   Brand selected state for messenger radio buttons
   Фирменный цвет выбранного мессенджера во всех формах/квизах
========================================================= */

/* Общая плавность для всех кнопок выбора связи */
.contact-method span,
.final-contact-method span {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

.contact-method:hover span,
.final-contact-method:hover span {
  transform: translateY(-1px) !important;
}

/* Точка/маркер перед текстом */
.contact-method span::before,
.final-contact-method span::before {
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.contact-method input:checked+span::before,
.final-contact-method input:checked+span::before {
  transform: scale(1.08) !important;
}


/* ---------- WhatsApp selected ---------- */

.contact-method input[value="WhatsApp"]:checked+span,
.final-contact-method input[value="WhatsApp"]:checked+span {
  border-color: rgba(37, 211, 102, 0.62) !important;
  color: #d9ffe7 !important;
  background:
    radial-gradient(circle at top left, rgba(91, 255, 151, 0.25), transparent 34%),
    linear-gradient(180deg, rgba(20, 74, 42, 0.98), rgba(9, 28, 17, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(37, 211, 102, 0.18),
    0 0 22px rgba(37, 211, 102, 0.13) !important;
}

.contact-method input[value="WhatsApp"]:checked+span::before,
.final-contact-method input[value="WhatsApp"]:checked+span::before {
  color: #25d366 !important;
}


/* ---------- Telegram selected ---------- */

.contact-method input[value="Telegram"]:checked+span,
.final-contact-method input[value="Telegram"]:checked+span {
  border-color: rgba(39, 167, 231, 0.62) !important;
  color: #e3f6ff !important;
  background:
    radial-gradient(circle at top left, rgba(102, 205, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(20, 84, 126, 0.98), rgba(8, 30, 50, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(39, 167, 231, 0.18),
    0 0 22px rgba(39, 167, 231, 0.14) !important;
}

.contact-method input[value="Telegram"]:checked+span::before,
.final-contact-method input[value="Telegram"]:checked+span::before {
  color: #27a7e7 !important;
}


/* ---------- MAX selected ---------- */

.contact-method input[value="MAX"]:checked+span,
.final-contact-method input[value="MAX"]:checked+span {
  border-color: rgba(124, 132, 255, 0.72) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at top left, rgba(77, 207, 255, 0.38), transparent 34%),
    linear-gradient(135deg, #2ca8ff 0%, #2958ff 46%, #9b59f3 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(80, 101, 255, 0.2) !important;
}

.contact-method input[value="MAX"]:checked+span::before,
.final-contact-method input[value="MAX"]:checked+span::before {
  color: #ffffff !important;
}


/* ---------- VK selected ---------- */

.contact-method input[value="VK"]:checked+span,
.final-contact-method input[value="VK"]:checked+span {
  border-color: rgba(39, 135, 245, 0.72) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at top left, rgba(128, 187, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #2787f5 0%, #1f5fbf 52%, #122a63 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(39, 135, 245, 0.18) !important;
}

.contact-method input[value="VK"]:checked+span::before,
.final-contact-method input[value="VK"]:checked+span::before {
  color: #ffffff !important;
}


/* ---------- Active click effect ---------- */

.contact-method:active span,
.final-contact-method:active span {
  transform: translateY(0) scale(0.985) !important;
}


/* ---------- Mobile compact ---------- */

@media (max-width: 520px) {

  .contact-method span,
  .final-contact-method span {
    min-height: 42px !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   Russian phone mask — remove country selector UI
   Добавить в самый конец styles.css
========================================================= */

/* Убираем визуальные остатки intl-tel-input, если где-то вдруг остались */
.iti,
.iti--allow-dropdown,
.iti--show-flags {
  width: 100% !important;
}

.iti__country-container,
.iti__selected-country,
.iti__dropdown-content,
.iti__flag-container {
  display: none !important;
}

/* Возвращаем нормальные отступы в полях телефона */
#contactValue,
#quizContact,
#contactValueFinal,
#messengerPhone,
.hero-field--phone #contactValue,
.quiz-field--phone #quizContact,
.final-field--phone #contactValueFinal {
  padding-left: 18px !important;
}

/* На всякий случай скрываем старые подсказки про страны и коды */
#contactHint,
#quizContactHint,
.final-field--phone .final-field__hint {
  display: none !important;
}

/* Поля телефона теперь обычные, без левого блока страны */
.hero-field--phone,
.quiz-field--phone,
.final-field--phone,
.messenger-precheck__field {
  position: relative;
}

/* =========================================================
   Header YouTube fix — dark button + red icon
   Корпус как у остальных кнопок, красим только значок YouTube
========================================================= */

.header-social[aria-label*="YouTube" i],
.header-social[href*="youtube" i],
.header-social[href*="youtu.be" i] {
  border: 1px solid rgba(197, 140, 66, 0.22) !important;
  background:
    linear-gradient(180deg,
      rgba(28, 21, 16, 0.95),
      rgba(17, 13, 10, 0.95)) !important;
  color: #ff0033 !important;
  box-shadow: none !important;
}

.header-social[aria-label*="YouTube" i]:hover,
.header-social[href*="youtube" i]:hover,
.header-social[href*="youtu.be" i]:hover {
  border-color: rgba(212, 160, 91, 0.5) !important;
  background:
    linear-gradient(180deg,
      rgba(34, 25, 18, 0.98),
      rgba(17, 13, 10, 0.98)) !important;
  box-shadow:
    0 0 0 1px rgba(197, 140, 66, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Красим сам значок YouTube */
.header-social[aria-label*="YouTube" i] svg,
.header-social[href*="youtube" i] svg,
.header-social[href*="youtu.be" i] svg,
.header-social[aria-label*="YouTube" i] svg *,
.header-social[href*="youtube" i] svg *,
.header-social[href*="youtu.be" i] svg * {
  fill: #ff0033 !important;
  color: #ff0033 !important;
}

/* Чуть ярче при наведении */
.header-social[aria-label*="YouTube" i]:hover svg,
.header-social[href*="youtube" i]:hover svg,
.header-social[href*="youtu.be" i]:hover svg,
.header-social[aria-label*="YouTube" i]:hover svg *,
.header-social[href*="youtube" i]:hover svg *,
.header-social[href*="youtu.be" i]:hover svg * {
  fill: #ff1f1f !important;
  color: #ff1f1f !important;
}

/* =========================================================
   Messenger warning popup: disabled submit + checkbox attention
   WhatsApp / Telegram confirmation gate
========================================================= */

/* Кнопка визуально неактивна, пока нет галочки */
#messengerWarningSubmit.is-disabled,
#messengerWarningSubmit[aria-disabled="true"] {
  opacity: 0.58 !important;
  filter: grayscale(0.25) brightness(0.86) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* При наведении на неактивную кнопку не даём ей выглядеть активной */
#messengerWarningSubmit.is-disabled:hover,
#messengerWarningSubmit[aria-disabled="true"]:hover {
  transform: none !important;
  filter: grayscale(0.25) brightness(0.86) !important;
}

/* Сам чекбокс делаем заметнее */
#messengerWarningAgree {
  accent-color: #d4a05b;
  cursor: pointer;
}

/* Анимация блока с подтверждением */
.messenger-precheck__agree.is-attention,
.messenger-precheck__check.is-attention,
label.is-attention:has(#messengerWarningAgree) {
  animation: messengerAgreeShake 0.55s ease both, messengerAgreePulse 0.9s ease both !important;
  border-color: rgba(255, 99, 91, 0.78) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 91, 0.10),
    0 0 34px rgba(255, 99, 91, 0.18) !important;
}

/* Анимация самого чекбокса */
#messengerWarningAgree.is-attention {
  animation: messengerCheckboxPulse 0.75s ease both !important;
  outline: 3px solid rgba(255, 99, 91, 0.26) !important;
  outline-offset: 3px !important;
}

@keyframes messengerAgreeShake {
  0% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-7px);
  }

  36% {
    transform: translateX(7px);
  }

  54% {
    transform: translateX(-5px);
  }

  72% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes messengerAgreePulse {
  0% {
    background: rgba(18, 14, 11, 0.72);
  }

  45% {
    background:
      radial-gradient(circle at 12% 50%, rgba(255, 99, 91, 0.20), transparent 32%),
      rgba(30, 16, 14, 0.94);
  }

  100% {
    background: rgba(18, 14, 11, 0.72);
  }
}

@keyframes messengerCheckboxPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================================================
   FIX: messenger warning button visible but inactive
   Кнопка "Перейти в WhatsApp / Telegram" видна всегда,
   но до галочки выглядит неактивной
========================================================= */

/* Пока галочка НЕ стоит — кнопку НЕ скрываем, а делаем неактивной */
body:has(#messengerWarningAgree:not(:checked)) #messengerWarningSubmit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  max-height: none !important;
  min-height: 56px !important;
  height: auto !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 16px !important;

  border-width: 1px !important;
  opacity: 0.58 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  transform: none !important;
  overflow: visible !important;

  cursor: not-allowed !important;
  filter: grayscale(0.22) brightness(0.86) !important;
  box-shadow: none !important;
}

/* При наведении до галочки кнопка не должна выглядеть активной */
body:has(#messengerWarningAgree:not(:checked)) #messengerWarningSubmit:hover {
  transform: none !important;
  filter: grayscale(0.22) brightness(0.86) !important;
  box-shadow: none !important;
}

/* После галочки кнопка становится нормальной */
body:has(#messengerWarningAgree:checked) #messengerWarningSubmit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  max-height: none !important;
  min-height: 56px !important;
  height: auto !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 16px !important;

  border-width: 1px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  transform: none !important;
  overflow: visible !important;

  cursor: pointer !important;
  filter: none !important;
}

/* Красная подсказка до галочки остаётся */
body:has(#messengerWarningAgree:not(:checked)) .messenger-precheck__agree,
body:has(#messengerWarningAgree:not(:checked)) .messenger-precheck__check,
label:has(#messengerWarningAgree:not(:checked)) {
  border-color: rgba(255, 99, 91, 0.58) !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 99, 91, 0.14), transparent 34%),
    rgba(18, 14, 11, 0.78) !important;
  box-shadow:
    0 0 0 1px rgba(255, 99, 91, 0.08),
    0 0 24px rgba(255, 99, 91, 0.10) !important;
  animation: messengerAgreeSoftHint 1.65s ease-in-out infinite !important;
}

/* После галочки — зелёное подтверждение */
body:has(#messengerWarningAgree:checked) .messenger-precheck__agree,
body:has(#messengerWarningAgree:checked) .messenger-precheck__check,
label:has(#messengerWarningAgree:checked) {
  border-color: rgba(37, 211, 102, 0.54) !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(37, 211, 102, 0.14), transparent 34%),
    rgba(13, 28, 18, 0.84) !important;
  box-shadow:
    0 0 0 1px rgba(37, 211, 102, 0.10),
    0 0 24px rgba(37, 211, 102, 0.10) !important;
  animation: none !important;
}

/* =========================================================
   FIX: popup close buttons center
   Ровняем крестики закрытия во всех попапах
========================================================= */

.messenger-precheck__close,
.lead-form-modal__close,
.service-modal__close,
.review-video-modal__close,
.gallery-modal__close,
.video-modal__close,
.quiz-popup__close,
[data-close-messenger-modal],
[data-close-lead-form],
[data-close-service-modal],
[data-close-review-video-modal],
[data-close-gallery-modal] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  text-align: center !important;

  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;

  box-sizing: border-box !important;
}

/* Если крестик текстовый — делаем его визуально ровным */
.messenger-precheck__close,
.lead-form-modal__close,
.service-modal__close,
.review-video-modal__close,
.gallery-modal__close,
.video-modal__close,
.quiz-popup__close {
  font-size: 0 !important;
}

.messenger-precheck__close::before,
.lead-form-modal__close::before,
.service-modal__close::before,
.review-video-modal__close::before,
.gallery-modal__close::before,
.video-modal__close::before,
.quiz-popup__close::before {
  content: "×" !important;
  display: block !important;
  font-size: 32px !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
}

/* Для маленьких крестиков */
@media (max-width: 520px) {

  .messenger-precheck__close::before,
  .lead-form-modal__close::before,
  .service-modal__close::before,
  .gallery-modal__close::before,
  .video-modal__close::before,
  .quiz-popup__close::before {
    font-size: 30px !important;
  }
}

/* =========================================================
   FIX: perfectly centered popup close buttons
   Рисуем крестик CSS-линиями, а не текстовым символом ×
========================================================= */

.messenger-modal__close,
.messenger-precheck__close,
.lead-form-modal__close,
.service-modal__close,
.review-video-modal__close,
.gallery-modal__close,
.video-modal__close,
.quiz-popup-close {
  position: absolute !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;

  background: rgba(255, 255, 255, 0.10) !important;
  color: transparent !important;

  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;

  cursor: pointer !important;
  box-sizing: border-box !important;
  overflow: hidden !important;

  transform-origin: center center !important;
}

/* Убираем старый текстовый × и любые прошлые before-фиксы */
.messenger-modal__close::before,
.messenger-modal__close::after,
.messenger-precheck__close::before,
.messenger-precheck__close::after,
.lead-form-modal__close::before,
.lead-form-modal__close::after,
.service-modal__close::before,
.service-modal__close::after,
.review-video-modal__close::before,
.review-video-modal__close::after,
.gallery-modal__close::before,
.gallery-modal__close::after,
.video-modal__close::before,
.video-modal__close::after,
.quiz-popup-close::before,
.quiz-popup-close::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: 21px !important;
  height: 3px !important;

  border-radius: 999px !important;
  background: #f5e8cd !important;

  transform-origin: center center !important;
  display: block !important;
  text-indent: 0 !important;
  pointer-events: none !important;
}

/* Первая линия крестика */
.messenger-modal__close::before,
.messenger-precheck__close::before,
.lead-form-modal__close::before,
.service-modal__close::before,
.review-video-modal__close::before,
.gallery-modal__close::before,
.video-modal__close::before,
.quiz-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Вторая линия крестика */
.messenger-modal__close::after,
.messenger-precheck__close::after,
.lead-form-modal__close::after,
.service-modal__close::after,
.review-video-modal__close::after,
.gallery-modal__close::after,
.video-modal__close::after,
.quiz-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Hover аккуратный, без съезда крестика */
.messenger-modal__close:hover,
.messenger-precheck__close:hover,
.lead-form-modal__close:hover,
.service-modal__close:hover,
.review-video-modal__close:hover,
.gallery-modal__close:hover,
.video-modal__close:hover,
.quiz-popup-close:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* На мобильных чуть меньше */
@media (max-width: 520px) {

  .messenger-modal__close,
  .messenger-precheck__close,
  .lead-form-modal__close,
  .service-modal__close,
  .review-video-modal__close,
  .gallery-modal__close,
  .video-modal__close,
  .quiz-popup-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .messenger-modal__close::before,
  .messenger-modal__close::after,
  .messenger-precheck__close::before,
  .messenger-precheck__close::after,
  .lead-form-modal__close::before,
  .lead-form-modal__close::after,
  .service-modal__close::before,
  .service-modal__close::after,
  .review-video-modal__close::before,
  .review-video-modal__close::after,
  .gallery-modal__close::before,
  .gallery-modal__close::after,
  .video-modal__close::before,
  .video-modal__close::after,
  .quiz-popup-close::before,
  .quiz-popup-close::after {
    width: 19px !important;
    height: 3px !important;
  }
}

/* =========================================================
   Floating quiz button
   Кнопка открытия квиза под кнопкой "Наверх"
========================================================= */

/* Поднимаем кнопку "Наверх" выше, чтобы под ней встала кнопка квиза */
.scroll-to-top {
  right: 22px !important;
  bottom: 108px !important;
}

/* Основная кнопка квиза */
.quiz-floating-open {
  position: fixed !important;
  right: 22px !important;
  bottom: 24px !important;
  z-index: 1200 !important;

  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;

  border: 1px solid rgba(212, 160, 91, 0.62) !important;
  border-radius: 22px !important;

  background:
    radial-gradient(circle at 28% 18%, rgba(255, 236, 174, 0.42), transparent 36%),
    linear-gradient(180deg, #e3ad61 0%, #b97931 100%) !important;

  color: #140c05 !important;
  box-shadow:
    0 0 0 1px rgba(212, 160, 91, 0.20),
    0 16px 46px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(212, 160, 91, 0.22) !important;

  cursor: pointer !important;
  overflow: hidden !important;

  transform: translateZ(0) !important;
  animation: quizFloatingPulse 2.4s ease-in-out infinite !important;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease !important;
}

.quiz-floating-open:hover {
  transform: translateY(-3px) scale(1.03) !important;
  filter: brightness(1.06) !important;
  box-shadow:
    0 0 0 1px rgba(212, 160, 91, 0.28),
    0 20px 58px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(212, 160, 91, 0.34) !important;
}

.quiz-floating-open:active {
  transform: translateY(0) scale(0.97) !important;
}

/* Вопросик */
.quiz-floating-open__icon {
  width: 24px !important;
  height: 24px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  background: rgba(20, 12, 5, 0.92) !important;
  color: #ffdca0 !important;

  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
}

/* Текст "Квиз" */
.quiz-floating-open__text {
  display: block !important;
  color: #140c05 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  letter-spacing: -0.02em !important;
}

/* Текст "1 мин" */
.quiz-floating-open__hint {
  display: block !important;
  color: rgba(20, 12, 5, 0.76) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

/* Блик внутри кнопки */
.quiz-floating-open::before {
  content: "" !important;
  position: absolute !important;
  inset: -40% !important;
  background: linear-gradient(115deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.36) 48%,
      transparent 58%,
      transparent 100%) !important;
  transform: translateX(-58%) rotate(8deg) !important;
  animation: quizFloatingShine 4.2s ease-in-out infinite !important;
  pointer-events: none !important;
}

/* Когда открыт любой попап — кнопку квиза не показываем поверх модалок */
body.quiz-popup-open .quiz-floating-open,
body.lead-form-modal-open .quiz-floating-open,
body.messenger-modal-open .quiz-floating-open,
body.service-modal-open .quiz-floating-open,
body.gallery-modal-open .quiz-floating-open,
body.review-video-modal-open .quiz-floating-open,
body.video-modal-open .quiz-floating-open,
body.modal-open .quiz-floating-open {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Анимация лёгкой пульсации */
@keyframes quizFloatingPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(212, 160, 91, 0.20),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(212, 160, 91, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 4px rgba(212, 160, 91, 0.16),
      0 20px 56px rgba(0, 0, 0, 0.48),
      0 0 48px rgba(212, 160, 91, 0.34);
  }

  100% {
    box-shadow:
      0 0 0 1px rgba(212, 160, 91, 0.20),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(212, 160, 91, 0.18);
  }
}

/* Анимация блика */
@keyframes quizFloatingShine {
  0% {
    transform: translateX(-68%) rotate(8deg);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  34% {
    transform: translateX(68%) rotate(8deg);
    opacity: 0;
  }

  100% {
    transform: translateX(68%) rotate(8deg);
    opacity: 0;
  }
}

/* Мобильная версия */
@media (max-width: 520px) {
  .scroll-to-top {
    right: 16px !important;
    bottom: 98px !important;
  }

  .quiz-floating-open {
    right: 16px !important;
    bottom: 20px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
  }

  .quiz-floating-open__icon {
    width: 21px !important;
    height: 21px !important;
    font-size: 15px !important;
  }

  .quiz-floating-open__text {
    font-size: 13px !important;
  }

  .quiz-floating-open__hint {
    font-size: 9px !important;
  }
}

/* =========================================================
   FIX: stray quiz close button + stronger floating quiz animation
   Убираем лишний крестик автоквиза с обычной страницы
========================================================= */

/* Крестик автоквиза скрыт всегда, пока квиз НЕ открыт как попап */
.quiz-popup-close[hidden],
#quiz:not(.quiz-popup-mode) .quiz-popup-close,
body:not(.quiz-popup-open) .quiz-popup-close {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Когда автоквиз открыт — крестик показывается нормально справа сверху */
body.quiz-popup-open #quiz.quiz-popup-mode .quiz-popup-close:not([hidden]) {
  position: fixed !important;
  top: 22px !important;
  right: 22px !important;
  left: auto !important;
  bottom: auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;

  z-index: 36000 !important;
}

/* На мобильных крестик чуть компактнее */
@media (max-width: 520px) {
  body.quiz-popup-open #quiz.quiz-popup-mode .quiz-popup-close:not([hidden]) {
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}


/* =========================================================
   Floating quiz button: stronger attention animation
   Делаем кнопку квиза заметнее
========================================================= */

.quiz-floating-open {
  animation: quizFloatingAttention 3.4s ease-in-out infinite !important;
}

/* Дополнительное светящееся кольцо */
.quiz-floating-open::after {
  content: "" !important;
  position: absolute !important;
  inset: -7px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 218, 139, 0.42) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: quizFloatingRing 3.4s ease-in-out infinite !important;
}

/* Вопросик внутри чуть подпрыгивает */
.quiz-floating-open__icon {
  animation: quizFloatingIconBounce 3.4s ease-in-out infinite !important;
}

/* Hover оставляем ручным, чтобы кнопка не прыгала под мышкой */
.quiz-floating-open:hover {
  animation-play-state: paused !important;
}

.quiz-floating-open:hover::after,
.quiz-floating-open:hover .quiz-floating-open__icon {
  animation-play-state: paused !important;
}

/* Основная анимация кнопки */
@keyframes quizFloatingAttention {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(212, 160, 91, 0.20),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(212, 160, 91, 0.18);
  }

  10% {
    transform: translateY(-3px) scale(1.04);
  }

  18% {
    transform: translateY(0) scale(1);
  }

  26% {
    transform: translateY(-2px) scale(1.025);
  }

  34% {
    transform: translateY(0) scale(1);
  }

  52% {
    box-shadow:
      0 0 0 4px rgba(212, 160, 91, 0.17),
      0 20px 58px rgba(0, 0, 0, 0.48),
      0 0 52px rgba(255, 204, 111, 0.38);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(212, 160, 91, 0.20),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(212, 160, 91, 0.18);
  }
}

/* Пульсирующее кольцо вокруг кнопки */
@keyframes quizFloatingRing {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  10% {
    opacity: 0.55;
    transform: scale(1);
  }

  34% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* Подпрыгивание вопросика */
@keyframes quizFloatingIconBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  10% {
    transform: translateY(-2px) scale(1.08);
  }

  18% {
    transform: translateY(0) scale(1);
  }

  26% {
    transform: translateY(-1px) scale(1.05);
  }

  34% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   FIX: visible pulse rings for floating quiz button
   Показываем пульсирующие кольца вокруг кнопки автоквиза
========================================================= */

/* Разрешаем кольцам выходить за пределы кнопки */
.quiz-floating-open {
  overflow: visible !important;
  isolation: isolate !important;
}

/* Блик внутри кнопки оставляем поверх фона, но под текстом */
.quiz-floating-open::before {
  z-index: 1 !important;
}

/* Кольцо вокруг кнопки */
.quiz-floating-open::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  z-index: -1 !important;

  border-radius: 30px !important;
  border: 2px solid rgba(255, 218, 139, 0.58) !important;

  opacity: 0 !important;
  pointer-events: none !important;

  box-shadow:
    0 0 18px rgba(255, 204, 111, 0.24),
    0 0 42px rgba(212, 160, 91, 0.18) !important;

  animation: quizFloatingVisibleRing 2.4s ease-in-out infinite !important;
}

/* Текст и иконка должны быть выше блика */
.quiz-floating-open__icon,
.quiz-floating-open__text,
.quiz-floating-open__hint {
  position: relative !important;
  z-index: 2 !important;
}

/* Более заметное кольцо */
@keyframes quizFloatingVisibleRing {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  18% {
    opacity: 0.75;
    transform: scale(1);
  }

  55% {
    opacity: 0.22;
    transform: scale(1.28);
  }

  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

/* На мобильных кольцо чуть компактнее */
@media (max-width: 520px) {
  .quiz-floating-open::after {
    inset: -8px !important;
    border-radius: 27px !important;
  }
}

.quiz-floating-open::after {
  border-color: rgba(255, 218, 139, 0.85) !important;
  box-shadow:
    0 0 22px rgba(255, 204, 111, 0.38),
    0 0 58px rgba(212, 160, 91, 0.28) !important;
}

/* =========================================================
   FINAL FIX: floating quiz button glow rings
   Убираем кривой блик и делаем нормальные пульсирующие кольца
========================================================= */

/* Кнопка квиза */
.quiz-floating-open {
  overflow: visible !important;
  isolation: auto !important;

  animation: quizFloatingButtonBounce 3.2s ease-in-out infinite !important;

  box-shadow:
    0 0 0 1px rgba(212, 160, 91, 0.24),
    0 14px 42px rgba(0, 0, 0, 0.46),
    0 0 26px rgba(212, 160, 91, 0.22) !important;
}

/* Полностью отключаем старый блик, который вылезал полосой */
.quiz-floating-open::before {
  content: none !important;
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Нормальное кольцо вокруг кнопки */
.quiz-floating-open::after {
  content: "" !important;
  position: absolute !important;

  left: 50% !important;
  top: 50% !important;

  width: calc(100% + 18px) !important;
  height: calc(100% + 18px) !important;

  border-radius: 28px !important;
  border: 2px solid rgba(255, 218, 139, 0.72) !important;

  background: transparent !important;

  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: none !important;

  z-index: 0 !important;

  transform: translate(-50%, -50%) scale(0.88) !important;
  animation: quizFloatingCleanRing 2.2s ease-out infinite !important;

  box-shadow:
    0 0 18px rgba(255, 204, 111, 0.32),
    0 0 44px rgba(212, 160, 91, 0.22) !important;
}

/* Содержимое кнопки поверх кольца */
.quiz-floating-open__icon,
.quiz-floating-open__text,
.quiz-floating-open__hint {
  position: relative !important;
  z-index: 2 !important;
}

/* Чтобы кольцо не перекрывало фон кнопки */
.quiz-floating-open {
  position: fixed !important;
}

/* Подпрыгивание самой кнопки */
@keyframes quizFloatingButtonBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  9% {
    transform: translateY(-4px) scale(1.045);
  }

  18% {
    transform: translateY(0) scale(1);
  }

  27% {
    transform: translateY(-2px) scale(1.025);
  }

  36% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Чистое пульсирующее кольцо */
@keyframes quizFloatingCleanRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86) !important;
  }

  16% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  58% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1.24) !important;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42) !important;
  }
}

/* Hover — без бесконечного прыгания под мышкой */
.quiz-floating-open:hover {
  animation-play-state: paused !important;
  transform: translateY(-3px) scale(1.04) !important;
  filter: brightness(1.06) !important;
}

.quiz-floating-open:hover::after {
  animation-play-state: paused !important;
  opacity: 0.65 !important;
  transform: translate(-50%, -50%) scale(1.12) !important;
}

/* Мобильная версия */
@media (max-width: 520px) {
  .quiz-floating-open::after {
    width: calc(100% + 14px) !important;
    height: calc(100% + 14px) !important;
    border-radius: 25px !important;
  }
}

/* =========================================================
   FINAL FINAL: floating quiz button real pulse
   Кольца через box-shadow самой кнопки, без ::before/::after
========================================================= */

/* Полностью отключаем старые псевдо-элементы, чтобы не было полос и конфликтов */
.quiz-floating-open::before,
.quiz-floating-open::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Отключаем прыгание одного вопросика */
.quiz-floating-open__icon {
  animation: none !important;
}

/* Главная анимация всей кнопки */
.quiz-floating-open {
  overflow: visible !important;
  isolation: auto !important;

  animation: quizFloatingRealPulse 2.6s ease-in-out infinite !important;

  box-shadow:
    0 0 0 0 rgba(255, 218, 139, 0.55),
    0 0 0 0 rgba(212, 160, 91, 0.28),
    0 16px 46px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(212, 160, 91, 0.22) !important;
}

/* При наведении останавливаем анимацию и делаем кнопку ярче */
.quiz-floating-open:hover {
  animation-play-state: paused !important;
  transform: translateY(-3px) scale(1.04) !important;
  filter: brightness(1.08) !important;

  box-shadow:
    0 0 0 8px rgba(255, 218, 139, 0.24),
    0 0 0 18px rgba(212, 160, 91, 0.12),
    0 20px 58px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(212, 160, 91, 0.36) !important;
}

/* Реальные пульсирующие кольца вокруг кнопки */
@keyframes quizFloatingRealPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 218, 139, 0.62),
      0 0 0 0 rgba(212, 160, 91, 0.28),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(212, 160, 91, 0.22);
  }

  12% {
    transform: translateY(-3px) scale(1.045);
    box-shadow:
      0 0 0 8px rgba(255, 218, 139, 0.34),
      0 0 0 18px rgba(212, 160, 91, 0.16),
      0 20px 56px rgba(0, 0, 0, 0.48),
      0 0 44px rgba(255, 204, 111, 0.34);
  }

  24% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 14px rgba(255, 218, 139, 0.16),
      0 0 0 30px rgba(212, 160, 91, 0.07),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(212, 160, 91, 0.26);
  }

  42% {
    transform: translateY(-2px) scale(1.025);
    box-shadow:
      0 0 0 5px rgba(255, 218, 139, 0.28),
      0 0 0 16px rgba(212, 160, 91, 0.12),
      0 18px 52px rgba(0, 0, 0, 0.46),
      0 0 42px rgba(255, 204, 111, 0.30);
  }

  60% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 18px rgba(255, 218, 139, 0),
      0 0 0 34px rgba(212, 160, 91, 0),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(212, 160, 91, 0.22);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 218, 139, 0),
      0 0 0 0 rgba(212, 160, 91, 0),
      0 16px 46px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(212, 160, 91, 0.22);
  }
}

/* =========================================================
   TRUE FINAL: floating quiz button animated rings
   Исправление: кольца через ::before / ::after, без box-shadow-анимации кнопки
========================================================= */

/* Сама кнопка */
#quizFloatingOpen.quiz-floating-open {
  overflow: visible !important;
  isolation: isolate !important;
  position: fixed !important;

  animation: quizButtonSoftJump 2.8s ease-in-out infinite !important;

  box-shadow:
    0 0 0 1px rgba(212, 160, 91, 0.24),
    0 16px 46px rgba(0, 0, 0, 0.44),
    0 0 30px rgba(212, 160, 91, 0.26) !important;
}

/* Полностью перерисовываем старые псевдоэлементы */
#quizFloatingOpen.quiz-floating-open::before,
#quizFloatingOpen.quiz-floating-open::after {
  content: "" !important;
  display: block !important;
  visibility: visible !important;

  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: calc(100% + 20px) !important;
  height: calc(100% + 20px) !important;

  border-radius: 30px !important;
  border: 2px solid rgba(255, 218, 139, 0.72) !important;
  background: transparent !important;

  pointer-events: none !important;
  opacity: 0 !important;

  z-index: 1 !important;
  transform: translate(-50%, -50%) scale(0.82) !important;

  box-shadow:
    0 0 20px rgba(255, 204, 111, 0.32),
    0 0 46px rgba(212, 160, 91, 0.24) !important;
}

/* Первое кольцо */
#quizFloatingOpen.quiz-floating-open::before {
  animation: quizRingOne 2.2s ease-out infinite !important;
}

/* Второе кольцо с задержкой, чтобы было видно волну */
#quizFloatingOpen.quiz-floating-open::after {
  animation: quizRingTwo 2.2s ease-out infinite !important;
  animation-delay: 0.55s !important;
}

/* Контент кнопки поверх колец */
#quizFloatingOpen.quiz-floating-open .quiz-floating-open__icon,
#quizFloatingOpen.quiz-floating-open .quiz-floating-open__text,
#quizFloatingOpen.quiz-floating-open .quiz-floating-open__hint {
  position: relative !important;
  z-index: 3 !important;
}

/* Возвращаем подпрыгивание вопросика */
#quizFloatingOpen.quiz-floating-open .quiz-floating-open__icon {
  animation: quizIconBounceFinal 2.8s ease-in-out infinite !important;
}

/* Hover: кнопка ярче, но кольца не ломаем */
#quizFloatingOpen.quiz-floating-open:hover {
  animation-play-state: paused !important;
  transform: translateY(-3px) scale(1.04) !important;
  filter: brightness(1.08) !important;

  box-shadow:
    0 0 0 8px rgba(255, 218, 139, 0.24),
    0 0 0 18px rgba(212, 160, 91, 0.12),
    0 20px 58px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(212, 160, 91, 0.36) !important;
}

#quizFloatingOpen.quiz-floating-open:hover::before,
#quizFloatingOpen.quiz-floating-open:hover::after,
#quizFloatingOpen.quiz-floating-open:hover .quiz-floating-open__icon {
  animation-play-state: paused !important;
}

/* Мягкий прыжок всей кнопки */
@keyframes quizButtonSoftJump {
  0% {
    transform: translateY(0) scale(1);
  }

  10% {
    transform: translateY(-4px) scale(1.045);
  }

  20% {
    transform: translateY(0) scale(1);
  }

  32% {
    transform: translateY(-2px) scale(1.025);
  }

  42% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Первое кольцо */
@keyframes quizRingOne {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }

  15% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }

  55% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1.32);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.52);
  }
}

/* Второе кольцо */
@keyframes quizRingTwo {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }

  15% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1);
  }

  58% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.42);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.62);
  }
}

/* Вопросик снова чуть живой */
@keyframes quizIconBounceFinal {
  0% {
    transform: translateY(0) scale(1);
  }

  10% {
    transform: translateY(-2px) scale(1.12);
  }

  20% {
    transform: translateY(0) scale(1);
  }

  32% {
    transform: translateY(-1px) scale(1.06);
  }

  42% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Мобильная версия */
@media (max-width: 520px) {

  #quizFloatingOpen.quiz-floating-open::before,
  #quizFloatingOpen.quiz-floating-open::after {
    width: calc(100% + 16px) !important;
    height: calc(100% + 16px) !important;
    border-radius: 26px !important;
  }
}

/* =========================================================
   Duplicate lead message with messenger links
========================================================= */

.duplicate-lead-message {
  display: block !important;
  color: #ff9b94 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}

.duplicate-lead-message__text {
  display: block !important;
}

.duplicate-lead-message a {
  color: #ffd36d !important;
  font-weight: 1000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.duplicate-lead-message a:hover {
  color: #fff1c4 !important;
}

#messengerContactStatus.is-duplicate,
#formStatus.is-duplicate,
#quizStatus.is-duplicate,
#contactFormStatus.is-duplicate {
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 99, 91, 0.22) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 99, 91, 0.12), transparent 42%),
    rgba(25, 10, 9, 0.48) !important;
}

/* =========================================================
   Lead sent 24h lock: hide quiz and block extra conversions
========================================================= */

/* Если заявка уже была — убираем кнопку квиза */
body.lead-already-sent .quiz-floating-open {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Если заявка уже была — не даём автоквизу всплывать поверх сайта */
body.lead-already-sent #quiz.quiz-popup-mode {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* На всякий случай убираем overlay-класс квиза визуально */
body.lead-already-sent.quiz-popup-open {
  overflow: auto !important;
}

/* Сообщение о повторной заявке */
.duplicate-lead-message {
  display: block !important;
  color: #ff9b94 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}

.duplicate-lead-message__text {
  display: block !important;
}

.duplicate-lead-message a {
  color: #ffd36d !important;
  font-weight: 1000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.duplicate-lead-message a:hover {
  color: #fff1c4 !important;
}

#messengerContactStatus.is-duplicate,
#formStatus.is-duplicate,
#quizStatus.is-duplicate,
#contactFormStatus.is-duplicate {
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 99, 91, 0.22) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 99, 91, 0.12), transparent 42%),
    rgba(25, 10, 9, 0.48) !important;
}

/* =========================================================
   Duplicate lead full placeholder screen
   Экран-заглушка вместо повторной формы
========================================================= */

.duplicate-success-screen {
  display: none;
  width: 100%;
  min-height: 430px;
  padding: clamp(28px, 5vw, 62px) clamp(20px, 4vw, 54px);
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f5e8cd;
}

.duplicate-success-screen.is-visible {
  display: flex !important;
}

.duplicate-success-screen__icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 229, 163, 0.38), transparent 34%),
    linear-gradient(180deg, rgba(143, 99, 45, 0.9), rgba(67, 45, 21, 0.96));

  border: 1px solid rgba(212, 160, 91, 0.52);

  box-shadow:
    0 0 0 12px rgba(212, 160, 91, 0.08),
    0 0 0 24px rgba(212, 160, 91, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.42);
}

.duplicate-success-screen__icon svg {
  width: 66px;
  height: 66px;
  display: block;
}

.duplicate-success-screen__icon circle {
  fill: rgba(22, 15, 8, 0.18);
  stroke: #d4a05b;
  stroke-width: 2;
}

.duplicate-success-screen__icon path {
  fill: none;
  stroke: #ffe0a1;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duplicate-success-screen__badge {
  width: fit-content;
  min-height: 34px;
  margin: 0 auto 22px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.36);
  background: rgba(13, 10, 8, 0.44);

  color: #d4a05b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.duplicate-success-screen__title {
  max-width: 760px;
  margin: 0 auto 22px;

  color: #fff4dc;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.duplicate-success-screen__text {
  max-width: 690px;
  margin: 0 auto;

  color: rgba(245, 232, 205, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 800;
}

.duplicate-success-screen__text--small {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(245, 232, 205, 0.68);
}

.duplicate-success-screen__actions {
  width: min(100%, 520px);
  margin: 24px auto 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.duplicate-success-screen__btn {
  min-height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;
  border: 1px solid rgba(197, 140, 66, 0.24);

  color: #ffffff !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 1000;
  line-height: 1;

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.duplicate-success-screen__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.duplicate-success-screen__btn--whatsapp {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #26d366, #119b49);
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.16),
    0 0 22px rgba(37, 211, 102, 0.12);
}

.duplicate-success-screen__btn--telegram {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #2da8ea, #1376b8);
  box-shadow:
    0 12px 30px rgba(42, 171, 238, 0.16),
    0 0 22px rgba(42, 171, 238, 0.12);
}

/* Для MAX/VK попапа заглушка должна помещаться аккуратно */
.messenger-precheck .duplicate-success-screen {
  min-height: 420px;
  padding: 34px 18px 22px;
}

.messenger-precheck .duplicate-success-screen__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.messenger-precheck .duplicate-success-screen__icon svg {
  width: 56px;
  height: 56px;
}

.messenger-precheck .duplicate-success-screen__title {
  font-size: clamp(30px, 4vw, 44px);
}

.messenger-precheck .duplicate-success-screen__text {
  font-size: 16px;
}

/* Для квиза */
.quiz-live__lead .duplicate-success-screen {
  min-height: 390px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 620px) {
  .duplicate-success-screen {
    min-height: 390px;
    padding: 30px 16px;
  }

  .duplicate-success-screen__icon {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .duplicate-success-screen__icon svg {
    width: 54px;
    height: 54px;
  }

  .duplicate-success-screen__actions {
    grid-template-columns: 1fr;
  }

  .duplicate-success-screen__btn {
    min-height: 52px;
  }
}

/* =========================================================
   Duplicate lead full placeholder screen
========================================================= */

.duplicate-success-screen {
  display: none;
  width: 100%;
  min-height: 430px;
  padding: clamp(28px, 5vw, 62px) clamp(20px, 4vw, 54px);
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f5e8cd;
}

.duplicate-success-screen.is-visible {
  display: flex !important;
}

.duplicate-success-screen__icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 229, 163, 0.38), transparent 34%),
    linear-gradient(180deg, rgba(143, 99, 45, 0.9), rgba(67, 45, 21, 0.96));

  border: 1px solid rgba(212, 160, 91, 0.52);

  box-shadow:
    0 0 0 12px rgba(212, 160, 91, 0.08),
    0 0 0 24px rgba(212, 160, 91, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.42);
}

.duplicate-success-screen__icon svg {
  width: 66px;
  height: 66px;
  display: block;
}

.duplicate-success-screen__icon circle {
  fill: rgba(22, 15, 8, 0.18);
  stroke: #d4a05b;
  stroke-width: 2;
}

.duplicate-success-screen__icon path {
  fill: none;
  stroke: #ffe0a1;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duplicate-success-screen__badge {
  width: fit-content;
  min-height: 34px;
  margin: 0 auto 22px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.36);
  background: rgba(13, 10, 8, 0.44);

  color: #d4a05b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.duplicate-success-screen__title {
  max-width: 760px;
  margin: 0 auto 22px;

  color: #fff4dc;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.duplicate-success-screen__text {
  max-width: 690px;
  margin: 0 auto;

  color: rgba(245, 232, 205, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 800;
}

.duplicate-success-screen__text--small {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(245, 232, 205, 0.68);
}

.duplicate-success-screen__actions {
  width: min(100%, 520px);
  margin: 24px auto 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.duplicate-success-screen__btn {
  min-height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;
  border: 1px solid rgba(197, 140, 66, 0.24);

  color: #ffffff !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 1000;
  line-height: 1;

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.duplicate-success-screen__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.duplicate-success-screen__btn--whatsapp {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #26d366, #119b49);
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.16),
    0 0 22px rgba(37, 211, 102, 0.12);
}

.duplicate-success-screen__btn--telegram {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #2da8ea, #1376b8);
  box-shadow:
    0 12px 30px rgba(42, 171, 238, 0.16),
    0 0 22px rgba(42, 171, 238, 0.12);
}

.messenger-precheck .duplicate-success-screen {
  min-height: 420px;
  padding: 34px 18px 22px;
}

.messenger-precheck .duplicate-success-screen__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.messenger-precheck .duplicate-success-screen__icon svg {
  width: 56px;
  height: 56px;
}

.messenger-precheck .duplicate-success-screen__title {
  font-size: clamp(30px, 4vw, 44px);
}

.messenger-precheck .duplicate-success-screen__text {
  font-size: 16px;
}

.quiz-live__lead .duplicate-success-screen {
  min-height: 390px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 620px) {
  .duplicate-success-screen {
    min-height: 390px;
    padding: 30px 16px;
  }

  .duplicate-success-screen__icon {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .duplicate-success-screen__icon svg {
    width: 54px;
    height: 54px;
  }

  .duplicate-success-screen__actions {
    grid-template-columns: 1fr;
  }

  .duplicate-success-screen__btn {
    min-height: 52px;
  }
}

.duplicate-success-screen {
  display: none;
  width: 100%;
  min-height: 430px;
  padding: clamp(28px, 5vw, 62px) clamp(20px, 4vw, 54px);
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f5e8cd;
}

.duplicate-success-screen.is-visible {
  display: flex !important;
}

.duplicate-success-screen__icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 229, 163, 0.38), transparent 34%),
    linear-gradient(180deg, rgba(143, 99, 45, 0.9), rgba(67, 45, 21, 0.96));
  border: 1px solid rgba(212, 160, 91, 0.52);
  box-shadow:
    0 0 0 12px rgba(212, 160, 91, 0.08),
    0 0 0 24px rgba(212, 160, 91, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.42);
}

.duplicate-success-screen__icon svg {
  width: 66px;
  height: 66px;
  display: block;
}

.duplicate-success-screen__icon circle {
  fill: rgba(22, 15, 8, 0.18);
  stroke: #d4a05b;
  stroke-width: 2;
}

.duplicate-success-screen__icon path {
  fill: none;
  stroke: #ffe0a1;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duplicate-success-screen__badge {
  width: fit-content;
  min-height: 34px;
  margin: 0 auto 22px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(197, 140, 66, 0.36);
  background: rgba(13, 10, 8, 0.44);
  color: #d4a05b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.duplicate-success-screen__title {
  max-width: 760px;
  margin: 0 auto 22px;
  color: #fff4dc;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.duplicate-success-screen__text {
  max-width: 690px;
  margin: 0 auto;
  color: rgba(245, 232, 205, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 800;
}

.duplicate-success-screen__text--small {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(245, 232, 205, 0.68);
}

.duplicate-success-screen__actions {
  width: min(100%, 520px);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.duplicate-success-screen__btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid rgba(197, 140, 66, 0.24);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
}

.duplicate-success-screen__btn--whatsapp {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #26d366, #119b49);
}

.duplicate-success-screen__btn--telegram {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #2da8ea, #1376b8);
}

.messenger-precheck .duplicate-success-screen {
  min-height: 420px;
  padding: 34px 18px 22px;
}

.messenger-precheck .duplicate-success-screen__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.messenger-precheck .duplicate-success-screen__icon svg {
  width: 56px;
  height: 56px;
}

.messenger-precheck .duplicate-success-screen__title {
  font-size: clamp(30px, 4vw, 44px);
}

.messenger-precheck .duplicate-success-screen__text {
  font-size: 16px;
}

@media (max-width: 620px) {
  .duplicate-success-screen {
    min-height: 390px;
    padding: 30px 16px;
  }

  .duplicate-success-screen__icon {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .duplicate-success-screen__icon svg {
    width: 54px;
    height: 54px;
  }

  .duplicate-success-screen__actions {
    grid-template-columns: 1fr;
  }

  .duplicate-success-screen__btn {
    min-height: 52px;
  }
}

/* =========================================================
   MOBILE HARD FIX: hero + first video
   Исправляет вылезание сайта вправо на телефонах
========================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    position: relative !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .header__inner {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;

    min-height: 64px !important;
    overflow: hidden !important;
  }

  .header-socials--left {
    min-width: 0 !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    overflow: hidden !important;
    flex-wrap: nowrap !important;
  }

  .header-socials--left .header-social {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
  }

  .header-socials--left .header-social svg,
  .header-socials--left .header-social__icon-svg {
    width: 17px !important;
    height: 17px !important;
  }

  .header__cta {
    width: auto !important;
    min-width: 86px !important;
    max-width: 96px !important;
    min-height: 38px !important;

    padding: 0 9px !important;
    border-radius: 10px !important;

    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .burger {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 11px !important;
  }

  .nav {
    display: none !important;
  }

  main,
  section,
  .hero,
  .hero-layout,
  .hero-main,
  .hero-top,
  .hero-visual-bottom,
  .hero-video-only,
  .media-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .hero {
    padding-top: 18px !important;
    padding-bottom: 42px !important;
  }

  .hero-layout {
    display: block !important;
  }

  .hero-main {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .hero-top--editorial {
    width: 100% !important;
    max-width: 100% !important;

    padding: 22px 18px 24px !important;
    border-radius: 22px !important;

    overflow: hidden !important;
  }

  .hero-title-art {
    max-width: 100% !important;

    font-size: clamp(36px, 13vw, 48px) !important;
    line-height: 0.96 !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .hero-title-art span {
    max-width: 100% !important;

    font-size: 15px !important;
    line-height: 1.45 !important;

    overflow-wrap: anywhere !important;
  }

  .hero-person__name {
    font-size: 22px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  .hero-person__meta,
  .hero-copy__lead,
  .hero-copy__text,
  .hero-top p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .hero-tags-line {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .hero-tags-line span {
    width: 100% !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    text-align: center !important;
  }

  .hero-video-only {
    margin-top: 20px !important;
  }

  .hero-video-only .media-card {
    padding: 12px !important;
    border-radius: 22px !important;
  }

  .hero-video-only .media-card__head {
    margin-bottom: 10px !important;
  }

  .hero-video-only .media-card__eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.16em !important;
  }

  .hero-video-only .media-card__counter {
    font-size: 14px !important;
  }

  .hero-video-only .media-card__main {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .hero-video-only .media-card__viewport,
  .hero-video-only .media-card__viewport--video {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 9 / 16 !important;

    border-radius: 18px !important;
    overflow: hidden !important;

    background: #050403 !important;
  }

  .hero-video-only .video-shell {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    display: block !important;
    background: #000 !important;
  }

  .hero-video-only .video-shell__poster,
  .hero-video-only .video-shell__player {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center center !important;

    background: #000 !important;
  }

  .hero-video-only .media-card__nav {
    position: absolute !important;
    top: 50% !important;
    z-index: 20 !important;

    width: 38px !important;
    height: 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;
    border: 1px solid rgba(212, 160, 91, 0.36) !important;
    background: rgba(10, 8, 6, 0.72) !important;
    backdrop-filter: blur(8px) !important;

    color: #f5e8cd !important;
    font-size: 28px !important;
    line-height: 1 !important;

    transform: translateY(-50%) !important;
  }

  .hero-video-only .media-card__nav--prev {
    left: 8px !important;
  }

  .hero-video-only .media-card__nav--next {
    right: 8px !important;
  }

  .hero-video-only .video-shell__play {
    width: 72px !important;
    height: 72px !important;
  }

  .hero-video-only .video-shell__play-icon {
    margin-left: 5px !important;
    border-top-width: 14px !important;
    border-bottom-width: 14px !important;
    border-left-width: 23px !important;
  }

  .hero-video-only .media-card__thumbs {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    grid-template-columns: none !important;

    gap: 8px !important;
    margin-top: 10px !important;
    padding: 0 2px 4px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  .hero-video-only .media-thumb {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    flex: 0 0 58px !important;

    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
  }

  .hero-video-only .media-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Очень маленькие экраны: iPhone 4 / iPhone SE */
@media (max-width: 360px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .header .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .header-socials--left {
    gap: 4px !important;
  }

  .header-socials--left .header-social {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    flex-basis: 29px !important;
    border-radius: 9px !important;
  }

  .header-socials--left .header-social svg,
  .header-socials--left .header-social__icon-svg {
    width: 14px !important;
    height: 14px !important;
  }

  .burger {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }

  .header__cta {
    min-width: 78px !important;
    max-width: 82px !important;
    min-height: 34px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  .hero-top--editorial {
    padding: 20px 14px 22px !important;
  }

  .hero-title-art {
    font-size: 34px !important;
  }

  .hero-title-art span {
    font-size: 13.5px !important;
  }

  .hero-person__name {
    font-size: 20px !important;
  }

  .hero-video-only .media-card {
    padding: 10px !important;
  }

  .hero-video-only .media-card__viewport,
  .hero-video-only .media-card__viewport--video {
    aspect-ratio: 9 / 15.5 !important;
  }

  .hero-video-only .video-shell__play {
    width: 66px !important;
    height: 66px !important;
  }

  .hero-video-only .media-card__nav {
    width: 34px !important;
    height: 34px !important;
    font-size: 25px !important;
  }

  .hero-video-only .media-thumb {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    flex-basis: 52px !important;
  }
}

/* =========================================================
   FIX: video poster must hide when video is playing
========================================================= */

.video-shell {
  position: relative !important;
}

.video-shell.is-playing .video-shell__poster,
.video-shell.is-playing .video-shell__play {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-shell.is-playing .video-shell__player {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 4 !important;
}

.video-shell.is-poster .video-shell__poster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.video-shell.is-poster .video-shell__play {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   FIX: lock page scroll when auto quiz popup is open
========================================================= */

/*
  Старый quiz-scroll-locked больше самостоятельно
  не блокирует страницу.
  Управляет скроллом только modal-scroll-lock.js.
*/

html.quiz-scroll-locked,
body.quiz-scroll-locked {
  overscroll-behavior: none;
}

/* Но внутри самого автоквиза прокрутка должна работать */
body.quiz-popup-open #quiz {
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* =========================================================
   SAFE HEADER FIX: fixed header + burger cross without JS
========================================================= */

:root {
  --ab-header-height: 82px;
}

.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 10000 !important;
  background: rgba(11, 9, 8, 0.9) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body {
  padding-top: var(--ab-header-height) !important;
}

html {
  scroll-padding-top: calc(var(--ab-header-height) + 18px) !important;
}

.header__inner {
  min-height: var(--ab-header-height) !important;
}

/* Меню под fixed-хедером */
@media (max-width: 1100px) {
  .nav {
    top: calc(var(--ab-header-height) + 10px) !important;
  }
}

/* Бургер */
.burger {
  position: relative !important;
  overflow: hidden !important;
  gap: 0 !important;
}

.burger span {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: 20px !important;
  height: 2px !important;

  display: block !important;
  border-radius: 999px !important;
  background: #f5e8cd !important;

  transform-origin: center !important;
  transition: transform 0.22s ease, opacity 0.18s ease !important;
}

.burger span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 7px)) rotate(0deg) !important;
}

.burger span:nth-child(2) {
  transform: translate(-50%, -50%) scaleX(1) !important;
  opacity: 1 !important;
}

.burger span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 7px)) rotate(0deg) !important;
}

/* Когда меню открыто — бургер становится крестиком */
body.menu-open .burger span:nth-child(1),
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

body.menu-open .burger span:nth-child(2),
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scaleX(0) !important;
}

body.menu-open .burger span:nth-child(3),
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body.menu-open .burger,
.burger[aria-expanded="true"] {
  border-color: rgba(212, 160, 91, 0.5) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(212, 160, 91, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(34, 25, 18, 0.98), rgba(14, 10, 8, 0.98)) !important;
}

/* На мобилке кнопки не прыгают вверх за экран */
@media (max-width: 720px) {
  :root {
    --ab-header-height: 72px;
  }

  .header,
  .header__inner {
    overflow: hidden !important;
  }

  .header-socials--left .header-social,
  .header__cta {
    animation: headerMobileSafePulse 4s ease-in-out infinite !important;
    transform: translateZ(0) scale(1) !important;
  }

  .header-socials--left .header-social:hover,
  .header__cta:hover {
    transform: translateZ(0) scale(1.025) !important;
  }

  .nav {
    top: calc(var(--ab-header-height) + 8px) !important;
  }
}

@media (max-width: 520px) {
  :root {
    --ab-header-height: 64px;
  }

  .burger span {
    width: 18px !important;
  }

  .burger span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 6px)) rotate(0deg) !important;
  }

  .burger span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 6px)) rotate(0deg) !important;
  }

  body.menu-open .burger span:nth-child(1),
  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  body.menu-open .burger span:nth-child(3),
  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }
}

@media (max-width: 360px) {
  :root {
    --ab-header-height: 60px;
  }
}

@keyframes headerMobileSafePulse {

  0%,
  68%,
  100% {
    transform: translateZ(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(197, 140, 66, 0.22),
      0 8px 22px rgba(0, 0, 0, 0.22);
  }

  74% {
    transform: translateZ(0) scale(1.035);
    box-shadow:
      0 0 0 1px rgba(212, 160, 91, 0.44),
      0 10px 28px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(212, 160, 91, 0.18);
  }

  82% {
    transform: translateZ(0) scale(1.015);
  }
}

/* =========================================================
   FINAL FIX: burger opens mobile nav
========================================================= */

@media (max-width: 1100px) {
  .nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.menu-open .nav,
  .nav.is-open,
  .burger[aria-expanded="true"]+.nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* На всякий случай поверх старых конфликтующих правил */
@media (max-width: 720px) {

  body.menu-open .nav,
  .nav.is-open,
  .burger[aria-expanded="true"]+.nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10002 !important;
  }
}

/* =========================================================
   FINAL FIX: make mobile burger menu visible
========================================================= */

@media (max-width: 1100px) {

  .header,
  .header__inner {
    overflow: visible !important;
  }

  .nav {
    position: fixed !important;

    top: calc(var(--ab-header-height, 72px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;

    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - var(--ab-header-height, 72px) - 22px) !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    border: 1px solid rgba(197, 140, 66, 0.26) !important;
    border-radius: 20px !important;

    background:
      radial-gradient(circle at top, rgba(212, 160, 91, 0.09), transparent 34%),
      linear-gradient(180deg, rgba(21, 16, 12, 0.99), rgba(9, 7, 6, 0.99)) !important;

    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;

    z-index: 20000 !important;

    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transform: none !important;
    clip-path: none !important;
  }

  body.menu-open .nav,
  .nav.is-open,
  .burger.is-active+.nav,
  .burger[aria-expanded="true"]+.nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav a {
    display: flex !important;
    align-items: center !important;

    min-height: 42px !important;
    padding: 0 14px !important;

    border-radius: 14px !important;
    border: 1px solid rgba(197, 140, 66, 0.14) !important;
    background: rgba(18, 14, 11, 0.78) !important;

    color: #ead8b9 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .nav a:hover {
    border-color: rgba(212, 160, 91, 0.4) !important;
    background: rgba(31, 23, 17, 0.96) !important;
    color: #fff !important;
  }
}

/* =========================================================
   MOBILE FIX: компактный попап формы обратной связи
   Добавить в самый конец styles.css
========================================================= */

@media (max-width: 480px) {
  .lead-form-modal {
    padding: 6px !important;
    align-items: stretch !important;
  }

  .lead-form-modal__dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .lead-form-modal__card {
    height: 100% !important;
    min-height: 100% !important;
    padding: 14px 12px 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 20px !important;
  }

  .lead-form-modal .hero-form__form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 100% !important;
  }

  .lead-form-modal .hero-form__head {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    align-items: start !important;
    padding-right: 40px !important;
    margin-bottom: 2px !important;
  }

  .lead-form-modal .hero-form__title {
    margin: 6px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
  }

  .lead-form-modal .hero-form__badge {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .lead-form-modal .eyebrow {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }

  .lead-form-modal__close {
    top: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .lead-form-modal .form-group {
    margin: 0 !important;
  }

  .lead-form-modal .form-group label {
    display: block !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .lead-form-modal input,
  .lead-form-modal textarea {
    padding: 11px 12px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
  }

  .lead-form-modal textarea {
    min-height: 82px !important;
    max-height: 110px !important;
    resize: none !important;
  }

  .lead-form-modal .field-hint,
  .lead-form-modal .field-error,
  .lead-form-modal .form-status {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  /* ВАЖНО: всегда 2 колонки, чтобы форма не вытягивалась вниз */
  .lead-form-modal .hero-contact-methods--modal,
  .lead-form-modal .contact-methods.hero-contact-methods--modal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .lead-form-modal .contact-method span {
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
  }

  .lead-form-modal .hero-form__submit {
    min-height: 46px !important;
    margin-top: auto !important;
    font-size: 15px !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3 !important;
  }

  .lead-form-modal .hero-form__after {
    margin-top: 8px !important;
    padding: 10px !important;
  }

  .lead-form-modal .hero-form__after-title {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .lead-form-modal .hero-form__after-grid {
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .lead-form-modal .hero-form__after-item {
    grid-template-columns: 28px 1fr !important;
    gap: 6px !important;
    padding: 4px 0 !important;
  }

  .lead-form-modal .hero-form__after-item span {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 10px !important;
  }

  .lead-form-modal .hero-form__after-item p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}

/* Ещё сильнее ужимаем на совсем маленьких и низких экранах */
@media (max-width: 380px) {
  .lead-form-modal .hero-form__title {
    font-size: 15px !important;
  }

  .lead-form-modal .hero-form__badge {
    font-size: 10px !important;
    padding: 0 8px !important;
  }

  .lead-form-modal .eyebrow {
    font-size: 9px !important;
    padding: 0 8px !important;
  }

  .lead-form-modal input,
  .lead-form-modal textarea {
    padding: 10px 11px !important;
    font-size: 13px !important;
  }

  .lead-form-modal textarea {
    min-height: 72px !important;
    max-height: 96px !important;
  }

  .lead-form-modal .contact-method span {
    min-height: 38px !important;
    font-size: 12px !important;
  }

  .lead-form-modal .hero-form__submit {
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) and (max-height: 740px) {

  /* На низких экранах прячем второстепенные подсказки */
  .lead-form-modal .field-hint {
    display: none !important;
  }

  .lead-form-modal .form-group label {
    margin-bottom: 3px !important;
  }

  .lead-form-modal .hero-form__head {
    margin-bottom: 0 !important;
  }
}

/* =========================================================
   FIX: lead popup submit button position + badge center
   Кнопка "Отправить" сразу после номера телефона
========================================================= */

@media (max-width: 480px) {
  .lead-form-modal .hero-form__form {
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
  }

  .lead-form-modal__dialog {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 12px) !important;
  }

  .lead-form-modal__card {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 12px) !important;
  }

  .lead-form-modal .hero-form__submit {
    position: static !important;
    bottom: auto !important;
    top: auto !important;

    margin-top: 8px !important;
    margin-bottom: 0 !important;

    width: 100% !important;
    min-height: 44px !important;

    order: initial !important;
    align-self: stretch !important;
  }

  .lead-form-modal .hero-field--phone {
    margin-bottom: 0 !important;
  }

  .lead-form-modal .hero-form__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 28px !important;
    min-height: 28px !important;

    padding: 0 10px !important;
    margin: 0 !important;

    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;

    align-self: center !important;
    justify-self: end !important;
  }

  .lead-form-modal .hero-form__head {
    align-items: start !important;
  }
}

@media (max-width: 380px) {
  .lead-form-modal .hero-form__submit {
    min-height: 42px !important;
    margin-top: 7px !important;
  }

  .lead-form-modal .hero-form__badge {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }
}

/* =========================================================
   MOBILE FIX: compact MAX / Telegram messenger popups
   Компактные попапы мессенджеров на мобильных
========================================================= */

@media (max-width: 480px) {
  .messenger-modal {
    padding: 6px !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  .messenger-modal__dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 12px) !important;

    border-radius: 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch !important;
  }

  .messenger-modal__dialog--contact,
  .messenger-modal__dialog--warning {
    width: 100% !important;
    max-width: 100% !important;
  }

  .messenger-precheck {
    padding: 14px 12px 12px !important;
  }

  .messenger-precheck__badge {
    min-height: 28px !important;
    padding: 0 10px !important;

    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
  }

  .messenger-precheck__title {
    margin: 10px 44px 8px 0 !important;

    font-size: 22px !important;
    line-height: 0.98 !important;
    letter-spacing: -0.04em !important;
  }

  .messenger-precheck__text {
    font-size: 12px !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
  }

  .messenger-precheck__form,
  .messenger-precheck__warning-box,
  .messenger-precheck__alternative {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .messenger-precheck__field {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .messenger-precheck__field label {
    font-size: 10px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.06em !important;
  }

  .messenger-precheck__field input {
    min-height: 44px !important;
    padding: 0 12px !important;

    border-radius: 10px !important;

    font-size: 15px !important;
    line-height: 1 !important;
  }

  .messenger-precheck__hint {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .messenger-precheck__agree {
    grid-template-columns: 16px minmax(0, 1fr) !important;
    gap: 8px !important;

    margin-top: 6px !important;
    padding: 0 !important;

    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  .messenger-precheck__agree input {
    width: 16px !important;
    height: 16px !important;
    margin-top: 1px !important;
  }

  .messenger-precheck__agree--large {
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  .messenger-precheck__status {
    min-height: 16px !important;
    margin-top: 6px !important;

    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .messenger-precheck__submit,
  .messenger-precheck__alt {
    min-height: 44px !important;
    border-radius: 10px !important;

    font-size: 13px !important;
    line-height: 1 !important;
  }

  .messenger-precheck__submit {
    margin-top: 8px !important;
  }

  .messenger-precheck__alternative-title {
    margin-bottom: 8px !important;

    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .messenger-precheck__alternative-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .messenger-modal__close {
    top: 8px !important;
    right: 8px !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .messenger-modal__close::before,
  .messenger-modal__close::after {
    width: 17px !important;
    height: 3px !important;
  }
}

/* Очень маленькие экраны: iPhone 4 / старый SE */
@media (max-width: 360px) {
  .messenger-modal {
    padding: 5px !important;
  }

  .messenger-precheck {
    padding: 12px 10px 10px !important;
  }

  .messenger-precheck__title {
    margin-top: 8px !important;
    margin-bottom: 6px !important;

    font-size: 19px !important;
    line-height: 0.96 !important;
  }

  .messenger-precheck__text {
    font-size: 10.5px !important;
    line-height: 1.22 !important;
  }

  .messenger-precheck__form,
  .messenger-precheck__warning-box,
  .messenger-precheck__alternative {
    margin-top: 10px !important;
    padding: 10px !important;
  }

  .messenger-precheck__field {
    margin-bottom: 8px !important;
  }

  .messenger-precheck__field input {
    min-height: 40px !important;
    font-size: 14px !important;
  }

  .messenger-precheck__hint {
    font-size: 9.5px !important;
  }

  .messenger-precheck__agree {
    font-size: 10px !important;
  }

  .messenger-precheck__submit,
  .messenger-precheck__alt {
    min-height: 40px !important;
    font-size: 12px !important;
  }
}

/* Низкие экраны: убираем второстепенное, чтобы форма не вылезала */
@media (max-width: 480px) and (max-height: 700px) {
  .messenger-precheck__hint {
    display: none !important;
  }

  .messenger-precheck__status {
    display: none !important;
  }

  .messenger-precheck__field {
    margin-bottom: 8px !important;
  }

  .messenger-precheck__title {
    font-size: 19px !important;
  }

  .messenger-precheck__text {
    font-size: 10.5px !important;
  }
}

/* =========================================================
   GLOBAL FIX: block background site scroll when any popup is open
========================================================= */

html.modal-scroll-locked,
body.modal-scroll-locked,
html:has(body.lead-form-modal-open),
html:has(body.messenger-modal-open),
html:has(body.quiz-popup-open),
html:has(body.service-modal-open),
html:has(body.gallery-modal-open),
html:has(body.review-video-modal-open),
html:has(body.video-modal-open),
body.lead-form-modal-open,
body.messenger-modal-open,
body.quiz-popup-open,
body.service-modal-open,
body.gallery-modal-open,
body.review-video-modal-open,
body.video-modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Внутри попапов скролл разрешён, сайт сзади — нет */
.lead-form-modal,
.messenger-modal,
.quiz-popup,
.service-modal,
.gallery-modal,
.review-video-modal,
.video-modal {
  overscroll-behavior: contain !important;
}

.lead-form-modal__dialog,
.messenger-modal__dialog,
.quiz-popup__dialog,
.service-modal__dialog,
.gallery-modal__dialog,
.review-video-modal__dialog,
.video-modal__dialog {
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* =========================================================
   MOBILE FIX: compact service modal
   Попапы услуг: приворот / снятие порчи / отворот / защита
========================================================= */

@media (max-width: 520px) {
  .service-modal {
    padding: 6px !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  .service-modal__dialog {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: calc(100dvh - 12px) !important;

    margin: 0 auto !important;
    padding: 14px 12px 12px !important;

    border-radius: 20px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .service-modal__close {
    top: 8px !important;
    right: 8px !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    border-radius: 999px !important;
  }

  .service-modal__close::before,
  .service-modal__close::after {
    width: 17px !important;
    height: 3px !important;
  }

  .service-modal__badge {
    min-height: 28px !important;
    padding: 0 10px !important;

    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
  }

  .service-modal__price {
    display: none !important;
  }

  .service-modal__image {
    height: 118px !important;
    margin-top: 10px !important;

    border-radius: 14px !important;
  }

  .service-modal__image img {
    object-fit: cover !important;
    object-position: center 34% !important;
  }

  .service-modal__title {
    margin: 10px 42px 4px 0 !important;

    font-size: 23px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
  }

  .service-modal__subtitle {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.08em !important;
  }

  .service-modal__text {
    margin-top: 10px !important;

    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .service-modal__list {
    gap: 6px !important;
    margin-top: 10px !important;
  }

  .service-modal__list li {
    padding-left: 16px !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .service-modal__list li::before {
    top: 0 !important;
    font-size: 10px !important;
  }

  .service-modal__cta {
    width: 100% !important;
    min-height: 42px !important;

    margin-top: 12px !important;
    padding: 0 14px !important;

    border-radius: 10px !important;

    font-size: 14px !important;
    line-height: 1 !important;
  }
}

/* Маленькие телефоны: iPhone 4 / iPhone SE */
@media (max-width: 360px) {
  .service-modal {
    padding: 5px !important;
  }

  .service-modal__dialog {
    max-height: calc(100dvh - 10px) !important;
    padding: 12px 10px 10px !important;
    border-radius: 18px !important;
  }

  .service-modal__close {
    top: 7px !important;
    right: 7px !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .service-modal__close::before,
  .service-modal__close::after {
    width: 15px !important;
    height: 3px !important;
  }

  .service-modal__badge {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }

  .service-modal__image {
    height: 86px !important;
    margin-top: 8px !important;
    border-radius: 12px !important;
  }

  .service-modal__title {
    margin: 8px 36px 3px 0 !important;

    font-size: 19px !important;
    line-height: 0.98 !important;
  }

  .service-modal__subtitle {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }

  .service-modal__text {
    margin-top: 8px !important;

    font-size: 10.5px !important;
    line-height: 1.32 !important;
  }

  .service-modal__list {
    gap: 4px !important;
    margin-top: 8px !important;
  }

  .service-modal__list li {
    padding-left: 14px !important;

    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  .service-modal__cta {
    min-height: 38px !important;
    margin-top: 9px !important;

    font-size: 12px !important;
  }
}

/* Низкие экраны: ещё сильнее ужимаем, чтобы кнопка была видна */
@media (max-width: 520px) and (max-height: 620px) {
  .service-modal__image {
    height: 74px !important;
  }

  .service-modal__title {
    font-size: 18px !important;
  }

  .service-modal__subtitle {
    display: none !important;
  }

  .service-modal__text {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .service-modal__list li {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .service-modal__cta {
    min-height: 36px !important;
    margin-top: 8px !important;
  }
}

/* Совсем маленькая высота: декоративную картинку делаем минимальной */
@media (max-width: 360px) and (max-height: 520px) {
  .service-modal__image {
    height: 64px !important;
  }

  .service-modal__text {
    margin-top: 6px !important;
  }

  .service-modal__list {
    margin-top: 6px !important;
  }
}

/* Когда открыт попап услуги — сайт сзади не должен скроллиться */
html:has(body.service-modal-open),
body.service-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* =========================================================
   FIX: hide auto quiz button while user is using inline quiz
========================================================= */

body.quiz-inline-visible .quiz-floating-open,
body.quiz-inline-engaged .quiz-floating-open,
body.quiz-inline-visible #quizFloatingOpen,
body.quiz-inline-engaged #quizFloatingOpen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.96) !important;
}

/* =========================================================
   Формат обращения во всех формах
========================================================= */

.request-format {
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(212, 160, 91, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg,
      rgba(30, 23, 18, 0.96),
      rgba(18, 14, 11, 0.96));
}

.request-format__title {
  color: #e8bd77;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.request-format__subtitle {
  margin-top: 3px;
  color: rgba(245, 232, 205, 0.68);
  font-size: 11px;
  line-height: 1.4;
}

.request-format__options {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.request-format__option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 232, 205, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.request-format__option input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.request-format__radio {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(245, 232, 205, 0.75);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    inset 0 0 0 3px #fff;
}

.request-format__option-text {
  min-width: 0;
  color: #f5e8cd;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.request-format__option:has(input:checked) {
  border-color: rgba(212, 160, 91, 0.82);
  background: rgba(94, 66, 30, 0.28);
}

.request-format__option input:checked+.request-format__radio {
  border-color: #d4a05b;
  background: #d4a05b;
}

.request-format__info {
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.request-format__info[hidden] {
  display: none !important;
}

.request-format__info--price {
  border: 1px solid rgba(212, 160, 91, 0.42);
  background: rgba(82, 58, 27, 0.22);
}

.request-format__info--free {
  border: 1px solid rgba(255, 91, 91, 0.72);
  background: rgba(91, 20, 16, 0.46);
  color: #ffe5df;
}

.request-format__info-title {
  color: #f0c985;
  font-weight: 800;
}

.request-format__info-text {
  color: inherit;
}

.request-format__info-title+.request-format__info-text {
  margin-top: 3px;
}

.request-format__understand {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 232, 205, 0.16);
  color: #fff1d9;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.request-format__error {
  margin-top: 7px;
  color: #ffaaa0;
  font-size: 11px;
  font-weight: 700;
}

.request-format__error[hidden] {
  display: none !important;
}

.request-format.is-error {
  border-color: rgba(255, 91, 91, 0.86);
  box-shadow:
    0 0 0 2px rgba(255, 91, 91, 0.12);
}


/* Messenger popup */
.messenger-precheck__form .request-format {
  margin: 12px 0;
}


/* Final form */
.final-contact__form .request-format {
  margin: 14px 0;
}


/* Quiz */
.quiz-live__form .request-format {
  margin: 14px 0;
}


/* Мобильная версия */
@media (max-width: 600px) {
  .request-format {
    margin: 11px 0;
    padding: 11px;
    border-radius: 11px;
  }

  .request-format__title {
    font-size: 13px;
  }

  .request-format__subtitle {
    display: none;
  }

  .request-format__options {
    gap: 5px;
    margin-top: 8px;
  }

  .request-format__option {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .request-format__option-text {
    font-size: 11px;
    line-height: 1.25;
  }

  .request-format__info {
    margin-top: 7px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.38;
  }

  .request-format__understand {
    min-height: 28px;
    margin-top: 6px;
    font-size: 10px;
  }
}

/* =========================================================
   Формат обращения — гармошка
========================================================= */

.request-format {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(212, 160, 91, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg,
      rgba(30, 23, 18, 0.96),
      rgba(18, 14, 11, 0.96));
  overflow: hidden;
}

.request-format__toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.request-format__toggle-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.request-format__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.request-format__title {
  color: #e8bd77;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.request-format__required {
  color: #ff7f73;
}

.request-format__required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 99, 91, 0.34);
  background: rgba(255, 99, 91, 0.08);
  color: #ffb1aa;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.request-format__subtitle {
  color: rgba(245, 232, 205, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

.request-format__toggle-side {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-format__summary {
  max-width: 210px;
  color: #e8bd77;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  text-align: right;
}

.request-format__summary.is-empty {
  color: rgba(245, 232, 205, 0.62);
}

.request-format__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #d4a05b;
  border-bottom: 2px solid #d4a05b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.request-format.is-open .request-format__chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.request-format__panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 160, 91, 0.18);
}

.request-format__panel[hidden] {
  display: none !important;
}

.request-format__options {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.request-format__option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 232, 205, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.request-format__option input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.request-format__radio {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(245, 232, 205, 0.75);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.request-format__option-text {
  min-width: 0;
  color: #f5e8cd;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.request-format__option:has(input:checked) {
  border-color: rgba(212, 160, 91, 0.82);
  background: rgba(94, 66, 30, 0.28);
}

.request-format__option input:checked+.request-format__radio {
  border-color: #d4a05b;
  background: #d4a05b;
}

.request-format__info {
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.request-format__info[hidden] {
  display: none !important;
}

.request-format__info--price {
  border: 1px solid rgba(212, 160, 91, 0.42);
  background: rgba(82, 58, 27, 0.22);
}

.request-format__info--free {
  border: 1px solid rgba(255, 91, 91, 0.72);
  background: rgba(91, 20, 16, 0.46);
  color: #ffe5df;
}

.request-format__info-title {
  color: #f0c985;
  font-weight: 800;
}

.request-format__info-text {
  color: inherit;
}

.request-format__info-title+.request-format__info-text {
  margin-top: 3px;
}

.request-format__understand {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 232, 205, 0.16);
  color: #fff1d9;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.request-format__error {
  margin-top: 8px;
  color: #ffaaa0;
  font-size: 11px;
  font-weight: 700;
}

.request-format__error[hidden] {
  display: none !important;
}

.request-format.is-error {
  border-color: rgba(255, 91, 91, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 91, 91, 0.12);
}

@media (max-width: 600px) {
  .request-format {
    margin: 11px 0;
    padding: 11px;
    border-radius: 11px;
  }

  .request-format__toggle {
    align-items: flex-start;
    gap: 8px;
  }

  .request-format__title {
    font-size: 13px;
  }

  .request-format__subtitle {
    font-size: 10px;
  }

  .request-format__required-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  .request-format__toggle-side {
    gap: 7px;
  }

  .request-format__summary {
    max-width: 120px;
    font-size: 10px;
    line-height: 1.25;
  }

  .request-format__panel {
    margin-top: 9px;
    padding-top: 9px;
  }

  .request-format__options {
    gap: 5px;
  }

  .request-format__option {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .request-format__option-text {
    font-size: 11px;
    line-height: 1.25;
  }

  .request-format__info {
    margin-top: 7px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.38;
  }

  .request-format__understand {
    min-height: 28px;
    margin-top: 6px;
    font-size: 10px;
  }
}

/* =========================================================
   FIX: скролл квиза при раскрытии формата обращения
========================================================= */

body.quiz-popup-open #quiz.quiz-popup-mode {
  overflow: hidden !important;
}

body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__layout {
  min-height: 0 !important;
}

body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__main {
  min-height: 0 !important;

  max-height: calc(100dvh - 110px) !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  overscroll-behavior: contain !important;

  touch-action: pan-y !important;

  -webkit-overflow-scrolling: touch !important;

  scrollbar-gutter: stable;
}

body.quiz-popup-open #quiz.quiz-popup-mode .request-format {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__main {
    max-height: calc(100dvh - 80px) !important;
  }
}

.request-format__agree-price {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 15px;
  border: 1px solid rgba(212, 160, 91, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg,
      rgba(212, 160, 91, 0.95),
      rgba(154, 103, 47, 0.95));
  color: #1e1309;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.request-format__agree-price:hover {
  filter: brightness(1.06);
}

.request-format__agree-price:disabled {
  cursor: default;
  opacity: 0.72;
}

.request-format.is-price-confirmed .request-format__info--price {
  border-color: rgba(114, 201, 126, 0.55);
  background: rgba(30, 89, 42, 0.18);
}

@media (max-width: 600px) {
  .request-format__agree-price {
    min-height: 30px;
    margin-top: 7px;
    font-size: 10px;
  }
}

.request-format.is-price-confirmed {
  border-color: rgba(92, 196, 116, 0.78) !important;
  box-shadow:
    0 0 0 2px rgba(92, 196, 116, 0.10) !important;
}

.request-format.is-price-confirmed .request-format__title {
  color: #8ed99d;
}

.request-format.is-price-confirmed .request-format__summary {
  color: #8ed99d;
}

.request-format.is-paid-ready {
  border-color: rgba(92, 196, 116, 0.78) !important;
  box-shadow:
    0 0 0 2px rgba(92, 196, 116, 0.10) !important;
}

.request-format.is-paid-ready .request-format__title {
  color: #8ed99d;
}

.request-format.is-paid-ready .request-format__summary {
  color: #8ed99d;
}

/* =========================================================
   FINAL FIX: mobile lead modal scroll + request format width
========================================================= */

@media (max-width: 600px) {

  /*
    Само модальное окно занимает экран,
    но НЕ является скролл-контейнером.
  */
  .lead-form-modal {
    padding: 6px !important;
    align-items: stretch !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /*
    Dialog только ограничивает размер.
    Внутри него ничего не скроллим.
  */
  .lead-form-modal__dialog {
    width: 100% !important;
    max-width: 100% !important;

    height: calc(100dvh - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 12px) !important;

    overflow: hidden !important;

    border-radius: 20px !important;
  }

  /*
    Единственный скролл-контейнер —
    сама карточка формы.
  */
  .lead-form-modal__card {
    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;

    padding: 14px 12px 24px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;

    border-radius: 20px !important;
  }

  /*
    Вся форма строго внутри карточки.
  */
  .lead-form-modal .hero-form__form {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
  }

  /*
    Формат обращения всегда вписывается
    внутрь ширины формы.
  */
  .lead-form-modal .request-format {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
  }

  .lead-form-modal .request-format__toggle {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
  }

  .lead-form-modal .request-format__toggle-main {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .lead-form-modal .request-format__toggle-side {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 44% !important;
  }

  .lead-form-modal .request-format__summary {
    display: block !important;

    max-width: 120px !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .lead-form-modal .request-format__panel,
  .lead-form-modal .request-format__options,
  .lead-form-modal .request-format__option,
  .lead-form-modal .request-format__info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
  }

  .lead-form-modal .request-format__option-text,
  .lead-form-modal .request-format__info-text,
  .lead-form-modal .request-format__info-title {
    min-width: 0 !important;
    max-width: 100% !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
}


/* Очень маленькие телефоны */
@media (max-width: 360px) {

  .lead-form-modal {
    padding: 4px !important;
  }

  .lead-form-modal__dialog {
    height: calc(100dvh - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
  }

  .lead-form-modal__card {
    padding: 12px 10px 22px !important;
  }

  .lead-form-modal .request-format {
    padding: 10px !important;
  }

  .lead-form-modal .request-format__title-row {
    gap: 5px !important;
  }

  .lead-form-modal .request-format__required-badge {
    padding: 0 5px !important;
    font-size: 8px !important;
  }

  .lead-form-modal .request-format__summary {
    max-width: 80px !important;
    font-size: 9px !important;
  }
}

/* =========================================================
   FIX: один скроллбар в автоквизе
========================================================= */

body.quiz-popup-open #quiz.quiz-popup-mode {
  overflow: hidden !important;
}

body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__layout {
  overflow: hidden !important;
  min-height: 0 !important;
}

body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__main {
  overflow-y: auto !important;
  overflow-x: hidden !important;

  min-height: 0 !important;
  max-height: calc(100dvh - 80px) !important;

  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 420px) {
  body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__main {
    max-height: calc(100dvh - 74px) !important;
  }
}

/* =========================================================
   FINAL FIX: один скроллбар на последнем шаге автоквиза
========================================================= */

body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__lead {
  max-height: none !important;
  height: auto !important;

  overflow-y: visible !important;
  overflow-x: visible !important;

  overscroll-behavior: auto !important;
}

/*
  Единственный скролл-контейнер автоквиза
*/
body.quiz-popup-open #quiz.quiz-popup-mode .quiz-live__main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}