/* Базові стилі для всього сайту */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #4A4A68;
    background: #FFFFFF;
    padding-top: 80px;
}

/* Загальні утиліти */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Скролбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F8F9FC;
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 6px;
    border: 2px solid #F8F9FC;
}

::-webkit-scrollbar-thumb:hover {
    background: #E85A2A;
}

/* Виділення тексту */
::selection {
    background: rgba(255, 107, 53, 0.2);
    color: #1A1A2E;
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.2);
    color: #1A1A2E;
}


/* ========== НАВІГАЦІЯ ========== */
.main-nav {
    background: linear-gradient(180deg, #17202A 0%, #273746 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
}

/* Текстура шорсткості для навігації */
.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

/* Внутрішнє світле підсвічування зверху */
.main-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    pointer-events: none;
}

/* Тонкий градієнт-підсвічування */
.main-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

/* Оновлення кольорів логотипа для білого тексту */
.logo span:first-of-type {
    color: #FFFFFF !important;
}

.logo span:last-of-type {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B35;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.nav-links a:hover {
    color: #FFFFFF;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== МОБІЛЬНЕ МЕНЮ ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    /* position: fixed; */
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #17202A 0%, #273746 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 24px 40px;
}

.mobile-menu li {
    margin-bottom: 8px;
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(255, 107, 53, 0.15);
    color: #FFFFFF;
    transform: translateX(8px);
}

/* ========== ФУТЕР ========== */
.footer {
    background: linear-gradient(180deg, #17202A 0%, #273746 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 32px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Текстура шорсткості для футера */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulance type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

/* Внутрішнє світле підсвічування зверху футера */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-col p {
    margin-bottom: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== СОЦІАЛЬНІ МЕРЕЖІ У ФУТЕРІ ========== */
.footer-social {
    position: relative;
    z-index: 1;
}

.footer-social h4 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-social-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.social-links i {
    font-size: 20px;
    color: #FFFFFF;
}

/* Кольори для кожної соцмережі */
.social-facebook {
    background-color: #3B5998;
}

.social-instagram {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

.social-viber {
    background-color: #7360F2;
}

.social-telegram {
    background-color: #0088cc;
}

.social-youtube {
    background-color: #FF0000;
}

/* Ефекти при наведенні */
.social-facebook:hover {
    background-color: #2d4373;
}

.social-instagram:hover {
    filter: brightness(1.1);
}

.social-viber:hover {
    background-color: #5a4bc4;
}

.social-telegram:hover {
    background-color: #006ba6;
}

.social-youtube:hover {
    background-color: #cc0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ========== АДАПТИВНІСТЬ ========== */
/* Планшети (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .logo-text-main {
        font-size: 20px !important;
    }

    .logo-text-sub {
        font-size: 12px !important;
    }

    .nav-links {
        gap: 28px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* Мобільні пристрої і планшети (до 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .container {
        padding: 0 24px;
    }

    .nav-content {
        height: 80px;
    }

    /* Приховуємо десктопне меню */
    .nav-links {
        display: none !important;
    }

    /* Показуємо кнопку мобільного меню */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Адаптація логотипу */
    .logo img {
        width: 56px !important;
        height: 56px !important;
    }

    .logo-text-main {
        font-size: 18px !important;
    }

    .logo-text-sub {
        font-size: 11px !important;
    }

    .mobile-menu ul {
        padding: 20px 24px;
    }

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

    .social-links {
        justify-content: flex-start;
    }
}

/* Малі мобільні пристрої (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-content {
        height: 70px;
    }

    body {
        padding-top: 70px;
    }

    .mobile-menu {
        top: 70px;
    }

    /* Ще більше зменшуємо логотип */
    .logo img {
        width: 48px !important;
        height: 48px !important;
    }

    .logo > div {
        gap: 8px !important;
    }

    .logo-text-main {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .logo-text-sub {
        font-size: 10px !important;
    }

    .mobile-menu-toggle span {
        width: 24px;
    }

    .mobile-menu ul {
        padding: 16px 20px;
    }

    .mobile-menu a {
        font-size: 15px;
        padding: 14px 16px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-links i {
        font-size: 18px;
    }
}

/* Дуже малі екрани (до 360px) */
@media (max-width: 360px) {
    .logo-text-main {
        font-size: 13px !important;
    }

    .logo-text-sub {
        font-size: 9px !important;
    }

    .logo img {
        width: 44px !important;
        height: 44px !important;
    }
}
