/* ============================================================
   cv_home.css — cloaking-версия лендинга «Рядышком».
   Базовый дизайн-систем (v2-*) грузится из home_v2.css.
   Здесь — только специфичные для cloaking блоки:
   hero-форма поиска, плавающая гео-карточка, радиальная диаграмма.
   ============================================================ */

/* ----------------- HERO ----------------- */
.cv2-hero {
    padding-top: 28px;
    padding-bottom: 60px;
    min-height: 650px;
    display: flex;
    overflow: hidden;
}
.cv2-hero__grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    position: relative;
    z-index: 3;
}
.cv2-hero__left {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding-top: 90px;
}

.cv2-hero__left:before {
    position: absolute;
    top: -38px;
    bottom: -1000px;
    left: -1000px;
    right: -47px;
    display: inline-block;
    content: '';
    background: rgba(22, 163, 74, 0.20) linear-gradient(39deg, rgba(0, 0, 0, 0.04) -0.6%, rgba(255, 255, 255, 0.00) 100.89%);
    backdrop-filter: blur(8.25px);
}
.cv2-hero__title {
    color: #FFF !important;
    font-size: 45px!important;
    font-weight: 400!important;
    line-height: 43px!important;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 3;
    margin-bottom: 31px !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.cv2-hero__title strong {
    font-weight: 800!important;
}

/* search panel */
.cv2-search {
    background: var(--v2-green);
    border-radius: 28px;
    padding: 16px 24px;
    max-width: 430px;
    position: relative;
    z-index: 3;
    box-shadow: 0 18px 40px rgba(8, 61, 28, 0.30);
}
.cv2-search__label {
    display: block;
    color: #fff;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}
.cv2-search__row {
    display: flex;
    gap: 10px;
}
.cv2-search__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    padding: 0 16px;
    font-size: 16px;
    color: var(--v2-text);
    outline: none;
}
.cv2-search__input::placeholder { color: #9CA3AF; }
.cv2-search__btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #0A3D1F;

    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cv2-search__btn:hover { background: #0a5128; color: #fff; }

/* floating geo card */
.cv2-hero__right {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
}

.cv2-map__list li:last-child span::after {
    display: none;
}

.cv2-map__list li:nth-child(3) span::after {
    display: none;
}
.cv2-geocard {
    width: 238px;
}
.cv2-geocard__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 12px;
}
.cv2-geocard__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v2-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.cv2-geocard__map {
    height: 108px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.10), transparent 60%),
        repeating-linear-gradient(0deg, #eef3f0 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, #eef3f0 0 1px, transparent 1px 22px),
        #f3f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.cv2-geocard__pin svg { display: block; }
.cv2-geocard__addr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
}
.cv2-geocard__time {
    font-size: 12px;
    color: var(--v2-text-soft);
    margin-top: 4px;
    padding-left: 20px;
}

/* ----------------- НАЙДИ НА КАРТЕ ----------------- */
.cv2-map {
    background: #FFFFFF;
    padding: 35px 0;
    padding-bottom: 0;
}
.cv2-map__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.cv2-map__title {
    font-size: 40px;
    line-height: 1.1;
    color: #16A34A!important;
    margin-bottom: 41px !important;
}
.cv2-map__title span {
    color: #0F1710!important;
}
.cv2-map__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 41px;
}
.cv2-map__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    align-items: center;
}

.cv2-map__left {
    padding-top: 31px;
}
.cv2-map__num {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E3F6E6;
    color: #2BD948;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cv2-map__num::after {
    position: absolute;
    content: '';
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 1px;
    height: 40px;
    background: #E3F6E6;
}
.cv2-map__num--check { background: var(--v2-green-soft); }
.cv2-map__num--check svg { display: block; }
.cv2-map__text {
    font-size: 15px;
    color: #0F1710;
    line-height: 1.45;
    font-weight: 600;
    padding-top: 3px;
}
.cv2-map__cta { min-width: 149px; font-size: 15px;
font-weight: 500; }

.cv2-map__media {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv2-map__phone {
    width: auto;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 16, 0.18);
}
.cv2-map__phone--back {
    max-height: 380px;
    transform: translateX(-26%) rotate(-2deg);
}
.cv2-map__phone--front {
    max-height: 340px;
    position: absolute;
    transform: translateX(34%) translateY(18px);
}

