/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #e8f0f8;
    color: #222;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   БЛОК 0 — НЕЖНО-ГОЛУБОЙ КОНТЕЙНЕР
   ======================================== */
.main-wrapper {
    max-width: 1140px;
    width: 100%;
    background: #d4e8f5;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}

/* ========================================
   БЛОК 1 — ШАПКА
   ======================================== */
.site-header {
    background: #d4e8f5;
    padding: 15px 20px;
    border-radius: 16px 16px 0 0;
    box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}
.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}
.site-logo span {
    color: #e74c3c;
}
.site-logo small {
    font-size: 14px;
    font-weight: 300;
    color: #000000;
    display: block;
}
.header-phone {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}
.header-phone a {
    color: #990d0d;
    transition: 0.3s;
}
.header-phone a:hover {
    color: #c0392b;
}
.header-phone small {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    display: block;
    text-align: right;
}


/* ========================================
   БЛОК 2 — ГЕРОЙ С ФОНОМ-КАРТИНКОЙ
   ======================================== */
.hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff;
    padding: 80px 20px;
    border-radius: 16px; /* ← КАК У БЛОКА 3 */
    text-align: center;
    margin-top: 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8);
    overflow: hidden; /* ← ЧТОБЫ КАРТИНКА НЕ ВЫЛЕЗАЛА */
	
	
    border-radius: 16px;
    overflow: hidden; /* ← ЭТО ОБРЕЗАЕТ КАРТИНКУ ПО ЗАКРУГЛЕНИЯМ */

}

/* ===== ГРАДИЕНТНО-ТЕНЕВОЙ СЛОЙ ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    border-radius: 16px; /* ← КАК У БЛОКА 3 */
    z-index: 1;
}

/* ===== ДЕКОРАТИВНЫЙ ЭЛЕМЕНТ (СВЕТОВАЯ ПОЛОСА) ===== */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e74c3c, #e74c3c, transparent);
    z-index: 3;
    border-radius: 0 0 16px 16px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ===== ЗАГОЛОВОК С ТЕНЬЮ ===== */
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero h1 span {
    color: #e74c3c;
    text-shadow: 0 0 40px rgba(231, 76, 60, 0.3);
}

/* ===== ПОДЗАГОЛОВОК ===== */
.hero .subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* ===== ЦЕНА ===== */
.hero .price {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    background: rgba(171, 5, 5, 0.2);
    display: inline-block;
    padding: 12px 50px;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    margin-bottom: 15px;
    box-shadow: 0 8px 40px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero .price small {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}

/* ===== БЕЙДЖ "БАРТЕР" ===== */
.hero .badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ===== КНОПКИ ===== */
.hero .cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== КРОВАВО-КРАСНЫЕ КНОПКИ ===== */
.btn-primary {
    background: rgba(171, 5, 5, 0.50);
    color: #fff;
    box-shadow: 0 4px 20px rgba(171, 5, 5, 0.3);
    border: 1px solid rgba(171, 5, 5, 0.2);
}
.btn-primary:hover {
    background: rgba(171, 5, 5, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(171, 5, 5, 0.4);
}

.btn-secondary {
    background: rgba(171, 5, 5, 0.15);
    color: #fff;
    border: 2px solid rgba(171, 5, 5, 0.3);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover {
    background: rgba(171, 5, 5, 0.25);
    transform: translateY(-3px);
    border-color: rgba(171, 5, 5, 0.5);
}

/* ========================================
   ЛЕНТА SALE
   ======================================== */
.corner-ribbon-6 {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    z-index: 10;
}
.corner-ribbon-6::before,
.corner-ribbon-6::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #c0392b;
}
.corner-ribbon-6 span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: #e74c3c;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    font: 700 20px/1 'Arial', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

/* ===== ЛЕНТА СПРАВА СВЕРХУ ===== */
.corner-ribbon-6-top-right {
    top: -90px;
    right: -150px;
}
.corner-ribbon-6-top-right::before,
.corner-ribbon-6-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}
.corner-ribbon-6-top-right::before {
    top: 0;
    left: 0;
}
.corner-ribbon-6-top-right::after {
    right: 0;
    bottom: 0;
}
.corner-ribbon-6-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}
/* ========================================
   БЛОК 3 — ГАЛЕРЕЯ
   ======================================== */
.gallery-section {
    padding: 40px 0;
    background: #fff;
    border-radius: 16px;
    margin-top: 20px;
	box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.gallery-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.gallery-section .section-sub {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== КАРУСЕЛЬ — ПРОСТО СКРУГЛЁННЫЕ УГЛЫ ===== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: #f0f0f0;
}

.carousel-track-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-slide .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    background: #fff;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.carousel-dots .dot.active {
    background: #e74c3c;
}
/* ===== ВИДЕО В КАРУСЕЛИ ===== */
.carousel-slide {
    position: relative;
}
.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.carousel-slide .caption {
    z-index: 2;
}
/* ========================================
   ВИДЕО ПОД ГАЛЕРЕЕЙ
   ======================================== */
.video-container {
    margin-top: 15px;
    text-align: center;
}

.video-container h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.video-player {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: #000;
    display: block;
    margin: 0 auto;
}

