/* Дизайн-система и базовые стили лендинга (Светлая тема) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Цветовая палитра (Светлая премиальная тема, референс: Сергей Лыпка) */
    --bg-main: #ffffff;        /* Белый фон сайта */
    --bg-card: #f8f9fa;        /* Светло-серый фон блоков */
    --bg-input: #ffffff;       /* Белый фон инпутов */
    
    --primary: #2cc857;        /* Сочный строительный зеленый (как у Сергея Лыпки) */
    --primary-hover: #24b04b;  /* Темно-зеленый при наведении */
    --primary-glow: rgba(44, 200, 87, 0.2);
    
    --text-main: #1c1c1e;      /* Основной графитовый текст */
    --text-muted: #7a7a85;     /* Вторичный серый текст */
    --text-dark: #000000;
    
    --border-color: #e5e7eb;   /* Светло-серые границы */
    --success: #22c55e;        /* Зеленый цвет для статуса "работаем" */
    --error: #ef4444;          /* Красный цвет для статуса "закрыты" */
    
    /* Шрифты и размеры (Montserrat — как у Сергея Лыпки) */
    --font-primary: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* Вспомогательные контейнеры */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили общей обертки */
main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   1. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: 85px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Левый блок шапки (Логотип + подзаголовок) */
.header__logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(44, 200, 87, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.header__logo-emblem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.15);
    display: block;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__title {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
}

.header__title span {
    color: var(--primary);
}

/* Блок локации (стиль Сергея Лыпки) */
.header__location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__location-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(44, 200, 87, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header__location-text {
    display: flex;
    flex-direction: column;
}

.header__location-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.1;
}

.header__location-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.footer__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.header__subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}

/* Правая сторона шапки */
.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Кнопка заказа звонка */
.header__cta .btn--outline-header {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius);
    background: transparent;
    transition: var(--transition-fast);
}

.header__cta .btn--outline-header:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(44, 200, 87, 0.02);
}

/* Мессенджеры */
.header__messengers {
    display: flex;
    gap: 8px;
}

.header__messenger-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: var(--transition-fast);
}

.header__messenger-btn.tg {
    background-color: #229ED9;
}

/* Каноничный Viber (фирменный фиолетовый) */
.header__messenger-btn.vb {
    background-color: #7360F2;
}

.header__messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Блок телефона и статуса работы */
.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 190px;
}

.header__phone {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header__phone:hover {
    color: var(--primary);
}

/* Динамический статус работы */
.header__work-status {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    transition: var(--transition-fast);
}

/* Пульсирующий кружок для статуса */
.header__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.header__work-status.working {
    color: var(--success);
}
.header__work-status.working .header__status-dot {
    background-color: var(--success);
}
.header__work-status.working .header__status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success);
    border-radius: 50%;
    left: 0;
    top: 0;
    animation: statusPulse 2s infinite;
}

.header__work-status.closed {
    color: var(--text-muted);
}
.header__work-status.closed .header__status-dot {
    background-color: var(--error);
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Адаптивность шапки */
@media (max-width: 991px) {
    .header__cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        height: 75px;
    }
    .header__logo-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .header__right {
        gap: 12px;
    }
    .header__contacts {
        min-width: auto;
    }
    .header__phone {
        font-size: 15px;
    }
    .header__messengers {
        display: none; /* скрываем на мобильных в шапке, чтобы не перегружать */
    }
}

/* ==========================================================================
   2. ПЕРВЫЙ ЭКРАН (HERO)
   ========================================================================== */
.screen-hero {
    position: relative;
    padding: 80px 0;
    background-color: var(--bg-main);
}

/* Фоновые градиенты для светлой темы */
.screen-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,0,0.06) 0%, rgba(255,255,255,0) 70%);
    top: -10%;
    right: -10%;
    z-index: 0;
}

.screen-hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .screen-hero .container {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 40px;
        width: 100%;
    }
}

/* Контентная часть (слева) */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero__badge {
    background-color: rgba(44, 200, 87, 0.06);
    border: 1px solid rgba(44, 200, 87, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: #1a1a20;
    margin-bottom: 20px;
}

.hero__title span {
    color: var(--primary);
}

@media (min-width: 576px) {
    .hero__title {
        font-size: 44px;
    }
}

@media (min-width: 1200px) {
    .hero__title {
        font-size: 48px;
    }
}

.hero__subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 17px;
    }
}

/* Преимущества */
.hero__advantages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
    width: 100%;
}

.hero__adv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero__adv-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(44, 200, 87, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
    font-size: 12px;
}

.hero__adv-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.hero__adv-text strong {
    color: #000;
}

/* Блок действий в стиле Сергея Лыпки (Главная кнопка + мессенджеры) */
.hero__actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

