/* =========================================
   ГК МосПраво - Полный CSS (Финальная версия)
   ========================================= */

:root {
    --bg-main: #1B1B1B;
    --bg-header: #161616;
    --bg-card: #222222;
    --bg-input: #1E1E1E;
    --gold-1: #F4D467;
    --gold-2: #D4AF37;
    --gold-3: #A67C00;
    --gold-dark: #8B6914;
    --blue-1: #2A3E5C;
    --blue-2: #1B2A4A;
    --text-light: #F0F0F0;
    --text-muted: #B0B0B0;
    --border: #2E2E2E;
    --danger: #E74C3C;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: var(--bg-main);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--gold-1);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

a { color: var(--gold-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-1); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-2);
    color: var(--gold-2);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(145deg, #F4D467 0%, #D4AF37 50%, #A67C00 100%);
    color: #1B1B1B;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold {
    background: linear-gradient(145deg, #F4D467 0%, #D4AF37 50%, #A67C00 100%);
    color: #1B1B1B;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 0 rgba(0,0,0,0.3), 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -2px 0 rgba(0,0,0,0.2), 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #000;
}

.btn-red {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    box-shadow: none;
}

.btn-red:hover {
    background: var(--danger);
    color: #fff;
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ===== Шапка ===== */
.site-header {
    background: var(--bg-header);
    padding: 15px 0;
    border-bottom: 1px solid var(--gold-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.45));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-1);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* Бургер */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 30px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gold-2);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Навигация */
.main-nav ul { display: flex; gap: 22px; white-space: nowrap; }
.main-nav a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
    transition: width var(--transition);
}

.main-nav a:hover::after { width: 100%; }

/* Контакты в шапке */
.header-contacts {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    white-space: nowrap;
}

.phone-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--gold-1) !important;
    text-shadow: 0 2px 10px rgba(212,175,55,0.4);
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.phone-header:hover {
    color: var(--gold-1) !important;
    text-shadow: 0 4px 15px rgba(212,175,55,0.6);
    transform: scale(1.05);
}

.phone-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(212,175,55,0.3));
}

/* ===== Hero ===== */
.hero {
    background-image: url('/images/hero-bg-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid var(--blue-1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold-1);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ===== Секции ===== */
.services-section, .advantages, .reviews, .cta, .calculator, .contacts, .service-page { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 15px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

/* ===== Карточки услуг ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(42,62,92,0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before { left: 100%; }
.service-card:hover {
    border-color: var(--gold-2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.1);
    transform: translateY(-5px);
}

.service-card img {
    width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.service-card h3 { margin-bottom: 10px; color: var(--gold-1); }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { color: var(--gold-2); }
.service-card p { color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; }
.service-card-price {
    display: block;
    color: var(--gold-1);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.service-card .btn { align-self: flex-start; position: relative; z-index: 2; }

/* ===== Преимущества ===== */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.adv-item {
    background: linear-gradient(145deg, #222222 0%, #1B1B1B 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--gold-2);
    transition: all 0.3s ease;
    position: relative;
}

.adv-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4); transform: translateX(5px); }
.adv-item h3, .adv-item h4 { color: var(--gold-1); margin-bottom: 12px; font-size: 1.2rem; }
.adv-item p { color: var(--text-muted); line-height: 1.8; }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(145deg, #161616 0%, #1B1B1B 100%);
    text-align: center;
    border-top: 1px solid var(--gold-dark);
    border-bottom: 1px solid var(--gold-dark);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

.cta h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--gold-1); }
.cta p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-muted); }

