/* ============================================================
   АвтоБлеск ДМД — styles.css
   ============================================================ */

:root {
    --primary: #0a1020;
    --primary-light: #1a3a5c;
    --primary-dark: #051829;
    --accent: #2ea3f2;
    --accent-light: #48cae4;
    --accent-dark: #0077b6;
    --accent-2: #0d8fe0;
    --gold: #ffd700;
    --text-light: #e0e7ff;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --border: rgba(0, 180, 216, 0.2);
    --bg-2: #0d1526;
    --card: #121c2f;
}

* { scroll-behavior: smooth; }

body {
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: #fff; }
a { text-decoration: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    background: rgba(var(--bs-emphasis-color-rgb), 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-light) !important;
    letter-spacing: 1px;
}
.navbar-brand i { color: var(--gold); margin-right: 8px; }
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-link:hover { width: 80%; }
.nav-link:hover { color: #fff !important; }
.nav-link::focus { color: #ffffff; }
.btn-nav {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}
.btn-nav-phone {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-nav-phone:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?w=1920&q=80') center/cover no-repeat;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(97deg, rgba(5,24,41,0.88) 0%, rgba(10,37,64,0.82) 40%, rgba(15,23,42,0.65) 100%);
    z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-content { max-width: 1111px; }
.hero-badges { margin-left: auto !important; margin-right: auto; flex-wrap: wrap; justify-content: center; }
.hero-content span { font-weight: bold; }
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.7;
    font-weight: 300;
}
.hero-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-badge {
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(6px);
}
.hero-badge i { color: var(--gold); }
.btn_cta {
    display: inline-flex;
    background: linear-gradient(65deg, #f51f33, #812eb5f7);
    padding: 1.5rem 3.5rem;
    margin-bottom: 1rem;
    height: 36px;
    border-radius: 10px;
    font-weight: 600;
    align-items: center;
    box-shadow: 0 8px 20px -8px var(--border);
    color: white;
    transition: all 0.3s;
}
.btn_cta:hover { transform: translateY(-3px); color: #ccc; transition: all 0.3s; }
.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.5);
    color: white;
}
.btn-hero.btn-wa { background: #25d366; color: #fff; border: none; }
.btn-hero.btn-wa:hover { background: #1eb855; color: #fff; transform: translateY(-3px); }

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; color: #fff; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 0.5rem; }
.section-title h2 span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title h4 { font-weight: 700; margin-bottom: 0rem; }
.section-title h4 span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== SERVICES ===== */
.services-section { padding: 50px 0; background: var(--bg-dark); position: relative; }
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.flip-card-front {
    background: var(--color-bg);
    align-items: center;
    text-align: center;
    color: #fff;
}
.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 8px 8px 0 0;
}
.flip-card-back { transform: rotateY(180deg); overflow-y: auto; }
.flip-card-back::-webkit-scrollbar { width: 4px; }
.flip-card-back::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.3); }
.service-icon-main { font-size: 3rem; color: var(--color-accent); margin-bottom: 1.5rem; }
.service-title-main { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--color-text); }
.service-price-main { font-size: 1.4rem; font-weight: 700; color: var(--color-accent); }
.service-list-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #fff;
}
.service-list li:last-child { border-bottom: none; }
.flip-hint {
    position: absolute;
    bottom: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}
