:root { --gold: #D4AF37; --black: #111; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.5; color: #333; overflow-x: hidden; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

.gold-line { height: 4px; background: var(--gold); }

/* Header */
header { padding: 15px 0; background: #fff; border-bottom: 1px solid #eee; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-main { height: 110px; width: auto; } /* Увеличенный логотип */

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.header-contacts a { color: #000; text-decoration: none; font-weight: bold; font-size: 17px; }
.header-contacts a:hover { color: var(--gold); }

.btn-gold-header { 
    background: var(--gold); color: #fff; border: none; padding: 10px 20px; 
    border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.3s;
}

/* Hero */
.hero { 
    position: relative; padding: 120px 0; background: #000; color: #fff; 
    text-align: center; overflow: hidden;
}
.hero::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: url('hero.png') center/cover; opacity: 0.4; z-index: 1;
}

/* Фоновые надписи */
.hero-bg-text { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 2; pointer-events: none; }
.bg-prestige, .bg-avto { 
    position: absolute; font-size: 12vw; font-weight: 900; color: rgba(255,255,255,0.05); text-transform: uppercase; 
}
.bg-prestige { top: -10%; left: -5%; }
.bg-avto { bottom: -10%; right: -5%; }

.hero-inner { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(24px, 5vw, 42px); line-height: 1.2; margin-bottom: 20px; }
.accent { color: var(--gold); }

.theory-promo { 
    display: inline-block; padding: 15px 25px; border: 1px solid var(--gold); 
    background: rgba(0,0,0,0.5); margin-bottom: 25px; font-size: 20px; font-weight: bold;
}
.price-gold { color: var(--gold); font-size: 26px; }

.hero-address { color: var(--gold); margin-bottom: 30px; font-weight: bold; }
.btn-main { 
    background: none; border: 2px solid var(--gold); color: var(--gold); 
    padding: 15px 40px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.4s;
}
.btn-main:hover { background: var(--gold); color: #000; transform: scale(1.05); }

/* Gallery */
.section-title { text-align: center; margin-top: 60px; font-size: 28px; }
.gold-divider { width: 50px; height: 3px; background: var(--gold); margin: 15px auto 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.photo-card { position: relative; height: 200px; border: 1px solid #eee; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.photo-card:hover img { transform: scale(1.1); }
.photo-desc { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.7); color: #fff; padding: 8px; text-align: center; font-size: 13px; }

/* Tariffs & Calc */
.tariffs-block { padding: 60px 0; }
.tariffs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fafafa; padding: 40px; border: 1px solid #eee; }
.t-item { display: none; }
.t-item.active { display: block; animation: fadeIn 0.5s; }
.price-box { font-size: 24px; font-weight: bold; margin-top: 20px; color: var(--gold); }
.tabs-gold { display: flex; gap: 10px; margin-bottom: 30px; }
.tab-btn { flex: 1; padding: 12px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-weight: bold; }
.tab-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.bar-wrap { background: #eee; height: 20px; margin-bottom: 10px; border-radius: 10px; overflow: hidden; }
.bar { height: 100%; transition: 0.8s; width: 0; }
.bar.gold { background: var(--gold); }
.bar.gray { background: #ccc; }

/* Reviews */
.reviews-placeholder { text-align: center; padding: 40px; border: 2px dashed #ddd; color: #999; margin-bottom: 60px; }

/* Map & News */
.map-news { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 80px; }
.vk-container { border: 1px solid #eee; height: 400px; }
.map-box { position: relative; height: 400px; border: 1px solid #eee; }
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.map-tag { position: absolute; top: 10px; left: 10px; background: var(--black); color: var(--gold); padding: 5px 15px; z-index: 2; font-size: 13px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.8s ease forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 0.8s ease 0.4s forwards; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background: #fff; padding: 40px; width: 100%; max-width: 400px; border-radius: 8px; position: relative; text-align: center; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; }
.modal-content input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; }
.btn-submit { width: 100%; padding: 14px; background: var(--gold); border: none; color: #fff; font-weight: bold; cursor: pointer; border-radius: 4px; }

/* Mobile */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .header-contacts { align-items: center; }
    .hero-bg-text { display: none; }
    .tariffs-grid, .map-news { grid-template-columns: 1fr; padding: 20px; }
    .logo-main { height: 70px; }
}

/* --- ИСПРАВЛЕНИЯ --- */

/* Принудительное скрытие неактивных тарифов */
.t-item { display: none !important; }
.t-item.active { display: block !important; animation: fadeIn 0.5s; }

/* Инфраструктура (Класс отдельно, машины отдельно) */
.infra-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.infra-subtitle { text-align: center; margin-bottom: 15px; color: var(--gold); font-size: 20px; }
.large-card { height: 350px; }
.fleet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.fleet-grid .photo-card { height: 167px; }
.fleet-grid .photo-card:first-child { grid-column: span 2; height: 168px; } /* Первая машина крупнее */

.photo-card { border: 2px solid #eee; overflow: hidden; border-radius: 5px; background: #f9f9f9; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.photo-card:hover img { transform: scale(1.05); }

/* Новости и Карта (Жесткий каркас) */
.map-news { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.box-title { background: var(--black); color: var(--gold); padding: 12px 20px; font-size: 16px; text-transform: uppercase; border-radius: 5px 5px 0 0; }
.vk-widget-area { background: #fff; border: 1px solid #eee; height: 400px; width: 100%; overflow: hidden; }
.map-box { position: relative; height: 400px; border: 1px solid #eee; overflow: hidden; }

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .infra-layout { grid-template-columns: 1fr; }
    .map-news { grid-template-columns: 1fr; }
}

/* --- Стили названия у логотипа --- */
.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-name {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
    letter-spacing: -1px;
}

.logo-name span {
    color: var(--gold);
}

.logo-name small {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #888;
    margin-top: 5px;
}

/* --- Стили футера (в самом конце) --- */
footer {
    background: #111;
    color: #fff;
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer-brand {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-logo p {
    color: #888;
    font-size: 14px;
}

.footer-info {
    text-align: right;
}

.footer-address {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 12px;
    color: #555;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .logo-block { flex-direction: column; text-align: center; gap: 5px; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-info { text-align: center; width: 100%; }
}
/* --- Стили для лого-подложки в Hero --- */
.hero {
    position: relative;
    padding: 140px 0;
    background: #000;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw; /* Размер зависит от ширины экрана */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07); /* Едва заметный белый */
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.hero-inner {
    position: relative;
    z-index: 2; /* Текст поверх подложки */
}

.hero-main-title {
    font-size: 64px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* --- Стили для двух карт --- */
.maps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 400px;
    overflow-y: auto; /* Если карт будет много, можно будет скроллить */
}

.map-box {
    position: relative;
    flex: 1; /* Карты делят пространство поровну */
    min-height: 190px;
    border: 1px solid #eee;
    overflow: hidden;
}

.map-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5); /* Немного приглушим цвета карт */
    transition: 0.3s;
}

.map-box:hover img {
    filter: grayscale(0);
}

.map-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: var(--gold);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-main-title { font-size: 32px; }
    .hero-watermark { font-size: 25vw; }
}