/* Обнулення стилів та базові налаштування */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #121820; /* Глибокий темний фон, як на макеті */
            color: #ffffff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow-x: hidden;
        }

        /* Шапка сайту (Header) + Меню */
		header {
			padding: 30px 40px; /* Трохи збільшимо відступи зверху/знизу для повітря */
			display: flex;
			justify-content: space-between;
			align-items: center; /* Вирівнює логотип та все меню по одній горизонтальній лінії */
			max-width: 1200px;
			width: 100%;
			margin: 0 auto;
			position: relative;
			z-index: 100;
		}

        .logo-link {
    text-decoration: none; /* Прибирає стандартне підкреслення посилання */
    display: inline-block;
}

        .logo-text {
            font-size: 24px;
            font-weight: 800;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
        }

/* Контейнер логотипу */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Відступ між іконкою та текстом */
    text-decoration: none;
}

/* Якщо ви захочете вставити картинку (.png / .svg) */
.logo-img {
    height: 40px; /* Фіксована висота, щоб не ламався хедер */
    width: auto;
    object-fit: contain;
}

/* Стилі для вбудованої SVG-іконки (варіант 2) */
.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
    transition: transform 0.3s ease;
}

/* Ефект при наведенні на логотип */
.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05); /* Легке грайливе прокручування */
}

/* Текстова частина */
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif; /* або ваш основний шрифт */
}

.accent-text {
    color: #00d2ff; /* Блакитний неоновий колір */
}

/* Коригування контейнера хедера, щоб усе було на своїх місцях */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

        /* Навігація для десктопів */
        
		/* Робимо так, щоб усередині NAV елементи стояли в лінію і центрувалися */
nav {
    display: flex;
    align-items: center; 
    justify-content: flex-end; /* Притискає все меню до правого краю, балансуючи логотип зліва */
    width: 100%;
}

/* Налаштування самого списку посилань */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Рівномірний відступ між "Про простір", "Курси" тощо */
    margin-right: 35px; /* Відступ між останнім пунктом "Відгуки" та кнопкою "Записатися" */
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-items: center;
}

/* Прибираємо стандартні маркування списку для елементів (про всяк випадок) */
.nav-links li {
    display: inline-block;
    padding: 0;
    margin: 0;
}

        .nav-links a {
            color: #a0aec0;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            transition: color 0.3s ease;
            position: relative;
            padding: 5px 0;
        }

        /* Ефект лінії при наведенні на пункти меню */
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #00d2ff;
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: #00d2ff;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .contact-btn {
            background: transparent;
            border: 2px solid #00d2ff;
            color: #00d2ff;
            padding: 8px 22px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .contact-btn:hover {
            background: #00d2ff;
            color: #121820;
            box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
        }

        /* Мобільна кнопка меню (Гамбургер) */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 110;
        }

        .menu-toggle span {
            display: block;
            width: 28px;
            height: 3px;
            background-color: #ffffff;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Анімація перетворення гамбургера в хрестик */
        .menu-toggle.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
            background-color: #00d2ff;
        }
        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
            background-color: #00d2ff;
        }


        /* Головний блок (Hero Section) */
        main {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-grow: 1;
        }

        .hero-content {
            max-width: 600px;
        }

        /* Стилізований під логотип великий заголовок KM */
        .brand-badge {
            font-size: 90px;
            font-weight: 900;
            line-height: 1;
            background: linear-gradient(135deg, #00f0ff 0%, #0044ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            letter-spacing: -3px;
            position: relative;
            display: inline-block;
        }

        .brand-badge::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 60px;
            height: 4px;
            background: #00d2ff;
            border-radius: 2px;
        }

        h1 {
    font-size: 46px; /* Трохи збільшимо для солідності на десктопі */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}
/* Перевірте, чи додано стилі для кнопки дії, якщо ви їх раніше прибирали */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    color: white;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6);
}

        .tagline {
            font-size: 20px;
            color: #00d2ff;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 25px;
            text-transform: uppercase;
        }

        .description {
            font-size: 16px;
            color: #a0aec0;
            line-height: 1.6;
            margin-bottom: 35px;
        }

        /* Акцентна кнопка дії */
        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
            color: white;
            padding: 15px 35px;
            font-size: 18px;
            font-weight: 700;
            text-decoration: none;
            border-radius: 30px;
            box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6);
        }

        /* Права сторона — інтерактивний графічний елемент замість картинки */
        .hero-visual {
            position: relative;
            width: 450px;
            height: 450px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* М'яко заокруглимо кути картинки для сучасного вигляду */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Додамо глибини (ефект тіні) */
}

        /* Свічення на фоні */
        .glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,210,255,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
    z-index: 1; /* Свічення на задньому плані */
}

