/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #C9A534;
    /* slightly muted */
    --light-gold: #E9DCBA;
    /* warmer beige-gold */
    --dark-gold: #9E7724;
    /* toned down */
    --beige-light: #F7F3EA;
    --beige-medium: #e7e0d5;
    --beige-dark: #dcd0bd;
    --white: #FFFFFF;
    --text-dark: #3E2723;
    --text-light: #6D4C41;
    --glass-bg: rgba(255, 255, 255, 0.20);
    --glass-bg-strong: rgba(255, 255, 255, 0.32);
    --glass-border: rgba(201, 165, 52, 0.32);
    --glass-ring: linear-gradient(140deg, #FFF8E8 0%, #D7B760 40%, #B08A34 85%);
    --shadow-light: rgba(175, 150, 80, 0.10);
    --shadow-medium: rgba(175, 150, 80, 0.25);
}

/* ===== Unified Pill Interactive Style (reusing nav aesthetic) ===== */
.ui-pill,
.glass-interactive,
.submit-btn,
.filter-btn,
.time-slot-label,
.service-option-card,
.profile-nav-link,
.glass-btn,
.glass-btn-small {
    --pill-radius: 12px;
    /* reduced from 34px (pill) */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 0.65rem 1.15rem;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-radius: var(--pill-radius);
    border: 1px solid rgba(201, 165, 52, 0.35);
    box-shadow: 0 2px 10px rgba(175, 150, 80, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: transform .38s cubic-bezier(.34, 1.56, .42, .92), box-shadow .35s ease, background .35s ease, color .3s ease;
    overflow: hidden;
}

/* Provide semantic variants if needed */
.ui-pill[data-variant="primary"] {
    background: rgba(255, 255, 255, 0.18);
}

.ui-pill[data-variant="danger"] {
    --pill-accent: #C75337;
}

/* Shared ring + sheen */
.ui-pill::before,
.glass-interactive::before,
.submit-btn::before,
.filter-btn::before,
.time-slot-label::before,
.service-option-card::before,
.profile-nav-link::before,
.glass-btn::before,
.glass-btn-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.80) 52%, rgba(255, 255, 255, 0.05) 58%, transparent 100%);
    left: -120%;
    width: 120%;
    transform: skewX(-25deg);
    transition: left .85s ease;
    pointer-events: none;
}

.ui-pill:hover::before,
.glass-interactive:hover::before,
.submit-btn:hover::before,
.filter-btn:hover::before,
.time-slot-label:hover::before,
.service-option-card:hover::before,
.profile-nav-link:hover::before,
.glass-btn:hover::before,
.glass-btn-small:hover::before {
    left: 110%;
}

/* Gradient ring layer */
.ui-pill::after,
.glass-interactive::after,
.submit-btn::after,
.filter-btn::after,
.time-slot-label::after,
.service-option-card::after,
.profile-nav-link::after,
.glass-btn::after,
.glass-btn-small::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--pill-radius);
    background: var(--glass-ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
}

.ui-pill:hover,
.glass-interactive:hover,
.submit-btn:hover,
.filter-btn:hover,
.time-slot-label:hover,
.service-option-card:hover,
.profile-nav-link:hover,
.glass-btn:hover,
.glass-btn-small:hover {
    transform: translateY(-3px) scale(1.045);
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 8px 22px rgba(175, 150, 80, 0.30), 0 0 0 3px rgba(201, 165, 52, 0.12), inset 0 1px 4px rgba(255, 255, 255, 0.55);
}

.ui-pill:hover::after,
.glass-interactive:hover::after,
.submit-btn:hover::after,
.filter-btn:hover::after,
.time-slot-label:hover::after,
.service-option-card:hover::after,
.profile-nav-link:hover::after,
.glass-btn:hover::after,
.glass-btn-small:hover::after {
    opacity: .85;
}

/* Active / selected states reuse earlier selectors */
.service-option input:checked+.service-option-card,
.time-slot input:checked+.time-slot-label,
.profile-nav-link.active {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 2px rgba(201, 165, 52, 0.42), 0 6px 20px rgba(175, 150, 80, 0.28), inset 0 1px 4px rgba(255, 255, 255, 0.58);
}

/* Remove previous animation pulse for calmer aesthetic */

/* (Removed legacy duplicate interactive styles block) */

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: radial-gradient(at 15% 20%, var(--beige-light), var(--beige-medium) 55%), linear-gradient(140deg, var(--beige-light), var(--beige-dark));
    min-height: 100vh;
}

