:root {
    --primary-gold: #0088ff;      /* основной акцент */
    --light-gold: #e2f2ff;        /* светлый голубой фон */
    --dark-bg: #f4f9ff;           /* общий фон страницы */
    --card-bg: #ffffff;
    --text-main: #06223f;
    --text-muted: #5b6f85;
}

html {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Шапка сайта (прозрачная поверх фото) */
header {
    background: transparent;
    padding: 12px 0;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1100;
    border-bottom: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(3, 20, 39, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: 0.2s;
}

.burger-btn:hover {
    box-shadow: 0 6px 16px rgba(4, 34, 67, 0.18);
    border-color: rgba(0, 136, 255, 0.5);
}

.burger-lines {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-lines span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background-color: #ffffff;
    transition: 0.2s;
}

.burger-btn.active .burger-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger-btn.active .burger-lines span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
}

.header-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-telegram {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 136, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
    text-decoration: none;
    transition: 0.2s;
}

.header-telegram:hover {
    box-shadow: 0 6px 16px rgba(0, 136, 255, 0.4);
    transform: translateY(-1px);
}

.header-telegram svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.nav-links a {
    color: #f4f9ff;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 136, 255, 0.32), rgba(2, 10, 24, 0.96));
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 1090;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 100px 24px 40px;
    max-width: 420px;
}

.btn {
    background: linear-gradient(#C4E2EF, #3D4D8D, #688CEE); 
    color: #ffffff; 
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid rgba(0, 136, 255, 0.4);
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 18px rgba(0, 136, 255, 0.4);
}

/* Главный экран — фон в стиле Евросоюза */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 60px;
    color: #ffffff;
    overflow: hidden;
}

/* Hero media: картинка сначала, затем видео (как на Lexus) */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-media.video-ready .hero-poster {
    opacity: 0;
    pointer-events: none;
}

.hero-media.video-ready .hero-video {
    opacity: 1;
}

.hero-video--mobile {
    display: none;
}

.hero-video--desktop {
    display: block;
}

@media (max-width: 768px) {
    .hero-video--mobile {
        display: block;
    }
    .hero-video--desktop {
        display: none;
    }
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 20, 50, 0.5), rgba(0, 35, 99, 0.25), rgba(0, 25, 80, 0.6));
    z-index: 3;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 20, 50, 0.35), transparent 40%, rgba(0, 30, 70, 0.45));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo {
    display: block;
    height: 96px;
    width: auto;
    margin: 0 auto 20px auto;
    object-fit: contain;
}

.hero-content h1 {
    position: relative;
    z-index: 2;
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-top: 0;
}

.hero-content h1 span {
    color: #b8dcff;
    font-weight: 700;
}

