/* ============================================================
   ПриборЭксперт — редизайн. Mobile-first (80% трафика — мобильные)
   Токены из дизайн-макета:
   графит #374756 · синий #3457D5 · красный #E23A50
   серый текст #7C8992/#48555F · фон секций #F4F6F9 · жёлтый #FFC629
   Шрифт: Manrope 400/500/600/700/800
   ============================================================ */

:root {
  --c-dark: #374756;
  --c-blue: #3457D5;
  --c-blue-link: #2F5FD6;
  --c-blue-hover: #1E3FA8;
  --c-red: #E23A50;
  --c-red-hover: #c92940;
  --c-gray: #7C8992;
  --c-gray-dark: #48555F;
  --c-bg: #F4F6F9;
  --c-border: #EEF1F4;
  --c-border-input: #E1E6EB;
  --c-footer-text: #B9C2CA;
  --c-footer-muted: #8896A0;
  --c-yellow: #FFC629;
  --c-on-yellow: #26303A;
  --c-on-yellow-muted: #4A4223;
  --c-on-yellow-link: #B5401B;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-dark);
  background: #fff;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

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

a { color: var(--c-blue-link); text-decoration: none; }
a:hover { color: var(--c-blue-hover); }

h1, h2, h3 { margin: 0; line-height: 1.3; }

.container { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 992px) { .container { padding: 0 64px; } }

.section-title { font-size: 26px; font-weight: 800; margin-bottom: 28px; }
@media (min-width: 992px) { .section-title { font-size: 32px; margin-bottom: 40px; } }

.above-title {
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-blue); margin-bottom: 14px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Чек-иконки ---------- */
.check {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none;
}
.check--blue { border: 2px solid var(--c-blue); color: var(--c-blue); }
.check--red { border: 2px solid var(--c-red); color: var(--c-red); }

/* ---------- Кнопки-пилюли (тап-цель ≥48px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 15px 26px;
  font-family: var(--font); font-size: 17px; font-weight: 700;
  border: none; border-radius: 32px; cursor: pointer;
  text-decoration: none; text-align: center; color: #fff;
  transition: background .2s, transform .1s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:hover { box-shadow: 0 8px 22px rgba(0,0,0,.14); color: #fff; }
.btn--red { background: var(--c-red); }
.btn--red:hover { background: var(--c-red-hover); }
.btn--dark { background: var(--c-dark); white-space: nowrap; }
.btn--dark:hover { background: #26303A; }
.btn__arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[disabled]:hover { box-shadow: none; }
.btn[disabled]:active { transform: none; }

@media (max-width: 767px) {
  .btn--red, .btn--dark { width: 100%; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.header__logo img { height: 36px; width: auto; object-fit: contain; }
.header__phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: var(--c-dark);
  padding: 10px 0; /* тап-цель */
  white-space: nowrap; /* номер не должен ломаться на две строки */
}
@media (max-width: 420px) {
  .header__phone { font-size: 15px; gap: 8px; }
}
.header__phone:hover { color: var(--c-blue); }
.header__phone-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-blue);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  position: relative;
}
.header__phone-dot::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff;
}
@media (min-width: 992px) {
  .header__inner { padding-top: 18px; padding-bottom: 18px; }
  .header__logo img { height: 46px; }
  .header__phone { font-size: 19px; }
}

/* ---------- Hero ---------- */
.hero { background: #fff; padding: 36px 0 48px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__title {
  font-size: 27px; line-height: 1.24; font-weight: 800;
  margin-bottom: 14px; max-width: 620px;
}
.hero__title-accent { color: var(--c-blue); }
.hero__subtitle {
  font-size: 17px; line-height: 1.55; font-weight: 500;
  color: var(--c-gray-dark); margin: 0 0 22px; max-width: 540px;
}
.hero__benefits {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
/* буллеты-чипы: светлая пилюля + цветная галочка + жирные ключевые слова */
.hero__benefits li {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-bg); border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--c-gray-dark);
}
.hero__benefits li strong { color: var(--c-dark); font-weight: 700; }
.hero__photo { position: relative; }
/* мягкая подложка, чтобы обрезанное фото не «парило» на белом */
.hero__photo::before {
  content: ""; position: absolute; z-index: 0;
  width: 80%; aspect-ratio: 1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: #EDF2FA;
}
.hero__photo img { width: 100%; position: relative; z-index: 1; }