@media (min-width: 576px) {
    .hero__actions-wrap {
        flex-direction: row;
        align-items: center;
        gap: 25px;
    }
}

.btn--hero {
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
}

.hero__direct-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero__direct-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero__direct-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__direct-phone {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.hero__direct-phone:hover {
    color: var(--primary);
}

.hero__direct-messengers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero__round-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-fast);
}

.messenger-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.header__messenger-btn.tg,
.hero__round-btn.tg {
    background-color: #229ED9 !important;
    color: #ffffff !important;
    transition: var(--transition-fast);
}

.header__messenger-btn.tg:hover,
.hero__round-btn.tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
}

.header__messenger-btn.vb-img,
.hero__round-btn.vb-img {
    background: none !important;
    padding: 0;
    overflow: hidden;
}

.hero__round-btn.vb-img:hover,
.header__messenger-btn.vb-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 96, 242, 0.3);
}

/* Медиа часть (справа - стилистика Сергея Лыпки) */
.hero__media {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
}

.hero__image-wrap {
    width: 100%;
    height: 100%;
    min-height: 560px;
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.hero__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

@media (max-width: 991px) {
    .hero__image-wrap {
        min-height: 420px;
    }
    .hero__photo {
        position: relative;
        height: 420px;
    }
}

/* Имитация 3D рендера фундамента */
.hero__image-placeholder {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f3f5 100%);
    padding: 30px;
    text-align: center;
    position: relative;
}

.hero__image-placeholder svg {
    color: var(--primary);
    opacity: 0.15;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.hero__image-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Контейнер для двух плашек внизу фотографии (стиль Сергея Лыпки) */
.hero__badges-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    z-index: 5;
}

