/* ============================================================
   Дача № 1 — Курортно-оздоровительный комплекс
   Modern 2026 Design System
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --color-primary: #2d5a3d;
    --color-primary-light: #3d7a52;
    --color-primary-dark: #1a3a2a;
    --color-accent: #c8a96e;
    --color-accent-light: #e0c78a;
    --color-gold: #c8a96e;

    --bg: #faf8f5;
    --bg-card: #ffffff;
    --bg-dark: #1a1a1a;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-light: #6b6b6b;
    --border: #e8e4dc;
    --border-light: #f0ece5;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --nav-height: 80px;
}

[data-theme="dark"] {
    --color-primary: #5cb878;
    --color-primary-light: #72cc8e;
    --color-primary-dark: #1a3a2a;
    --color-accent: #d4b87a;
    --color-accent-light: #e8d49e;

    --bg: #0f1114;
    --bg-card: #1a1d21;
    --text: #e6e1d8;
    --text-secondary: #b0aea8;
    --text-light: #9a9892;
    --border: #2d3035;
    --border-light: #22252a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.6);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition-slow), color var(--transition-slow);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 14px 28px; border-radius: var(--radius); cursor: pointer;
    border: 2px solid transparent; transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--white { background: #fff; color: var(--color-primary-dark); }
.btn--white:hover { background: #f0ece5; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(45,90,61,0.05); }
[data-theme="dark"] .btn--outline:hover { background: rgba(92,184,120,0.1); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--lg { padding: 18px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-sm); }

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; padding: 6px 14px;
    border-radius: 100px; background: var(--bg-card); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.badge--gold { color: #8b6914; border-color: #c8a96e; background: #fdf8f0; }
[data-theme="dark"] .badge--gold { color: #d4b87a; background: rgba(200,169,110,0.1); }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header--left { text-align: left; margin-bottom: 40px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-primary);
    background: rgba(45,90,61,0.08); padding: 6px 16px; border-radius: 100px;
    margin-bottom: 16px;
}
[data-theme="dark"] .section-tag { background: rgba(92,184,120,0.12); }
.section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; margin-bottom: 16px; }
.section-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250,248,245,0.9); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}
[data-theme="dark"] .nav { background: rgba(13,13,13,0.85); }
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.nav__logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--color-primary);
}
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color var(--transition); }
.nav__links a:hover { color: var(--color-primary); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__socials { display: flex; align-items: center; gap: 6px; }
.nav__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-secondary); transition: all 0.25s ease;
}
.nav__social:hover { color: var(--color-primary); background: var(--bg-secondary); transform: translateY(-1px); }
.nav__phone { font-weight: 600; font-size: 15px; }
.nav__call {
    display: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--color-primary); color: #fff;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav__call:hover { background: var(--color-primary-light); }
.theme-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.theme-toggle svg { transition: color var(--transition); }
/* Светлая тема: показываем солнце (золотое), луну прячем */
[data-theme="light"] .icon-sun { display: block; color: #e8a33d; }
[data-theme="light"] .icon-moon { display: none; }
/* Тёмная тема: показываем луну (светлую, видимую), солнце прячем */
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; color: #ffd76a; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; border-radius: 2px; }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; position: relative;
    padding: 120px 24px 80px; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, #1a3a2a 0%, #2d5a3d 30%, #3d6b4a 60%, #1a3a2a 100%);
}
.hero__gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 20%, rgba(200,169,110,0.15) 0%, transparent 60%);
}
.hero__pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='0.5'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 1; }
.hero__badge { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.hero__title {
    font-family: var(--font-display); font-size: clamp(40px, 6vw, 76px);
    font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.1;
    overflow-wrap: break-word; hyphens: auto;
}
.hero__title em { font-style: italic; color: var(--color-accent-light); }
.hero__subtitle { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 40px; line-height: 1.7; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero__cta .btn--outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero__cta .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero__features { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero__feature {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;
}
.hero__scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0; }
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about__card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: all var(--transition);
}
.about__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.about__icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: rgba(45,90,61,0.08); border-radius: var(--radius); color: var(--color-primary);
    margin-bottom: 20px;
}
[data-theme="dark"] .about__icon { background: rgba(92,184,120,0.15); }
.about__card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.about__card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 0 0 120px; }
.services__filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border);
    background: var(--bg-card); font-family: var(--font-body); font-size: 14px;
    font-weight: 500; color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; transition: all var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.service-card__category {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--color-primary); margin-bottom: 12px;
}
.service-card__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.service-card__meta { display: flex; gap: 12px; margin-bottom: 14px; }
.service-card__price { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.service-card__duration { font-size: 14px; color: var(--text-light); align-self: center; }
.service-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.service-card__features { display: flex; flex-wrap: wrap; gap: 6px; }
.service-card__feature {
    font-size: 12px; padding: 4px 10px; border-radius: 100px;
    background: rgba(45,90,61,0.06); color: var(--color-primary);
}
[data-theme="dark"] .service-card__feature { background: rgba(92,184,120,0.12); }
.service-card.hidden { display: none; }

/* ============================================================
   BANNER
   ============================================================ */
.banner {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2d5a3d 50%, var(--color-primary-light) 100%);
    padding: 100px 0;
}
.banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.banner__title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.banner__text { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 500px; }
.banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   NEWS & EVENTS
   ============================================================ */