/* Generic enhancement for any clickable block (divs, cards) */
[data-glass-click],
.is-clickable {
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    border: 1px solid rgba(201, 165, 52, 0.32);
    border-radius: 12px;
    /* unified subtle rounding */
    transition: transform .38s cubic-bezier(.34, 1.56, .42, .92), box-shadow .4s ease, background .35s ease;
    box-shadow: 0 2px 9px rgba(175, 150, 80, 0.14), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

[data-glass-click]::before,
.is-clickable::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -120%;
    width: 120%;
    transform: skewX(-25deg);
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.80) 52%, rgba(255, 255, 255, 0.05) 58%, transparent 100%);
    transition: left .9s ease;
    pointer-events: none;
}

[data-glass-click]::after,
.is-clickable::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--glass-ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
}

[data-glass-click]:hover,
.is-clickable:hover {
    transform: translateY(-4px) scale(1.03);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(175, 150, 80, 0.28), 0 0 0 3px rgba(201, 165, 52, 0.10), inset 0 1px 4px rgba(255, 255, 255, 0.55);
}

[data-glass-click]:hover::before,
.is-clickable:hover::before {
    left: 110%;
}

[data-glass-click]:hover::after,
.is-clickable:hover::after {
    opacity: .85;
}

/* Proper glass card styling (restored) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--primary-gold);
}

.glass-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.glass-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.glass-btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-gold);
    border-radius: 10px;
    /* small variant */
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.glass-btn-small:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.05);
}

/* Header Styles */
/* Enhanced translucent header with soft gradient + subtle highlight */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: radial-gradient(at 30% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 60%), linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(26px) saturate(1.2);
    -webkit-backdrop-filter: blur(26px) saturate(1.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 6px 24px rgba(212, 175, 55, 0.07);
    z-index: 1000;
    transition: background .4s ease, box-shadow .4s ease;
}

.navbar {
    padding: .75rem 0;
}

/* Allow logo flush left while constraining menu width visually */
.nav-container {
    max-width: 1380px;
    /* a bit wider for breathing space */
    margin: 0 auto;
    padding: 0 10px 0 14px;
    /* smaller left padding */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.4rem;
}

.logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 700;
}

.logo-link {
    color: var(--primary-gold);
    text-decoration: none;
    display: inline-block;
    padding: .25rem .2rem;
}

.logo-link:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

/* --- Navigation Glass Buttons --- */
/* Refined nav buttons: subtle glass interior + separate gradient border ring */
.nav-btn {
    /* ensure consistent vertical sizing */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.05rem;
    /* slightly tighter */
    line-height: 1.1;
    /* uniform height */
    min-height: 42px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: .4px;
    color: var(--text-dark);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    /* lighter interior */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    /* nav button */
    border: 1px solid rgba(201, 165, 52, 0.35);
    /* base subtle border */
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transition: transform .35s cubic-bezier(.34, 1.56, .42, .92), box-shadow .35s ease, color .3s ease, background .3s ease;
    overflow: hidden;
}

/* sheen effect */
/* sheen passes over text area only */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 100%);
    transform: skewX(-25deg);
    transition: left .75s ease;
    pointer-events: none;
}

.nav-btn:hover::before {
    left: 110%;
}

/* gradient border ring via ::after (appears on hover/active) */
.nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    /* nav button ring */
    padding: 1px;
    /* thin ring */
    background: var(--glass-ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    /* hidden by default */
    transition: opacity .5s ease;
    pointer-events: none;
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.045);
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25), 0 0 0 3px rgba(212, 175, 55, 0.10), inset 0 1px 4px rgba(255, 255, 255, 0.55);
}

.nav-btn:hover::after {
    opacity: .85;
}

/* animated subtle glow for gold border */
/* Removed continuous gold pulse animation for cleaner look */

/* active state */
.nav-btn.active {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.42), 0 5px 18px rgba(212, 175, 55, 0.25), inset 0 1px 4px rgba(255, 255, 255, 0.58);
}

/* Accessible keyboard focus */
.nav-btn:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
}

.nav-btn.active::after {
    opacity: 1;
}

/* reduce gap slightly since buttons are wider */
.nav-menu {
    gap: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--light-gold) 50%, var(--beige-medium) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D4AF37" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="%23D4AF37" opacity="0.1"/><circle cx="50" cy="10" r="0.8" fill="%23D4AF37" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow-medium);
    border: 3px solid var(--primary-gold);
}