/* ===== Калькулятор ===== */
.calculator form {
    max-width: 600px; margin: 30px auto; background: var(--bg-card); padding: 40px; border-radius: 12px;
    border: 1px solid rgba(42,62,92,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group { margin-bottom: 25px; }
.form-group label {
    display: block; margin-bottom: 8px; color: var(--gold-1); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.5px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px; background: var(--bg-input); border: 1px solid rgba(42,62,92,0.5);
    color: var(--text-light); border-radius: 6px; font-size: 1rem; transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--gold-2); background: #222222; box-shadow: 0 0 10px rgba(212,175,55,0.2); outline: none;
}

.result {
    background: linear-gradient(145deg, #222222 0%, #1B1B1B 100%);
    padding: 30px; border-radius: 12px; margin-top: 30px; border: 1px solid var(--gold-2); text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.result strong { color: var(--gold-1); font-size: 2rem; }

/* ===== Контакты ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info, .contact-form {
    background: var(--bg-card); padding: 35px; border-radius: 12px; border: 1px solid rgba(42,62,92,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-info p { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-muted); }
.contact-info strong { color: var(--gold-1); }
.contact-form form { display: flex; flex-direction: column; gap: 15px; }

/* Строки контактов */
.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-label {
    width: 180px;
    flex-shrink: 0;
    color: var(--gold-1);
    font-weight: 500;
}

.contact-row a,
.contact-row span:not(.contact-label) {
    color: #c0c0c0 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-row a:hover {
    color: var(--gold-1);
}

/* ===== Страница услуги ===== */
.service-detail {
    max-width: 800px; margin: 0 auto; background: var(--bg-card); padding: 50px; border-radius: 16px;
    border: 1px solid rgba(42,62,92,0.5); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.service-main-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; }
.service-content { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; }
.service-content p { margin-bottom: 15px; }
.service-price {
    font-size: 1.6rem; color: var(--gold-1); font-weight: 700; margin-bottom: 30px;
    border-top: 1px solid rgba(212,175,55,0.3); padding-top: 20px;
}

/* Блок "Часто ищут" */
.seo-keywords-block {
    margin-top: 40px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
}

.seo-keywords-block h3 {
    color: var(--gold-1);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.seo-keywords-block p { line-height: 2; }

.keyword-tag {
    display: inline-block;
    margin: 5px 8px 5px 0;
    padding: 6px 12px;
    background: #222;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e0e0e0;
    transition: all 0.3s;
}

.keyword-tag:hover {
    background: var(--gold-2);
    color: #1B1B1B;
    border-color: var(--gold-2);
    cursor: default;
}

/* ===== Страница отзывов ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid rgba(42,62,92,0.5);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--gold-2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.review-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid var(--gold-2);
}

.review-card h3 {
    color: var(--gold-1);
    margin-bottom: 10px;
}

.review-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Модальные окна ===== */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px); z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}

.modal-content {
    background: var(--bg-header); max-width: 500px; width: 100%; padding: 40px; border-radius: 16px;
    border: 1px solid var(--gold-2); position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-content .close { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text-muted); transition: color 0.3s; }
.modal-content .close:hover { color: var(--gold-1); }
.modal-content h3 { margin-bottom: 20px; text-align: center; color: var(--gold-1); }
.modal-content form { display: flex; flex-direction: column; gap: 15px; }
.modal-content input {
    width: 100%; padding: 14px; background: var(--bg-input); border: 1px solid rgba(42,62,92,0.5);
    color: var(--text-light); border-radius: 6px; font-size: 1rem;
}

.modal-content input:focus { border-color: var(--gold-2); outline: none; }

/* ===== Футер ===== */
.site-footer {
    background: var(--bg-header);
    padding: 60px 0 30px;
    border-top: 1px solid var(--gold-dark);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

/* Сетка футера — align-items: start, чтобы колонки не растягивались */
.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

/* Левая колонка — карта фиксированной высоты */
.footer-map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gold-dark);
    position: relative;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(0.9) hue-rotate(180deg) contrast(0.9) brightness(0.8);
}

/* Центральная колонка — растягивается по содержимому */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    /* Убрано height: 300px — блок растягивается по содержимому */
    position: relative;
    z-index: 2;
}

.footer-logo-link {
    display: block;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(212,175,55,0.5));
}

.footer-requisites {
    width: 100%;
    max-width: 320px;
}

.footer-requisites .btn {
    width: 100%;
}

/* Блок реквизитов — раскрывается вниз, сдвигая нижние элементы */
.requisites-block {
    margin-top: 15px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid var(--gold-2);
    border-radius: 8px;
    text-align: left;
    animation: slideDown 0.3s ease;
    /* Убеждаемся, что блок не выходит за пределы контейнера */
    position: relative;
    z-index: 1;
}

.requisites-block h4 {
    color: var(--gold-1);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.requisites-block p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #c0c0c0;
    word-break: break-word;
}