.promo_overlay {
    background-image: url('https://experiments.autobleskdmd.ru/update/images/111.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 500px; 
    }
    .promo_overlay p {
        color: #fff;
    }

    /* Создаем слой затемнения */
    .promo_overlay::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: linear-gradient(180deg, #081f30ba, #0a1222a8, rgb(1 27 46 / 77%)) 75%; 
    z-index: 0;
    }
.promo-card {
    background: linear-gradient(160deg, var(--card), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.6rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: .3s;
}
.promo-card:hover { box-shadow: 0 20px 50px rgba(0, 180, 216, 0.15); border-color: var(--accent); }
.promo-badge {
    display: inline-flex;
    background: linear-gradient(65deg, #f51f33, #812eb5f7);
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
    height: 36px;
    border-radius: 10px;
    font-weight: 600;
    align-items: center;
    box-shadow: 0 8px 20px -8px var(--border);
}
.promo-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.promo-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.promo-old-price { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; }
.promo-new-price { font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.promo-timer { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.timer-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    min-width: 55px;
}
.timer-box .num { font-size: 1.2rem; font-weight: 700; color: var(--accent-light); display: block; }
.timer-box .label { font-size: 0.7rem; color: var(--text-muted); }

/* ===== PORTFOLIO / BEFORE-AFTER ===== */
.portfolio-section {
    content: '';
    background: url(data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(0,180,216,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(0,180,216,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(0,180,216,0.06)"/><circle cx="60" cy="60" r="2" fill="rgba(0,180,216,0.05)"/></svg>);
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}
.before-after {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    cursor: col-resize;
    border: 1px solid var(--color-border);
    user-select: none;
}
.before-after img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.before-after .after-image { clip-path: inset(0 50% 0 0); }
.slider-handle {
    position: absolute;
    top: 0; left: 50%;
    width: 4px;
    height: 100%;
    background: #aaa5ff52;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.slider-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: col-resize;
}
.before-after-labels {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 5;
    pointer-events: none;
}
.before-after-labels span {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

/* ===== REVIEWS / FAQ / PROMO ===== */
.reviews-section { /* gradient removed */ }
.promo-section { background: var(--bg-dark); padding: 50px 0; }
.faq-section { background: linear-gradient(180deg, transparent, rgba(46, 163, 242, .04), transparent); }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer { padding: 0 1.5rem 1.2rem; max-height: 300px; }
.faq-icon { transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ===== FORMS ===== */
.form-select-custom, .form-control-custom {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-dark);
    color: var(--text-light);
}
.form-select-custom:focus, .form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    background: var(--bg-dark);
    color: var(--text-light);
}
.form-select-custom option { background: var(--primary); color: var(--text-light); }
.service-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.service-checkbox:hover { border-color: var(--accent); background: rgba(0, 180, 216, 0.05); }
.service-checkbox input { width: 20px; height: 20px; margin-right: 1rem; accent-color: var(--accent); }
.service-checkbox label { margin: 0; cursor: pointer; flex: 1; font-weight: 500; color: var(--text-light); }
.service-checkbox .price-tag { color: var(--accent-light); font-weight: 600; font-size: 0.9rem; }
.calc-total {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(0, 180, 216, 0.05));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.calc-total h4 { margin: 0; font-weight: 600; }
.calc-total .total-price { font-size: 2rem; font-weight: 800; color: var(--accent-light); }

/* ===== BOOKING ===== */
.booking-section { background: var(--bg-dark); }
.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
}
.booking-card h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.booking-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.booking-info { display: flex; flex-direction: column; gap: 1.5rem; }
.booking-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.booking-info-item i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}
.booking-info-item h5 { color: var(--text-muted); font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.booking-info-item p { color: #fff; font-size: 1rem; margin: 0; font-weight: 500; }
.booking-info-item a { color: #fff; font-size: 1rem; margin: 0; }
.btn-booking {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s;
}
.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
    color: white;
}
.proezd { margin-top: 2rem; }

/* ===== FOOTER ===== */
.footer { background: #070c18; border-top: 1px solid var(--border); }
.footer a { margin-bottom: 1.2rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: rgb(96 165 250 / 1); margin-bottom: 1rem; }
.footer-brand h4 { color: #ffffff; }
.footer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .09em;
}
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 0.75; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links i { color: rgb(96 165 250 / 1); }
.footer-links a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== UTILS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.back-to-top {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4); }
.yandexplace_footer { padding-top: 1.5rem; }
.yandexotzv { display: flex; justify-content: center; align-items: center; }
.logo {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border: 3px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-weight: 700;
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.25rem;
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
.brand { font-size: 1.5rem; line-height: 15px; }
.brand span { color: rgb(96 165 250 / 1); }
.maps { border-radius: 0.5rem; overflow: hidden; }
.vizitka { display: flex; color: #fff; font-weight: 800; margin-bottom: 1.2rem; }
.vizitka .brand span { color: rgb(96 165 250 / 1); }
.vizitka_footer { margin-bottom: 1.2rem; }

.modal-content-custom { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #ffffff; }
.modal-header { border-bottom: 0px; }
.modal-footer { border-top: 0px; }

/* МОДАЛЬНЫЕ ОКНА */
/* ============================================================
   АвтоБлеск ДМД — modals.css
   Стили модальных окон (дополнение к styles.css)
   Подключать ПОСЛЕ styles.css
   ============================================================ */

/* ===== ОБЩИЕ СТИЛИ МОДАЛОК ===== */
.modal-content {
    background: linear-gradient(160deg, var(--card), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text-light);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}
.modal-title .accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Кнопка закрытия — светлая на тёмном */
.modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.6;
}
.modal .btn-close:hover { opacity: 1; }

/* ===== ФОРМЫ ВНУТРИ МОДАЛОК ===== */
.modal .form-control,
.modal .form-select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.modal .form-control:focus,
.modal .form-select:focus {
    background: var(--bg-dark);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}
.modal .form-control::placeholder { color: var(--text-muted); }
.modal .form-select option {
    background: var(--primary);
    color: var(--text-light);
}

.modal .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.modal .form-check-input {
    background-color: var(--bg-dark);
    border-color: var(--border);
}
.modal .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.modal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    border-color: var(--accent);
}
.modal .form-check-label { color: var(--text-muted); }

/* Кнопки */
.btn-gold,
.btn-modal-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.85rem 1.6rem;
    transition: all 0.3s;
    box-shadow: 0 8px 26px -10px rgba(0, 180, 216, 0.6);
}
.btn-gold:hover,
.btn-modal-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -8px rgba(0, 180, 216, 0.7);
}

.btn-outline-gold,
.btn-modal-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent-light);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.85rem 1.6rem;
    transition: all 0.3s;
}
.btn-outline-gold:hover,
.btn-modal-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   1. ПРОСТОЕ ОКНО — ОБРАТНЫЙ ЗВОНОК
   ============================================================ */
.modal-callback .modal-dialog { max-width: 460px; }

.modal-callback .modal-body { text-align: center; }

.callback-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.12);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--accent);
    margin: 0 auto 1rem;
    box-shadow: 0 0 30px rgba(46, 163, 242, 0.15);
}

.modal-callback .modal-body form {
    text-align: left;
    margin-top: 1.25rem;
}

/* ============================================================
   2. ПОЛНОЭКРАННОЕ ОКНО — МЕНЮ
   ============================================================ */
.modal-fullscreen-menu .modal-content {
    background:
        radial-gradient(circle at 20% 10%, rgba(46, 163, 242, 0.15) 0%, transparent 45%),
        linear-gradient(160deg, var(--primary-dark), var(--bg-dark));
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.modal-fullscreen-menu .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.modal-fullscreen-menu .modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-light);
}
.modal-fullscreen-menu .modal-title .accent {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    background: none;
}