/* Alternative pinned background approach: apply class .fixed-bg to .hero in markup (or via JS) */
/* (Removed fixed-bg background override that hid inline hero image) */

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow-medium);
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.specialist-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.specialist-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.specialist-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    min-width: 30px;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--light-gold) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-gold);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.service-price {
    margin-bottom: 1.5rem;
}

.service-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Preview */
.contact-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--beige-medium) 0%, var(--primary-gold) 100%);
    text-align: center;
}

.contact-preview .section-title {
    color: var(--white);
}

.contact-preview>.container>p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-gold);
    min-width: 40px;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-gold);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--beige-light);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--beige-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--beige-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Mobile side drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        /* более компактная ширина */
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        padding: 90px 1rem 2.4rem;
        /* учитываем высоту header */
        background: radial-gradient(at 30% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22) 60%),
            linear-gradient(170deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.08));
        backdrop-filter: blur(22px) saturate(1.15);
        -webkit-backdrop-filter: blur(22px) saturate(1.15);
        border-right: 1px solid rgba(201, 165, 52, 0.38);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 14px 48px -10px rgba(175, 150, 80, 0.38);
        transform: translateX(-110%);
        transition: transform .42s cubic-bezier(.34, 1.56, .42, .92);
        z-index: 1100;
        /* выше header */
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        touch-action: pan-y;
        /* не конфликтует с горизонтальным свайпом */
        user-select: none;
        -webkit-user-select: none;
    }

    .nav-menu::after {
        /* градиентная тень справа */
        content: '';
        position: absolute;
        top: 0;
        right: -28px;
        width: 28px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0));
        opacity: 0;
        transition: opacity .45s ease .08s;
    }

    .nav-menu.active::after {
        opacity: 1;
    }

    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(201, 165, 52, 0.45);
        border-radius: 3px;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0 .25rem;
    }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.85rem 1rem;
        /* увеличенный hit-area */
        font-size: .95rem;
        line-height: 1.15;
    }

    /* Stagger animation for items */
    .nav-menu li {
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity .4s ease, transform .45s cubic-bezier(.34, 1.56, .42, .92);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: .05s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: .10s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: .15s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: .20s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: .25s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: .30s;
    }

    .nav-menu.active li:nth-child(7) {
        transition-delay: .35s;
    }

    .nav-menu.active li:nth-child(8) {
        transition-delay: .40s;
    }

    .nav-menu.active li:nth-child(9) {
        transition-delay: .45s;
    }

    .nav-menu.active li:nth-child(10) {
        transition-delay: .50s;
    }

    /* overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s ease;
        z-index: 5;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Focus ring for accessibility inside mobile drawer */
    .nav-menu .nav-btn:focus-visible {
        outline: 2px solid var(--primary-gold);
        outline-offset: 3px;
        box-shadow: 0 0 0 3px rgba(201, 165, 52, 0.25);
    }

    /* Центрирование контента на узких экранах (до 768) */
    .about-content,
    .services-grid,
    .features-grid,
    .contact-info,
    .footer-content {
        text-align: center;
    }

    .about-description,
    .service-description,
    .contact-item,
    .feature-item,
    .service-card {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .feature-item,
    .contact-item {
        padding: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

/* Дополнительные супер-узкие брейкпоинты */
@media (max-width: 420px) {
    .nav-menu {
        width: 230px;
    }

    .nav-menu::after {
        right: -22px;
        width: 22px;
    }

    .hero {
        padding: 110px 0 70px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: .95rem;
    }

    .nav-btn {
        padding: 0.75rem .9rem;
        font-size: .9rem;
    }
}

@media (max-width: 380px) {
    .nav-menu {
        width: 220px;
    }

    .nav-menu::after {
        right: -18px;
        width: 18px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description {
        font-size: .9rem;
    }

    body {
        font-size: 14px;
    }

    .nav-btn {
        padding: 0.7rem .85rem;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card,
.hero-content>*,
.about-content>* {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for better UX */
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* === Overrides: Keep header always visible & glass === */
/* Neutralize legacy scroll-up / scroll-down classes (script logic removed) */
.header.scroll-up,
.header.scroll-down {
    transform: none !important;
    background: radial-gradient(at 30% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 60%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)) !important;
}

/* Explicit class added via JS to signal persistent glass header */
.header.always-visible {
    background: radial-gradient(at 30% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 60%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
}