.hero-content p {
    position: relative;
    z-index: 2;
    font-size: 20px;
    color: #e2f2ff;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Блоки */
.features { padding: 100px 0; text-align: center; background-color: var(--dark-bg); }
.section-title { font-size: 36px; margin-bottom: 60px; text-align: center; color: rgb(94 140 179); text-transform: uppercase; letter-spacing: 3px; }
.section-intro { max-width: 720px; margin: -40px auto 50px; text-align: center; color: var(--text-muted); font-size: 17px; line-height: 1.5; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.feature-card { background-color: var(--card-bg); padding: 40px 30px; border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; border-radius: 16px; box-shadow: 0 18px 40px rgba(4,34,67,0.06); }
.feature-card:hover { border-color: rgba(0,136,255,0.6); transform: translateY(-6px); box-shadow: 0 24px 55px rgba(4,34,67,0.16); }
.feature-icon { font-size: 40px; margin-bottom: 20px; color: var(--primary-gold); }

.steps { background-color: #e2f2ff; padding: 100px 0; border-top: 1px solid rgba(0,136,255,0.12); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.step-item { border-left: 2px solid var(--primary-gold); padding-left: 25px; margin-bottom: 30px; }
.step-number { font-size: 14px; color: #5d7285; text-transform: uppercase; font-weight: bold; letter-spacing: 2px; margin-bottom: 5px; display: block; }
.step-item h3 { margin: 5px 0 10px 0; font-weight: 400; font-size: 22px; }
.step-item p { color: var(--text-muted); font-size: 14px; }

/* КАРУСЕЛИ */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(3,20,39,0.75); color: #9ab4cb;
    border: 1px solid #9ab4cb; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: 0.25s;
}
.slider-btn svg {
    width: 18px;
    height: 18px;
    stroke: #9ab4cb;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.slider-btn:hover { background-color: rgba(3,20,39,0.95); box-shadow: 0 8px 20px rgba(3,20,39,0.7); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Каталог */
.catalog { padding: 100px 0; }
.car-slide { min-width: 100%; box-sizing: border-box; padding: 0 10px; }
.car-card { 
    background-color: var(--card-bg); transition: 0.3s; border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(4,34,67,0.08);
}
.car-card:hover { border-color: rgba(0,136,255,0.7); box-shadow: 0 22px 55px rgba(4,34,67,0.18); }
.car-img { 
    position: relative;
    height: 400px; 
    overflow: hidden;
    background: none;
    transition: 0.5s; 
}

.car-img::before,
.car-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center center; 
    background-repeat: no-repeat;
}

/* Размытый фон как продолжение фото */
.car-img::before {
    background-size: cover;
    filter: blur(18px);
    transform: scale(1.08);
}

/* Основное фото поверх */
.car-img::after {
    background-size: contain;
}
.car-info { padding: 25px; text-align: center; }
.car-info h3 { font-weight: 400; margin-top: 0; margin-bottom: 15px; color: #434447; font-size: 24px;}
.car-specs { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.car-price { font-size: 28px; color: #9ab4cb; margin-top: 15px; display: block; font-weight: bold; }

/* Отзывы */
.reviews { padding: 100px 0; background-color: #f2f7ff; border-top: 1px solid rgba(0,136,255,0.12); position: relative; }
.review-card-slide {
    min-width: 100%; box-sizing: border-box;
    padding: 40px;
    border-radius: 18px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(154,180,203,0.32), rgba(3,20,39,0.96));
    border: 1px solid rgba(154,180,203,0.5);
    box-shadow: 0 24px 60px rgba(1,10,21,0.9);
    backdrop-filter: blur(18px);
}
.stars { color: #ffc857; font-size: 24px; margin-bottom: 15px; }
.review-text { font-style: italic; color: #e2f2ff; font-size: 18px; margin-bottom: 25px; }
.client-name { font-weight: bold; color: white; display: block; font-size: 20px; }
.client-city { font-size: 14px; color: #9ab4cb; }

/* Форма */
.review-form-section { padding-bottom: 80px; background-color: #f4f9ff; }
.form-container {
    max-width: 600px; margin: 0 auto; background-color: var(--card-bg);
    padding: 40px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 18px 40px rgba(4,34,67,0.06);
}
.form-title { text-align: center; color: var(--primary-gold); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: var(--text-muted); margin-bottom: 5px; }
.form-input, .form-textarea {
    width: 100%; padding: 12px; background-color: #f4f7fb; border: 1px solid #ccd6e3;
    color: #06223f; border-radius: 8px; font-family: inherit; box-sizing: border-box; 
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary-gold); }
.rating-select { display: flex; flex-direction: row-reverse; justify-content: center; gap: 5px; }
.rating-select input { display: none; }
.rating-select label { cursor: pointer; font-size: 30px; color: #444; transition: 0.2s; }
.rating-select input:checked ~ label, .rating-select label:hover, .rating-select label:hover ~ label { color: var(--primary-gold); }

/* СЕКЦИЯ INSTAGRAM */
.instagram-section {
    padding: 100px 0;
    background-color: #e6f2ff;
    text-align: center;
    border-top: 1px solid rgba(0,136,255,0.12);
}
.instagram-title {
    color: var(--primary-gold);
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.instagram-text {
    font-size: 18px;
    color: #06223f;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}
.insta-btn {
    background: linear-gradient(90deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    letter-spacing: 1px;
    text-decoration: none;
}
.insta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.team { padding: 80px 0; background-color: var(--dark-bg); text-align: center; border-top: 1px solid rgba(0,136,255,0.12); }

/* НОВЫЕ КОНТАКТЫ (ОТЦЕНТРИРОВАННЫЕ, БЕЗ КАРТЫ) */
.contacts-new-section {
    display: flex;
    background-color: #06223f;
    color: white;
    min-height: 350px;
}

.contacts-info-col {
    flex: 1;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #06223f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contacts-header {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.address-text {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 5px;
    line-height: 1.5;
}

.phone-text {
    font-size: 32px;
    color: white;
    margin: 15px 0;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

.social-icons-contact {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-circle-btn {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: 0.3s;
    text-decoration: none;
}

.social-circle-btn:hover {
    background-color: var(--primary-gold);
    transform: translateY(-3px);
}

.manager-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-name {
    font-size: 18px;
    font-weight: 600;
    width: 80px; /* фиксированная ширина для выравнивания строк */
}

.manager-label {
    font-size: 14px;
    color: #ccc;
    margin: 0 5px 0 10px;
}

.social-circle-btn.whatsapp-icon {
    color: #25D366;
}

.copyright-bar {
    background-color: #031427;
    color: #7b8da3;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}
.copyright-bar strong {
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }
    .hero { padding-top: 96px; align-items: center; }
    .hero-logo { height: 72px; margin-bottom: 16px; }
    .hero-content h1 { font-size: 28px; }
    .instagram-title { font-size: 32px; }
    .slider-btn { width: 30px; height: 30px; font-size: 16px; } 
    .car-img { height: 250px; } 
    .contacts-info-col { padding: 40px 20px; }
    .phone-text { font-size: 26px; }
}