.fullscreen-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fullscreen-nav .nav-link {
    color: var(--text-light);
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 800;
    padding: 0.9rem 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}
.fullscreen-nav .nav-link::after { display: none; } /* убираем подчёркивание из base .nav-link */
.fullscreen-nav .nav-link .num {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    min-width: 32px;
    letter-spacing: 0.05em;
}
.fullscreen-nav .nav-link:hover {
    color: var(--accent-light);
    padding-left: 0.75rem;
}

.fullscreen-contact {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
}

.fullscreen-contact .label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}
.fullscreen-contact .value {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}
.fullscreen-contact .value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.fullscreen-contact .value a:hover { color: var(--accent-light); }

.fullscreen-contact .social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 180, 216, 0.08);
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.3s;
}
.fullscreen-contact .social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   3. КРУПНОЕ ОКНО — ОПИСАНИЕ УСЛУГИ
   ============================================================ */
.modal-service .modal-dialog { max-width: 880px; }

.modal-service .modal-content { padding: 0; overflow: hidden; }

.service-header-img {
    height: 200px;
    background:
        linear-gradient(160deg, rgba(5, 24, 41, 0.4), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at 70% 30%, var(--primary-light) 0%, var(--primary-dark) 70%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid var(--border);
    color: var(--accent-light);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}
.service-badge i { color: var(--gold); }

.modal-service .modal-title { font-size: 1.7rem; }

.service-price-box {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(0, 180, 216, 0.05));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    height: 100%;
}
.service-price-box .price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.1;
}
.service-price-box .price-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-list li {
    padding: 0.65rem 0 0.65rem 1.9rem;
    position: relative;
    color: #c8d7e9;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
    content: '\F26E'; /* bi-check-circle */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.65rem;
    color: var(--accent);
    font-size: 1rem;
}

