/* ===================================
   UMI MED - Medical Information System
   Color Palette: Fresh Ocean & Ice
   =================================== */

/* CSS Variables */
:root {
    --white: #FFFFFF;
    --soft-ice: #F4F7FA;
    --living-turquoise: #20C997;
    --trustworthy-blue: #1A2B48;
    --electric-blue: #007AFF;
    --text-gray: #6B7280;
    --light-gray: #E5E7EB;
    --shadow: rgba(26, 43, 72, 0.08);
    --shadow-hover: rgba(26, 43, 72, 0.12);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--trustworthy-blue);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--trustworthy-blue);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--living-turquoise);
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--trustworthy-blue);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--trustworthy-blue);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--living-turquoise);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--living-turquoise);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--living-turquoise);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.btn-primary:hover {
    background: #1aa880;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 201, 151, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--soft-ice) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--trustworthy-blue);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Features Preview
   =================================== */

.features-preview {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--trustworthy-blue);
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--soft-ice) 0%, var(--white) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 1rem auto 0;
    color: var(--text-gray);
}

/* ===================================
   Features List (vozmozhnosti.html)
   =================================== */

.features-list {
    padding: 4rem 0;
    background: var(--white);
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--soft-ice);
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-content h2 {
    margin-bottom: 1rem;
    color: var(--trustworthy-blue);
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.feature-visual {
    flex-shrink: 0;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--soft-ice);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .icon-box {
    background: var(--living-turquoise);
    transform: scale(1.05);
}

/* ===================================
   Case Study (resheniya.html)
   =================================== */

.case-study {
    padding: 4rem 0;
    background: var(--soft-ice);
}

.case-header {
    margin-bottom: 3rem;
}

.case-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.case-tag, .case-stats {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.case-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

.case-section {
    margin-bottom: 2.5rem;
}

.case-section h3 {
    margin-bottom: 1rem;
    color: var(--trustworthy-blue);
}

.problem-list {
    list-style: none;
    padding-left: 0;
}

.problem-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--soft-ice);
}

.problem-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-weight: bold;
}

.solution-stage {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--soft-ice);
    border-radius: 8px;
}

.solution-stage h4 {
    color: var(--trustworthy-blue);
    margin-bottom: 0.75rem;
}

.result-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-left: 4px solid var(--living-turquoise);
    border-radius: 4px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-card {
    background: var(--soft-ice);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--living-turquoise);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.case-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--soft-ice);
    border-radius: 12px;
    text-align: center;
}

.case-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--trustworthy-blue);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-quote cite {
    color: var(--text-gray);
    font-style: normal;
    font-weight: 600;
}

/* Clients Section */
.clients-section {
    padding: 4rem 0;
    background: var(--white);
}

.clients-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    text-align: center;
}

.logo-placeholder {
    background: var(--soft-ice);
    padding: 2rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: var(--living-turquoise);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   Content Sections
   =================================== */

.content-section {
    padding: 4rem 0;
    background: var(--white);
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block h2 {
    margin-bottom: 1.5rem;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.small-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--soft-ice);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.cms-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cms-feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.cms-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--living-turquoise);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.cms-feature h3 {
    margin-bottom: 0.75rem;
}

/* Integration Section */
.integration-section {
    padding: 4rem 0;
    background: var(--white);
}

.integration-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.integration-item {
    text-align: center;
    padding: 2rem;
}

.integration-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Design Section */
.design-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--soft-ice) 0%, var(--white) 100%);
}

.design-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing-section {
    padding: 4rem 0;
    background: var(--soft-ice);
}

.pricing-block {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.pricing-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.pricing-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--living-turquoise);
    font-weight: bold;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--soft-ice);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.pricing-card.featured {
    background: var(--white);
    border: 2px solid var(--living-turquoise);
    box-shadow: 0 8px 24px var(--shadow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--living-turquoise);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card-header h4 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--trustworthy-blue);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-card-features {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.pricing-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--living-turquoise);
}

/* Trial Section */
.trial-section {
    padding: 4rem 0;
    background: var(--white);
}

.trial-box {
    background: linear-gradient(135deg, var(--soft-ice) 0%, var(--white) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.trial-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trial-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trial-icon {
    width: 24px;
    height: 24px;
    background: var(--living-turquoise);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ===================================
   About Section
   =================================== */

.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.approaches-section {
    padding: 4rem 0;
    background: var(--soft-ice);
}

.approaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.approach-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.approach-card.featured {
    border: 2px solid var(--living-turquoise);
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.approach-icon {
    flex-shrink: 0;
}

.approach-features {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.approach-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.approach-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--living-turquoise);
    font-weight: bold;
}

/* Values Section */
.values-section {
    padding: 4rem 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--soft-ice);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateX(5px);
}

.contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-details p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    display: flex;
    align-items: flex-start;
}

.contact-form-box {
    background: var(--soft-ice);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
}

.contact-form-box h3 {
    margin-bottom: 0.5rem;
}

.contact-form-box > p {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--trustworthy-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--living-turquoise);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 1rem;
    text-align: center;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: var(--soft-ice);
}

.map-placeholder {
    background: var(--white);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.map-content {
    text-align: center;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--soft-ice) 0%, var(--white) 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--trustworthy-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--living-turquoise);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 12px var(--shadow);
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .approaches-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }

    .case-content {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.cms-feature,
.pricing-card,
.approach-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   Header & Navigation Base
   =================================== */

.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(26, 43, 72, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--trustworthy-blue);
    text-decoration: none;
    z-index: 1002; /* Поверх меню */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--trustworthy-blue);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Эффект подчеркивания при наведении */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--living-turquoise);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Активная страница (добавляется через JS) */
.nav-link.active {
    color: var(--living-turquoise);
    font-weight: 600;
}

/* ===================================
   Burger Button
   =================================== */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--trustworthy-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Анимация превращения в крестик */
.burger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Блокировка прокрутки при открытом меню */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===================================
   Mobile Navigation (<= 768px)
   =================================== */

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 250px;
        right: 0;
        bottom: 0;
        width: 100%;
       
        background: #FFFFFF !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0); /* Выезжает */
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
    }

    /* Анимация появления ссылок (лесенкой) */
    .nav-menu li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
}

/* ===================================
   Menu Overlay (Подложка)
   =================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    /* Более темный и плотный фон */
    background: rgba(26, 43, 72, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
}

/* Когда подложка активна - делаем полностью видимой */
.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Для мобильных - меню должно быть выше подложки */
@media (max-width: 768px) {
    .nav-menu {
        z-index: 1000;
    }

    /* Усиливаем подложку на мобильных */
    .menu-overlay.active {
        background: rgba(255, 255, 255, 1);
    }
}