@media (min-width: 992px) {
  .hero { padding: 72px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero__title { font-size: 38px; margin-bottom: 16px; }
  .hero__subtitle { font-size: 19px; margin-bottom: 32px; }
  .hero__benefits { margin-bottom: 36px; gap: 12px; }
  .hero__benefits li { font-size: 16px; padding: 12px 20px 12px 14px; }
}
@media (min-width: 1200px) {
  .hero__title { font-size: 44px; max-width: 680px; }
}

/* ---------- Services ---------- */
.services { background: var(--c-bg); padding: 48px 0; }
.services__grid { display: grid; gap: 20px; }
.service-card {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(55,71,86,.10); }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.service-card__icon--blue { background: var(--c-blue); }
.service-card__icon--red { background: var(--c-red); }
.service-card__icon--dark { background: var(--c-dark); font-size: 24px; }
.service-card__title { font-size: 22px; font-weight: 700; }
.service-card__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--c-gray-dark); flex: 1; }
.service-card__link {
  background: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: flex-start; min-height: 46px; padding: 11px 24px; /* тап-цель */
  border: 1.5px solid currentColor; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.service-card__link--blue { color: var(--c-blue); }
.service-card__link--red { color: var(--c-red); }
.service-card__link--dark { color: var(--c-dark); }
.service-card__link--blue:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.service-card__link--red:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.service-card__link--dark:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

@media (min-width: 992px) {
  .services { padding: 72px 0; }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .service-card { padding: 40px 32px; gap: 20px; }
}

/* ---------- About (синяя секция с карточками) ---------- */
.about { background: var(--c-blue); padding: 52px 0; }
.about__inner { max-width: 1120px; }
.about__title {
  font-size: 26px; font-weight: 800; line-height: 1.3;
  color: #fff; margin-bottom: 32px;
}
.about__grid { display: grid; gap: 16px; }
.about-card {
  background: rgba(255,255,255,.10);
  border-radius: 16px; padding: 26px 22px;
  font-size: 16px; line-height: 1.5;
}
.about-card strong { color: #fff; font-weight: 700; }
.about-card span { color: rgba(255,255,255,.85); font-weight: 600; } /* ≥4.5:1 на синем */
@media (min-width: 600px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 992px) {
  .about { padding: 80px 0; }
  .about__title { font-size: 32px; margin-bottom: 40px; }
  /* stretch (по умолчанию) выравнивает карточки по высоте ряда;
     ширина колонок — по объёму текста */
  .about__grid { grid-template-columns: 1fr 0.82fr 1fr 1.18fr; gap: 24px; }
  .about-card { padding: 30px 26px; }
}

/* ---------- Какие приборы нужны (светлая секция + параллакс-фото) ---------- */
.tools { background: #fff; padding: 52px 0; position: relative; }
.tools__inner { position: relative; z-index: 2; }
.tools__title {
  font-size: 24px; font-weight: 800; line-height: 1.35;
  margin-bottom: 20px; color: var(--c-dark); max-width: 700px;
}
.tools__title-accent { color: #8DA2C0; }
.tools__text {
  font-size: 16px; line-height: 1.7; color: var(--c-gray-dark);
  margin: 0 0 32px; max-width: 700px;
}
@media (min-width: 992px) {
  .tools { padding: 90px 0; }
  .tools__title { font-size: 30px; }
  .tools__text { margin-bottom: 36px; }
  /* параллакс: фото зафиксировано относительно экрана,
     секция «проезжает» над ним при прокрутке (как на оригинале) */
  .tools {
    background-image: url("../images/hand-stopwatch.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: calc(100% + 40px) center;
    background-size: min(34vw, 520px) auto;
  }
}

/* ---------- Reviews (табы слева, видео справа) ---------- */
.reviews { background: #fff; padding: 52px 0; }
.section-title--light { font-weight: 400; }
.reviews__grid { display: grid; gap: 36px; align-items: start; }
.reviews__tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.reviews__tab {
  border-radius: 999px; padding: 12px 22px; min-height: 46px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: #fff; color: var(--c-gray); border: 1.5px solid var(--c-border-input);
  transition: background .2s, color .2s, border-color .2s;
}
.reviews__tab.is-active { background: #FDEDEF; color: var(--c-red); border-color: var(--c-red); }
.reviews__panel[hidden] { display: none; }
.reviews__widget iframe {
  width: 100%; height: 420px; border: 0;
  border-radius: 16px; background: var(--c-bg); border: 1px solid #E7EBEF;
}
.reviews__more { display: inline-block; margin-top: 12px; padding: 8px 0; font-weight: 600; font-size: 14px; }
.letters__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.letters__item {
  aspect-ratio: 0.72; border-radius: 12px; overflow: hidden;
  border: 1px solid #E7EBEF; background: #fff; padding: 6px;
}
/* contain — документ виден целиком, cover резал письма до нечитаемых фрагментов */
.letters__item img { width: 100%; height: 100%; object-fit: contain; }
.videos__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.videos__item {
  position: relative; aspect-ratio: 16/10; border-radius: 16px;
  overflow: hidden; border: 1px solid #E7EBEF; display: block;
}
.videos__item img { width: 100%; height: 100%; object-fit: cover; }
.videos__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.videos__play::before {
  content: ""; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(55,71,86,.85)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform .2s;
}
.videos__item:hover .videos__play::before { transform: scale(1.08); }

@media (min-width: 560px) {
  .letters__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .videos__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .reviews { padding: 80px 0; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Urgency + форма инструкции ---------- */
.urgency { background: var(--c-bg); padding: 52px 0; }
.urgency__grid { display: grid; gap: 32px; align-items: start; }
.urgency__title { font-size: 24px; font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.urgency__text { font-size: 16px; line-height: 1.7; color: var(--c-gray-dark); margin: 0; }
.instruction-card { background: #fff; border-radius: 20px; padding: 28px 22px; }
.instruction-card__title { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
@media (min-width: 992px) {
  .urgency { padding: 80px 0; }
  .urgency__grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .urgency__title { font-size: 28px; }
  .instruction-card { padding: 36px; }
  .instruction-card__title { font-size: 20px; }
}

/* ---------- Формы (поля ≥48px, шрифт ≥16px — iOS не зумит) ---------- */
.form__fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.form__input {
  border: 1px solid var(--c-border-input); border-radius: 10px;
  padding: 14px 16px; min-height: 50px;
  font-size: 16px; font-family: inherit; color: var(--c-dark);
  width: 100%;
}
.form__input:focus { outline: none; border-color: var(--c-blue); }
.form__input.is-error { border-color: var(--c-red); }
.form__submit { width: 100%; font-size: 16px; }
.form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__message { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.form__message.is-ok { color: #0a7d38; }
.form__message.is-error { color: var(--c-red); }

/* ---------- Согласие (крупная зона нажатия) ---------- */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: #A6AEB5; margin: 14px 0 0;
  line-height: 1.5; cursor: pointer; padding: 4px 0;
}
.consent__checkbox {
  width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--c-blue); flex: none; cursor: pointer;
}
.consent__text a { color: var(--c-gray); text-decoration: underline; }
.consent.is-error .consent__text { color: var(--c-red); }
/* согласие на жёлтой карточке модалки */
.consent--yellow { color: var(--c-on-yellow-muted); }
.consent--yellow .consent__text a { color: var(--c-on-yellow-link); }
.consent--yellow .consent__checkbox { accent-color: var(--c-red); }

/* ---------- Этапы (светло-голубая секция, белые карточки, карта РФ) ---------- */
.steps { background: #EDF1FA; padding: 52px 0; }
.steps__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.step {
  background: #fff; border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.step__num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-blue); color: #fff;
  font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.step__name { font-size: 16px; font-weight: 700; }
.step__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--c-gray);
  padding: 4px 0;
}
.step__more:hover { color: var(--c-blue); }
.steps__bottom { display: grid; gap: 28px; align-items: center; }
.steps__final {
  background: #fff; border-radius: 16px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 24px;
}
.steps__final-star {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--c-yellow); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.steps__final-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.steps__final-text { font-size: 16px; color: var(--c-gray-dark); }
.steps__map img { width: 100%; height: auto; }
@media (min-width: 992px) {
  .steps { padding: 80px 0; }
  .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
  .step { padding: 28px 26px; gap: 16px; }
  .step__name { font-size: 17px; }
  .steps__bottom { grid-template-columns: 1fr 1fr; gap: 48px; }
  .steps__final { padding: 32px 30px; margin-bottom: 32px; }
  .steps__final-title { font-size: 19px; }
  .steps__cta { align-self: flex-start; }
  .steps__bottom-left { display: flex; flex-direction: column; align-items: flex-start; }
  .steps__final { align-self: stretch; }
}

/* ---------- FAQ (аккордеон) ---------- */
.faq { background: var(--c-bg); padding: 52px 0; }
.faq__inner { max-width: 900px; }
.faq__list { display: flex; flex-direction: column; gap: 16px; }
.faq__item { background: #fff; border-radius: 16px; overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; font-family: inherit; text-align: left; cursor: pointer;
  padding: 20px; min-height: 56px;
  font-size: 16px; font-weight: 700; color: var(--c-dark);
}
.faq__icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--c-dark);
  transition: transform .2s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 20px 22px;
  font-size: 16px; line-height: 1.65; color: var(--c-gray-dark);
}
.faq__item.is-open .faq__a { display: block; }
@media (min-width: 992px) {
  .faq { padding: 80px 0; }
  .faq__list { gap: 20px; }
  .faq__q { padding: 26px 30px; font-size: 17px; }
  .faq__a { padding: 0 30px 26px; }
}

/* ---------- Карта ---------- */
.map { position: relative; height: 320px; background: #E7EBEF; }
.map__frame { width: 100%; height: 100%; border: 0; display: block; }
.map__card {
  position: absolute; top: 16px; left: 16px; right: 16px;
  background: #fff; border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 16px 40px rgba(55,71,86,.14);
  pointer-events: none;
}
.map__pin { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.map__address { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--c-dark); }
@media (min-width: 768px) {
  .map { height: 420px; }
  .map__card { top: 32px; left: 32px; right: auto; max-width: 400px; padding: 22px 26px; }
  .map__address { font-size: 16px; }
}

/* ---------- Footer (тёмный, с формой в жёлтой карточке) ---------- */
.footer { background: var(--c-on-yellow); color: #fff; padding: 44px 0 28px; overflow: hidden; }
.footer__grid { display: grid; gap: 36px; align-items: start; }
.footer__logo { height: 36px; width: auto; display: block; margin-bottom: 24px; }
.footer__desc {
  font-size: 15px; font-style: italic; line-height: 1.6;
  color: var(--c-footer-text); margin: 0 0 20px; max-width: 280px;
}
.footer__politika {
  display: inline-block; font-size: 15px; color: #fff;
  text-decoration: underline; margin-bottom: 20px; padding: 4px 0;
}
.footer__politika:hover { color: var(--c-footer-text); }
.footer__requisites { font-size: 14px; color: var(--c-footer-muted); line-height: 1.8; }
.footer__device {
  height: 260px; width: auto; object-fit: contain; justify-self: center;
  display: none;
  /* края растворяются в фоне подвала — нет видимой рамки фото */
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 52%, #000 52%, transparent 96%);
          mask-image: radial-gradient(ellipse 72% 72% at 50% 52%, #000 52%, transparent 96%);
}
.footer__phone { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.footer__phone a { color: #fff; }
.footer__phone a:hover { color: var(--c-footer-text); }
.footer__email { font-size: 15px; margin-bottom: 24px; }
.footer__email a { color: var(--c-footer-text); }
.footer__email a:hover { color: #fff; }
.footer__card {
  background: var(--c-yellow); border-radius: 20px;
  padding: 24px 22px 20px;
}
.footer__card .modal__phone-wrap { padding: 14px 16px; margin-bottom: 14px; }
.footer__card-submit { width: 100%; font-size: 16px; }
.footer__card-note {
  font-size: 15px; font-weight: 700; color: var(--c-on-yellow);
  margin: 14px 0 4px;
}
.footer__card .consent { margin-top: 4px; }
.footer__bottom {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: var(--c-footer-muted);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1100px) {
  .footer { padding: 64px 0 32px; }
  .footer__grid { grid-template-columns: 1fr auto 1fr; }
  .footer__logo { height: 40px; margin-bottom: 28px; }
  .footer__desc { font-size: 16px; margin-bottom: 24px; }
  .footer__device { display: block; height: 440px; }
  .footer__card { padding: 28px 28px 24px; }
  .footer__bottom { margin-top: 40px; padding-top: 24px; }
}

/* ---------- Sticky CTA (мобильные) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: 0 -4px 16px rgba(0,0,0,.10);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 992px) { .sticky-cta { display: none; } }

/* ---------- Модалка заказа ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(38,48,58,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none;
  opacity: 0; transition: opacity .3s;
}
.modal.is-open { display: block; }
.modal.is-visible { opacity: 1; }

.modal__close {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 20px; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: rgba(255,255,255,.22); }

/* Мобильные: карточка сверху, рука ниже, всё скроллится */
.modal__stage {
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 16px calc(24px + env(safe-area-inset-bottom));
  gap: 8px;
}
.modal__hand {
  order: 2;
  width: min(78vw, 420px); height: auto;
  pointer-events: none; flex: none;
}
.modal__card {
  order: 1;
  position: relative; z-index: 2;
  background: var(--c-yellow); border-radius: 24px;
  padding: 32px 24px 26px;
  width: 100%; max-width: 380px;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
  transform: translateY(16px); transition: transform .35s cubic-bezier(.22,.9,.36,1);
}
.modal.is-visible .modal__card { transform: translateY(0); }
.modal__title {
  font-size: 26px; font-weight: 800; line-height: 1.2;
  color: var(--c-on-yellow); margin-bottom: 22px;
}
.modal__phone-wrap {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 18px;
}
.modal__phone-input {
  flex: 1; border: none; outline: none;
  font-size: 16px; font-family: inherit; color: var(--c-on-yellow);
  min-width: 0; background: none; padding: 2px 0;
}
.modal__phone-input.is-error { color: var(--c-red); }
.modal__phone-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--c-red); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.modal__submit { width: 100%; margin-bottom: 4px; }

/* Десктоп: центрированная сцена, рука у правого края (bleed), карточка левее центра */
@media (min-width: 992px) {
  .modal { display: none; align-items: center; justify-content: center; }
  .modal.is-open { display: flex; }
  .modal__close { top: 28px; left: 32px; width: 40px; height: 40px; }
  .modal__stage {
    position: relative; width: 100%; max-width: 1400px;
    height: min(86vh, 760px); overflow: hidden;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    padding: 0;
  }
  .modal__hand {
    order: 0;
    position: absolute; right: -4%; top: 50%;
    transform: translateY(-50%);
    width: min(46vw, 680px);
  }
  .modal__card {
    order: 0;
    margin-right: 20vw;
    width: 340px;
    padding: 40px 40px 32px;
    transform: translateY(16px);
  }
  .modal__title { font-size: 28px; margin-bottom: 24px; }
  .modal__phone-wrap { padding: 16px 18px; }
}

/* ---------- Cookie banner (правый нижний угол) ---------- */
.cookie-banner {
  position: fixed; z-index: 90;
  right: 12px; left: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom)); /* не перекрывает sticky-CTA */
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(55,71,86,.18);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--c-gray-dark); }
.cookie-banner__btn { align-self: flex-start; min-height: 40px; padding: 8px 24px; font-size: 14px; width: auto; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 380px; padding: 18px; }
  .cookie-banner p { font-size: 13px; line-height: 1.5; }
}

/* ---------- Lightbox для писем ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(38,48,58,.85);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: 16px; left: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 20px; cursor: pointer;
}

/* ---------- Страница «Спасибо» ---------- */
@keyframes pop-in {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 44px 20px; background: var(--c-bg);
  min-height: calc(100vh - 200px);
}
.thanks__card {
  background: #fff; border-radius: 28px;
  padding: 44px 24px; max-width: 600px; width: 100%;
  text-align: center; box-shadow: 0 24px 60px rgba(55,71,86,.08);
}
.thanks__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--c-blue); margin-bottom: 28px;
  animation: pop-in .5s ease;
}
.thanks__title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.thanks__text {
  font-size: 16px; line-height: 1.6; color: var(--c-gray);
  margin: 0 auto 32px; max-width: 440px;
}
.thanks__contact {
  background: var(--c-bg); border-radius: 16px; padding: 18px 20px;
  margin-bottom: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
}
.thanks__contact-label { font-size: 14px; color: var(--c-gray); }
.thanks__contact-tel { font-weight: 700; color: var(--c-blue); font-size: 15px; }
@media (min-width: 768px) {
  .thanks { padding: 64px; }
  .thanks__card { padding: 64px 72px; }
  .thanks__title { font-size: 30px; }
}

/* ---------- Страница политики ---------- */
.politika { padding: 40px 0 60px; background: #fff; }
.politika h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.politika h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.politika p, .politika li { font-size: 15px; line-height: 1.65; color: var(--c-gray-dark); }
.politika ul { padding-left: 22px; }
.politika .container { max-width: 900px; }
@media (min-width: 768px) { .politika h1 { font-size: 34px; } }
