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

:root {
    --green-1: rgba(34, 197, 94, 0.8);
    --green-2: rgba(16, 185, 129, 0.7);
    --green-3: rgba(5, 150, 105, 0.65);
    --green-4: rgba(74, 222, 128, 0.6);
    --green-5: rgba(134, 239, 172, 0.55);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-1), transparent);
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--green-2), transparent);
    top: 20%;
    right: -120px;
    animation: float 25s ease-in-out infinite 5s;
}

.blob-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--green-3), transparent);
    top: 50%;
    left: 5%;
    animation: float 30s ease-in-out infinite 10s;
}

.blob-4 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--green-4), transparent);
    bottom: 10%;
    right: 15%;
    animation: float 22s ease-in-out infinite 7s;
}

.blob-5 {
    width: 390px;
    height: 390px;
    background: radial-gradient(circle, var(--green-5), transparent);
    bottom: -100px;
    left: 25%;
    animation: float 28s ease-in-out infinite 3s;
}

.blob-6 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--green-1), transparent);
    top: 60%;
    right: 10%;
    animation: float 24s ease-in-out infinite 12s;
}

.blob-7 {
    width: 410px;
    height: 410px;
    background: radial-gradient(circle, var(--green-3), transparent);
    top: 40%;
    left: 40%;
    animation: float 26s ease-in-out infinite 8s;
}

.blob-8 {
    width: 370px;
    height: 370px;
    background: radial-gradient(circle, var(--green-2), transparent);
    bottom: 30%;
    left: 10%;
    animation: float 23s ease-in-out infinite 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 80px) scale(0.9);
    }
    75% {
        transform: translate(70px, 30px) scale(1.05);
    }
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

/* Typography */
.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: #333333;
    max-width: 800px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
    letter-spacing: -0.01em;
}

.lead-text {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 3rem 1.75rem;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 46vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 1.75rem 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.35);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-content:hover::before {
    opacity: 1;
}

.about {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Grid */
.services {
    max-width: 1400px;
    margin: 0 auto;
}

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

.service-card {
    padding: 2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.35);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.55);
}

a.service-card {
    color: inherit;
    text-decoration: none;
}

a.service-card:hover {
    color: inherit;
}

