* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body{
  width: 100%;
  overflow-x: hidden;
    font-family: "Work Sans";
}
/*--------------HEADER------------*/
header {
  position: relative; 
  min-height: 900px;
  height: 100vh; /* Додаємо висоту на весь екран, щоб "середина" була чіткою */
  overflow: hidden; 
  color: #FFFEED;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Центрує контент (headertext) вертикально */
}

/* Контейнер для відео та градієнта */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Відео йде під текст та навігацію */
}

/* Саме відео */
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Відео заповнює весь простір без деформації */
}

/* Накладання вашого градієнта ПОВЕРХ відео */
.video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* було 100hv */
  background: radial-gradient(circle at center, rgba(43, 36, 8, 0.7) 0%, rgba(23, 18, 0, 0.9) 70%);
  pointer-events: none;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(23, 18, 0, 0.9); /* Трохи темніше для читабельності */
    z-index: 100;
    height: 112px;
    display: flex;
    justify-content: center;
}

.nav__container {
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Лого зліва, меню центр/право */
}

.nav__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo {
    height: 60px; /* Налаштуйте під ваш макет */
    width: auto;
}

.nav__menu {
    display: flex;
    gap: 40px;
    list-style: none;
    position: absolute; /* Центрування меню відносно екрану */
    left: 50%;
    transform: translateX(-50%);
}
.nav__menu a {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #FFFEED;
  text-decoration: none;
}
.nav__right .dropdown .dropdown-menu{
    display: none;
}
.nav__cta {
  margin-left: 32px;
  padding: 14px 24px;
  background: #892831;
  border-radius: 10px;
  color: #FFFEED;
  text-decoration: none;
  font-size: 16px;
}
.dropdown__arrow {
  cursor: pointer;
  display: inline-block;
  padding: 0 5px;
  user-select: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.nav__right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.headertext {
  position: relative; /* Щоб бути вище відео */
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px; /* Прибираємо великий top padding (220px), бо тепер центрує флексбокс */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Притискає текст до лівого краю */
}
.headertext h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.2;
}
.headertext p{
   font-size: 26px;
  font-weight: 400;
  line-height: 1.8; 
}
/* Стиль кнопки в хедері (біла) */
.headertext button.hero-btn {
    background: #FFFEED;
    color: #171200;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: fit-content;
    margin-top: 30px;
}
.menu-toggle-input {
    display: none;
}
/* --- МОБІЛЬНА ВЕРСІЯ --- */
@media (max-width: 1024px) {
    header {
        justify-content: flex-end; /* Повертаємо вниз для мобільних, як ви просили раніше */
        min-height: 800px; 
    }

    .headertext {
        padding: 100px 20px 80px 0; /* Відступ знизу для мобільних */
        margin-bottom: 30px;
        align-items: flex-start;
    }
    .nav {
        height: 80px;
    }

    .nav__container {
        padding: 10px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Розподіляє крайні блоки по боках */
    }

    .nav__menu {
        display: none; /* Ховаємо десктопне меню */
    }

    .nav__logo {
        height: 45px;
    }

    .nav__right {
        gap: 15px;
    }

    /* Гамбургер */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: #FFFEED;
    }

    /* Кнопка на мобільних стає меншою */
    .nav__cta.cta-always-visible {
        font-size: 12px;
        padding: 10px 15px;
        margin: 0;
    }

    .headertext {
        padding: 160px 20px 0;
        text-align: left;
        padding-top: 100px;
    }

    .headertext h1 {
        font-size: 36px;
        font-weight: 700;
    }

    .headertext p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .headertext button.hero-btn {
        width: 100%; /* Як на фото 3 */
        max-width: 300px;
    }
    /* Логіка випадаючого меню */
    .nav__mobile-wrapper {
        position: fixed;
        top: 80px; /* Висота навігації */
        left: 0;
        width: 100%;
        height: 0; /* Початкова висота */
        background: #171200;
        overflow: hidden;
        transition: height 0.4s ease;
        z-index: 99;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: auto;
    }

    /* Відкриття на 50% висоти екрана */
    .menu-toggle-input:checked ~ .nav__mobile-wrapper {
        height: 30vh;
    }

    /* Оверлей (затемнення) */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        visibility: hidden;
        opacity: 0;
        transition: 0.3s;
        z-index: 98;
    }

    .menu-toggle-input:checked ~ .menu-overlay {
        visibility: visible;
        opacity: 1;
    }

    .nav__menu {
        display: flex;
        flex-direction: column;
        position: static;
        transform: none;
        gap: 25px;
        text-align: center;
    }
}

/* Для дуже великих екранів (2800px) */
@media (min-width: 1441px) {
    .nav__container {
        max-width: 2600px; /* Розширюємо контент на плазмах */
    }
}

/*General for containers*/
/*-------------- O SWISS HOME -----------*/
.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 80px;

    padding: 60px clamp(40px, 6vw, 160px);
    background-color: #F7F0DB;

    max-width: 2800px;
    margin: 0 auto;
}

.left-container{
    flex: 1;
    max-width: 1020px;
    width: 50%;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    grid-gap: 32px;
}