.service-info-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #c8d7e9;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}
.service-info-row i {
    color: var(--accent);
    font-size: 1.1rem;
    min-width: 18px;
}

.modal-service .modal-footer {
    background: rgba(0, 0, 0, 0.15);
}

.modal-service .text-warning { color: var(--accent-light) !important; }

/* Статус отправки формы */
.form-status .alert {
    border-radius: 10px;
    font-size: 0.85rem;
}
.form-status .alert-success {
    background: rgba(61, 220, 132, 0.12);
    border: 1px solid rgba(61, 220, 132, 0.35);
    color: #9ff5c4;
}
.form-status .alert-danger {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ffb3aa;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 767px) {
    .fullscreen-contact {
        border-left: none;
        padding-left: 0;
        margin-top: 1.5rem;
        border-top: 1px solid var(--border);
        padding-top: 1.5rem;
    }
    .modal-service .modal-dialog {
        margin: 0.5rem;
    }
    .service-header-img {
        height: 160px;
        padding: 1rem;
    }
    .modal-service .modal-title { font-size: 1.35rem; }
    .service-price-box .price { font-size: 1.5rem; }
    .callback-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}
/* МОДАЛЬНЫЕ ОКНА */



.video-grid .card { background: var(--bg-card) !important; border: 1px solid var(--border) !important; }
.video-grid video { border-radius: 8px 8px 0 0; }
.section1 { position: relative; }
.section1 strong { text-decoration: underline; color: #ffffff; font-size: 1rem; letter-spacing: 1.2px; }
.section1 p { font-size: .86rem; margin: 0; color: var(--text-muted); }
.section1::before {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    content: '';
    background-size: 200px 200px;
    animation: float 20s linear infinite;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(0,180,216,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(0,180,216,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(0,180,216,0.06)"/><circle cx="60" cy="60" r="2" fill="rgba(0,180,216,0.05)"/></svg>');
}
input.form-control-custom::placeholder { color: var(--text-muted); }
textarea.form-control-custom::placeholder { color: var(--text-muted); }
.tab-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

/* ===== GALLERY ===== */
.gallery-section { background: var(--bg-dark); }
.gallery-filter { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.gallery-filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    color: white;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 180, 216, 0.15); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item-wrapper { display: block; }
.gallery-item-wrapper.hidden { display: none; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 24, 41, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.lightbox-nav:hover { background: rgba(0, 180, 216, 0.5); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.lightbox-info {
    position: absolute;
    bottom: 4.5rem; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-info .lb-category {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lightbox-info .lb-title { font-size: 1rem; font-weight: 500; margin-left: 0.8rem; }

/* Show more */
.show-more-btn {
    display: inline-block;
    margin: 2rem auto 0;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-light);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}
.show-more-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}
.show-more-btn.hidden { display: none; }

/* Gallery custom */
.gallery-item .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}
.category-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background-color: var(--accent);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9) 0%, transparent 70%);
    padding: 2rem 1.2rem 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay p {
    position: relative;
    background-color: var(--accent);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.5s ease;
}
.gallery-overlay h5 {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    transition: transform 0.5s ease;
}
.gallery-overlay .zoom-icon {
    position: absolute;
    top: -2rem; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}
.bi-zoom-in::before { content: "\f62c"; }
.gallery-item p { display: none; }
.gallery-item:hover p { display: block; transition: transform 0.5s ease; }

/* ===== FOOTER SOCIAL LINK ===== */
.footer-social-link a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0.5rem;
}
.footer-social-link i { font-size: 2.8rem; }

/* ===== BRANDS ===== */
.brands-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.brand-chip {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .55rem 2rem;
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: .02em;
}

/* ===== SERVICE CARD ===== */
.service-card {
    display: block;
    background: linear-gradient(180deg, var(--card), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: .3s;
    color: inherit;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 163, 242, .5);
    box-shadow: 0 26px 55px -28px #000;
}
.service-card .icon-box {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 163, 242, .22), rgba(46, 163, 242, .06));
    border: 1px solid rgba(46, 163, 242, .28);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-right: 1rem;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.service-card p { font-size: .88rem; margin-bottom: .9rem; }