/* ========================================
   ВИДЕО — КОМПАКТНЫЙ БЛОК
   ======================================== */
.video-container {
    margin-top: 15px;
    text-align: center;
}

.video-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.video-player {
    width: 100%;
    height: auto;
    max-height: 340px;
    aspect-ratio: 16 / 9;
    display: block;
    background: #111;
}

.video-label {
    padding: 8px 15px;
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

/* ========================================
   БЛОК 4 — ХАРАКТЕРИСТИКИ
   ======================================== */
.specs-section {
    padding: 40px 0;
    background: #9a9a9a;
    border-radius: 16px;
    margin-top: 20px;
	box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.specs-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a2e;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.spec-item {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    
    /* ===== ВНЕШНЯЯ ТЕНЬ ===== */
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.8);
    
    /* ===== ВНУТРЕННЯЯ ЧЁРНАЯ ПОЛОСА СНИЗУ И СПРАВА ===== */
    border-right: 4px solid #000000;
    border-bottom: 4px solid #000000;
    
    border-left: 4px solid #e74c3c;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: 6px 10px 25px rgba(0, 0, 0, 0.9);
}
.spec-item .label {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.spec-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 4px;
}

/* ========================================
   БЛОК 5 — ОПИСАНИЕ
   ======================================== */
.desc-section {
    padding: 40px 0;
    background: #fff;
    border-radius: 16px;
    margin-top: 20px;
	box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.desc-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}
.desc-section .content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
}
.desc-section .content p {
    margin-bottom: 15px;
}
.desc-section .content strong {
    color: #1a1a2e;
}

/* ========================================
   БЛОК 6 — ПРИЗЫВ
   ======================================== */
.cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3a4a 100%);
    color: #fff;
    text-align: center;
    border-radius: 16px;
    margin-top: 20px;
	box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .phone-big {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}
.cta-section .phone-big a {
    color: #e74c3c;
    transition: 0.3s;
}
.cta-section .phone-big a:hover {
    color: #fff;
}

/* ========================================
   БЛОК 7 — ПОДВАЛ
   ======================================== */
/* ========================================
   БЛОК 7 — ПОДВАЛ (ВСЁ В ОДНОМ)
   ======================================== */
.site-footer {
    background: #1a1a2e;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-radius: 16px; /* ← все углы закруглены */
    margin-top: 20px;
    box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8); /* ← тень снизу и справа */
}
.site-footer a {
    color: #e74c3c;
}

/* ========================================
   ПОДВАЛ — СЧЁТЧИК
   ======================================== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #aaa;
}

.footer-stats span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   АДАПТИВ
   ======================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero .price { font-size: 32px; padding: 8px 20px; }
    .hero .subtitle { font-size: 16px; }
    .header-phone { font-size: 18px; }
    .site-logo { font-size: 20px; }
    .carousel-slide { min-height: 280px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 18px; }
    .specs-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 26px; }
    .cta-section .phone-big { font-size: 24px; }
    .btn { padding: 12px 25px; font-size: 16px; }
    .desc-section .content { font-size: 15px; }
    .main-wrapper { padding: 12px; border-radius: 20px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 22px; }
    .hero .price { font-size: 26px; }
    .carousel-slide { min-height: 200px; }
    .site-header .container { flex-direction: column; text-align: center; }
    .header-phone small { text-align: center; }
    .main-wrapper { padding: 10px; border-radius: 16px; }
}

.site-header {
    margin-bottom: 0; /* ← убираем наезд */
    position: relative;
    z-index: 1; /* ← шапка под героем */
}

.hero {
    margin-top: 0;
    border-radius: 16px;
}

.hero {
    margin-top: -30px; /* ← наезжает на шапку */
    position: relative;
    z-index: 2; /* ← герой поверх шапки */
}


/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Убираем фон у основного контейнера */
    .main-wrapper {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
    }

    /* Убираем отступы у body */
    body {
        padding: 0 !important;
        background: #fff !important; /* или любой другой фон */
    }

    /* Все блоки растягиваем на всю ширину */
    .site-header,
    .hero,
    .gallery-section,
    .specs-section,
    .desc-section,
    .cta-section,
    .site-footer {
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }

    /* Контейнеры без padding */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }

    /* Шапка и герой без нахлёста */
    .site-header {
        margin-bottom: 0 !important;
    }
    .hero {
        margin-top: 0 !important;
        border-radius: 0 !important;
        min-height: 300px !important;
        padding: 40px 15px !important;
    }

    /* Текст поменьше */
    .hero h1 {
        font-size: 28px !important;
    }
    .hero .price {
        font-size: 30px !important;
        padding: 8px 20px !important;
    }
    .hero .subtitle {
        font-size: 16px !important;
    }
    .btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    /* Галерея */
    .carousel-slide {
        min-height: 220px !important;
    }
    .carousel-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    /* Характеристики */
    .specs-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .spec-item {
        padding: 12px 16px !important;
    }

    /* Видео */
    .video-wrapper {
        max-width: 100% !important;
    }
    .video-player {
        max-height: 220px !important;
    }

    /* Подвал */
    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .footer-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}
