/* ─── Сброс и базовые переменные ────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary:      #E63946;
    --primary-dark: #BC1C2E;
    --secondary:    #0F172A;
    --light-bg:     #F9FAFE;
    --gray-text:    #334155;
    --border-light: #EFF3F8;
    --shadow:       0 4px 12px rgba(0,0,0,0.05);
    --radius:       4px;
    --transition:   all 0.2s ease;
}
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #0A1927;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ─── Контейнер и секции ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; position: relative; }

/* ─── Типографика ────────────────────────────────────────────────────────── */
h2 {
    font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--secondary); margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1rem; color: var(--gray-text); max-width: 700px;
    margin-bottom: 2.5rem; border-left: 3px solid var(--primary); padding-left: 1rem;
}

/* ─── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; background: var(--primary); color: white;
    padding: 10px 24px; border-radius: var(--radius); font-weight: 600;
    text-decoration: none; transition: var(--transition); font-size: .9rem;
    box-shadow: 0 2px 6px rgba(230,57,70,0.2); border: none; cursor: pointer;
}
.btn i { transition: transform .2s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(230,57,70,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); box-shadow: none; }
.btn-light:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    z-index: 1000; padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: nowrap; }
.logo {
    font-size: 1.3rem; font-weight: 800; text-decoration: none;
    line-height: 1.2; display: inline-flex; flex-direction: column; flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary) 30%, var(--primary) 90%);
    background-clip: text; -webkit-background-clip: text; color: transparent;
}
.logo span { font-size: 1.6rem; font-weight: 800; }
.logo small { font-size: .9rem; font-weight: 400; letter-spacing: 2px; color: #4a5a6e; background: none; -webkit-background-clip: unset; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--secondary); font-size: .9rem; transition: .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone {
    font-weight: 600; background: #F1F5F9; padding: 6px 16px; border-radius: var(--radius);
    text-decoration: none; color: var(--secondary); display: flex; align-items: center;
    gap: 8px; font-size: .85rem; transition: .2s;
}
.nav-phone i { color: var(--primary); }
.nav-phone:hover { background: var(--primary); color: white; }
.nav-social { display: flex; gap: 8px; }
.nav-social a {
    background: #F1F5F9; width: 34px; height: 34px; display: flex;
    align-items: center; justify-content: center; border-radius: var(--radius);
    color: var(--secondary); font-size: 1rem; transition: .2s; text-decoration: none;
}
.nav-social a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.nav-social a .fa-whatsapp { color: #25D366; }
.nav-social a .fa-telegram { color: #26A5E4; }
.menu-icon { display: none; font-size: 1.4rem; cursor: pointer; color: var(--secondary); }
.phone-text-mobile { display: none; }
.mobile-menu-contacts-wrapper { list-style: none; padding: 0; }
.mobile-menu-contacts { display: none; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); flex-direction: column; gap: 12px; }
.mobile-menu-contacts a,
.mobile-menu-contacts .contact-address { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--secondary); font-size: .9rem; font-weight: 500; }
.mobile-menu-contacts a i,
.mobile-menu-contacts .contact-address i { width: 22px; color: var(--primary); }
.mobile-menu-contacts .contact-social { display: flex; gap: 12px; margin-top: 5px; }
.mobile-menu-contacts .contact-social a { background: #F1F5F9; padding: 6px 12px; border-radius: var(--radius); gap: 6px; }

@media (max-width: 1024px) {
    .nav-right .nav-social { display: none; }
/*    .nav-phone .phone-text { display: none; }
    .nav-phone .phone-text-mobile { display: inline-block; }*/
    .nav-phone { padding: 6px 12px; }
}

@media (max-width: 870px) {

    .nav-phone .phone-text { display: none; }
    .nav-phone .phone-text-mobile { display: inline-block; }
}