.math-shape {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(0, 210, 255, 0.3);
    position: absolute;
    transform: rotate(45deg);
    border-radius: 20px;
    z-index: 2; /* Фігури під логотипом */
}

.math-shape-2 {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(0, 102, 255, 0.5);
    position: absolute;
    transform: rotate(15deg);
    z-index: 2;
}

        /* Футер (Footer) */
        footer {
            padding: 20px;
            text-align: center;
            background-color: #0b0f14;
            color: #4a5568;
            font-size: 14px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* Анімація пульсації фону */
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); opacity: 0.8; }
        }

        /* Адаптивність для мобільних пристроїв */
        @media (max-width: 900px) {
            main {
                flex-direction: column;
                text-align: center;
                padding: 20px;
            }
            .hero-content {
                margin-bottom: 50px;
            }
            .brand-badge::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .hero-visual {
                width: 300px;
                height: 300px;
            }
            .math-shape, .math-shape-2 {
                width: 180px;
                height: 180px;
            }
        }


		/* Стилі для секції "Про простір" */
.about-section {
    padding: 100px 40px;
    background-color: #121820; /* Єдине тло із сайтом */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* Ліва частина */
.about-text {
    flex: 1;
    max-width: 650px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accent-text {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-lead {
    font-size: 18px;
    color: #00d2ff;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-description {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Сітка переваг */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 24px;
    background: rgba(0, 210, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    line-height: 1;
}

.feature-info h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-info p {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.5;
}

/* Права частина: Блок статистики */
.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 450px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
}

/* Центральна картка з акцентом */
.stats-card.accent-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #00d2ff;
    margin-bottom: 10px;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

.accent-card .stat-number {
    font-size: 56px;
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stat-label {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.4;
}

/* Адаптивність для планшетів та телефонів */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .feature-item {
        flex-direction: column;
        align-items: center;
    }
    .about-stats {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    .stats-card.accent-card {
        grid-row: auto;
    }
    .about-section {
        padding: 60px 20px;
    }
}


/* Стилі для секції "Курси" */
.courses-section {
    padding: 100px 40px;
    background-color: #0b0f14; /* Зробимо тло трохи темнішим для контрасту між секціями */
    width: 100%;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.courses-lead {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.6;
    margin-top: 15px;
}

/* Сітка модулів */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Картка модуля */
.module-card {
    background: #121820; /* Тло як у сайту */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 30px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Особлива картка інтенсиву */
.module-card.premium-card {
    background: linear-gradient(135deg, #121820 0%, rgba(0, 102, 255, 0.05) 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Бейджики */
.module-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: #00d2ff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.special-badge {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    color: #ffffff;
    border: none;
}

.module-title {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Список тем (посилань) */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-list li {
    position: relative;
    padding-left: 20px;
}

/* Стрілочка або маркер перед темою */
.topic-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #00d2ff;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.topic-list li:hover::before {
    transform: translateX(3px); /* Стрілочка злегка смикається вправо при наведенні */
}

/* Стилізація самих посилань на теми */
.topic-list a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: inline-block;
}

.topic-list a:hover {
    color: #ffffff; /* Текст стає яскравішим при наведенні */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Адаптивність */
@media (max-width: 768px) {
    .courses-section {
        padding: 60px 20px;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Стилі для секції "НМТ" */
.nmt-section {
    padding: 100px 40px;
    background-color: #121820; /* Повертаємо основне тло сайту */
    width: 100%;
}

.nmt-container {
    max-width: 1200px;
    margin: 0 auto;
}

.nmt-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.nmt-lead {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.6;
    margin-top: 15px;
}

/* Список-сітка для тестів */
.tests-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Горизонтальна картка тесту */
.test-card {
    background: #0b0f14; /* Темний контрастний фон */
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateX(5px); /* Легкий зсув вправо при наведенні */
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.test-icon {
    font-size: 28px;
    background: rgba(0, 102, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    line-height: 1;
}

.test-info {
    flex-grow: 1;
}

.test-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
}

.test-meta {
    font-size: 14px;
    color: #a0aec0;
    display: flex;
    gap: 20px;
}

/* Кнопка запуску тесту */
.start-test-btn {
    background: transparent;
    border: 2px solid #00d2ff;
    color: #00d2ff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.start-test-btn:hover {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Спеціальний стиль для демо-шаблонів (якщо база порожня) */
.template-card {
    opacity: 0.85;
}

/* Адаптивність під мобільні пристрої */
@media (max-width: 768px) {
    .nmt-section {
        padding: 60px 20px;
    }
    .test-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .test-meta {
        justify-content: center;
        margin-bottom: 15px;
    }
    .start-test-btn {
        width: 100%;
    }
}

/* Стилі для секції "Відгуки" */
.reviews-section {
    padding: 100px 40px;
    background-color: #0b0f14; /* Темний глибокий фон для контрасту */
    width: 100%;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-lead {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.6;
    margin-top: 15px;
}

/* Сітка відгуків */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Сітка відгуків — тепер автоматично адаптується під кількість карток */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 30px;
}

/* На планшетах переводимо в одну колонку, щоб текст читався зручно */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: #121820;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.student-name {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.student-status {
    font-size: 13px;
    color: #a0aec0;
}

.score-badge {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(0, 210, 255, 0.2);
    white-space: nowrap;
}

.score-badge.font-special {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.review-text {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

@media (max-width: 576px) {
    .review-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .score-badge {
        align-self: flex-start;
    }
}

/* --- СТИЛІ СЕКЦІЇ КОНТАКТІВ --- */
.contacts-section {
    padding: 100px 40px;
    background-color: #0b0f14;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #121820 0%, #151e29 100%);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contacts-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contacts-lead {
    color: #a0aec0;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 40px;
}

.contacts-info-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-info-item h4 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 16px;
}

.contact-info-item p {
    margin: 0;
    color: #a0aec0;
    font-size: 14px;
}

.contact-icon {
    font-size: 24px;
}

/* Кнопки зв'язку */
.contact-buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.messenger-btn, .main-action-btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tg-btn {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.4);
    color: #0088cc;
}

.tg-btn:hover {
    background: #0088cc;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.main-action-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.main-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

/* --- СТИЛІ ФУТЕРА --- */
.main-footer {
    background-color: #070a0e;
    padding: 60px 40px 20px 40px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-tagline {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4, .footer-socials h4 {
    color: #ffffff;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #00d2ff;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icons a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #00d2ff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #4a5568;
    font-size: 13px;
    margin: 0;
}

/* Контейнер кнопок у хедері */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка "Увійти" */
.btn-login {
    color: #00d2ff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    background: transparent;
}
.btn-login:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: #00d2ff;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

/* Кнопка "Реєстрація" */
.btn-register {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
    transition: all 0.2s ease-in-out;
}
.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.35);
    opacity: 0.95;
}

/* Привітання користувача */
.user-name {
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
}

/* Кнопка "Вийти" */
.btn-logout {
    color: #ff4757 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-logout:hover {
    background: rgba(255, 71, 87, 0.1);
}

.messenger-list {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
    }
    .messenger-item {
        margin-bottom: 8px;
        font-size: 16px;
    }
    .messenger-link {
        color: #a0aec0;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    /* Кольори при наведенні курсору для кожного месенджера */
    .messenger-link.tg:hover { color: #0088cc; transform: translateX(3px); }
    .messenger-link.vb:hover { color: #7360f2; transform: translateX(3px); }
    .messenger-link.ig:hover { color: #e1306c; transform: translateX(3px); }
    
    .messenger-link i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }
    /* Ефект при наведенні на адресу */
.map-link:hover span {
    color: #00d2ff !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

/* Стиль за замовчуванням прихований */
    .q-tooltip {
        display: none;
        position: absolute;
        bottom: 54px;
        left: 50%;
        transform: translateX(-50%);
        background: #151a24;
        border: 1px solid rgba(0, 210, 255, 0.2);
        box-shadow: 0 10px 25px rgba(0,0,0,0.7);
        width: 260px;
        padding: 12px;
        border-radius: 10px;
        z-index: 99;
        text-align: left;
        pointer-events: none;
    }
    /* Трикутник-стрілочка внизу підказки */
    .q-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #151a24 transparent transparent transparent;
    }
    /* Ефект появи при наведенні мишки на клітинку */
    .q-cell:hover .q-tooltip {
        display: block;
    }
    /* Забираємо стандартний трикутник у хром-браузерах для тегу details */
    details summary::-webkit-details-marker {
        display: none;
    }


/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 20px;
    }
    .contacts-container {
        padding: 30px 20px;
    }
    .contacts-info-list {
        flex-direction: column;
        gap: 15px;
    }
    .contact-buttons-group {
        flex-direction: column;
        gap: 12px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}