a.service-card:visited {
    color: inherit;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.4;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

/* News listing cards */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 2rem 2.25rem 2.25rem;
    gap: 1.125rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.news-card:hover {
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.11),
                inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.news-card .service-title {
    font-size: clamp(1.2rem, 2.1vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.news-card .service-title a,
.news-card .service-title a:visited {
    color: #0f172a;
    text-decoration: none;
}

.news-card .service-title a:hover {
    color: #15803d;
    text-decoration: none;
}

.news-card-excerpt {
    margin: 0;
    flex: 1 1 auto;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #4b5563;
}

.news-card-readmore {
    flex-shrink: 0;
    align-self: flex-end;
    margin-top: 0.25rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.news-card-readmore:visited {
    color: #ffffff;
}

.news-card-readmore:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.42);
    filter: brightness(1.02);
}

.news-card-readmore:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* OKVED Section */
.okved-section {
    max-width: 1400px;
    margin: 0 auto;
}

.okved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.okved-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.okved-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.okved-item.primary {
    background: rgba(34, 197, 94, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(34, 197, 94, 0.5);
}

.okved-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.4rem;
}

.okved-name {
    font-size: 0.85rem;
    color: #333333;
    line-height: 1.4;
}

.okved-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    border: 1px solid rgba(34, 197, 94, 0.6);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 0 auto;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: #333333;
    font-weight: 500;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    font-size: 1.125rem;
    color: #1a1a1a;
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* Contact Form */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    padding: 3rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-btn {
    padding: 1.25rem 3rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: transparent;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list li {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.footer-list a,
.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item {
    color: #333333;
}

.footer-list a:hover {
    color: #22c55e;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    color: #16a34a;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: #666666;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 2rem 1.25rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .hero {
        min-height: 50vh;
        padding: 5rem 1.25rem 3rem;
    }
    
    .main-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .lead-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .news-card {
        padding: 1.5rem 1.35rem 1.6rem;
        gap: 1rem;
    }

    .news-card-excerpt {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .okved-grid {
        grid-template-columns: 1fr;
    }
    
    .okved-code {
        font-size: 0.95rem;
    }
    
    .okved-name {
        font-size: 0.9rem;
    }
    
    .content-list li {
        font-size: 1rem;
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    }
    
    .content-list li::before {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .subsection-title {
        font-size: 1.125rem;
        margin: 1.5rem 0 1rem;
    }

    .stats-grid {
        gap: 2rem;
    }

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

    .blob {
        filter: blur(80px);
        opacity: 0.35;
    }

    .blob-1,
    .blob-2,
    .blob-3,
    .blob-4,
    .blob-5,
    .blob-6,
    .blob-7,
    .blob-8 {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.5rem 1rem;
    }
    
    .glass-card {
        padding: 1.25rem;
    }
    
    .hero {
        padding: 4.5rem 1rem 2.5rem;
    }
    
    .main-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .lead-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .submit-btn {
        width: 100%;
        align-self: stretch;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

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

    .news-card {
        padding: 1.35rem 1.2rem 1.5rem;
    }

    .news-card-readmore {
        align-self: flex-end;
    }
    
    .content-list li {
        font-size: 0.875rem;
        padding: 0.625rem 0.625rem 0.625rem 2rem;
    }
    
    .content-list li::before {
        left: 0.75rem;
        font-size: 0.875rem;
    }
    
    .subsection-title {
        font-size: 1rem;
        margin: 1.25rem 0 0.875rem;
    }
    
    .content-block {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    /* На маленьких экранах сохраняем зеленый */
    .blob {
        opacity: 0.32;
        width: 230px;
        height: 230px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #000000;
}

/* Content Lists */
.content-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.content-list li {
    font-size: 1.125rem;
    color: #1a1a1a;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-list li::before {
    content: '●';
    position: absolute;
    left: 1.25rem;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Subsection Title */
.subsection-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
}

/* Content Block */
.content-block {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid rgba(34, 197, 94, 0.6);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}

.content-block p {
    margin: 0;
    line-height: 1.7;
}

/* Navigation Menu */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo-image {
    height: 56px;
    width: auto;
    display: block;
}

.nav-logo:hover {
    color: #16a34a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Скрыто на десктопе: шапка мобильного выезжающего меню */
.nav-menu-header {
    display: none;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-icon {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.8rem;
}

.nav-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.nav-item > a:hover {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.05);
}

.nav-item.active > a {
    color: #16a34a;
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep right-side top-level dropdowns inside viewport */
.nav-menu > .nav-item:last-child > .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding-left: 2rem;
}

/* Nested Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a::after {
    content: '‹';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.dropdown-submenu > a {
    padding-left: 2.4rem;
    padding-right: 1.5rem;
}

.dropdown-submenu .dropdown-menu {
    right: 100%;
    left: auto;
    top: 0;
    margin-top: 0;
    margin-right: 0.5rem;
    transform: translateX(8px);
}

.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 1280px) {
    .nav-item > a {
        padding: 0.9rem 1rem;
        font-size: 0.96rem;
    }

    .dropdown-menu {
        min-width: 250px;
    }
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
    padding: 0.5rem;
}

/* Adjust sections to account for fixed nav */
section:first-of-type {
    padding-top: 8rem;
}

@media (max-width: 968px) {
    body.nav-open {
        overflow: hidden;
    }

    /* При полноэкранном меню затемнение не нужно — панель закрывает контент */
    body.nav-open::before {
        display: none;
    }

    .main-nav {
        padding: 0.7rem 1rem;
        z-index: 1000;
    }

    .nav-container {
        min-height: 56px;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
    }

    .nav-logo {
        grid-column: 2;
        justify-self: center;
    }

    .nav-logo-image {
        height: 40px;
    }

    .nav-toggle {
        grid-column: 3;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.75);
        font-size: 1.55rem;
        line-height: 1;
        transition: all 0.25s ease;
    }

    .nav-toggle:hover,
    .nav-toggle.active {
        background: rgba(34, 197, 94, 0.14);
        border-color: rgba(34, 197, 94, 0.35);
        color: #0f7a43;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Сброс центрирования с десктопа — иначе меню сдвигается на 50% ширины */
        transform: none;
        background: #f8faf9;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 0 1.25rem;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        border-top: 1px solid rgba(34, 197, 94, 0.15);
        z-index: 1002;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        width: 100%;
        list-style: none;
        padding: 0.85rem 1rem;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .nav-menu-title {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
    }

    .nav-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        background: #f8faf9;
        color: #111827;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .nav-menu-close:hover,
    .nav-menu-close:focus-visible {
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(34, 197, 94, 0.35);
        color: #0f7a43;
        outline: none;
    }

    .nav-menu-close-icon {
        font-size: 1.75rem;
        line-height: 1;
        font-weight: 300;
        margin-top: -2px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        width: 100%;
        padding: 0.95rem 1.2rem;
        font-size: 1.02rem;
        font-weight: 600;
        color: #111827;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-item.has-dropdown > a {
        padding-right: 2.4rem;
        position: relative;
    }

    .nav-item.has-dropdown > a::after {
        content: '▾';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.95rem;
        color: #374151;
        opacity: 0.85;
    }

    .nav-item.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(34, 197, 94, 0.2);
        background: #ffffff;
        margin: 0.35rem 0.65rem 0.85rem;
        display: none;
        border-radius: 12px;
        padding: 0.35rem 0;
    }

    .nav-item.active > .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.75rem 0.95rem;
        color: #1f2937;
    }

    .dropdown-menu a:hover {
        padding-left: 0.95rem;
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        margin: 0.3rem 0.4rem;
        background: #f0fdf4;
        border-radius: 10px;
        border: 1px solid rgba(34, 197, 94, 0.25);
        display: none;
    }

    .dropdown-submenu.has-dropdown > a::after {
        content: '▾';
        left: auto;
        right: 0.95rem;
        transform: translateY(-50%);
        color: #374151;
        opacity: 0.85;
    }

    .dropdown-submenu.has-dropdown > a {
        padding-left: 0.95rem;
        padding-right: 2rem;
    }

    .dropdown-submenu.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .dropdown-submenu.active > .dropdown-menu {
        display: block;
    }

    .nav-item.active > a,
    .dropdown-submenu.active > a {
        color: #0f7a43;
        background: rgba(34, 197, 94, 0.08);
    }
}

