/* Підключення шрифтів Craftwork Grotesk */
@font-face {
    font-family: 'Craftwork Grotesk';
    src: url('assets/fonts/CraftworkGrotesk-Regular.woff2') format('woff2'),
         url('assets/fonts/CraftworkGrotesk-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Craftwork Grotesk';
    src: url('assets/fonts/CraftworkGrotesk-Medium.woff2') format('woff2'),
         url('assets/fonts/CraftworkGrotesk-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Craftwork Grotesk';
    src: url('assets/fonts/CraftworkGrotesk-SemiBold.woff2') format('woff2'),
         url('assets/fonts/CraftworkGrotesk-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Craftwork Grotesk';
    src: url('assets/fonts/CraftworkGrotesk-Bold.woff2') format('woff2'),
         url('assets/fonts/CraftworkGrotesk-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Craftwork Grotesk';
    src: url('assets/fonts/CraftworkGrotesk-Heavy.woff2') format('woff2'),
         url('assets/fonts/CraftworkGrotesk-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Базові стилі */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    color-scheme: dark;
    font-family: 'Craftwork Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Скрол Контейнер зі Scroll Snap */
.snap-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Секція на 100vh */
.snap-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 40px 5%;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
}

.section-content {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

/* Фіксований Хедер */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent; /* хедер прозорий і завжди видимий */
    padding: 25px 5% 35px 5%; /* Більший відступ знизу під градієнт */
    /* Плавний градієнт-маска для блюру і фону (ефект поступового розчинення) */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    transition: background 0.05s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.9); /* Трохи прозорості, щоб блюр працював ідеально */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 5% 35px 5%;
    border-bottom: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-logo {
    height: 95px; /* Збільшено логотип для десктопу */
    width: auto;
    object-fit: contain;
    filter: brightness(1) contrast(1.2);
    mix-blend-mode: screen; /* Прибирає чорний фон з JPG логотипу */
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #aaaaaa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #ffffff;
}

/* Кнопка зміни мови */
.lang-switch-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 4px 6px;
    cursor: pointer;
    font-family: 'Craftwork Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    opacity: 0.85;
}

.lang-btn:hover {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.05);
}

.flag-icon {
    font-size: 22px;
    line-height: 1;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 6px;
    position: relative;
    z-index: 101;
}

.hamburger-line {
    width: 28px;
    height: 2.5px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* СЕКЦІЯ 1 та 2: ПРОДУКТ (2 колонки) */
.grid-two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.media-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 65vh;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.main-title {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #ffffff;
}

.subtitle {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 35px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-placeholder {
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 1;
    background: #111111;
    border: 2px dashed #444444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #777777;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-list {
    list-style: none;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specs-list li {
    font-size: 18px;
    color: #dddddd;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.specs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
}

.specs-list strong {
    color: #ffffff;
    font-weight: 800;
    margin-right: 10px;
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 18px 42px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px dashed #555555;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Загальні заголовки секцій */
.section-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

.section-desc {
    font-size: 16px;
    color: #999999;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}

.left-align {
    text-align: left;
    margin-left: 0;
}

/* СЕКЦІЯ 3 & 4: СЛАЙДЕРИ (ПАРТНЕРИ ТА ДОЗВОЛИ) */
.partners-slider-wrapper,
.permits-slider-wrapper {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.slider-container-box {
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    padding: 15px 0; /* Простір зверху і знизу, щоб hover translateY(-5px) не обрізався */
}

.partners-slider,
.permits-slider {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slider-slide {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.slider-btn {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    z-index: 5;
}

.slider-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.card-item {
    background: #0a0a0a;
    border: 1px solid #222222;
    padding: 50px 24px;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.card-item:hover {
    border-color: #666666;
    transform: translateY(-4px);
}

.card-placeholder-logo {
    height: 120px;
    background: #141414;
    border: 1px dashed #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666666;
    font-size: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-item h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.permit-card {
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.permit-card:hover {
    transform: translateY(-4px);
}

.doc-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1.414; /* Точні пропорції формату A4 */
    max-height: 440px;
    background: #0f0f0f;
    border: 2px dashed #444444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #777777;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.permit-card h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* СЕКЦІЯ 5: КОНТАКТИ (2 колонки) */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.contact-details-box {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 14px;
    color: #777777;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #0a0a0a;
    padding: 44px;
    border-radius: 8px;
    border: 2px dashed #444444;
    width: 100%;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #111111;
    border: 1px solid #333333;
    padding: 20px 22px;
    color: #ffffff;
    font-size: 18px;
    font-family: 'Craftwork Grotesk', sans-serif;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffffff;
}

.form-group label {
    position: absolute;
    top: 20px;
    left: 22px;
    color: #777777;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 14px;
    font-size: 13px;
    background: #0a0a0a;
    padding: 0 8px;
    color: #ffffff;
    font-weight: 700;
}

.btn-submit {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 22px;
    font-family: 'Craftwork Grotesk', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.btn-submit:hover {
    background: #cccccc;
}

/* СЕКЦІЯ МАПИ */
.section-map {
    background-color: #000000;
}

.map-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #000000;
}

.map-container {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.map-stats-box {
    display: flex;
    border-top: 1px solid #1a1a1a;
    background-color: #030303;
}

.stat-item {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid #222;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes pulseMap {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(5); opacity: 0; }
}

/* Адаптивність */
@media (max-width: 1024px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: #0d0d0d;
        padding-top: 100px;
        padding-left: 35px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
        z-index: 99;
        border-left: 1px solid #222;
        gap: 30px;
        box-shadow: none;
    }

    .nav-menu.open {
        transform: translateX(0);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.9);
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 101;
    }

    .site-logo {
        height: 65px;
    }

    .slider-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .snap-section {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: start;
        padding: 85px 18px 60px 18px; /* Достатньо відступу знизу для повного огляду */
    }

    .section-content {
        width: 100%;
        max-width: 100%;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .section-desc {
        font-size: 14px;
        margin: 0 auto 20px auto; /* Забрано гігантський відступ зверху */
        line-height: 1.4;
    }

    .grid-two-col, .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .media-col {
        height: auto;
        order: 1;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .text-col {
        order: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-video {
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
    }

    .left-align {
        text-align: center;
    }
    
    .product-placeholder {
        width: 75%;
        max-width: 260px;
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: none;
        margin: 0 auto;
        padding: 20px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .main-title {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: -0.5px;
        margin-bottom: 12px;
        word-wrap: break-word; /* Без агресивного розриву слів */
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .specs-list {
        align-items: center;
        width: 100%;
        margin-top: 15px;
        gap: 16px;
    }

    .specs-list li {
        font-size: 16px;
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        align-items: center;
    }

    .specs-list li::before {
        display: none;
    }

    .specs-list strong {
        font-size: 16px;
        font-weight: 800;
        margin-right: 0;
    }

    .slider-slide {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .slider-container-box {
        width: 100%;
        overflow: hidden;
    }

    .partners-slider, .permits-slider {
        display: flex;
        width: 100%;
    }

    .partners-slider-wrapper, .permits-slider-wrapper {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 0 auto;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        flex-shrink: 0;
    }

    .card-item {
        padding: 35px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .permit-card {
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
        border: none;
    }

    .doc-placeholder {
        width: 85%;
        max-width: 280px;
        aspect-ratio: 1 / 1.414; /* Справжній вертикальний A4 на телефоні */
        height: auto;
        max-height: none;
        margin: 0 auto 16px auto;
    }

    .header-left {
        gap: 10px;
    }

    .header-right {
        gap: 15px;
    }

    .lang-switch-box {
        gap: 5px;
    }

    .site-logo {
        height: 65px;
        max-width: 200px;
        object-fit: contain;
    }

    .main-header, .main-header.scrolled {
        padding: 10px 15px;
        background: #000000 !important;
        border-bottom: 1px solid #1a1a1a;
    }

    /* Компактний перемикач мов на телефоні, щоб усе влазило */
    .lang-btn {
        font-size: 15px;
        gap: 6px;
    }

    .flag-icon {
        font-size: 18px;
    }

    /* Збільшене мобільне меню */
    .nav-menu {
        padding-top: 110px;
        gap: 36px;
    }

    .nav-link {
        font-size: 22px;
        letter-spacing: 2.5px;
    }

    .btn-primary {
        width: 88%;
        max-width: 380px;
        margin: 28px auto 0 auto !important;
        text-align: center;
        padding: 19px 24px;
        font-size: 17px;
        letter-spacing: 2px;
        display: block;
        box-sizing: border-box;
    }

    .snap-section.section-contact {
        height: auto;
        min-height: auto;
        padding: 0;
        scroll-snap-align: none;
        border: none;
    }

    .contact-layout {
        gap: 0 !important;
    }

    /* Розділяємо контакти і форму на 2 окремі екрани */
    .contact-info-col,
    .contact-form-col {
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 85px 18px 60px 18px;
        box-sizing: border-box;
    }

    .contact-details-box {
        align-items: center;
        text-align: center;
        width: 100%;
        margin-top: 15px;
        gap: 16px;
    }

    .contact-item {
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .contact-label {
        font-size: 12px;
        text-align: center;
    }

    .contact-value {
        font-size: 18px;
        text-align: center;
    }

    /* Форма на мобільному з гармонійними відступами зліва і справа */
    .contact-form-col {
        padding: 85px 5% 60px 5%;
    }

    .contact-form {
        padding: 28px 20px;
        width: 100%;
        border-width: 1.5px;
        box-sizing: border-box;
        margin: 0 auto;
        gap: 20px;
    }
    
    .form-group {
        width: 100%;
    }

    .form-group input, .form-group textarea {
        padding: 16px 16px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group label {
        font-size: 15px;
        top: 16px;
        left: 16px;
    }

    .btn-submit {
        padding: 18px 20px;
        font-size: 17px;
        width: 100%;
    }
}
