/* Лендинг «Женские чек-апы» — ТОЛЬКО доп. стили поверх нативной lab.css.
   Префикс wc-, переменные scoped. Грузится только на /zhenskie-chekapy/. */

.ml-lab { --wc-green: #55b043; --wc-green-dark: #3f8a31; --wc-green-deep: #2a7a23; }

/* ХЕРО-ФОН (десктоп): иллюстрация полосой в самом верху страницы, ПОД шапкой.
   Картинка — фон body сверху; липкая шапка прозрачная вверху и белеет при скролле. */
body.wc-hero-bg { position: relative; background-color: #fff; }
/* Полоса-иллюстрация ФИКСИРОВАННОЙ высоты через ::before + cover:
   пропорционально (без сплющивания), не вылезает в контент ниже, плавно тает в белый снизу. */
body.wc-hero-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    aspect-ratio: 1600 / 900;   /* высота зависит от ширины (пропорции картинки) — всегда на всю ширину */
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 52%, #ffffff 98%),
        linear-gradient(90deg, rgba(238,248,233,.94) 0%, rgba(238,248,233,.58) 34%, rgba(238,248,233,.14) 62%, rgba(238,248,233,0) 86%),
        url("bg-checkup.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
body.wc-hero-bg .ml-wrapper { background-color: transparent; box-shadow: none; transition: background-color .2s ease; }
body.wc-hero-bg.wc-scrolled .ml-wrapper { background-color: #fdffff; }
.ml-lab__hero--wc { min-height: auto; background: none; }
.ml-lab__hero--wc::before { display: none; }
.wc-heroimg-m { display: none; } /* картинка под h1 — только на мобильном */
.ml-lab__hero--wc .ml-lab__tag {
    display: inline-flex;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--wc-green-deep);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Блоки-пункты (вместо списков «Когда стоит» / «Что получите») */
.wc-blocks { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
.wc-blocks .wc-block {
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    padding: 15px 18px; min-height: 0;   /* иконка+текст в одну строку, компактно */
}
.wc-block p { margin: 0; font-size: 15.5px; line-height: 1.45; color: #2f362d; }
.wc-block__ic {
    flex: none; width: 26px; height: 26px;
    background: var(--wc-green); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
@media (min-width: 760px) { .wc-blocks { grid-template-columns: repeat(3, 1fr); } }

/* Перечёркнутая цена «по отдельности» — крупнее, чтобы было видно, что чекапом дешевле */
.wc-oldprice { display: inline-block; text-decoration: line-through; color: #9aa69a; font-weight: 700; font-size: 20px; margin-left: 8px; vertical-align: baseline; white-space: nowrap; }
/* в hero — отдельной компактной строкой сразу под ценой (без большого отступа) */
.ml-lab__hero-card .wc-oldprice { display: block; margin: -4px 0 6px; font-size: 19px; line-height: 1; }

/* «Как проходит чек-ап» — пунктирный маршрут-таймлайн */
.wc-route { list-style: none; margin: 0; padding: 0; }
.wc-route__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; }
.wc-route__step:last-child { padding-bottom: 0; }
.wc-route__node span {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--wc-green); color: #fff; font-weight: 800; font-size: 19px;
    font-family: "Manrope", "Source Sans 3", sans-serif;
}
.wc-route__step:not(:last-child)::before {
    content: ""; position: absolute; left: 21px; top: 48px; bottom: 2px;
    border-left: 2px dashed #bcdcb3;
}
.wc-route__body h3 { margin: 7px 0 3px; font-size: 17px; font-weight: 700; color: #1c2a1c; }
.wc-route__body p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #6f7a6f; }
@media (min-width: 760px) {
    .wc-route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
    .wc-route__step { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 0; }
    .wc-route__node span { margin: 0 auto; }
    .wc-route__step:not(:last-child)::before {
        content: ""; top: 21px; left: 50%; right: auto; bottom: auto;
        width: calc(100% + 26px); height: 0;
        border-left: 0; border-top: 2px dashed #bcdcb3;
    }
    .wc-route__body { margin-top: 14px; }
    .wc-route__body h3 { font-size: 16px; }
}

/* Врачи — кликабельные кружки с фото */
.wc-docs { display: flex; flex-wrap: wrap; gap: 20px 16px; justify-content: center; }
.wc-doc { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100px; text-decoration: none; color: #2a352a; transition: transform .12s ease; }
.wc-doc:hover { transform: translateY(-3px); }
.wc-doc__ava { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #eef7ea; border: 2px solid #dcefd4; box-shadow: 0 6px 16px -8px rgba(31,84,20,.4); transition: border-color .15s ease; }
.wc-doc__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-doc:hover .wc-doc__ava { border-color: var(--wc-green); }
.wc-doc__name { font-size: 12.5px; line-height: 1.3; text-align: center; }
@media (max-width: 759px) {
    /* мобильный: врачи — горизонтальный свайп, а не много рядов */
    .wc-docs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 10px; }
    .wc-doc { flex: 0 0 auto; scroll-snap-align: start; }
}

/* десктоп: держим контент hero в левой части, чтобы не заходил на лица справа */
@media (min-width: 860px) {
    .ml-lab__hero--wc .ml-lab__hero-head { max-width: 650px; }
    .ml-lab__hero--wc .ml-lab__title { font-size: 52px; line-height: 1.06; }
    .ml-lab__hero--wc .ml-lab__hero-cards { max-width: 650px; }
    .ml-lab__hero--wc .wc-hero-actions { max-width: 650px; }
}
@media (min-width: 1200px) {
    .ml-lab__hero--wc .ml-lab__hero-head { max-width: 670px; }
    .ml-lab__hero--wc .ml-lab__title { font-size: 58px; line-height: 1.04; }
}
.ml-lab__hero--wc .ml-lab__hero-overlay { min-height: auto; padding-top: 40px; padding-bottom: 44px; gap: 22px; }
.wc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wc-hero-actions .ml-btn { min-width: 220px; }
/* Убираем «мёртвую» зону после кнопки в hero: у overlay был лишний нижний паддинг
   поверх 60px верхнего паддинга следующего блока — оставляем один умеренный отступ. */
.ml-lab__hero--wc .ml-lab__hero-overlay { padding-bottom: 8px; }
.ml-lab__section.wc-after-hero { padding-top: 30px; }

/* Карточки программ — аккуратная шапка (поверх .ml-lab__card--colored) */
.wc-card { position: relative; }
.wc-card--accent { border: 2px solid var(--wc-green); }
.wc-tag {
    position: absolute; top: -13px; right: 24px;
    background: var(--wc-green); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    padding: 6px 16px; border-radius: 999px;
    box-shadow: 0 8px 16px -6px rgba(85,176,67,.7);
}
.wc-card-head { border-bottom: 1px solid #eef2ee; padding-bottom: 18px; margin-bottom: 18px; }
.wc-card-head h3 { margin: 0 0 12px; font-size: 23px; font-weight: 800; color: #1c2a1c; }
.wc-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.wc-price b { font-size: 27px; font-weight: 800; color: var(--wc-green-deep); line-height: 1; }
.wc-price span { background: #eef7ea; color: var(--wc-green-dark); font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.ml-lab__card .wc-card-btn { margin-top: 4px; align-self: flex-start; }
.wc-legal { font-size: 13.5px; color: #7a857a; margin: 18px 0 0; line-height: 1.5; }
.wc-legal--light { color: rgba(255,255,255,.92) !important; margin-top: 16px; font-size: 13.5px; }

/* «Для кого» и подзаголовки внутри карточек программ */
.wc-card-for { font-weight: 600; color: #2a352a; margin: 0; line-height: 1.55; font-size: 16px; }
/* крупнее текст нативных карточек именно на этой странице (style.css грузится только здесь) */
.ml-lab__card li, .ml-lab__card p { font-size: 15.5px; line-height: 1.55; }
.ml-lab__card--white p { font-size: 16px; }
.wc-card-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--wc-green-dark); margin: 6px 0 8px; }
.ml-lab__card .wc-card-btn { margin-top: 6px; align-self: flex-start; }

/* Чек-лист (когда стоит / что получите) — зелёные галочки */
.wc-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wc-checklist li { position: relative; padding-left: 30px; line-height: 1.55; color: #2f362d; font-size: 16px; }
.wc-checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
    background: var(--wc-green); color: #fff; border-radius: 50%;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.wc-srochno {
    margin: 16px 0 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
    color: #8a5a12; background: #fff8e8; border: 1px solid #f0e3b0; border-radius: 10px;
}

/* «Как выбрать» */
.wc-choose { margin: 22px 0 0; display: grid; gap: 8px; }
.wc-choose p { margin: 0; font-size: 16px; line-height: 1.55; color: #2f362d; }
.wc-choose b { color: var(--wc-green-deep); }

/* FAQ — нативный аккордеон (.articles-faq + faq-toggle.min.js).
   2 фикса, чтобы открывалось плавно и оставалось открытым:
   1) у заголовков убран класс js-faq-toggle → глобальный template_scripts.js их не цепляет,
      остаётся ОДИН обработчик faq-toggle.min.js (иначе двойной тоггл: открыл→закрыл);
   2) faq-toggle делает toggleClass(active) ДО slideToggle, а CSS .active .body{display:block}
      мгновенно показывает ответ → slideToggle думает, что он открыт, и закрывает. Снимаем
      это мгновенное отображение, пусть видимостью управляет только slideToggle. */
.articles-faq__item.active .articles-faq__body { display: none; }

/* Полоса с формой — зелёный фон, чтобы выделялась */
.wc-form-band {
    background: linear-gradient(135deg, #2f7d23 0%, #3f8a31 55%, #4aa238 100%);
    margin-top: 8px; scroll-margin-top: 8px;
}
.wc-form-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.wc-form-intro { color: #fff; }
.wc-form-intro h2 { color: #fff !important; margin: 0 0 14px; font-weight: 800; }
.wc-form-intro p { color: #f3faf0 !important; font-size: 17px; line-height: 1.65; }
.wc-form-lead { max-width: 560px; }
.wc-form-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.wc-form-points li {
    position: relative;
    padding-left: 34px;
    color: #f7fff4;
}
.wc-form-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.wc-form-points b {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.35;
    color: #fff;
}
.wc-form-points span {
    display: block;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,.88);
}
.wc-form-phone { margin-top: 18px; font-size: 17px; color: #fff !important; }
.wc-form-phone a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.6); }
.wc-form-phone span { display: block; font-size: 13.5px; color: rgba(255,255,255,.85); margin-top: 5px; }

.wc-form-card { background: #fff; border-radius: 16px; padding: 24px 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.wc-field { margin-bottom: 16px; }
.wc-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.wc-label { display: block; font-size: 15px; font-weight: 600; color: #1c2a1c; margin-bottom: 7px; padding: 0; }
.wc-label i { color: #e23b3b; font-style: normal; font-weight: 700; }
.wc-input {
    width: 100%; min-height: 50px; padding: 12px 15px; font-size: 16px; font-family: inherit;
    color: #1c2a1c; background: #fcfdfc; border: 1.5px solid #e2ebe0; border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
textarea.wc-input { min-height: 64px; resize: vertical; }
.wc-input::placeholder { color: #aab2a8; }
.wc-input:focus { outline: none; border-color: var(--wc-green); box-shadow: 0 0 0 3px rgba(85,176,67,.16); background: #fff; }
.wc-input.wc-invalid { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,.12); }
/* Селект «Предпочтительный медцентр» — нативная стрелка убрана, своя (зелёная) */
.wc-select-wrap { position: relative; }
.wc-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2355b043' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}

/* Список медцентров «Где пройти чек-ап» */
.wc-mc-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.wc-mc {
    display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; text-decoration: none;
    background: #fff; border: 1.5px solid #e2ebe0; border-radius: 12px;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
.wc-mc:hover { border-color: var(--wc-green); box-shadow: 0 8px 20px -12px rgba(31,84,20,.45); transform: translateY(-1px); }
.wc-mc__name { font-weight: 700; font-size: 15.5px; color: #1c2a1c; }
.wc-mc__addr { font-size: 13.5px; color: #6b756a; }
@media (min-width: 620px) { .wc-mc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .wc-mc-list { grid-template-columns: repeat(3, 1fr); } }

/* Подсказка под полем (например, у выбора медцентра) */
.wc-hint { margin: 7px 2px 0; font-size: 13px; line-height: 1.45; color: #7a857a; }

/* Блок «можно совмещать филиалы» — заботливо о графике пациентки */
.wc-flex { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, #f1f9ec, #e7f4df); border: 1.5px solid #d7ead0; border-radius: 18px; padding: 24px 26px; }
.wc-flex__ic { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(31,84,20,.4); }
.wc-flex__body { min-width: 0; }
.wc-flex h2 { margin: 2px 0 8px; font-size: 22px; line-height: 1.22; color: #1c2a1c; }
.wc-flex p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: #40493d; }
.wc-flex__chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-flex__chip { display: flex; flex-direction: column; gap: 1px; background: #fff; border: 1.5px solid #dcebd4; border-radius: 12px; padding: 9px 14px; font-size: 13.5px; color: #59645a; }
.wc-flex__chip b { color: var(--wc-green-deep); font-size: 14px; font-weight: 700; }
.wc-flex__chip-arrow { color: var(--wc-green); font-size: 19px; font-weight: 700; line-height: 1; }
@media (max-width: 640px) {
    .wc-flex { flex-direction: column; gap: 14px; padding: 20px; }
    .wc-flex__chips { flex-direction: column; align-items: stretch; }
    .wc-flex__chip-arrow { align-self: center; transform: rotate(90deg); }
}

.wc-radios { display: grid; gap: 8px; }
.wc-radio {
    display: flex; align-items: center; gap: 11px; min-height: 48px;
    border: 1.5px solid #e2ebe0; border-radius: 12px; padding: 11px 14px; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.wc-radio input { accent-color: var(--wc-green); width: 20px; height: 20px; flex: none; }
.wc-radio span { font-size: 16px; color: #2a352a; }
.wc-radio:has(input:checked) { border-color: var(--wc-green); background: #f1f9ee; }
.wc-radio:has(input:focus-visible) { outline: 2px solid var(--wc-green); outline-offset: 2px; }

.wc-err { color: #e23b3b; font-size: 13px; margin-top: 5px; }
.wc-err:empty { display: none; }
.wc-consent { font-size: 12.5px; color: #7a857a; margin: 12px 0 0; text-align: center; }
.wc-consent a { color: var(--wc-green-dark); }
.wc-js-submit[disabled] { opacity: .65; cursor: not-allowed; pointer-events: none; }

.wc-success { text-align: center; padding: 22px 8px; }
.wc-success__ic { width: 60px; height: 60px; margin: 0 auto 14px; background: var(--wc-green); color: #fff; border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.wc-success__t { font-size: 22px; font-weight: 800; color: var(--wc-green-dark); margin-bottom: 8px; }
.wc-success p { font-size: 15.5px; color: #3a423a; margin: 0; }

/* мобильный sticky CTA */
.wc-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    /* справа оставляем место под плавающий чат-консультант */
    padding: 10px 84px calc(10px + env(safe-area-inset-bottom, 0)) 14px;
    background: rgba(255,255,255,.96); border-top: 1px solid #e2ebe0;
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.3);
    transition: transform .28s ease, opacity .28s ease;
}
.wc-sticky__price { font-weight: 800; font-size: 14px; color: #1c2a1c; white-space: nowrap; }
.wc-sticky .ml-btn { flex: 0 1 auto; }
.wc-sticky--hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }

/* ===== десктоп ===== */
@media (min-width: 860px) {
    .wc-form-grid { grid-template-columns: 0.85fr 1fr; gap: 36px; }
    .wc-form-intro h2 { font-size: 42px; line-height: 1.12; letter-spacing: 0; }
    .wc-form-card { padding: 30px 28px; }
    .wc-sticky { display: none; }
}

/* ===== телефоны ===== */
@media (max-width: 859px) {
    /* мобильный: без подложки под шапкой — картинка отдельным баннером над первым блоком */
    body.wc-hero-bg::before { display: none; }
    body.wc-hero-bg .ml-wrapper { background-color: #fdffff; }
    /* картинка под заголовком h1 — full-bleed и как реальный img для раннего LCP */
    .wc-heroimg-m {
        display: block;
        width: 100vw;
        margin: 8px 0 18px calc(50% - 50vw);
        aspect-ratio: 1600 / 900;
        overflow: hidden;
    }
    .wc-heroimg-m img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    .ml-lab__hero--wc { background: linear-gradient(180deg, #eaf7e4 0%, #f4fbf1 55%, #ffffff 100%); }
    .ml-lab__hero--wc .ml-lab__tag { font-size: 11px; line-height: 1.35; letter-spacing: .07em; }
    .ml-lab__hero--wc .ml-lab__title { font-size: 31px; line-height: 1.13; }
    .ml-lab__hero--wc .ml-lab__title-line:first-child { font-size: 31px; white-space: nowrap; }
    .wc-form-intro h2 { font-size: 28px; line-height: 1.15; }
    .wc-form-points { gap: 12px; margin-top: 18px; }
    .wc-hero-actions { flex-direction: column; }
    .wc-hero-actions .ml-btn { width: 100%; min-width: 0; }
    .wc-form-band { margin-bottom: 0; }
    .articles-faq { padding-bottom: 84px; } /* чтобы sticky-CTA не перекрывал последний вопрос */
}
@media (max-width: 360px) {
    .ml-lab__hero--wc .ml-lab__title { font-size: 29px; }
    .ml-lab__hero--wc .ml-lab__title-line:first-child { font-size: 29px; }
    .wc-form-card { padding: 18px 12px; }
    .g-recaptcha { transform: scale(0.86); transform-origin: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .wc-sticky { transition: none; } }