/* 2. Карточка акции (лид-магнит с таймером справа) */
.hero__promo-badge {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 12px 10px;
    width: 195px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.hero__promo-gift {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.hero__promo-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3px;
}

.hero__promo-desc {
    font-size: 11px;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 6px;
    font-weight: 500;
}

.hero__promo-timer-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.hero__promo-timer {
    font-size: 15px;
    font-weight: 850;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

/* 2. Компактная карточка инженера справа */
.hero__trust-badge {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.hero__trust-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.hero__trust-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    line-height: 1.1;
}

.hero__trust-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
    display: block;
    margin-top: 2px;
}

@media (max-width: 576px) {
    .hero__badges-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero__promo-badge {
        width: 100%;
    }
}


/* ==========================================================================
   2. ЭКРАН «КАКИЕ ПРОБЛЕМЫ РЕШАЕТ ФУНДАМЕНТ» (СТИЛЬ СЕРГЕЯ ЛЫПКИ)
   ========================================================================== */
.screen-problems {
    padding: 80px 0;
    background-color: var(--bg-card);
    position: relative;
}

.screen-problems .section-header {
    margin-bottom: 14px;
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.problem-card__image-container {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.problem-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.problem-card:hover .problem-card__img {
    transform: scale(1.04);
}

.problem-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.problem-card__badge--orange {
    background-color: rgba(217, 119, 6, 0.88);
}

.problem-card__badge--blue {
    background-color: rgba(37, 99, 235, 0.88);
}

.problem-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.problem-card__title {
    font-size: 17px;
    font-weight: 850;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.problem-card__text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

.problem-card__solution {
    font-size: 12.5px;
    color: var(--text-main);
    background-color: rgba(44, 200, 87, 0.07);
    border: 1px solid rgba(44, 200, 87, 0.18);
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: auto;
    line-height: 1.4;
}

.problem-card__solution strong {
    color: var(--primary);
}

/* Плашка-якорь перехода к Квизу */
.problems__quiz-anchor {
    margin-top: 24px;
    text-align: center;
}

.quiz-anchor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(44, 200, 87, 0.05);
    border: 1px dashed rgba(44, 200, 87, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 13.5px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.quiz-anchor-link:hover {
    background-color: rgba(44, 200, 87, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quiz-anchor-btn {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 991px) {
    .problems__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .problem-card__image-container {
        height: 150px;
    }
    .problem-card__title {
        font-size: 16px;
    }
    .problem-card__text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .screen-problems {
        padding: 48px 0;
    }
    .problems__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .problem-card__image-container {
        height: 200px;
    }
    .quiz-anchor-link {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px 16px;
        gap: 6px;
        font-size: 13px;
    }
}

/* ==========================================================================
   3. ЭКРАН «КАКИЕ ФУНДАМЕНТЫ ДЕЛАЕМ» (SCREEN TYPES - СТИЛЬ СКРИНШОТА)
   ========================================================================== */
.screen-types {
    padding: 80px 0;
    background-color: var(--bg-card);
    position: relative;
}

.screen-types .section-header {
    text-align: center;
    width: 100%;
    margin: 0 auto 40px auto;
}

.section-title--screenshot {
    font-size: 36px;
    font-weight: 850;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin: 0 auto 14px auto;
    text-align: center;
    display: block;
    width: 100%;
}

.highlight-green {
    color: var(--primary);
    font-weight: 850;
}

.section-subtitle--screenshot {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 100%;
}

.types__slider-wrapper {
    position: relative;
    width: 100%;
}

.types__grid--slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 12px 6px 24px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.types__grid--slider::-webkit-scrollbar {
    display: none;
}

.types__grid--slider .type-card--screenshot {
    flex: 0 0 355px;
    width: 355px;
    min-width: 355px;
    scroll-snap-align: start;
}

@media (max-width: 1200px) {
    .types__grid--slider .type-card--screenshot {
        flex: 0 0 330px;
        width: 330px;
        min-width: 330px;
    }
}

@media (max-width: 768px) {
    .types__grid--slider .type-card--screenshot {
        flex: 0 0 84%;
        width: 84%;
        min-width: 275px;
    }
}

/* Панель управления прокруткой (стиль Сергея Лыпки) */
.types__nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.types__nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #2CC54E;
    background-color: #ffffff;
    color: #2CC54E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(44, 197, 78, 0.15);
}

.types__nav-btn:hover:not(:disabled) {
    background-color: #2CC54E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 197, 78, 0.3);
}

.types__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
    box-shadow: none;
}

.types__nav-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.types__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.types__dot.active {
    width: 26px;
    border-radius: 13px;
    background-color: #2CC54E;
}

/* Карточка в стиле скриншота */
.type-card--screenshot {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.type-card--screenshot:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Выделенная карточка "Лучший выбор" */
.type-card--featured {
    border: 2.5px solid #2CC54E !important;
    box-shadow: 0 14px 40px rgba(44, 197, 78, 0.22) !important;
}

.type-card__featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2CC54E 0%, #1e9638 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 850;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(44, 197, 78, 0.4);
    white-space: nowrap;
    z-index: 10;
}

/* Обертка картинки со скругленными углами со всех сторон */
.type-card__image-container {
    width: 100%;
    height: 210px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    position: relative;
}

.type-card__img-rounded {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.4s ease;
}

.type-card--screenshot:hover .type-card__img-rounded {
    transform: scale(1.04);
}

/* Тело карточки */
.type-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.type-card__title-green {
    font-size: 21px;
    font-weight: 850;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.type-card__subtitle-gray {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

/* Обычный маркированный список с черными точками (как на скриншоте) */
.type-card__bullet-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 28px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-card__bullet-list li {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.4;
}

/* Блок предупреждения / минус ленточного фундамента */
.type-card__warning-box {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #9a3412;
}

.type-card__warning-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.type-card__warning-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.type-card__warning-title {
    font-weight: 800;
    color: #c2410c;
    font-size: 12.5px;
}

.type-card__bullet-list li strong {
    font-weight: 700;
}

/* Закругленная зелёная кнопка-овал (как на скриншоте) */
.btn--pill-green {
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 18px rgba(44, 200, 87, 0.3);
    transition: var(--transition-normal);
}

.btn--pill-green:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 200, 87, 0.45);
}

.btn--pill-green:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .types__grid--screenshot {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .screen-hero {
        padding: 48px 0;
    }
    .screen-types {
        padding: 48px 0;
    }
    .types__grid--screenshot {
        grid-template-columns: 1fr;
    }
    .section-title--screenshot {
        font-size: 26px;
    }
}

/* ==========================================================================
   9. ЭКРАН 9: ФИНАЛЬНЫЙ КОНВЕРСИОННЫЙ БЛОК И КАРТА (1:1 МАКЕТ СЕРГЕЯ ЛЫПКИ)
   ========================================================================== */
.screen-9-lypka {
    padding: 80px 0 32px 0;
    background-color: var(--bg-main); /* Strict White #ffffff background for visual rhythm */
}

/* Верхний акцентный плашечный заголовок */
.lypka-final-top-banner {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto 52px auto;
}

.lypka-final-main-title {
    font-size: 34px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.lypka-title-green {
    color: #15803d; /* Зеленый акцент как на скриншоте оригинала */
    display: block;
}

.lypka-title-dark {
    color: var(--text-main);
    display: block;
}

.lypka-final-top-text {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.5;
    max-width: 860px;
    margin: 0 auto;
}


/* Главный 3-колоночный конверсионный блок */
.lypka-final-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px 360px;
    gap: 36px;
    align-items: center;
    margin-bottom: 36px;
}

/* Левая колонка (Буллеты преимуществ) */
.lypka-final-title {
    font-size: 24px;
    font-weight: 850;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

.lypka-final-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 32px;
}

.lypka-final-check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.lypka-check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 3px 10px rgba(44, 200, 87, 0.35);
}

.lypka-check-content h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 3px;
}

.lypka-check-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Прямая связь в левой колонке */
.lypka-final-call-box {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.lypka-final-call-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lypka-final-phone-flex {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lypka-final-phone-link {
    font-size: 21px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.lypka-final-phone-link:hover {
    color: var(--primary);
}

.lypka-final-messengers {
    display: flex;
    gap: 8px;
}

.lypka-final-msg-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.lypka-final-msg-btn.tg {
    background-color: #229ED9;
}

.lypka-final-msg-btn.vb {
    background-color: #7360F2;
}

.lypka-final-msg-btn:hover {
    transform: translateY(-2px);
}

.messenger-img-xs {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Центральная колонка (Фото Павла + Плашки + Стрелка) */
.lypka-final-col--center {
    display: flex;
    justify-content: center;
}

.lypka-final-photo-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lypka-final-builder-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    display: block;
}

.lypka-final-name-badge {
    position: absolute;
    bottom: 42px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 850;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(44, 200, 87, 0.4);
    z-index: 2;
}

.lypka-final-role-badge {
    position: absolute;
    bottom: 8px;
    background: #ffffff;
    color: var(--text-main);
    font-weight: 700;
    font-size: 12.5px;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    z-index: 2;
}

.lypka-final-green-arrow {
    position: absolute;
    top: 15px;
    right: -30px;
    z-index: 3;
    pointer-events: none;
}

/* Правая колонка (Белая плавающая карточка формы) */
.lypka-final-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.lypka-form-title {
    font-size: 21px;
    font-weight: 850;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.lypka-form-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lypka-form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lypka-form-field {
    width: 100%;
}

.lypka-form-input {
    width: 100%;
    height: 50px;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: #f8f9fa;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.lypka-form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 200, 87, 0.15);
}

.lypka-form-btn {
    height: 52px;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.5px;
    width: 100%;
    border-radius: 50px;
}

.lypka-form-consent {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lypka-consent-check {
    color: var(--primary);
    font-weight: 800;
}

/* Нижний блок: Карта Гомеля + Плавающая карточка контактов */
.lypka-final-map-section {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: 0;
    border: 1px solid var(--border-color);
}

.lypka-map-frame-wrap {
    position: relative;
    width: 100%;
    height: 480px;
}

.lypka-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.lypka-map-floating-card {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 330px;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    z-index: 10;
    border: 1px solid var(--border-color);
}

.lypka-card-contacts-title {
    font-size: 20px;
    font-weight: 850;
    color: var(--text-main);
    margin-bottom: 18px;
    text-align: center;
}

.lypka-contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.lypka-contact-icon-pin,
.lypka-contact-icon-phone {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lypka-contact-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.3;
}

.lypka-contact-label {
    color: var(--text-muted);
    font-size: 11px;
}

.lypka-contact-val {
    color: var(--text-main);
    font-size: 14px;
}

.lypka-contact-phone-link {
    font-size: 17px;
    font-weight: 850;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.lypka-contact-phone-link:hover {
    color: var(--primary);
}

.lypka-contact-msg-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.lypka-msg-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lypka-msg-circle.tg {
    background-color: #229ED9;
    box-shadow: 0 2px 6px rgba(34, 158, 217, 0.3);
}

.lypka-msg-circle.vb {
    background-color: #7360F2;
    box-shadow: 0 2px 6px rgba(115, 96, 242, 0.3);
}

.lypka-msg-circle:hover {
    transform: translateY(-2px);
}

.lypka-map-subform-box {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
    text-align: center;
}

.lypka-subform-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.lypka-subform {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lypka-form-input--sm {
    height: 44px;
    font-size: 13.5px;
}

.lypka-form-btn--sm {
    height: 46px;
    font-size: 13px;
}

.lypka-form-consent--sm {
    font-size: 11px;
}

/* Мобильная адаптивность */
@media (max-width: 1100px) {
    .lypka-final-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .lypka-final-col--center {
        grid-column: span 2;
        order: -1;
    }
    .lypka-final-green-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .screen-9-lypka {
        padding: 48px 0;
    }
    .lypka-final-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lypka-final-col--center {
        grid-column: span 1;
    }
    .lypka-final-main-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .lypka-final-top-text {
        font-size: 14px;
    }
    .lypka-final-title {
        font-size: 20px;
    }
    .lypka-map-floating-card {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0 0 24px 24px;
        box-shadow: none;
        border: none;
    }
    .lypka-map-frame-wrap {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .lypka-map-iframe {
        height: 300px;
    }
}