@media (max-width: 768px) {
    .nav-right { display: flex; }
    .menu-icon { display: block; }
	.nav-right .nav-social { display: flex; }
    .nav-links {
        position: fixed; top: 70px; left: -100%; background: white; width: 80%;
        max-width: 300px; height: calc(100vh - 70px); flex-direction: column;
        padding: 24px 20px; gap: 16px; transition: left .3s ease;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1); z-index: 1001;
        overflow-y: auto; overflow-x: hidden;
        border-right: 1px solid var(--border-light);
    }
    .nav-links.active { left: 0; }
    .mobile-menu-contacts { display: flex; }
    /* Блокируем прокрутку страницы когда меню открыто */
    body.menu-open { overflow: hidden; }
	
	.nav-phone .phone-text { display: inline-block; }
    .nav-phone .phone-text-mobile { display: none; }
	
}



@media (max-width: 510px) {
    .nav-right .nav-social { display: none; }
	
    .nav-phone .phone-text { display: none; }
    .nav-phone .phone-text-mobile { display: inline-block; }
}

/* ─── Hero-блок ──────────────────────────────────────────────────────────── */
.hero {
    min-height: 50vh; display: flex; align-items: center; color: white;
    margin-top: 70px; padding-top: 20px;
    overflow: hidden; /* защита от горизонтального скролла */
}
@media (max-width: 768px) { .hero { min-height: 90vh; } }
.hero-content { max-width: 700px; width: 100%; animation: fadeInUp .6s ease; }
.hero-badge {
    background: rgba(230,57,70,0.9); display: inline-block; padding: 4px 14px;
    border-radius: var(--radius); font-size: .75rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero p   { font-size: 1.2rem; margin-bottom: 28px; opacity: .9; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p   { font-size: 1rem; }
}
.hero .btn-outline { border-color: rgba(255,255,255,0.8); color: white; }
.hero .btn-outline:hover { background: var(--primary); border-color: var(--primary); color: white; }
.worktime-badge {
    display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    padding: 6px 14px; border-radius: var(--radius); font-size: .8rem; font-weight: 500;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Trust-bar ──────────────────────────────────────────────────────────── */
.trust-bar { padding: 24px 0; background: var(--secondary); }
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { text-align: center; color: white; }
.trust-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.trust-item span { font-size: .85rem; opacity: .8; }
@media (max-width: 600px) { .trust-items { gap: 24px; } .trust-item strong { font-size: 1.4rem; } }

/* ─── Блок основателя ────────────────────────────────────────────────────── */
.founder-block { background: var(--light-bg); border-radius: var(--radius); padding: 40px 32px; margin: 20px auto 0; box-shadow: var(--shadow); }
.founder-flex { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.founder-photo { flex: 0 0 220px; max-width: 220px; text-align: center; }
.founder-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15); border: 2px solid white; object-fit: cover; aspect-ratio: 1/1; }
.founder-photo-caption { margin-top: 8px; font-weight: 500; color: var(--primary); font-size: .8rem; }
.founder-inner { flex: 1; min-width: 240px; }
.founder-name  { font-size: 1.8rem; font-weight: 800; color: var(--secondary); margin-bottom: .25rem; }
.founder-title { font-size: .9rem; font-weight: 500; color: var(--primary); letter-spacing: .5px; margin-bottom: 1rem; display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.founder-text  { font-size: .95rem; line-height: 1.5; color: var(--gray-text); margin-top: 16px; }
.founder-text p { margin-bottom: .8rem; }
.founder-quote { margin-top: 20px; font-style: italic; border-left: 3px solid var(--primary); padding-left: 20px; color: #1e293b; font-weight: 500; }
@media (max-width: 600px) {
    .founder-block { padding: 24px 16px; }
    .founder-flex { gap: 20px; }
    .founder-photo { flex: 0 0 200px; max-width: 200px; margin: 0 auto; }
    .founder-inner { min-width: 100%; }
    .founder-name { font-size: 1.4rem; }
}

/* ─── Карточки услуг ─────────────────────────────────────────────────────── */
#services .services-wrapper { position: relative; margin-bottom: 1rem; }
#services .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
#services .service-card {
    position: relative; overflow: hidden; background-size: cover;
    background-position: center; background-repeat: no-repeat; background-color: #1e293b;
    box-shadow: var(--shadow); min-height: 260px; display: flex;
    align-items: flex-end; border-radius: var(--radius);
}
#services .service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%); z-index: 1;
}
#services .service-img { display: none; }
#services .service-text { position: relative; z-index: 2; color: white; padding: 24px 20px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); width: 100%; }
#services .service-text h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }
#services .service-text p  { font-size: .85rem; line-height: 1.4; opacity: .9; }
@media (max-width: 768px) {
    #services .services-grid { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    #services .service-card  { flex: 0 0 auto; width: 260px; scroll-snap-align: start; min-height: 320px; }
    .scroll-arrow {
        position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
        background: var(--primary); color: white; width: 40px; height: 40px;
        border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
        cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.2); opacity: .9;
    }
    .services-wrapper:not(.has-scroll) .scroll-arrow { display: none; }
}