.news-section { padding: 0 0 100px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.news-card__image {
    width: 100%; height: 200px; object-fit: cover; background: var(--border-light);
}
.news-card__body { padding: 24px; }
.news-card__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--text-light); }
.news-card__type {
    padding: 3px 10px; border-radius: 100px; font-weight: 600; font-size: 11px;
}
.news-card__type--news { background: rgba(45,90,61,0.1); color: var(--color-primary); }
.news-card__type--event { background: rgba(200,169,110,0.15); color: #8b6914; }
[data-theme="dark"] .news-card__type--event { color: #d4b87a; }
.news-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.news-card__text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.news-empty { text-align: center; color: var(--text-light); padding: 40px; grid-column: 1 / -1; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 120px 0 60px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item {
    border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative;
    aspect-ratio: 4/3; background: var(--border-light);
}
.gallery__item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0; transition: opacity var(--transition);
}
.gallery__item:hover::after { opacity: 1; }

/* Фото не загрузилось — показываем заглушку вместо скрытия карточки */
.gallery__item.img-missing::before {
    content: '📷';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; opacity: 0.45;
}
.gallery__more { text-align: center; margin-top: 40px; }

/* ============================================================
   CLIPS (клипы и видео)
   ============================================================ */
.clips { padding: 100px 0; background: var(--bg-secondary); }
.clips__links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.clips__btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px;
    background: var(--bg-primary); border: 1px solid var(--border-light);
    color: var(--text-primary); font-weight: 600; font-size: 15px;
    transition: all 0.25s ease; box-shadow: var(--shadow);
}
.clips__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.clips__btn svg { color: var(--color-primary); flex-shrink: 0; }
.clips__btn--ig:hover { border-color: #cc2366; }
.clips__btn--ig:hover svg { color: #cc2366; }

@media (max-width: 768px) {
    .clips { padding: 64px 0; }
    .clips__btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 0 0 100px; }
.features__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature-item {
    text-align: center; padding: 32px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-item__icon { font-size: 32px; margin-bottom: 12px; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 0 0 120px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contact__map { width: 100%; min-width: 0; }
.contact__items { display: flex; flex-direction: column; gap: 24px; }
.contact__item {
    display: flex; gap: 16px; padding: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all var(--transition);
}
.contact__item:hover { border-color: var(--color-primary); box-shadow: var(--shadow); }
.contact__item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.contact__item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-body); }
.contact__item p, .contact__item a { font-size: 15px; color: var(--text-secondary); }
.contact__item a:hover { color: var(--color-primary); }
.contact__meta { display: block; font-size: 13px; color: var(--text-light); margin-top: 4px; }
.contact__meta--open { color: var(--color-primary) !important; font-weight: 600; }
.contact__whatsapp { display: inline-block; margin-top: 6px; }
.map__container { border-radius: var(--radius-lg); overflow: hidden; height: 100%; width: 100%; min-height: 400px; position: relative; border: 1px solid var(--border); }
.map__container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { font-size: 14px; color: var(--text-secondary); margin-top: 16px; max-width: 300px; line-height: 1.7; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-primary); }
.footer__links h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 20px; font-family: var(--font-body); }
.footer__links a { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; transition: color var(--transition); }
.footer__links a:hover { color: var(--color-primary); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; }
.lightbox__close {
    position: absolute; top: 24px; right: 24px;
    font-size: 36px; color: #fff; background: none; border: none; cursor: pointer;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__prev, .lightbox__next {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 48px; color: #fff; background: none; border: none; cursor: pointer;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background var(--transition);
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.1); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px; font-weight: 600;
    background: rgba(0,0,0,0.5); padding: 6px 16px; border-radius: 100px;
    font-family: var(--font-body);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ACCESSIBILITY: focus ring + reduced motion
   ============================================================ */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .hero__scroll { animation: none; }
}

