/*
Theme Name: Yacht Krsk Theme
Description: Кастомная тема для аренды яхт на Красноярском море
Author: Твое lev
Version: 1.1
*/

:root {
    --orange: #ff7f32;
    --white: #ffffff;
    --bg-light: #f4f4f2;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --gold: #bfa181;
}

body, html { margin: 0; padding: 0; font-family: 'Inter', -apple-system, sans-serif; overflow-x: hidden; background-color: #000; }

/* --- БЛОК 1: HERO С ВИДЕО --- */
.hero-section { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-color: #000; }
#bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); object-fit: cover; opacity: 0; transition: opacity 1s ease-in; }
#bg-video.is-loaded { opacity: 1; }

.hero-interface { position: relative; height: 100vh; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 40px 60px; box-sizing: border-box; background: linear-gradient(270deg, rgba(0,0,0,0.4) 0%, transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, rgba(0,0,0,0.6) 100%); z-index: 10; }
header { display: flex; justify-content: space-between; align-items: flex-start; }
.brand-sub { font-size: 29px; line-height: 1.1; opacity: 0.9; max-width: 450px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); font-weight: 800; margin: 0; }
.contact-block { text-align: right; }
.phone-link { display: block; color: var(--white); text-decoration: none; font-size: 24px; font-weight: 800; transition: 0.3s; }
.phone-link:hover { color: var(--orange); }
.phone-subtext { display: block; font-size: 14px; opacity: 0.7; margin-top: 5px; }

.main-content { display: grid; grid-template-columns: 1.5fr 1fr; align-items: flex-end; margin-bottom: 60px; }
.hero-title { font-size: 120px; font-weight: 800; line-height: 0.99; margin: 0; letter-spacing: -4px; text-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.hero-title span {
    /* color: transparent; */
    -webkit-text-stroke: 1.5px var(--white);
}


.usp-list { list-style: none; padding: 0; margin: 0; border-right: 1px solid rgba(255,255,255,0.3); padding-right: 40px; text-align: right; justify-self: end; }
.usp-item { margin-bottom: 30px; max-width: 320px; margin-left: auto; }
.usp-item:last-child { margin-bottom: 0; }
.usp-text { font-size: 18px; line-height: 1.4; opacity: 0.9; display: block; }
.usp-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; color: var(--orange); font-weight: bold; }

/* --- БЛОК 2: ФИЛОСОФИЯ --- */
.philosophy-section { padding: 120px 60px; background-color: var(--bg-light); color: var(--text-dark); position: relative; }

.philosophy-container { 
    max-width: 1400px; margin: 0 auto; display: grid; 
    grid-template-columns: 1.2fr 1.2fr 1fr; grid-template-rows: auto 1fr; gap: 50px; 
}
.philosophy-header { grid-column: 1 / 3; grid-row: 1; position: relative; padding-bottom: 20px; padding-right: 40px; }
.label-mini { font-size: 14px; color: #999; text-transform: lowercase; margin-bottom: 25px; display: block; letter-spacing: 1px; }

.section-title { font-size: 54px; font-weight: 800; margin: 0 0 35px 0; letter-spacing: 0px; line-height: 1.1; max-width: 600px; }
.section-sub { font-size: 20px; line-height: 1.6; color: var(--text-gray); margin: 0; max-width: 800px; }

.handdrawn-note { position: absolute; right: -105px; top: -74px; font-family: 'Caveat', cursive; font-size: 28px; color: #555; transform: rotate(-7deg); line-height: 1.1; white-space: nowrap; }
.handdrawn-note span { color: var(--orange); }
.handdrawn-note svg { display: block; margin-top: 10px; margin-left: 30px; }

.info-card { background: #fff; padding: 45px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.card-1 { grid-column: 1; grid-row: 2; }
.card-2 { grid-column: 2; grid-row: 2; }
.card-photo-circle { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.info-card h3 { font-size: 26px; font-weight: 800; margin: 0 0 20px 0; letter-spacing: 0px; }
.info-card p { font-size: 17px; line-height: 1.6; color: var(--text-gray); margin: 0; }

.image-card-tall { grid-column: 3; grid-row: 1 / 3; background: #fff; padding: 0; overflow: visible; }
.image-card-tall .card-img-container { padding: 30px; position: relative; height: 350px; box-sizing: border-box; }
.image-card-tall .card-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.image-card-tall .card-content-tall { padding: 0 35px 35px 35px; }
.tape-effect { display: none; position: absolute; top: 15px; right: 10px; width: 100px; height: 40px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); transform: rotate(8deg); z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* --- БЛОК 3: НАШ ФЛОТ --- */
.fleet-section { padding: 80px 60px 120px; background-color: #ffffff; color: var(--text-dark); }
.container-fleet { max-width: 1400px; margin: 0 auto; }
.fleet-header { text-align: center; margin-bottom: 80px; }
.yacht-block { margin-bottom: 120px; }
.yacht-block:last-child { margin-bottom: 0; }

.open-lightbox-gallery { cursor: pointer; }
.yacht-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; border-radius: 16px; overflow: hidden; height: 550px; }
.gallery-main { height: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; height: 100%; }
.gallery-grid .img-wrap { position: relative; height: 100%; width: 100%; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.img-wrap:hover img { transform: scale(1.05); }

.more-photos-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; transition: background 0.3s; }
.more-photos-overlay:hover { background: rgba(0,0,0,0.7); }
.overlay-icon { font-size: 32px; margin-bottom: 10px; }
.overlay-text { font-size: 18px; font-weight: 600; letter-spacing: 0px;}

.yacht-info-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.yacht-name-wrap { display: flex; align-items: baseline; gap: 20px; margin-bottom: 15px; }
.yacht-name { font-size: 42px; font-weight: 400; letter-spacing: 1px; margin: 0; color: var(--gold); text-transform: uppercase; }
.yacht-badge { background: #a89481; color: #fff; font-size: 11px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px; }
.yacht-meta { font-size: 16px; color: var(--text-dark); font-weight: 400; }

.yacht-body { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }
.yacht-details h3 { font-size: 28px; font-weight: 400; color: var(--gold); text-transform: uppercase; margin: 0 0 25px 0; letter-spacing: 1px; }
.yacht-desc { font-size: 16px; line-height: 1.7; color: var(--text-gray); margin-bottom: 60px; }

.specs-table { width: 100%; }
.specs-row { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.specs-row:first-child { border-top: 1px solid #f0f0f0; }
.specs-row span:first-child { text-transform: uppercase; color: var(--text-dark); font-weight: 600; letter-spacing: 0.5px; }
.specs-row span:last-child { color: var(--text-gray); text-align: right; }

.booking-sidebar { position: sticky; top: 40px; }
.booking-card { background: var(--bg-light); padding: 40px; border-radius: 16px; }

.price-list { margin-bottom: 30px; }
.price-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.price-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); margin-top: 10px; }
.price-val { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.price-lbl { font-size: 15px; color: var(--text-gray); text-align: right; line-height: 1.3;}

.booking-btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; background: #a89481; color: #fff; text-decoration: none; padding: 20px 0; border-radius: 8px; font-size: 18px; font-weight: 700; transition: 0.3s; cursor: pointer; border: none; font-family: inherit; margin-top: 20px; }
.booking-btn:hover { background: #8c7b6a; color: #fff; }

.booking-contacts { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; color: var(--text-gray); }
.booking-contacts a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.booking-contacts a:hover { color: var(--orange); }

/* --- БЛОК 4: КАК МЫ РАБОТАЕМ --- */
.hiw-section {
    position: relative; padding: 120px 60px;
    background: url('/wp-content/uploads/2026/04/gemini_generated_image_8j97qf8j97qf8j97.jpg') center/cover no-repeat;
    color: #fff;
}

.hiw-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 20, 0.75);
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 120px 120px; z-index: 1;
}

.hiw-container { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 450px 1fr; gap: 80px; align-items: center; }

.hiw-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); padding: 50px 45px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.hiw-card .label-mini { color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.hiw-card-title { font-size: 46px; font-weight: 800; line-height: 1.1; margin: 0 0 25px 0; letter-spacing: 0px; }
.hiw-card-desc { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0; }

.hiw-steps-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hiw-step { position: relative; padding: 20px 0; }
.hiw-step-num { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.hiw-step-num::after { content: ''; display: block; height: 1px; width: 40px; background: rgba(255,255,255,0.3); }
.hiw-step-title { font-size: 24px; font-weight: 700; margin: 0 0 15px 0; }
.hiw-step-desc { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0; }

/* --- БЛОК 5: ОТЗЫВЫ --- */
.reviews-section { padding: 120px 60px; background-color: var(--bg-light); color: var(--text-dark); }
.reviews-container { max-width: 1400px; margin: 0 auto; }

.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 30px; }
.reviews-title-wrap h2 { font-size: 54px; font-weight: 800; margin: 0 0 15px 0; letter-spacing: 0px; }

.avito-rating-badge { display: flex; align-items: center; gap: 20px; background: var(--white); padding: 15px 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
.avito-score { font-size: 48px; font-weight: 800; line-height: 1; color: var(--text-dark); }
.avito-stars-wrap { display: flex; flex-direction: column; gap: 5px; }
.avito-stars { color: #ffb000; font-size: 20px; letter-spacing: 2px; }
.avito-text { font-size: 14px; color: var(--text-gray); }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 30px; margin-bottom: 50px; }

.review-card { background: var(--white); padding: 40px; border-radius: 20px; display: flex; flex-direction: column; box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
.review-author { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }

.author-avatar-text { width: 50px; height: 50px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; text-transform: uppercase;}

.author-info h4 { margin: 0 0 4px 0; font-size: 18px; font-weight: 700; }
.author-info span { font-size: 13px; color: var(--text-gray); }

.review-card-stars { color: #ffb000; font-size: 16px; margin-bottom: 15px; letter-spacing: 1px; }
.review-text { font-size: 15px; line-height: 1.6; color: var(--text-gray); margin: 0; flex-grow: 1; }
.review-text b { color: var(--text-dark); font-weight: 700; }

.reviews-footer { text-align: center; }
.avito-btn { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 2px solid var(--text-dark); color: var(--text-dark); text-decoration: none; padding: 18px 40px; border-radius: 12px; font-size: 16px; font-weight: 700; transition: 0.3s; }
.avito-btn:hover { background: var(--text-dark); color: #fff; }

/* --- БЛОК 6: ПОДВАЛ --- */
.site-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 80px 60px 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-brand { font-size: 38px; font-weight: 800; letter-spacing: 0px; line-height: 0.9; margin-bottom: 15px; }
.footer-brand span { color: var(--orange); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 300px; line-height: 1.5; }

.footer-contacts { text-align: right; }
.footer-contacts-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.footer-phone { display: block; font-size: 28px; font-weight: 700; color: #fff; text-decoration: none; margin-bottom: 15px; transition: 0.3s; }
.footer-phone:hover { color: var(--orange); }

.footer-bottom { 
    max-width: 1400px; margin: 60px auto 0; padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 13px; color: rgba(255,255,255,0.3); 
    display: flex; justify-content: space-between; 
}

/* --- СТИЛИ ДЛЯ ПОПАПА --- */
.popup-overlay { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content { background: #fff; padding: 50px 40px; border-radius: 20px; width: 90%; max-width: 500px; position: relative; color: var(--text-dark); box-shadow: 0 10px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; box-sizing: border-box; }
.popup-overlay.active .popup-content { transform: translateY(0); }
.popup-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 32px; line-height: 1; cursor: pointer; color: #999; transition: 0.3s; }
.popup-close:hover { color: #111; }
.popup-content h3 { font-size: 28px; font-weight: 800; margin: 0 0 15px 0; color: var(--gold); }
.popup-content p { font-size: 15px; color: var(--text-gray); line-height: 1.6; margin-bottom: 15px; }
.popup-content p a { color: var(--text-dark); text-decoration: none; font-weight: bold; border-bottom: 1px solid var(--gold);}

.popup-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 13px; color: var(--text-gray); padding-left: 5px; }
.popup-form input, .popup-form textarea { padding: 18px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: inherit; outline: none; transition: border-color 0.3s; width: 100%; box-sizing: border-box; }
.popup-form textarea { resize: vertical; min-height: 100px; }
.popup-form input:focus, .popup-form textarea:focus { border-color: var(--gold); }
.submit-btn { background: var(--text-dark); color: #fff; border: none; padding: 20px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--gold); }

/* --- БЛОК МАРШРУТОВ (ЭКСКУРСИИ) --- */
.routes-section { 
    padding: 120px 60px; 
    background-color: var(--bg-light); 
}

.routes-container { 
    max-width: 1400px; 
    margin: 0 auto; 
}

.routes-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 70px;
}

.routes-header { 
    flex: 1;
    max-width: 800px; 
}

.routes-featured-review {
    width: 420px;
    flex-shrink: 0;
}

.routes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 40px; 
}

/* СБРОС КОЛОНОК ДЛЯ КАРТОЧЕК МАРШРУТОВ */
.routes-grid .image-card-tall {
    grid-column: auto;
    grid-row: auto;
}


/* --- ЛАЙТБОКС ГАЛЕРЕИ --- */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 40px; cursor: pointer; z-index: 10001; transition: color 0.3s; line-height: 1; padding: 0; }
.lightbox-close:hover { color: #fff; }
.lightbox-content { position: relative; max-width: 90%; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; transition: opacity 0.2s ease; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 24px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; transition: 0.3s; backdrop-filter: blur(5px); z-index: 10001; }
.lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-counter { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 1px; }

/* --- АДАПТИВ --- */
@media (max-width: 1200px) {
    .handdrawn-note { display: none; }
    .philosophy-container { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 30px; }
    .philosophy-header { grid-column: 1 / 3; grid-row: auto; padding-right: 0; }
    .card-1 { grid-column: 1; grid-row: auto; }
    .card-2 { grid-column: 2; grid-row: auto; }
    .image-card-tall { grid-column: 1 / 3; grid-row: auto; }
    .image-card-tall .card-content-tall { padding: 0 45px 45px 45px; }
    
    .yacht-body { grid-template-columns: 1fr 340px; gap: 40px; }
    .hiw-container { grid-template-columns: 350px 1fr; gap: 40px; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    
    /* НОВАЯ ВЕРСТКА ПЕРВОГО ЭКРАНА (APP-STYLE) ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ */
    .hero-section {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background-color: #050505; /* Темный глубокий фон */
        padding-top: 30px;
    }
    .hero-interface {
        display: contents; /* Разворачиваем обертку */
    }
    header {
        order: 1;
        flex-direction: column;
        gap: 15px;
        padding: 0 30px;
        text-align: left;
        background: transparent;
    }
    .contact-block { text-align: left; }
    
    .video-container {
        position: relative;
        order: 2;
        width: calc(100% - 60px);
        margin: 20px auto;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(255, 127, 50, 0.15); /* Премиальное свечение */
        z-index: 10;
    }
    #bg-video {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        transform: none;
        object-fit: cover;
    }

    .main-content {
        order: 3;
        grid-template-columns: 1fr;
        padding: 20px 30px 60px 30px;
        gap: 30px;
        margin-bottom: 0;
        align-items: flex-start;
    }
    .hero-title { font-size: 75px; text-shadow: none; margin: 0; }
    .brand-sub { font-size: 22px; max-width: 100%; }
    .usp-list { border: none; padding: 0; text-align: left; width: 100%; justify-self: start; }
    .usp-item { margin-left: 0; max-width: 100%; margin-bottom: 20px; }

    /* Остальные секции */
    .container-fleet, .reviews-container { padding: 0; }
    .philosophy-section { padding: 80px 30px; }
    .fleet-section { padding: 60px 18px; }
    .reviews-section { padding: 80px 30px; }
    
    .yacht-gallery { grid-template-columns: 1fr; height: auto; }
    .gallery-main { height: 400px; }
    .gallery-grid { height: 300px; }
    .yacht-body { grid-template-columns: 1fr; }
    .booking-sidebar { position: relative; top: 0; margin-top: 40px; }
    .yacht-name { font-size: 32px; }

    .hiw-section { padding: 80px 30px; }
    .hiw-container { grid-template-columns: 1fr; }
    .hiw-steps-wrap { grid-template-columns: 1fr; }

    .routes-section { padding: 80px 30px; }
    .routes-top-row { flex-direction: column; align-items: stretch; gap: 40px; margin-bottom: 50px; }
    .routes-header { max-width: 100%; }
    .routes-featured-review { width: 100%; max-width: 500px; }
    .routes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .gallery-main { height: 250px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; height: 200px; }
    .popup-content { padding: 40px 20px; }
    .philosophy-container { grid-template-columns: 1fr; }
    .philosophy-header { grid-column: 1; }
    .card-1, .card-2, .image-card-tall { grid-column: 1; }
    
    .reviews-grid { grid-template-columns: 1fr; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
    .review-card { padding: 30px; }
    .reviews-title-wrap h2 { font-size: 36px; }

    .site-footer { padding: 50px 30px 30px; }
    .footer-container { flex-direction: column; gap: 40px; }
    .footer-contacts { text-align: left; }
    .footer-messengers { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; gap: 10px; }

    .routes-section { padding: 60px 18px; }
    .routes-header .section-title { font-size: 32px; }
}

/* --- ФИКС ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ (МЕНЕЕ 424px) --- */
@media (max-width: 424px) {
    
    /* Сброс межбуквенного интервала для всех крупных заголовков */
    .hero-title,
    .section-title,
    .philosophy-header .section-title,
    .hiw-card-title,
    .reviews-title-wrap h2,
    .footer-brand {
        letter-spacing: 0px;
    }

    /* Hero */
    .hero-section { padding-top: 20px; }
    header { padding: 0 18px; }
    .video-container { width: calc(100% - 36px); margin: 15px auto; border-radius: 12px; }
    .main-content { padding: 15px 18px 50px 18px; }
    .hero-title { font-size: 60px; }
    .brand-sub { font-size: 18px; }
    .phone-link { font-size: 22px; }

    /* Философия */
    .philosophy-section { padding: 60px 18px; }
    .philosophy-header .section-title { font-size: 32px; margin-bottom: 20px; }
    .philosophy-header .section-sub { font-size: 15px; }

    .info-card { padding: 25px 20px; }
    .info-card h3 { font-size: 22px; margin-bottom: 12px; }
    .info-card p { font-size: 15px; }

    /* Маршруты и высокие карточки */
    .routes-section { padding: 60px 18px; }
    .image-card-tall { padding: 0; border-radius: 16px; overflow: hidden; }
    .image-card-tall .card-img-container { padding: 0; height: 250px; border-radius: 0; }
    .image-card-tall .card-img-container img { border-radius: 0; }
    .image-card-tall .card-content-tall { padding: 25px 20px; }
    .tape-effect { top: 10px; right: 5px; }

    /* Яхты (Fleet) */
    .fleet-section { padding: 60px 18px; }
    .yacht-gallery { margin-left: -18px; margin-right: -18px; border-radius: 0; width: calc(100% + 36px); }
    
    /* Карточка бронирования: от края до края с внутренними отступами */
    .booking-card { 
        margin-left: -18px; 
        margin-right: -18px; 
        border-radius: 0; 
        padding: 30px 18px; 
    }

    /* Важно знать (HIW) */
    .hiw-section { padding: 60px 18px; }
    .hiw-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); padding: 30px 20px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
    .hiw-step-title { font-size: 20px; }

    /* Отзывы */
    .reviews-section { padding: 60px 18px; }
    .review-card { padding: 25px 20px; }

    /* Дополнительные корректировки для узких экранов */
    .yacht-name { font-size: 28px; }
    .hiw-card-title { font-size: 32px; }
    .reviews-title-wrap h2 { font-size: 30px; }
    .footer-brand { font-size: 32px; }
    .popup-content { padding: 30px 15px; width: 95%; }

    /* Лайтбокс на мобильных */
    .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; font-size: 32px; }
    .lightbox-content img { max-height: 75vh; }
    .lightbox-counter { bottom: -30px; }
}

.developer_lnk {
color: white;
}