/* ─── Аккордеон прайса ───────────────────────────────────────────────────── */
.price-modern { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-category { border-bottom: 1px solid var(--border-light); }
.price-category:last-child { border-bottom: none; }
.price-category-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; cursor: pointer; background: white; transition: background .2s; }
.price-category-header:hover { background: #fafcff; }
.price-category-header.active { background: #fafcff; }
.category-title { display: flex; align-items: center; gap: 12px; }
.category-title i  { font-size: 1.3rem; color: var(--primary); width: 28px; }
.category-title h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin: 0; }
.category-toggle { font-size: 1rem; color: var(--gray-text); transition: transform .2s; }
.price-category-header.active .category-toggle { transform: rotate(180deg); }
/* Контент категории — скроллится внутри, не раздувает страницу */
.price-category-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.price-category-content.open { max-height: 50vh; overflow-y: auto; }
.price-category-content.open::-webkit-scrollbar { width: 5px; }
.price-category-content.open::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.price-category-content.open::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.price-category-content.open { scrollbar-width: thin; scrollbar-color: var(--primary) #eef2f6; }
.price-list { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border-light); font-size: .9rem; }
.service-name  { color: var(--gray-text); font-weight: 500; flex: 1; padding-right: 16px; }
.service-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
@media (max-width: 768px) {
    .price-category-content.open { max-height: 40vh; }
    .price-category-header { padding: 12px 16px; }
    .category-title i  { font-size: 1.1rem; width: 24px; }
    .category-title h3 { font-size: 1rem; }
    .price-list { padding: 0 16px 16px; gap: 6px; }
    .price-row  { flex-direction: column; align-items: flex-start; gap: 4px; }
    .service-name  { padding-right: 0; font-size: .85rem; }
    .service-price { align-self: flex-end; font-size: .85rem; }
}

/* ─── Запчасти (тёмная секция) ───────────────────────────────────────────── */
.dark-parts-section {
    background: linear-gradient(135deg, #0a0f1a 0%, #141b2b 100%);
    position: relative; overflow: hidden;
}
.dark-parts-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('/img/zapchasti.webp'); background-size: cover;
    background-position: center 30%; opacity: .07; pointer-events: none;
}
.dark-parts-section .section-subtitle.light { color: rgba(255,255,255,0.7); border-left-color: var(--primary); }
.dark-parts-section .parts-header h2 { color: white; }
.parts-slider { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.parts-card-modern {
    flex: 1; min-width: 260px; background: rgba(255,255,255,0.08); backdrop-filter: blur(2px);
    padding: 28px 20px; text-align: center; transition: transform .2s, background .2s;
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
}
.parts-card-modern:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.parts-card-modern .parts-icon { width: 60px; height: 60px; background: rgba(230,57,70,0.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.parts-card-modern .parts-icon i { font-size: 1.8rem; color: var(--primary); }
.parts-card-modern h3 { font-size: 1.2rem; margin-bottom: 12px; color: white; font-weight: 600; }
.parts-card-modern p  { color: rgba(255,255,255,0.7); line-height: 1.4; margin-bottom: 16px; font-size: .85rem; }
.parts-card-modern .parts-badge { background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: var(--radius); font-size: .7rem; font-weight: 500; color: rgba(255,255,255,0.9); margin: 4px; display: inline-block; }
.parts-cta { text-align: center; margin-top: 40px; }
@media (max-width: 768px) {
    .dark-parts-section { padding: 40px 0; }
    .parts-slider { gap: 12px; }
    .parts-card-modern { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; }
    .parts-card-modern .parts-icon { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
    .parts-card-modern .parts-icon i { font-size: 1.2rem; }
    .parts-card-modern .parts-card-text { flex: 1; }
    .parts-card-modern h3 { font-size: .95rem; margin-bottom: 4px; }
    .parts-card-modern p  { font-size: .75rem; margin-bottom: 8px; line-height: 1.3; }
    .parts-card-modern .parts-badge { font-size: .65rem; padding: 3px 8px; margin: 2px; }
    .parts-cta { margin-top: 24px; }
}

/* ─── Бренды (горизонтальная лента) ─────────────────────────────────────── */
.brands-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.brands-scroll::-webkit-scrollbar { height: 4px; }
.brands-scroll::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.brands-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.brand-item { flex: 0 0 auto; width: 100px; background: white; border-radius: var(--radius); padding: 12px 4px; text-align: center; transition: .2s; border: 1px solid var(--border-light); box-shadow: var(--shadow); }
.brand-item:hover { transform: translateY(-2px); border-color: var(--primary); }
.brand-logo { width: 50px; height: 50px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.brand-logo img { max-width: 40px; max-height: 40px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: .75rem; color: var(--secondary); }

/* ─── Сертификаты ────────────────────────────────────────────────────────── */
.certificates-wrapper { position: relative; margin-bottom: 1rem; }
.cert-slider { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 15px; }
.cert-slider::-webkit-scrollbar { height: 6px; }
.cert-slider::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.cert-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.cert-item { flex: 0 0 auto; width: 260px; scroll-snap-align: start; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform .2s, box-shadow .2s; text-align: center; }
.cert-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.cert-item img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; background: #f1f5f9; display: block; }
.cert-item p { padding: 12px; font-weight: 600; font-size: .85rem; color: var(--secondary); margin: 0; border-top: 1px solid var(--border-light); }
.cert-scroll-arrow {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: white; width: 44px; height: 44px;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: all .2s;
}
.cert-scroll-arrow:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }
.cert-scroll-arrow i { font-size: 1.3rem; }
.certificates-wrapper:not(.has-scroll) .cert-scroll-arrow { display: none; }
@media (max-width: 768px) { .cert-item { width: 240px; } .cert-scroll-arrow { width: 40px; height: 40px; right: 6px; } .cert-item p { font-size: .8rem; padding: 10px; } }

/* ─── Отзывы ─────────────────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.review-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform .2s; }
.review-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.review-header { display: flex; gap: 16px; margin-bottom: 16px; align-items: center; }
.review-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: #f1f5f9; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name  { font-weight: 700; font-size: 1rem; color: var(--secondary); margin-bottom: 4px; }
.review-date  { font-size: .7rem; color: var(--gray-text); margin-bottom: 6px; }
.review-stars { color: #f5b042; font-size: .75rem; display: flex; gap: 2px; }
.review-text  { font-size: .9rem; line-height: 1.5; color: var(--gray-text); margin: 12px 0; }
.review-car   { font-size: .75rem; font-weight: 500; color: var(--primary); border-top: 1px solid var(--border-light); padding-top: 12px; margin-top: 8px; }
@media (max-width: 768px) { .review-card { padding: 18px; } .review-avatar { width: 44px; height: 44px; } .review-name { font-size: .9rem; } .review-text { font-size: .85rem; } }

/* ─── Площадки отзывов ───────────────────────────────────────────────────── */
.reviews-platforms { margin-top: 48px; text-align: center; }
.platforms-title { font-size: 1.3rem; font-weight: 600; color: var(--secondary); margin-bottom: 24px; }
.platforms-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.platform-card {
    display: flex; align-items: center; gap: 16px; background: white;
    border-radius: var(--radius); padding: 12px 20px; text-decoration: none;
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    transition: transform .2s, box-shadow .2s; flex: 0 0 auto; min-width: 240px;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary); }
.platform-icon { width: 44px; height: 44px; background: #f8fafc; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.platform-icon img { width: 32px; height: 32px; object-fit: contain; }
.platform-info { flex: 1; text-align: left; }
.platform-name { font-weight: 700; font-size: .95rem; color: var(--secondary); margin-bottom: 4px; }
.platform-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-rating .stars { color: #f5b042; font-size: .8rem; letter-spacing: 2px; }
.platform-rating .rating-value { font-weight: 800; font-size: .9rem; color: var(--secondary); }
.platform-reviews { font-size: .7rem; color: var(--gray-text); margin-top: 2px; }
.platform-arrow { color: var(--primary); font-size: .9rem; transition: transform .2s; }
.platform-card:hover .platform-arrow { transform: translateX(4px); }
.platforms-note { margin-top: 28px; font-size: .85rem; color: var(--gray-text); background: var(--light-bg); display: inline-block; padding: 8px 20px; border-radius: 30px; }
@media (max-width: 768px) {
    .platforms-grid { flex-direction: column; align-items: stretch; gap: 12px; }
    .platform-card { min-width: auto; padding: 10px 16px; }
    .platform-icon { width: 38px; height: 38px; }
    .platform-icon img { width: 26px; height: 26px; }
}

/* ─── Контактный блок ────────────────────────────────────────────────────── */
.contact-premium-modern {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap;
    gap: 32px; justify-content: space-between; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.contact-left { flex: 1; min-width: 240px; }
.contact-left h2 { color: white; font-size: 1.8rem; margin-bottom: .8rem; }
.contact-tagline { color: #cbd5e1; font-size: .9rem; margin-bottom: 1.5rem; line-height: 1.4; }
.contact-details-modern { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-item i { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary); }
.contact-item strong { color: white; font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: #cbd5e1; text-decoration: none; font-size: .85rem; transition: .2s; }
.contact-item a:hover { color: var(--primary); }
.contact-item div { display: flex; flex-direction: column; }
.contact-right { flex: 0 0 auto; min-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.contact-cta { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.cta-phone { margin-bottom: 16px; }
.call-btn-large-modern { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); padding: 10px 24px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; color: white; transition: .2s; }
.call-btn-large-modern:hover { background: white; color: var(--primary); transform: translateY(-2px); }
.cta-messengers { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.messenger-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius); color: white; text-decoration: none; font-weight: 500; font-size: .8rem; transition: .2s; }
.messenger-btn.whatsapp { background: #25D366; }
.messenger-btn.telegram { background: #26A5E4; }
.messenger-btn:hover { opacity: .85; }
.contact-badge { text-align: center; padding: 10px; background: rgba(255,255,255,0.05); border-radius: var(--radius); color: #cbd5e1; font-size: .75rem; font-weight: 500; }
@media (max-width: 768px) { .contact-premium-modern { padding: 28px 20px; flex-direction: column; } }

/* ─── Карта ──────────────────────────────────────────────────────────────── */
.map-fullwidth { position: relative; width: 100%; margin-top: 32px; }
.map-container { width: 100%; height: 400px; overflow: hidden; background: #f0f2f5; }
.map-container iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-info-card {
    position: absolute; bottom: 16px; left: 16px; z-index: 10;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
    border-radius: var(--radius); padding: 12px 20px; display: flex;
    gap: 12px; align-items: center; box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.3); max-width: 300px;
}
.map-info-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; flex-shrink: 0; }
.map-info-content h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.map-info-content p  { font-size: .75rem; color: var(--gray-text); margin-bottom: 4px; }
.map-info-hours { font-size: .7rem; color: #4b5563; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.map-route-btn { display: inline-flex; align-items: center; gap: 6px; background: #ffdd54; color: black; padding: 6px 12px; border-radius: var(--radius); font-size: .7rem; font-weight: 500; text-decoration: none; transition: .2s; }
.map-route-btn:hover { background: var(--primary); transform: translateX(2px); }
@media (max-width: 768px) { .map-info-card { bottom: 12px; left: 12px; right: 12px; flex-wrap: wrap; gap: 8px; } }

/* ─── Футер ──────────────────────────────────────────────────────────────── */
footer { background: var(--secondary); color: white; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(221px, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; background: linear-gradient(135deg, #fff 30%, var(--primary) 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.footer-description { color: rgba(255,255,255,0.5); font-size: .85rem; line-height: 1.5; }
.footer-col h4 { color: white; font-weight: 600; margin-bottom: 16px; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-list li { color: rgba(255,255,255,0.6); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.footer-list li a { color: rgba(255,255,255,0.6); text-decoration: none; transition: .2s; display: flex; align-items: center; gap: 8px; }
.footer-list li a:hover { color: var(--primary); }
.footer-list li i { color: var(--primary); width: 14px; }
.footer-messengers { display: flex; flex-direction: column; gap: 8px; }
.messenger-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: .85rem; transition: .2s; }
.messenger-link i { color: var(--primary); }
.messenger-link:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; color: rgba(255,255,255,0.35); font-size: .8rem; }
@media (max-width: 768px) { .footer-grid { /*grid-template-columns: 1fr 1fr;*/ gap: 24px; } }

/* ─── Мобильное нижнее меню (как у VK) ──────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom); /* iPhone с чёлкой */
}
.mobile-bottom-nav-inner {
    display: flex;
    height: 58px;
}
.mobile-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray-text);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: none;
    background: none;
    cursor: pointer;
    transition: color .15s, background .15s;
    padding: 6px 4px;
    line-height: 1.2;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-btn i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .15s;
}
.mobile-bottom-btn:active { background: #f1f5f9; }
.mobile-bottom-btn:active i { transform: scale(.9); }

/* Цвета иконок */
.mobile-bottom-btn.btn-map     { color: #334155; }
.mobile-bottom-btn.btn-route   { color: #334155; }
.mobile-bottom-btn.btn-call    { color: var(--primary); }
.mobile-bottom-btn.btn-msg     { color: #334155; }

/* Разделитель между кнопками */
.mobile-bottom-btn + .mobile-bottom-btn {
    border-left: 1px solid var(--border-light);
}

/* Popup выбора мессенджера */
.mobile-msg-popup {
    position: fixed;
    bottom: calc(58px + env(safe-area-inset-bottom));
    left: 0; right: 0;
    z-index: 1099;
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
    border-radius: 16px 16px 0 0;
    padding: 12px 0 8px;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-msg-popup.open { transform: translateY(0); }
.mobile-msg-popup-title {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mobile-msg-popup-btns {
    display: flex;
    gap: 0;
}
.mobile-msg-popup-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-msg-popup-btn i { font-size: 1.8rem; }
.mobile-msg-popup-btn.wa  { color: #25D366; }
.mobile-msg-popup-btn.tg  { color: #26A5E4; }
.mobile-msg-popup-btn:active { background: #f1f5f9; }

/* Затемнение фона при открытом popup */
.mobile-msg-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 1098;
    background: rgba(0,0,0,0.25);
}
.mobile-msg-overlay.open { display: block; }

@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-msg-popup,
    .mobile-msg-overlay { display: none !important; }
    .floating-button, .floating-menu { display: flex; }
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .floating-button, .floating-menu, .go-top { display: none !important; }
}

/* ─── Плавающая кнопка (только десктоп) ─────────────────────────────────── */
.floating-button {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 12px rgba(230,57,70,0.4); transition: .2s;
}
.floating-button:hover { transform: scale(1.08); }
.floating-icon { color: white; font-size: 1.3rem; transition: opacity .15s; }
.floating-menu {
    position: fixed; bottom: 92px; right: 24px; z-index: 998;
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s;
}
.floating-menu.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.floating-menu-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    border-radius: 40px; color: white; text-decoration: none;
    font-weight: 600; font-size: .85rem; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    white-space: nowrap; transition: .2s;
}
.floating-menu-item.call     { background: var(--primary); }
.floating-menu-item.whatsapp { background: #25D366; }
.floating-menu-item.telegram { background: #26A5E4; }
.floating-menu-item:hover { transform: translateX(-4px); }

/* ─── Кнопка «наверх» ────────────────────────────────────────────────────── */
.go-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 997;
    width: 44px; height: 44px; background: var(--secondary); color: white;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; pointer-events: none; transition: .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.go-top.show { opacity: 1; pointer-events: all; }
.go-top:hover { background: var(--primary); transform: translateY(-2px); }

/* ─── Анимация появления элементов ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─── Яндекс-рейтинг ─────────────────────────────────────────────────────── */
.yandex-rating-link { text-decoration: none; display: block; max-width: 360px; margin: 30px auto 0; transition: .2s; }
.yandex-rating { background: white; border-radius: var(--radius); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.yandex-rating-link:hover .yandex-rating { box-shadow: 0 6px 14px rgba(0,0,0,0.1); border-color: var(--primary); }
.rating-left { display: flex; align-items: center; gap: 8px; }
.yandex-logo { width: 24px; height: 24px; object-fit: contain; }
.rating-label { font-weight: 600; color: var(--secondary); font-size: .85rem; }
.rating-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stars { display: flex; gap: 2px; color: #ffc107; font-size: .75rem; }
.rating-value { font-weight: 800; font-size: 1.1rem; color: var(--secondary); }
.reviews-count { color: var(--gray-text); font-size: .7rem; font-weight: 500; }




/* ─── Ленивая карта ──────────────────────────────────────────────────── */
.map-static {
    width: 100%; height: 100%; cursor: pointer;
    position: relative; overflow: hidden;
    background: #e8eff5;
    display: flex; align-items: center; justify-content: center;
}
.map-static img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .3s ease;
	object-position: top;
}

@media (max-width: 768px) {
    .map-static img {

        object-position: left -100px top;
    }
}

.map-static:hover img { transform: scale(1.02); }
.map-click-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.28); transition: background .2s;
}
.map-static:hover .map-click-overlay { background: rgba(0,0,0,.38); }
.map-click-btn {
    background: white; color: #0f172a;
    padding: 12px 24px; border-radius: var(--radius);
    font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; gap: 9px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
    pointer-events: none;
}
.map-static:hover .map-click-btn {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.map-click-btn i { color: var(--primary); font-size: 1.1rem; }

/* ─── Мобильное нижнее меню ──────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none; /* показывается только на мобильных */
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1002;
    background: white; border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav-inner {
    display: flex; height: 56px;
}
.mobile-bottom-btn {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-size: .6rem; font-weight: 600;
    color: #64748b; background: none; border: none; cursor: pointer;
    transition: color .2s, background .2s;
    font-family: inherit; padding: 0;
}
.mobile-bottom-btn i { font-size: 1.1rem; display: block; }
.mobile-bottom-btn:hover  { color: var(--primary); background: #fef2f2; }
.mobile-bottom-btn:active { background: #fde8ea; }
.btn-call { color: white !important; background: var(--primary) !important; }
.btn-call:hover { background: var(--primary-dark) !important; }

/* Popup мессенджеров */
.mobile-msg-overlay {
    display: none; position: fixed; inset: 0; z-index: 1010;
    background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.mobile-msg-overlay.open { display: block; }
.mobile-msg-popup {
    position: fixed; bottom: -200px; left: 0; right: 0; z-index: 1011;
    background: white; border-radius: 16px 16px 0 0;
    padding: 20px; transition: bottom .3s cubic-bezier(.25,.46,.45,.94);
    box-shadow: 0 -8px 24px rgba(0,0,0,.15);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}
.mobile-msg-popup.open { bottom: 0; }
.mobile-msg-popup-title {
    text-align: center; font-weight: 700; font-size: .95rem;
    color: #0f172a; margin-bottom: 16px;
}
.mobile-msg-popup-btns { display: flex; gap: 12px; }
.mobile-msg-popup-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px; border-radius: var(--radius);
    color: white; font-weight: 700; font-size: .92rem;
    text-decoration: none; transition: opacity .2s;
}
.mobile-msg-popup-btn:hover { opacity: .88; }
/*.mobile-msg-popup-btn.wa { background: #25D366; }
.mobile-msg-popup-btn.tg { background: #26A5E4; }*/

/* Отступ для контента на мобильных (из-за нижней панели) */
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    /* body { padding-bottom: 56px; } */
    /* Плавающую кнопку скрываем — есть нижняя панель */
    .floating-button, .floating-menu { display: none !important; }
    /* Кнопку «наверх» поднимаем над нижней панелью */
    .go-top { bottom: 68px; }
}



/* ─── Nav overlay — затемнение фона при мобильном меню ──────────────────── */
.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .52);
    z-index: 999; /* ниже navbar:1000 и nav-links:1001, выше контента */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s ease;
}
.nav-overlay.active { display: block; opacity: 1; }

/* ─── Dropdown меню (десктоп, hover) ────────────────────────────────────── */
.has-dropdown { position: relative; }

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.dropdown-chevron {
    font-size: .62em;
    opacity: .65;
    transition: transform .25s ease;
    margin-left: 1px;
}
.has-dropdown:hover > .dropdown-trigger .dropdown-chevron { transform: rotate(180deg); }

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    padding-top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #eef2f6;
    min-width: 240px;
    padding: 6px;
    list-style: none;
    /* скрыто */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1002;
}
/* стрелочка вверх */
.nav-links .dropdown-menu::before {
    content: '';
    position: absolute; top: 11px; left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top: none;
    border-bottom-color: #eef2f6;
}
.nav-links .dropdown-menu::after {
    content: '';
    position: absolute; top: 13px; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: none;
    border-bottom-color: white;
}
.has-dropdown:hover .nav-links .dropdown-menu,
.nav-links .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.nav-links .dropdown-menu li { list-style: none; }
.nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #374151;
    font-size: .86rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-links .dropdown-menu a:hover { background: #fef2f2; color: var(--primary); }
.nav-links .dropdown-menu a i { color: var(--primary); width: 16px; text-align: center; flex-shrink: 0; }
.dropdown-all-link {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 4px;
}
.dropdown-all-link a { color: var(--primary); font-weight: 600; }

/* ─── Мобильное меню: пункты как кнопки + dropdown-аккордеон ────────────── */
@media (max-width: 768px) {
    /* Иконки в пунктах — только мобильный */
    .nav-li-icon { display: inline-block; width: 18px; text-align: center; color: var(--primary); flex-shrink: 0; }

    /* Каждый пункт — кнопка */
    .nav-links > li:not(.mobile-menu-contacts-wrapper) > a,
    .nav-links > li.has-dropdown > .dropdown-trigger {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 13px 14px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1.5px solid #edf2f7;
        color: var(--secondary);
        font-size: .95rem;
        font-weight: 600;
        white-space: normal;
        transition: background .15s, border-color .15s, color .15s;
        width: 100%;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-links > li:not(.mobile-menu-contacts-wrapper) > a:active,
    .nav-links > li.has-dropdown > .dropdown-trigger:active {
        background: #fef2f2;
        border-color: var(--primary);
    }
    /* Chevron — прижимаем к правому краю */
    .dropdown-trigger .dropdown-chevron {
        margin-left: auto;
        font-size: .8em;
        opacity: .7;
    }

    /* Dropdown на мобильном — аккордеон */
    .nav-links .has-dropdown { position: static; }
    .nav-links .dropdown-menu {
        position: static;
        transform: none !important;
        left: auto; top: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 6px 0 2px 10px;
        min-width: unset;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transition: max-height .32s ease;
    }
    .nav-links .dropdown-menu::before,
    .nav-links .dropdown-menu::after { display: none; }

    .nav-links .has-dropdown.dropdown-open > .dropdown-menu {
        max-height: 440px;
        pointer-events: all;
    }
    .nav-links .has-dropdown.dropdown-open > .dropdown-trigger .dropdown-chevron {
        transform: rotate(180deg);
        opacity: 1;
    }
    .nav-links .dropdown-menu a {
        background: #f1f5f9;
        border: 1.5px solid #e8edf3;
        border-radius: 8px;
        margin-bottom: 5px;
        padding: 10px 12px;
        font-size: .875rem;
        color: #334155;
        font-weight: 500;
        white-space: normal;
    }
    .nav-links .dropdown-menu a:active { background: #fef2f2; color: var(--primary); }
    .dropdown-all-link { border-top: none; margin-top: 0; padding-top: 0; }
    .dropdown-all-link a { color: var(--primary); font-weight: 700; background: rgba(230,57,70,.07); border-color: rgba(230,57,70,.2); }
}

/* Иконки — на десктопе скрываем */
@media (min-width: 769px) {
    .nav-li-icon { display: none; }
}