.requisites-block p strong {
    color: var(--gold-1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Правая колонка */
.footer-right .footer-company p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-right .footer-contacts {
    margin-top: 20px;
}

.footer-right .footer-contacts h4 {
    margin-bottom: 12px;
    color: var(--gold-1);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav h4 {
    margin-bottom: 15px;
    color: var(--gold-1);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #c0c0c0; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-1); }

/* Нижний блок — всегда под остальными */
.footer-bottom {
    border-top: 1px solid rgba(212,175,55,0.2);
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    clear: both;
}

/* ===== Админка ===== */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; background: var(--bg-main); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--gold-dark); }
.admin-header h1 { color: var(--gold-1); font-size: 1.8rem; }
.tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tabs a {
    padding: 10px 20px; background: var(--bg-card); border: 1px solid rgba(42,62,92,0.5); border-radius: 6px;
    color: var(--text-light); font-size: 0.9rem; transition: all 0.3s ease;
}
.tabs a:hover { border-color: var(--gold-2); color: var(--gold-1); }
.tabs a.active {
    background: linear-gradient(145deg, #F4D467 0%, #D4AF37 50%, #A67C00 100%);
    color: #1B1B1B; border-color: transparent; box-shadow: 0 4px 10px rgba(212,175,55,0.3);
}
.success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(52,211,153,0.1);
    border-left: 4px solid #34d399;
    color: #34d399;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.list { display: grid; gap: 15px; }
.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(42,62,92,0.5);
    transition: all 0.3s;
    gap: 15px;
    flex-wrap: wrap;
}
.item:hover { border-color: var(--gold-2); }
.item-title { color: var(--text-light); font-weight: 500; flex: 1; min-width: 200px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.login-form {
    max-width: 420px; margin: 100px auto; background: var(--bg-card); padding: 50px; border-radius: 16px;
    border: 1px solid var(--gold-2); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.login-form h1 { text-align: center; margin-bottom: 30px; color: var(--gold-1); }
.login-form input {
    width: 100%; padding: 14px; margin-bottom: 20px; background: var(--bg-input);
    border: 1px solid rgba(42,62,92,0.5); color: var(--text-light); border-radius: 6px;
}
.login-form input:focus { border-color: var(--gold-2); outline: none; }

/* ===== Золотой чекбокс ===== */
.gold-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gold-1);
    user-select: none;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.gold-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gold-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 2px solid var(--gold-2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gold-checkbox:hover input ~ .checkmark {
    border-color: var(--gold-1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.gold-checkbox input:checked ~ .checkmark {
    background-color: var(--gold-2);
    border-color: var(--gold-2);
}

.gold-checkbox input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 5px;
    height: 11px;
    border: solid #121212;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ===== Мобильные стили ===== */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 70px; left: 0; width: 100%; background: var(--bg-header); padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5); transform: translateY(-150%); transition: transform 0.3s ease;
        max-height: calc(100vh - 70px); overflow-y: auto; z-index: 1050;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 15px; }
    .main-nav a { font-size: 1rem; text-transform: none; letter-spacing: 0.5px; }
    .main-nav a::after { display: none; }
    .header-contacts { display: none !important; }
}

@media (max-width: 992px) {
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-map { height: 250px; }
    .footer-center { order: -1; }
    .footer-requisites { max-width: 100%; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { background-image: url('/images/hero-bg-phone.png'); padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-detail { padding: 25px; }
    .cta h2 { font-size: 1.8rem; }
    .btn { padding: 10px 20px; font-size: 0.8rem; }
    .footer-map { height: 200px; }
    .footer-logo-img { max-width: 150px; }
    .requisites-block p { font-size: 0.8rem; }
    .contact-label { width: 120px; font-size: 0.9rem; }
    .contact-row { flex-direction: column; margin-bottom: 15px; }
    .contact-label { margin-bottom: 5px; }
    .reviews-grid { grid-template-columns: 1fr; }
}
/* ===== Выпадающее меню Услуги ===== */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Центрируем по родителю */
    background: var(--bg-header);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    width: max-content;
    min-width: 520px; /* Ширина под 2 колонки */
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 20px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-group > span {
    display: block;
    padding-bottom: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold-3);
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 8px;
}

.dropdown-group ul {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Маленький отступ между ссылками */
}

.dropdown-menu a {
    display: block;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s;
    line-height: 1.3;
    border-radius: 4px;
    white-space: normal; /* Разрешаем перенос длинных названий */
}

.dropdown-menu a:hover {
    background: rgba(212,175,55,0.1);
    color: var(--gold-1);
    padding-left: 15px; /* Эффект сдвига */
}

/* Убираем подчеркивание у родительского пункта */
.has-dropdown > a::after {
    display: none;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        min-width: 100%;
        width: 100%;
        display: none;
        grid-template-columns: 1fr; /* На мобильных в одну колонку */
    }
    
    .has-dropdown.open .dropdown-menu {
        display: grid;
    }
    
    .dropdown-group > span {
        margin-top: 10px;
    }
    
    .dropdown-menu a {
        padding: 8px 10px;
        background: rgba(255,255,255,0.03);
        margin-bottom: 2px;
    }
}