/* exo-2-300 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/exo-2-v26-cyrillic_latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-300italic - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/exo-2-v26-cyrillic_latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/exo-2-v26-cyrillic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-italic - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/exo-2-v26-cyrillic_latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-500 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/exo-2-v26-cyrillic_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-600 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/exo-2-v26-cyrillic_latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* exo-2-700 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/exo-2-v26-cyrillic_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =========================================
   ЗАГАЛЬНІ СТИЛІ ТА ЗМІННІ (style.css)
   ========================================= */
:root {
    --bg-dark: #0f1319;
    --bg-light: #181d24;
    --text-white: #ffffff;
    --text-gold: rgb(215, 163, 97);
    --text-beige: #f5e4c3;
    --sub-text: #808080;
    --sub-text-light: #a0a0a0;
    --feature-text: #d1d1d1;
    --gold-gradient: linear-gradient(180deg, #f5e4c3 0%, #d7a361 60%, #a27a44 100%);
    --font-main: "Exo 2", sans-serif;
    --container-width: 1220px;

    /* ЗМІННІ ДЛЯ СКЛЯНИХ КНОПОК ТА КАРТОК (GLASSMORPHISM) */
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(215, 163, 97, 0.6);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --glass-shadow-hover: rgba(215, 163, 97, 0.25);
    
    /* ЗМІННІ НАПІВПРОЗОРЕЙ ДЛЯ ОВЕРЛЕЇВ */
    --hero-overlay-dark: rgba(15, 19, 25, 0.95);
    --hero-overlay-mid: rgba(15, 19, 25, 0.65);
    --hero-overlay-light: rgba(15, 19, 25, 0.2);
    --card-gradient-overlay: rgba(15, 19, 25, 0.75);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    font-style: normal;
    font-optical-sizing: auto;
}

/* Глобальний градієнт для всіх заголовків */
h1, h2, h3, h4, h5, h6 {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: normal;
}

/* Біло-золотий заголовок */

.path-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.path-header h2 {
    font-size: 3rem;
    color: var(--text-white);
    line-height: 1.1;
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.path-header h2 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- КНОПКИ --- */
.btn {
    padding: 16px 32px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    box-shadow: 0 4px 15px var(--glass-shadow-hover);
}

.btn-gold:hover {
    filter: drop-shadow(0 0 15px var(--text-gold)) brightness(1.1);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
}

/* Кнопка CTA зі стрілкою та вертикальним сепаратором */
.btn-cta .btn-text {
    padding: 0 25px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   ГЛОБАЛЬНИЙ CTA БЛОК (ЗРОБИТИ ПЕРШИЙ ХІД)
   ========================================= */
.cta-section {
    padding: 40px 0;
}

.cta-box {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 15px 35px var(--glass-shadow);
    padding: 40px 40px 40px 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

/* Фонова картинка cta-bg.png з напівпрозорістю */
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../image/cta-bg.png') no-repeat center center / cover;
    opacity: 0.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: inherit;
    z-index: 0;
}

/* Піднімаємо контент вище фонової картинки */
.cta-box h2, 
.cta-box h3, 
.cta-box p, 
.cta-box .btn,
.cta-box .btn-cta {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
}

.cta-box p {
    padding: 30px 0;
    font-size: 1.1rem;
    color: var(--text-white);
}

/* Кнопка CTA зі стрілкою та вертикальним сепаратором */
.btn-cta {
    display: inline-flex;
    align-items: stretch;
    background: var(--gold-gradient);
    color: #0f1319;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glass-shadow-hover);
    position: relative;
    z-index: 2;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cta .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-left: 1px solid var(--glass-shadow);
    transition: transform 0.3s ease;
}

.btn-cta:hover {
    filter: drop-shadow(0 0 15px var(--text-gold)) brightness(1);
    transform: translateY(-2px);
}

/* Адаптив для CTA блоку */
@media (max-width: 900px) {
    .cta-box {
        padding: 40px 20px;
        justify-content: center;
    }
}

/* --- ШАПКА --- */
.header {
    position: fixed;
    width: 100%;
    top: 40px;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, visibility 0.5s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 70px;
    position: relative;
    width: 100%;
}

.nav-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
    width: 120px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {max-width: 100%;height: auto;}

.nav-list { display: flex; gap: 40px; align-items: center; position: relative; z-index: 10; }
.left-menu { margin-right: 140px; }
.right-menu { margin-left: 140px; }

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    outline: none;
}
.nav-list a:hover {color: var(--text-white);}

/* Кнопка мобільного меню (гамбургер) - прихована на десктопі */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   СЕКЦІЯ КВАДРАТІВ (SQUARES GRID)
   ========================================= */
.squares-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.squares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.square-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    align-items: center; /* Центрує блоки (номер, заголовок) всередині картки */
    text-align: center;  /* Центрує багаторядковий текст опису */
}

.square-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.square-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--text-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.square-number {
    font-size: 2.5rem;
    font-weight: 500;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1;
}

.square-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.square-desc {
    color: var(--text-white);
    font-size: 1rem;
    line-height: 1.5;
}

/* --- ПІДВАЛ --- */
.main-footer {
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.footer-card { padding: 30px 0 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.footer-col { flex: 1; position: relative; margin-bottom: 15px; }
.footer-logo {max-width: 120px;}
.footer-desc { color: var(--sub-text-light); font-size: 0.8rem; }
.right-actions { display: flex; flex-direction: column; align-items: center; }
.footer-heading { margin-bottom: 20px; font-size: 1.5rem; }
.social-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.social-icon-box { display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-icon-box img { width: 40px; height: 40px; object-fit: contain; }
.social-icon-box:hover { border-color: var(--text-gold); }
.social-item span { color: var(--text-white); font-size: 0.75rem; }
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.bottom-links { display: flex; align-items: center; gap: 15px; color: var(--sub-text-light); font-size: 0.85rem; }

/* Анімації */
.animate-element { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.animate-element.is-visible {opacity: 1;transform: translateY(0);}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* =========================================
   АДАПТИВ: ПЛАНШЕТИ (<=1024px)
   ========================================= */
@media (max-width: 1024px) {
    .left-menu { margin-right: 70px; }
    .right-menu { margin-left: 70px; }
    .nav-list { gap: 24px; }
    .nav-list a { font-size: 1rem; }
}

/* =========================================
   АДАПТИВ: ШАПКА НА ПЛАНШЕТАХ/ТЕЛЕФОНАХ (<=900px)
   ========================================= */
@media (max-width: 900px) {
    .header { top: 15px; }
    .nav-wrapper { padding: 0 20px; justify-content: flex-start; }

    /* Ховаємо десктопне меню, його відкриває JS через inline display:flex */
    .left-menu,
    .right-menu {
        display: none;
        margin: 0;
        width: 100%;
        text-align: center;
    }



    .left-menu a,
    .right-menu a {
        justify-content: center;
        font-size: 1rem;
    }

    .logo-container { left: 20px; transform: translateY(-45%); width: 90px; }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .squares-section { padding: 50px 0; }
    .squares-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
    .path-header h2 { font-size: 2.2rem; }

    .footer-top { flex-direction: column; text-align: center; gap: 25px; }
    .footer-bottom-bar { flex-direction: column; gap: 10px; text-align: center; }
}

/* =========================================
   АДАПТИВ: ТЕЛЕФОНИ (<=600px)
   ========================================= */
@media (max-width: 600px) {
    /* --- 2. Збільшення шрифту заголовка --- */
    .path-header h2 { 
        font-size: 2.5rem; /* Збільшуємо з 1.8rem до 2.5rem */
    }
    .cta-box h2, 
    .cta-box h3 { 
        font-size: 2.5rem;
        line-height: 45px;
    }

    /* --- 3. Ширина та вирівнювання кнопки --- */
    .btn-cta {
        width: 100%; /* Кнопка займає всю доступну ширину */
        max-width: 350px; /* Але не більше ніж 320px, щоб виглядати акуратно */
        margin: 0 auto; /* Центруємо кнопку */
        display: flex;
        justify-content: space-between; /* Розштовхує текст і стрілку по краях */
    }
    
    .btn-cta .btn-text { 
        flex: 1; /* Текст займає весь вільний простір... */
        display: flex;
        justify-content: center; /* ...і вирівнюється чітко по центру */
        padding: 0 15px;
        font-size: 0.85rem; 
    }
}

