        /* Универсальные стили для всех ссылок */
        html body {
            padding: 0;
            margin: 0;
            max-width: 100vw;
        }
        a {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
        }

        a:link,
        a:visited,
        a:hover,
        a:active {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }
        
        html {
        scroll-behavior: smooth;
        }
        
        body > *:not(#contacts):not(footer) {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .content-section {
            scroll-margin-top: 80px;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --gray-900: #151d2b;
            --gray-800: #252f3f;
            --gray-700: #3f4b5d;
            --gray-300: #d1d5db;
            --yellow-400: #fbbf24;
            --yellow-500: #f59e0b;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--gray-900);
            color: var(--yellow-400);
            overflow-x: hidden;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: all 0.3s ease;
            padding: 1.25rem 0;
        }
        header.scrolled {
            background-color: rgba(37, 47, 63, 0.92);
            backdrop-filter: blur(10px);
            padding: 0.5rem 0;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            font-size: 1.75rem;
            font-weight: bold;
            letter-spacing: 0.05em;
        }
        .logo span:last-child { color: var(--yellow-400); }
        .logo span:first-child { color: var(--gray-300); }
        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }
        nav a {
            color: var(--gray-300);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 0.025em;
            transition: color 0.2s ease;
        }
        nav a:hover {
            color: var(--yellow-400);
        }
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--gray-300);
            font-size: 1.5rem;
            cursor: pointer;
            padding-right:10px;
        }
        .mobile-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: rgba(37, 47, 63, 0.92);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            /* Анимация */
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            transition: 
                transform 0.2s,
                opacity 0.3s ease,
                visibility 0.3s ease;
            z-index: 1001;
        }

        .mobile-menu.hidden {
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
        }
        .mobile-menu ul {
            flex-direction: column;
            gap: 1rem;
            padding: 0 1.5rem;
            margin: 0;
        }
        .mobile-menu a {
            margin-left:10px;
            color: var(--gray-300);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 0.025em;
            transition: color 0.2s ease;
            display: block;
            padding: 0.5rem 0px;
        }
        .mobile-menu a:hover {
            color: var(--yellow-400);
        }

        /* Content Sections — only content, no background */
        .content-section {
            position: relative;
            z-index: 2;
            padding: 4rem 0;
        }
        .content-section:first-of-type {
            padding-top: 6rem;
        }
        .content-section:last-of-type {
            padding-bottom: 6rem;
        }

        /* Spacer — полупрозрачный блок с фоновым <img> под ним */
        .spacer {
            position: relative;
            height: 30vh;
            background-color: rgba(0, 0, 0, 0.3); /* полупрозрачный "тонировочный" слой */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .spacer-bg-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;   /* центрирует по горизонтали */
            align-items: center;       /* центрирует по вертикали */
            overflow: hidden;
            z-index: -1;
        }

        .spacer-bg {
        width: 120%;      /* делаем шире — пропорции сохраняются */
        height: auto;     /* ← ключевое: сохраняем соотношение сторон! */
        flex-shrink: 0;   /* важно: иначе flex может сжать */
        filter: blur(2px);
        transform: scale(1.05);
        transition: filter 1s ease;
        /* НЕ задаём position — он внутри flex-контейнера */
        }

        .spacer:hover .spacer-bg {
            filter: blur(0);
            transition: filter 1s ease;
        }


        @media (min-width: 768px) {
            .spacer {
                height: 45vh;
            }
        }

        /* Hero */
        .hero {
            position: relative;
            z-index: 2;
            padding: 10vh 0;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
        }
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            filter: blur(3px);
            //transform: scale(1.05);
            z-index: -2;
        }
        
        .hero-content {
            max-width: 64rem;
            padding: 0 1.5rem;
            position: relative;
            z-index: 1;
        }
        .hero h1 {
            font-size: clamp(2rem, 6vw, 3rem);
            font-weight: bold;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        .hero h1 span {
            color: var(--yellow-400);
        }
        .hero p {
            font-size: clamp(1.1rem, 4vw, 1.5rem);
            margin-bottom: 2rem;
            color: var(--gray-300);
        }
        a.btn,
        a.btn:link,
        a.btn:visited,
        a.btn:hover,
        a.btn:active {
            background-color: var(--yellow-500);
            color: var(--gray-900);
            padding: 1rem 2rem;
            border-radius: 0.5rem;
            font-weight: bold;
            font-size: 1.125rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: background-color 0.3s ease;
        }
        /* Layout */
        .flex-container {
            display: flex;
            gap: 3rem;
            align-items: center;
        }
        .content-left,
        .content-right {
            flex: 1;
        }
        .image-container {
            background: rgba(37, 47, 63, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            padding: 1rem;
            transition: 0.5s ease;
        }
        .image-container:hover {
            background: rgba(151, 154, 158, 0.5);
        }
        .image-container img {
            width: 100%;
            height: 50vh;
            object-fit: cover;
            border-radius: 0.5rem;
        }
        h2 {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            color: var(--yellow-400);
        }
        p {
            font-size: 1.125rem;
            line-height: 1.6;
            color: var(--gray-300);
            margin-bottom: 2rem;
        }
        .features-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--gray-300);
        }
        .feature-item::before {
            content: '';
            width: 0.5rem;
            height: 0.5rem;
            background-color: var(--yellow-400);
            border-radius: 50%;
        }
        .features-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .feature {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--gray-300);
        }
        .feature i {
            color: var(--yellow-400);
            font-size: 1.5rem;
        }

        /* Contact */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            max-width: 48rem;
            margin: 0 auto;
        }
        .contact-card {
            background: rgba(37, 47, 63, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            padding: 2.5rem 1.5rem;
            text-align: center;
        }
        .contact-card i {
            color: var(--yellow-400);
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        .contact-card h3 {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--yellow-400);
        }
        .contact-card p {
            margin-bottom: 0;
            color: var(--gray-300);
        }

        /* Footer */
        footer {
            background-color: var(--gray-800);
            border-top: 1px solid var(--gray-700);
            padding: 2rem 0;
            position: relative;
            z-index: 2;
        }
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        .footer-contact {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        .footer-contact-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--gray-300);
        }
        .footer-contact-item i {
            font-size: 0.875rem;
        }
        .footer-bottom {
            border-top: 1px solid var(--gray-700);
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            text-align: center;
            color: #9ca3af;
            font-size: 0.875rem;
        }

        /* Responsive */
        @media (min-width: 768px) {
            .mobile-menu-btn { display: none; }
            //.mobile-menu { display: none !important; }
            .flex-container { flex-direction: row; }
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            .contact-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            .footer-contact { flex-direction: row; gap: 2rem; }
        }
        @media (max-width: 767px) {
            .mobile-menu-btn { display: block; }
            .header-content nav { display: none; }
            .flex-container {
                flex-direction: column;
            }
            /* На мобилках: сначала текст, потом картинка */
            .text-block { order: 1; }
            .image-block { order: 2; margin-top: 1.5rem; }
            .content-left,
            .content-right {
                width: 100%;
            }
            .image-container img {
                height: 40vh;
            }
        }

        /* Fix horizontal overflow in iOS Safari */
        @supports (-webkit-touch-callout: none) {
            @media (pointer: coarse) and (hover: none) {
                .spacer-bg {
                    width: 100% !important;
                    height: auto !important;
                    transform: scale(1) !important;
                }
            }
        }
    /* --- Контакты: телефон с мессенджерами --- */
.contact-card--phone .phone-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.messenger-icon {
    width: auto;
    height: 2.5rem;
    display: block;
    margin-top: -0.4rem;
    transition: transform 0.2s ease;
}

.messenger-link:hover .messenger-icon {
    transform: scale(1.15);
}

.phone-icon {
    color: var(--yellow-400);
    font-size: 2rem;
}

.phone-number {
    color: var(--gray-300);
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.phone-number:hover {
    color: var(--yellow-400);
}
.contact-icon-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.contact-icon-link:hover {
    transform: scale(1.15);
}

/* Убедимся, что иконка внутри наследует цвет */
.contact-icon-link i {
    color: var(--yellow-400);
}