.left-container h2{
    font-size: 16px;
    letter-spacing: 0.12em;
}

.left-container p{
    font-size: 16px;
    line-height: 1.6;
}

.left-container button{
    width: fit-content;
    padding: 12px 24px;

    background: #1C1C1C;
    color: #fff;
    border: none;
    cursor: pointer;
}

.right-container{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.right-container img{
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 6px;
}

/* SECTION */
.stats-section{
    background-color: #DCD5B8;
    padding: 80px clamp(40px, 6vw, 160px);

    max-width: 2800px;
    max-height: 564px;
    margin: 0 auto;
}

/* TITLE */
.section-title{
    font-size: 12px;
    letter-spacing: 0.14em;
    margin-bottom: 40px;
}

/* GRID */
.stats-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */
.stat-card{
    background-color: #8B2A32;
    color: #fff;

    border-radius: 14px;
    padding: 60px 40px;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

/* NUMBER */
.stat-card strong{
    font-size: clamp(44px, 4vw, 56px);
    font-weight: 700;
}

/* TEXT */
.stat-card span{
    font-size: 14px;
    font-weight: 400;
}
/* ===== TOP SECTION ===== */
.ImgUp{
    max-width: 1280px;
    margin: 0 50px;
    padding: 96px 0 72px;

    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ImgUp p{
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B6B6B;
}

.ImgUp h2{
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    max-width: 820px;
    color: #1C1C1C;
}

.ImgUp button{
    width: fit-content;
    padding: 12px 28px;
    background: #1C1C1C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== SLIDER SECTION ===== */
.DownImg{
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 2800px;
    width: 95%;
    margin: 0 auto;
    padding: 20px 0;
}
.DownImg img {
    flex: 0 0 auto;
    max-width: 780px;
    margin: 0 10px;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

/* slider track */
.slider{
    display: flex;
    gap: 40px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
}
.slider::-webkit-scrollbar{
    display: none;
}

/* slide */
.slide{
    flex: 0 0 48%;
    scroll-snap-align: start;
}

.slide img{
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* arrows */
.DownImg .arrow {
    position: absolute; 
    top: 50%;             /* Центруємо вертикально */
    transform: translateY(-50%);
    background-color: #ffffff !important;/*Білий фон*/
    color: #4A4A4A !important;       
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    width: 45px !important;  
    height: 45px !important; 
    font-size: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
/* Розташування */
.DownImg .arrow.left {
    left: 20px;
    right: auto; /* Скидаємо можливі накладання */
}
.DownImg .arrow.right {
    right: 20px;
    left: auto;
}
.DownImg .arrow:hover {
    background-color: #f0f0f0;
    color: #000;
}

@media (max-width: 1224px){/* 7. Слайдер матраців */
    .DownImg {
        width: 100%;
        padding: 0 10px;
    }
    .DownImg img {
        max-width: 85vw; /* Щоб було видно край наступного слайду */
    }
    .DownImg .arrow {
        /* Скасовуємо "width: 100%", яке прописане для всіх кнопок нижче у твоєму коді */
        width: 35px !important; 
        height: 35px !important;
        font-size: 16px;
        display: flex !important; /* Гарантуємо, що вони не зникнуть */
    }

    .DownImg .arrow.left {
        left: 15px;
    }

    .DownImg .arrow.right {
        right: 15px;
    }
}

/* 3. ХИТРІСТЬ: Переконайся, що батьківський контейнер має position: relative */
.DownImg {
    position: relative; 
}
/* ===== MAIN WRAPPER ===== */
.OurServicesMain{
    background: #FFFEED;
    padding: 20px 0;
    max-width: 2800px;
}

/* header */
.OurServicesMain > p{
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1C1C1C;
    margin-left: 50px;
    margin-bottom: 5px;
}

.OurServicesMain > h2{
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 720px;
    margin-left: 50px;
    margin-bottom: 64px;
    color: #1C1C1C;

}

/* ===== SERVICES GRID ===== */
.OurServicesMain .OurServices{
    max-width: 2800px;
    width: 95%;
    margin-left: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: auto;
}
/* card */
.OurServices .Service{
    padding-right: 20px;
    background: #8B2C2F;
    border-radius: 12px;
    max-width: 440px;
    margin-right: 20px;
    min-height: 606px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #FFFFFF;
}
.OurServices .Service img{
    max-width: 35%;
    padding: 5px;
}
/* title */
.OurServices .Service h3{
    font-size: 20px;
    font-weight: 500;
    padding: 5px;
}
/* text */
.Service p{
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    padding: 5px;
}
/* ===== BUTTON ===== */
.OurServicesMain > button{
    margin: 80px 50px;
    padding: 12px 28px;

    background: #1C1C1C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;

    font-size: 14px;
    cursor: pointer;
}
/*Сектор Матеріалів*/
/* СЕКЦІЯ */
.materials-section{
    max-width: 2800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===== СЛАЙДЕР ===== */
.materials{
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.materials .slider{
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 10px;
}

.materials .slider::-webkit-scrollbar{
    display: none;
}

/* КАРТКА */
.materials .material-item{
    position: relative;
    flex: 0 0 420px;
    min-height: 600px;
    width: auto;
    scroll-snap-align: start;
}

.materials .material-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    display: block;
}

/* ПІДПИС */
.materials .material-item span{
    position: absolute;
    left: 10px;
    bottom: 20px;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    pointer-events: none;
}

/* ===== НИЖНЄ ЗОБРАЖЕННЯ ===== */
.coverimg .materials-hero{
    display: flex;
    justify-content: center;
    padding: 0;
}

.coverimg .materials-hero img{
    object-fit: cover;
    max-width: 2800px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/*------FOOTER-----*/
.footer{
    background: linear-gradient(180deg, #1a1406 0%, #0f0c03 100%);
    color: #fff;
    padding: 40px 0 60px;
    font-family: sans-serif;
}

.footer-inner{
    max-width: 1600px;
    margin: 0 40px;
    padding-right: 0 80px;
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr 1fr;
    gap: 120px;
}

/* колонки */
.footer-col{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer h2{
    font-size: 24px;
    font-weight: 500px;
    margin-bottom: 20px;
}

.footer h3{
    font-size: 16px;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 16px;
}

.footer a,
.footer p{
    font-size: 16px;
    opacity: 0.75;
    text-decoration: none;
    color: #fff;
    line-height: 1.6;
}

/* кнопка */
.footer .action button{
    margin-top: 8px;
    align-self: flex-start;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.footer .action button:hover{
    background: #e6e6e6;
}

/* НИЖНІЙ СЛУЖБОВИЙ РЯД */
.footer-bottom{
    margin-top: 60px;
    padding: 0;
}

/* контейнер */
.footer-bottom-inner{
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* білий прямокутник */
.footer-bar{
    width: 180px;
    height: 18px;
    background: #fff;
    margin: 0;              /* ключове */
}

/* лінія одразу під ним */
.footer-divider{
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

/* тексти під лінією */
.footer-links{
    display: flex;
    gap: 60px;
    margin: 18px 80px;
}

.footer-links a{
    font-size: 13px;
    opacity: 0.65;
    color: #fff;
    text-decoration: none;
}

/* --- Мобільне меню та Футер (Планшети та менше) --- */
@media (max-width: 1024px) {
        /* --- ФУТЕР В СТОВПЧИК на телефоні--- */
    .footer-inner {
        grid-template-columns: 1fr; /* Один стовпчик */
        gap: 40px;
        text-align: left;
        margin: 0 20px;
    }
    .footer-col {
        align-items: left; /* Центрування вмісту */
    }
    .footer .action button {
        align-self: left; /* Центрування кнопки в футері */
    }
    .footer-links {
        flex-direction: column;
        align-items: left;
        gap: 20px;
        margin: 0;
        padding: 20px
    }
    .footer-bar {
        margin: 0 auto; /* Центрування білої полоски */
    }
}

/*--------- ТЕЛЕФОНА ЕКРАНА -------*/
@media (max-width: 1024px) {
    /* 1. Глобальні налаштування */
    body{
        margin: 0;
        padding: 0;
    }
    /* 4. Секція Про Нас (O SWISS HOME) */
    .container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }
    .left-container {
        width: 100%;
        padding-left: 0; /* Прибираємо десктопний відступ */
        text-align: left;
    }
    .left-container h2 {
        font-size: 14px;
    }
    .left-container p {
        font-size: 16px;
    }
    .left-container p br {
        display: none;
    }
    .right-container {
        width: 100%;
    }
    .stats-section {
        padding: 60px 20px;
        max-height: none;
    }
    .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .stat-card {
        padding: 40px 20px;
        width: 100%;
    }
    /* 6. Секція з заголовком та кнопкою */
    .ImgUp {
        margin: 0 20px;
        padding: 60px 0 40px;
        text-align: left;
    }
    .ImgUp h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    /* 8. Послуги (Our Services) */
    .OurServicesMain {
        padding: 40px 0;
    }
    .OurServicesMain > h2, 
    .OurServicesMain > p {
        margin-left: 20px;
        margin-right: 20px;
    }
    .OurServicesMain > h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .OurServicesMain > h2 br {
        display: none;
    }
    .OurServicesMain .OurServices {
        display: flex;
        flex-direction: column;
        width: calc(100% - 40px);
        margin: 0 20px;
        gap: 20px;
    }
    .OurServices .Service {
        max-width: 100%;
        margin-right: 0;
        min-height: auto;
        padding: 30px 20px;
    }

    .OurServices .Service p {
        font-size: 16px;
    }

    /* 9. Матеріали (Круглі картки) */
    .materials .material-item {
        flex: 0 0 280px; /* Зменшуємо розмір карток для телефону */
        min-height: 400px;
    }
    
    /* 10. Кнопки */
    button, .nav__cta {
        width: 100% !important; /* На мобільних кнопка на всю ширину виглядає краще */
        max-width: 300px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
    .slide{
        flex: 0 0 100%;
    }
}

