/* Второй экран */
.wrapper_second_screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Gilroy', 'Arial', sans-serif;
    position: relative;
    /* Для псевдоэлемента */
    scroll-margin-top: 100px;
}

.wrapper_second_screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* На весь экран */
    height: 1px;
    background: #eee;
    z-index: 1;
}

/* Заголовочная секция */
.header-meta {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.header-meta .label {
    font-size: 10px;
    font-weight: 400;
    color: #1f1e1e;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.header-meta h1 {
    font-size: 43px;
    font-weight: 400;
    color: #000;
    line-height: 1.1;
    margin: 0 0 10px 0;
    letter-spacing: -0.8px;
}

.header-meta p {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    max-width: 600px;
}

/* Основной контейнер */
.main-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    align-items: start;
}

/* Левая секция - галерея */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-card {
    position: relative;
    width: 100%;
    height: 350px;
    background: #f8f8f8;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.car-info-card {
    padding: 12px 15px;
    background: #f8f8f8;
    border-left: 3px solid #e70000;
}

.car-info-card b {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 5px;
}

.car-info-card div:not(:first-child) {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.car-info-card span {
    color: #ddd;
    margin: 0 6px;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1100ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
}

.video-link:hover {
    color: #000;
}

.docs-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.docs-strip div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.docs-strip div:hover {
    transform: translateY(-5px);
}

.docs-strip img {
    width: 100%;
    height: 200px;
    /* Высота как у вертикального А4 */
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.docs-strip div:hover img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #2c5282;
}

.docs-strip span {
    font-size: 12px;
    color: #333;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    padding: 8px 5px;
    width: 100%;
    background: #f8f8f8;
    border-radius: 0 0 4px 4px;
    transition: all 0.3s ease;
}

.docs-strip div:hover span {
    background: #2c5282;
    color: #fff;
}

/* Правая секция - детали (КОМПАКТНЕЕ) */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Еще компактнее */
}

.status-pill {
    display: inline-block;
    background: #f8f8f8;
    color: #1f1e1e;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #eee;
    align-self: flex-start;
    position: relative;
    padding-left: 26px;
}



.status-pill::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #38a169;
}

.status-pill::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 4px;
    height: 7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(1px, -50%) rotate(45deg);
}

.detail-group {
    padding-bottom: 12px;
    /* Уменьшено */
    border-bottom: 1px solid #eee;
}

.detail-group:last-child {
    border-bottom: none;
}

.detail-group h3 {
    font-size: 16px;
    /* Чуть меньше */
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    /* Меньше отступ */
}

/* Компактная таблица */
.data-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    /* Еще меньше */
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px;
}

.data-line:last-child {
    border-bottom: none;
}

.data-line span {
    color: #333;
    font-weight: 400;
}

.data-line b {
    color: #000;
    font-weight: 700;
    text-align: right;
    font-size: 14px;
}

.data-line .sub {
    font-size: 11px;
    /* Чуть меньше */
    color: #666;
    font-weight: 400;
    margin-left: 4px;
}

.commission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    /* Уменьшено */
    background: #f8f8f8;
    border-left: 3px solid #2c5282;
    font-size: 13px;
    /* Чуть меньше */
}

.commission-row span {
    color: #333;
    font-weight: 400;
}

.commission-row b {
    color: #000;
    font-weight: 700;
    font-size: 16px;
    /* Чуть меньше */
}

/* ИТОГО без черного фона */
.total-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    /* Уменьшено */
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    margin: 6px 0;
    /* Меньше отступ */
}

.total-banner span {
    font-size: 12px;
    /* Чуть меньше */
    font-weight: 500;
    color: #2c5282;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.total-banner b {
    font-size: 22px;
    /* Чуть меньше */
    font-weight: 700;
    color: #2c5282;
}

.saving-badge {
    padding: 14px;
    /* Уменьшено */
    background: #f8f8f8;
    border: 1px solid #eee;
    text-align: center;
}

.saving-badge span {
    font-size: 11px;
    /* Чуть меньше */
    color: #666;
    font-weight: 400;
    display: block;
    margin-bottom: 6px;
    /* Меньше отступ */
}

.saving-badge .amount {
    font-size: 28px;
    /* Чуть меньше */
    font-weight: 700;
    color: #e70000;
    margin: 4px 0;
    /* Меньше отступ */
}

.budget-section {
    padding: 10px 12px;
    /* Уменьшено */
    background: #f0f7ff;
    border: 1px solid #d1e7ff;
    font-size: 12px;
    /* Чуть меньше */
    color: #333;
    font-weight: 400;
    line-height: 1.5;
}

.budget-section b {
    font-weight: 700;
    color: #000;
}

.final-note {
    font-size: 11px;
    /* Чуть меньше */
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    padding: 10px 12px;
    /* Уменьшено */
    background: #f8f8f8;
    border-left: 3px solid #ddd;
}

@media (max-width: 1200px) {
    .wrapper_second_screen::before {
        width: 100%;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-meta h1 {
        font-size: 38px;
    }

    .docs-strip {
        gap: 15px;
    }

    .docs-strip img {
        height: 180px;
    }

    .photo-card {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .wrapper_second_screen {
        padding: 30px 15px;
    }

    .header-meta h1 {
        font-size: 32px;
    }

    .header-meta p {
        font-size: 15px;
    }

    .photo-card {
        height: 230px;
    }

    .docs-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .docs-strip img {
        height: 150px;
    }

    .docs-strip span {
        font-size: 11px;
        padding: 6px 3px;
    }

    .total-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .data-line {
        align-items: flex-start;
        gap: 3px;
        padding: 6px 0;
    }

    .data-line b {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header-meta h1 {
        font-size: 28px;
    }

    .header-meta .label {
        font-size: 9px;
    }

    .photo-card {
        height: 200px;
    }

    .saving-badge .amount {
        font-size: 24px;
    }

    .total-banner b {
        font-size: 20px;
    }

    .docs-strip {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .docs-strip div {
        flex-direction: column;
    }

    .docs-strip img {
        height: 220px;
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }

    .docs-strip span {
        max-width: 160px;
        margin: 0 auto;
    }
}

/* Стили для компактного CTA (3-4 строки) */
.cta-mini {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.cta-question {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cta-question strong {
    color: #e70000;
}

.cta-text {
    font-size: 14px;
    color: #000000;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.cta-subtext {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e70000 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 0, 0, 0.25);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn svg {
    transition: transform 0.2s ease;
}

.cta-btn:hover svg {
    transform: translateX(3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cta-mini {
        padding: 18px;
        margin-top: 20px;
    }

    .cta-question {
        font-size: 14px;
    }

    .cta-text {
        font-size: 13px;
    }

    .cta-subtext {
        font-size: 12px;
    }

    .cta-btn {
        padding: 11px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cta-mini {
        padding: 16px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.image-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 8px;
}

#modalImage {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

.nav-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-modal-container {
        max-width: 95%;
        max-height: 85%;
    }

    #modalImage {
        max-height: 60vh;
    }

    .image-modal-caption {
        font-size: 14px;
        padding: 10px 15px;
    }

    .image-modal-close {
        top: -35px;
        width: 35px;
        height: 35px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .image-modal-overlay {
        padding: 10px;
    }

    .image-modal-container {
        max-width: 100%;
    }

    .image-modal-close {
        top: -30px;
        width: 30px;
        height: 30px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .image-modal-caption {
        font-size: 13px;
        padding: 8px 12px;
    }
}