/* ----------------- РАДИАЛЬНАЯ ДИАГРАММА ----------------- */
.cv2-radial {
    background: var(--v2-bg);
    padding-top: 35px;
    padding-bottom: 124px;
}
.cv2-radial__title {
    font-size: 40px;
    line-height: 1.1;
    text-align: left;
    color: #16A34A!important;
    margin-bottom: 48px;
}
.cv2-radial__title .v2-accent { color: #0F1710!important; }
.cv2-radial__stage {
    position: relative;
    display: flex;
    width: 100%;
    margin-top: 73px;
    justify-content: space-between;
}
.cv2-radial__rings {
    position: relative;
    height: 449px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.cv2-radial__rings img {
    max-width: 528px;
    margin-top: 70px;
}
.cv2-radial__ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cv2-works .v2-works__phone {
    aspect-ratio: 317 / 357;
}

.cv2-works .v2-works__head p {
    max-width: 10000px;
}

.cv2-radial__ring--outer {
    width: 360px;
    height: 360px;
    background: rgba(22, 163, 74, 0.07);
}
.cv2-radial__ring--mid {
    width: 268px;
    height: 268px;
    background: rgba(22, 163, 74, 0.12);
}
.cv2-radial__photo {
    position: relative;
    z-index: 2;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    overflow: hidden;
    background: #d3f0dc;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.18);
}
.cv2-radial__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.cv2-radial__cta {
    position: absolute;
    z-index: 3;
    left: 50%;
    width: 223px;
    bottom: -21px;
    transform: translateX(-50%);
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    padding: 0 26px;
    white-space: nowrap;
}
.cv2-radial__label {
    position: absolute;
    width: 294px;
}
.cv2-radial__label img {
    position: absolute;
    width: 588px;
    max-width: 10000px;
}
.cv2-radial__label h3 {
    color: #16A34A;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cv2-radial__label p {
    font-size: 12px;
    color: #0F1710;
    line-height: 1.5;
}
.cv2-radial__shape-1 {
    top: calc(100% + 12px);
}

.cv2-radial__shape-2 {
    top: calc(100% + 12px);
    right: 0;
}
.cv2-radial__shape-3 {
    bottom: -12px;
}
.cv2-radial__shape-4 {
    bottom: -12px;
    right: 0;
}
.cv2-radial__label--tl { top: 0; left: 0; }
.cv2-radial__label--tr { top: 0; right: 0; }
.cv2-radial__label--bl { bottom: 18%; left: 0; }
.cv2-radial__label--br { bottom: 18%; right: 0; }

/* ----------------- КАК РАБОТАЕТ (3 шага) ----------------- */
.cv2-works {
    background: #FFFFFF;
}

/* ----------------- ТАРИФ ----------------- */
.cv2-tariff {
    background: var(--v2-bg);
    padding: 80px 0;
}
.cv2-tariff__grid {
    display: grid;
    grid-template-columns: 0.80fr 1.2fr;
    gap: 48px;
}
.cv2-tariff__title {
    font-size: 40px;
    line-height: 1.1;
}
.cv2-tariff__card {
    border-radius: 20px;
    padding: 32px 40px;
    background: linear-gradient(180deg, #16A34A 0%, #11803A 50%, #083D1C 100%);
    box-shadow: 4px 4px 16px rgba(22, 103, 52, 0.25);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.cv2-tariff__top {
    display: flex;
    gap: 32px;
    justify-content: space-between;
}
.cv2-tariff__label {
    color: #FFF;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 8px;
    width: 205px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.cv2-tariff__price {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.cv2-tariff__note {
    font-size: 10px;
    margin-top: 8px;
    line-height: 170%;
    color: rgba(255, 255, 255, 0.65);
}
.cv2-tariff__note-mobile { display: none; }
.cv2-tariff__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 331px;
}
.cv2-tariff__features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}
.cv2-tariff__features li:before {
    content: "✓";
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.cv2-tariff__cta {
    background: #fff;
    color: #0A3D1F !important;
    font-size: 15px;
    font-weight: 500;
}
.cv2-tariff__cta:hover { background: rgba(255, 255, 255, 0.92); }

/* ----------------- FAQ ----------------- */
.cv2-faq {

}
.cv2-faq__head { text-align: center; align-items: center; }
.cv2-footer .footer__seo a {
    padding-bottom: 0;
}

.cv2-footer .footer-v2__title {
    color: #16A34A;
}

.cv2-footer .footer-v2__bottom, .cv2-footer .footer-v2__bottom span {
    font-size: 14px;
}
/* ----------------- CTA ----------------- */
.cv2-cta { background: var(--v2-bg); }

/* ============================================================
   Tablet (769–1024)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .cv2-hero__title { font-size: 42px; }
    .cv2-map__title,
    .cv2-radial__title,
    .cv2-tariff__title { font-size: 34px; }
    .cv2-radial__label { width: 190px; }
    .cv2-radial__rings { width: 300px; height: 300px; }
    .cv2-radial__ring--outer { width: 300px; height: 300px; }
    .cv2-radial__ring--mid { width: 224px; height: 224px; }
    .cv2-radial__photo { width: 160px; height: 160px; }
}

/* ============================================================
   Mobile (≤768)
   ============================================================ */
@media (max-width: 768px) {
    /* hero */
    .cv2-hero {
        padding-top: 28px;
        padding-bottom: 0;
        margin-bottom: 70px;
        min-height: 0;
        overflow: visible;
    }
    .cv2-hero__grid {
        flex-direction: column;
        gap: 28px;
    }
    .cv2-search {
        margin-bottom: -28px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px)!important;
        padding: 16px 24px!important;
    }
    .cv2-hero__left { max-width: none;
        width: 100%;
        height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    padding-top: 3px; }
    .cv2-hero__right {
        display: none;
    }
    .cv2-hero__title {
        font-size: 36px!important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        line-height: 1.08;
        margin-bottom: 22px !important;
        text-align: center;
    }
    .cv2-search {
        max-width: none;
        width: 100%;
        padding: 12px;
    }
    .cv2-radial__label--bl {
        order: 3;
    }
    .cv2-search__row { flex-direction: column; gap: 8px; }
    .cv2-search__input,
    .cv2-search__btn { width: 100%; }
    .cv2-hero__right { width: 100%; }
    .cv2-geocard { width: 100%; max-width: 260px; }

    /* map */
    .cv2-map { padding: 0; }
    .cv2-map__grid { display: flex; flex-direction: column; gap: 36px; 
    }
    .cv2-map__title { font-size: 32px; margin-bottom: 40px !important; }
    .cv2-map__num::after {
        display: none;
    }
    
    .cv2-map__text { font-size: 15px; }
    .cv2-map__cta { width: 100%;display: none;}
    .cv2-map__media {
        height: auto;
    }
    
    .cv2-map__phone--back { max-height: 280px; transform: translateX(-22%) rotate(-2deg); }
    .cv2-map__phone--front { max-height: 250px; transform: translateX(30%) translateY(14px); }

    /* radial → stacked vertical list */
    .cv2-radial { padding: 55px 0; }
    .cv2-radial__title { font-size: 32px; margin-bottom: 32px; }
    .cv2-radial__stage {
        flex-direction: column;
        min-height: 0;
        gap: 28px;
        margin-top: 40px;
    }
    .cv2-radial__rings {
        width: 100%;
        height: auto;
        order: 5;
    }
    .cv2-radial__rings img {
        max-width: 100%;
        margin-top: 40px;
    }
    .cv2-radial__ring--outer { width: 240px; height: 240px; }
    .cv2-radial__ring--mid { width: 180px; height: 180px; }
    .cv2-radial__photo { width: 140px; height: 140px; }
    .cv2-radial__label {
        position: static;
        width: 100%;
        max-width: 360px;
    }
    .cv2-radial__label h3 { font-size: 20px; }
    .cv2-radial__label p { font-size: 14px; }

    /* works — swiper handles layout (base home_v2 mobile rules apply) */
    .cv2-works { padding: 48px 0; overflow: hidden;
        background: #F7FAFD;
    }
    .cv2-radial__label img  {
        display: none;
    }
    .cv2-radial__cta {
        width: 100%;
    }
    .cv2-hero__left:before {
        bottom: auto;
        top: -28px;
        height: 148px;
        right: -16px;
    }
    .cv2-cta {
        padding-top: 40px;
    }
    /* tariff */
    .cv2-tariff { padding: 48px 0; }
    .cv2-tariff__grid { grid-template-columns: 1fr; gap: 28px; }
    .cv2-tariff__title { font-size: 32px; }
    .cv2-tariff__card { padding: 24px;         max-width: calc(100% - 16px);}
    .cv2-tariff__top { display: flex; flex-direction: column; gap: 20px; }
    .cv2-tariff__note { max-width: none; }
    .cv2-tariff__note-mobile { display: inline; }
    .cv2-tariff__label {
        width: 100%;
        margin-bottom: 30px;
    }
    /* faq */
    .cv2-faq__head { text-align: left; align-items: flex-start; }
    .cv2-search__label {
        font-size: 16px;
        font-weight: 600;
    }
    .cv2-search__input {
        height: 49px;
        min-height: 49px;
    }
}

/* ===== Футер: на десктопе всегда раскрыт; аккордеон ТОЛЬКО на мобилке ===== */
.cv2-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: default;          /* десктоп: шапка не кликабельна */
    font: inherit;
    color: inherit;
    text-align: left;
}
.cv2-footer__chevron {
    display: none;            /* десктоп: стрелка скрыта */
    align-items: center;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.cv2-footer__chevron.is-open { transform: rotate(180deg); }

/* десктоп: контент всегда виден, без сворачивания */
.cv2-footer__panel { display: block; }

@media (max-width: 768px) {
    .cv2-footer__bar { cursor: pointer; }
    .cv2-footer__chevron { display: inline-flex; }

    /* плавное раскрытие по высоте без замера (grid-rows 0fr -> 1fr) */
    .cv2-footer__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .35s ease;
    }
    .cv2-footer__panel.is-open { grid-template-rows: 1fr; }
    .cv2-footer__inner {
        overflow: hidden;
        min-height: 0;
    }
    /* отступ контента от шапки только когда раскрыто */
    .cv2-footer__panel.is-open .cv2-footer__inner { padding-top: 28px; }
}

/* Плавный скролл по якорям навигации (клоак-лендинг) */
html { scroll-behavior: smooth; }

/* Поле поиска: префикс +7 (чёрный) + маска цифр (серый плейсхолдер) */
.cv2-search__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    padding: 0 16px;
}
.cv2-search__prefix {
    flex: 0 0 auto;
    color: #0F1710;
    font-size: 15px;
    font-weight: 400;
}
/* инпут теперь внутри .cv2-search__field — убираем собственный фон/паддинги */
.cv2-search__field .cv2-search__input {
    height: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