/* ============================================================
   AUTH MODAL (вход / регистрация / кабинет)
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.55); padding: 24px;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    max-width: 440px; width: 100%; position: relative;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal__close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 28px; line-height: 1;
    color: var(--text-secondary); cursor: pointer; padding: 4px;
}
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 26px; margin-bottom: 8px; }
.modal__subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.modal__switch { font-size: 14px; color: var(--text-secondary); text-align: center; margin-top: 18px; }
.modal__switch a { color: var(--color-primary); font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 16px; font-family: var(--font-body);
    transition: border-color var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--color-primary); }
.form-error { color: #e0533d; font-size: 13px; margin-bottom: 12px; min-height: 0; }
.btn--full { width: 100%; justify-content: center; }

.profile__offers { margin-bottom: 20px; }
.profile__section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.profile__section h3 { font-size: 15px; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
.profile__hint { font-size: 12px; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.form-success { color: var(--color-primary); font-size: 13px; margin-bottom: 12px; }
.profile__offers h3 { font-size: 15px; color: var(--text-secondary); font-weight: 600; margin-bottom: 12px; }
.profile__offers-list { display: flex; flex-direction: column; gap: 10px; }
.profile-offer {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 16px; background: var(--bg);
}
.profile-offer__title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.profile-offer__discount { color: var(--color-primary); font-weight: 700; font-size: 14px; margin-top: 2px; }
.profile-offer__text { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.profile-offer__date { font-size: 11px; color: var(--text-light); margin-top: 6px; }
.profile-offer__empty { font-size: 13px; color: var(--text-light); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
@media (max-width: 768px) {
    .nav__links, .nav__actions { display: none; }
    .nav__burger { display: flex; }
    .nav__call { display: flex; }
    .nav.mobile-open .nav__inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--nav-height);
        padding-bottom: 12px;
    }
    .nav.mobile-open .nav__links {
        display: flex; flex-direction: column;
        width: 100%; order: 3;
        padding: 16px 0 20px; gap: 14px;
    }
    .nav.mobile-open .nav__actions {
        display: flex; flex-wrap: wrap;
        width: 100%; order: 4;
        padding: 0 0 8px;
    }
    .hero__features { flex-direction: column; align-items: center; }

    /* Компактные вертикальные отступы секций на мобиле */
    .container { padding: 0 20px; }
    .about { padding: 64px 0; }
    .services { padding: 0 0 64px; }
    .news-section { padding: 0 0 64px; }
    .gallery { padding: 64px 0 40px; }
    .features { padding: 0 0 64px; }
    .contact { padding: 0 0 64px; }
    .banner { padding: 64px 0; }
    .footer { padding: 48px 0 24px; }
    .section-header { margin-bottom: 40px; }
    .section-header--left { margin-bottom: 28px; }
    .section-desc { font-size: 16px; }

    .about__grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .services__grid { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: 1fr 1fr; }
    .features__grid { grid-template-columns: 1fr 1fr 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .map__container { min-height: 320px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .banner__inner { flex-direction: column; text-align: center; }
    .banner__actions { justify-content: center; }
}

@media (max-width: 480px) {
    .about__grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .features__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero__title { font-size: clamp(26px, 8.5vw, 40px); }
    .section-title { font-size: 26px; }

    /* Кнопки hero — на всю ширину для удобного нажатия */
    .hero__cta { flex-direction: column; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
    .hero__cta .btn { width: 100%; justify-content: center; }
    .hero__badge { gap: 8px; }

    /* Фильтры услуг — компактнее, но с крупной зоной нажатия */
    .services__filters { gap: 6px; margin-bottom: 32px; }
    .filter-btn { padding: 10px 16px; font-size: 13px; }

    /* Модалка — компактнее на маленьких экранах */
    .modal { padding: 24px 20px; }
    .modal__title { font-size: 22px; }

    /* Lightbox — компактные кнопки */
    .lightbox__prev, .lightbox__next { width: 44px; height: 44px; font-size: 36px; }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
    .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 28px; }
    .lightbox__counter { bottom: 16px; }
}
