/* Рекламный первый экран (Яндекс Директ), кнопка «Написать», уведомление о cookie */

body section.adh { padding: 40px 0 44px; background: #f4f6f5; border-bottom: 1px solid #dfe5e1; }
.adh__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.adh__copy { min-width: 0; }
body .adh__h { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; font-weight: 800; color: #202522; text-wrap: balance; }
body .adh__lead { margin: 14px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.55; color: #424944; }
.adh__ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: #202522; }
.adh__ticks li { display: flex; gap: 12px; align-items: baseline; }
.adh__ticks li::before { content: ""; flex: none; width: 12px; height: 6px; border-left: 2px solid #14735c; border-bottom: 2px solid #14735c; transform: translateY(-3px) rotate(-45deg); }
.adh__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
body .adh__cta .btn { padding: 12px 24px; }
.adh__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; font-size: 15px; font-weight: 650; }
.adh__contact a { color: #202522; text-decoration: none; border-bottom: 1px solid #bcc8c0; }
.adh__contact a:hover { color: #14735c; border-color: #14735c; }
body .adh__note { margin: 6px 0 0; font-size: 13px; color: #65706a; }
.adh__side { position: relative; margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: #e9f3ef; }
.adh__side img { display: block; width: 100%; height: 100%; object-fit: cover; }
.adh__promo { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 8px; background: #fff; font-size: 13px; color: #424944; }
.adh__cap { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; color: #424944; }
.adh__promo strong { font-size: 24px; line-height: 1; color: #14735c; }
body section.adh + .quiz-sec { padding-top: 40px; }

@media (max-width: 860px) {
  .adh__in { grid-template-columns: minmax(0, 1fr); }
  .adh__side { display: none; }
}
@media (max-width: 720px) {
  body section.adh { padding: 18px 0 22px; }
  body .adh__h { margin-top: 10px; font-size: 27px; line-height: 1.15; }
  body .adh__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
  .adh__ticks { margin-top: 12px; gap: 6px; font-size: 14px; }
  .adh__cta { margin-top: 16px; gap: 8px; }
  body .adh__cta .btn { flex: 1 1 100%; font-size: 15px; padding: 12px 14px; }
  .adh__contact { margin-top: 14px; gap: 4px 16px; font-size: 14px; }
  body section.adh + .quiz-sec { padding-top: 24px; }
}

/* Нижняя панель: третья кнопка «Написать» и выбор мессенджера */
.mob-msg { display: none; }
@media (max-width: 720px) {
  body .mob-cta--3 { gap: 6px; }
  body .mob-cta--3 :is(.mob-cta__call, .mob-cta__lead) { font-size: 14px; }
  .mob-cta__msg { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #bcc8c0; border-radius: 5px; background: #fff; color: #202522; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .mob-cta__msg[aria-expanded="true"] { border-color: #14735c; color: #14735c; }
  .mob-msg { position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: #fff; border: 1px solid #dfe5e1; border-radius: 8px; box-shadow: 0 8px 32px #0002; }
  .mob-msg[hidden] { display: none !important; }
  .mob-msg a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 6px; font-weight: 700; color: #fff; text-decoration: none; }
  .mob-msg__wa { background: #0f7a3f; }
  .mob-msg__tg { background: #1f6fb2; }
  body:is(.modal-open, .funnel-open, .lb-open, .pa-open) .mob-msg,
  body:has(#calc-sticky-bar.is-visible) .mob-msg { display: none !important; }
}

/* Уведомление о cookie: узкая плашка, не закрывает кнопки */
body .cookie-bar.cookie-bar--note { left: 20px; right: auto; bottom: 20px; max-width: 560px; flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; }
body .cookie-bar--note p { flex: 1; margin: 0; font-size: 12.5px; line-height: 1.45; }
body .cookie-bar--note .cookie-bar__actions { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: none; }
.cookie-bar__off { min-height: 40px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 12px; color: #65706a; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-bar__off:hover { color: #202522; }
body .cookie-bar--note .cookie-bar__btn { width: auto; min-height: 40px; padding: 0 18px; }
@media (max-width: 720px) {
  body .cookie-bar.cookie-bar--note { left: 8px; right: 8px; max-width: none; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px 8px 12px; }
  body .cookie-bar--note p { flex: 1 1 100%; font-size: 12px; }
  body .cookie-bar--note .cookie-bar__actions { flex: 1 1 100%; justify-content: flex-end; }
  body .cookie-bar--note .cookie-bar__btn { min-height: 36px; }
  .cookie-bar__off { min-height: 36px; }
  body:has(#calc-sticky-bar.is-visible) .cookie-bar.cookie-bar--note { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* Видео-петля на первом экране (ad.js подключает только при наличии места и без экономии трафика) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.is-video .hero-video { opacity: 1; }
body .hero-refined .hero-visual--main .hero-video { object-position: 50% 50%; }
@media (max-width: 720px) {
  body .hero-refined .hero-visual--main .hero-video { object-position: 60% 50%; }
  body .hero-refined .is-video .hero-visual__cap { display: block; top: 12px; right: 12px; bottom: auto; left: auto; max-width: none; font-size: 10px; padding: 4px 8px; }
}

/* Всплывающая форма для рекламного трафика */
.modal--pop { max-width: 440px; text-align: left; }
.modal-pop__eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; background: #e8f3ee; color: #14735c; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.modal--pop h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.modal--pop p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #5a615b; }
.modal-form--pop { display: grid; gap: 10px; }
.modal-form--pop input[type="tel"] { font-size: 17px; }
@media (max-width: 600px) { .modal--pop h3 { font-size: 21px; } .modal--pop p { font-size: 13px; } }

/* 23.09.2026 — платёжные бейджи на рекламном первом экране (стили .hero-pays* в refined.css) */
.hero-pays--adh { margin: 14px 0 0; }
@media (max-width: 720px) { .hero-pays--adh { margin-top: 12px; } }