.service-card .more { color: var(--accent); font-weight: 600; font-size: .87rem; }
.service-card .more i { transition: .25s; }
.service-card:hover .more i { transform: translateX(4px); }
.price-tag { color: var(--accent); font-weight: 700; font-size: 1.05rem; }

/* ===== PRICE TABLE ===== */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--txt); }
.price-table thead th {
    background: rgba(46, 163, 242, .12);
    color: #cfe6fb;
    font-weight: 600;
    font-size: .9rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.price-table tbody td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    color: #c8d7e9;
}
.price-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.price-table tbody td:nth-child(2) { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price-table tbody td:nth-child(3) { color: var(--muted); white-space: nowrap; }
.table-wrap {
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--card), var(--bg-2));
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 26px -10px var(--accent-glow);
    transition: .25s;
}

/* ===== STEPS ===== */
.step-card {
    background: linear-gradient(180deg, var(--card), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem 1.3rem;
    height: 100%;
    position: relative;
}
.step-card h4 { font-size: 1rem; margin: 1rem 0 .4rem; }
.step-card p { font-size: .86rem; margin: 0; color: var(--text-muted); }
.step-num {
    position: absolute;
    top: -14px; left: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.promo-price { color: var(--accent); font-weight: 800; font-size: 1.5rem; }

/* ===== ACCORDION ===== */
.accordion { --bs-accordion-bg: var(--bs-body-bg); }
.accordion-body { color: var(--accent-light); }
.accordion-item {
    background: linear-gradient(180deg, var(--card), var(--bg-2));
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.accordion-header { margin-bottom: 0; }
.accordion-item:first-of-type > .accordion-header .accordion-button {
    border-top-left-radius: var(--bs-accordion-inner-border-radius);
    border-top-right-radius: var(--bs-accordion-inner-border-radius);
}
.accordion-button:not(.collapsed) {
    color: var(--accent-light);
    background: rgba(46, 163, 242, .07);
}
.accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}
.header-phone { color: #fff; font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.city-select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--txt);
    border-radius: 10px;
    padding: .45rem .7rem;
    font-size: .85rem;
}
.city-select:focus { outline: none; border-color: var(--accent); }
.city-select option { background: #0d1526; color: #fff; }

.btn-wa {
    background: #25d366;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: .8rem 1.6rem;
    transition: .25s;
}
.btn-wa:hover { background: #1eb855; color: #fff; transform: translateY(-2px); }

/* ===== GUARANTEE ===== */
.guarantee-box {
    background: linear-gradient(135deg, rgba(61, 220, 132, .1), rgba(61, 220, 132, .02));
    border: 1px solid rgba(61, 220, 132, .3);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
}
.guarantee-box .g-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
}
.guarantee-box p { color: #c8d7e9; font-size: .9rem; margin: 0; }

/* ===== ICONS ===== */
.max-icon { background: url('/icons/max.svg') center/contain no-repeat; width: 45px; height: 45px; }
.max_color-icon { background: url('/icons/max_color.svg') center/contain no-repeat; width: 45px; height: 45px; }
.tg-icon { background: url('/icons/tg.svg') center/contain no-repeat; width: 45px; height: 45px; }
.wa-icon { background: url('/icons/wa.svg') center/contain no-repeat; width: 45px; height: 45px; }
.ig-icon { background: url('/icons/ig.svg') center/contain no-repeat; width: 45px; height: 45px; }
.vk-icon { background: url('/icons/vk.svg') center/contain no-repeat; width: 45px; height: 45px; }
.youtube-icon { background: url('/icons/youtube.svg') center/contain no-repeat; width: 45px; height: 45px; }

.rounded-circle { background: transparent; }
.btn_listing_start { font-size: 3rem; position: fixed; bottom: 0; left: 50%; transform: translate(-50%, -50%); }
.btn_listing_start a { color: #ffffff; }
.social_links i { width: 3rem; height: 3rem; display: flex; }
.ms-auto { margin-left: auto !important; margin-right: auto; }


.why_job {
    /* Включаем фиксированный фон (эффект параллакса) */
    background-image: url('https://experiments.autobleskdmd.ru/update/images/2.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 500px; 
    }
    .why_job p {
        color: #fff;
    }

    /* Создаем слой затемнения */
    .why_job::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #081f30ba, #0a1222a8, rgb(1 27 46 / 77%)) 75%;
    z-index: 0;
    }

.carousel-item {
    position: relative;  
     float: left; 
     width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out; 
}
.carousel-inner {
        box-shadow: 0 20px 50px rgba(0, 180, 216, 0.15);
    border-radius: 15px;
}
.flaers img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}



/* ===== MEDIA ===== */
@media (max-width: 991px) {
    .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero-description { font-size: 1rem; }
    .hero-badges { gap: 0.5rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
    .hero-stat h3 { font-size: 1.4rem; }
    .btn-hero { padding: 0.8rem 1.5rem; font-size: 0.9rem; width: 100%; margin-left: 0 !important; }
    .btn-hero-outline { margin-top: 0.8rem; }
    .hero-dots { bottom: 20px; }
    .hero-content { padding-top: 80px; }
    .flip-card { height: 280px; }
    .before-after { height: 250px; }
    .calc-card, .booking-card { padding: 1.5rem; }
    .navbar-collapse {
        background: rgba(10, 37, 64, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        border: 1px solid var(--border);
    }
    .gallery-filter { gap: 0.4rem; }
    .gallery-filter-btn { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.5rem; }
    .hero-description { font-size: 0.95rem; }
    .section-title h2 { font-size: 1.5rem; }
    .promo-card { padding: 1.5rem; }
    .promo-new-price { font-size: 1.6rem; }
    .footer { text-align: center; }
    .vizitka { justify-content: center; }
    .yandexotzv iframe { height: 500px !important; }
    .floating-contact { bottom: 10px; right: 10px; }
    .floating-contact a, .floating-contact button { width: 44px !important; height: 44px !important; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-close { width: 40px; height: 40px; font-size: 1.2rem; top: 1rem; right: 1rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-info .lb-title { font-size: 0.85rem; margin-left: 0.4rem; }
    .lightbox-info { padding: 0.4rem 1rem; bottom: 3.5rem; }
}
@media (max-width: 576px) {
    .hero-info-block { padding: 1rem; }
    .hero-info-block h4 { font-size: 1rem; }
    .hero-info-block p { font-size: 0.85rem; }
    .navbar-expand-lg .navbar-toggler { display: contents; }
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}