* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  justify-content: space-between;
}
html, body{
  width: 100%;
  overflow-x: hidden;
  font-family: "Work Sans";
}
/*HEADER*/
header {
  position: relative; 
  height: 20vh; /* Додаємо висоту на весь екран, щоб "середина" була чіткою */
  overflow: hidden; 
  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: 10px;
    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 {
 text-decoration-color: rgba(23, 18, 0, 0.9);
  width: 100%;
  margin: 0 ;
  padding:0; /* Прибираємо великий top padding (220px), бо тепер центрує флексбокс */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Притискає текст до лівого краю */
}
.headertext h1 {
  font-size: 48px;
    color: black;
  font-weight: 400;
  line-height: 1.2;
}
/* Стиль кнопки в хедері (біла) */
.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: 10px; 
    }

    .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: 35px;
    }

    .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;
    }

    /* Логіка випадаючого меню */
    .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; /* Розширюємо контент на плазмах */
    }
}

/* ===== MAIN SECTION (O NAS / MISJA) ===== */
.main {
    max-width: 1440px; /* Rozsądna szerokość maksymalna */
    margin: 60px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 40px;
}

/* Odwrócenie kolejności dla sekcji Misja (zdjęcie po prawej zostaje, ale w HTML masz dwie takie same sekcje) */
/* Jeśli chcesz, aby druga sekcja miała obrazek po lewej na desktopie, dodaj klasę .reverse */
.main.reverse {
    flex-direction: row-reverse;
}

.main .left {
    flex: 1;
    text-align: left;
}

.main .left h1, .main .left h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 500;
}

.main .left p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    max-width: 550px; /* Zapobiega zbyt długim liniom tekstu */
}

.main .right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main .right img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px; /* Delikatne zaokrąglenie jak na foto */
    object-fit: cover;
}

/* ======= POSLUGY (RED BOXES) ==== */
.poslugy {
    background-color: #D6CEAD;
    padding: 60px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.box {
    background-color: #892831;
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.box p:first-child {
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-size: 14px;
}

.box p:last-child {
    font-size: 16px;
    line-height: 1.6;
}

/* ===== MEDIA QUERIES (TABLET & MOBILE) ===== */

@media (max-width: 1024px) {
    .main {
        flex-direction: column !important; /* Tekst nad obrazkiem */
        text-align: center;
        margin: 40px auto;
    }

    .main .left {
        width: 100%;
        padding: 0;
    }
    
    .main .left p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .main .right {
        width: 100%;
        order: 2; /* Obrazek pod tekstem */
    }

    .poslugy {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .box {
        margin: 0;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .main .left h1, .main .left h2 {
        font-size: 28px;
    }
    .poslugy {
        grid-template-columns: 1fr; /* Boxy jeden pod drugim */
    }
    
    .main .left p {
        font-size: 16px;
    }
}
/*-----------------Наші послуги----------------*/
/* ===== СЕКЦІЯ ЗАГОЛОВКА (main1) ===== */
.main1 {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: left;
}

.main1 p:first-child {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
}

.main1 h1 {
    font-size: 48px;
    line-height: 1.1;
    color: #4A4A2A; /* Темно-оливковий колір тексту */
    margin-bottom: 25px;
    font-weight: 500;
}

.main1 p:last-child {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    color: #555;
}

/* ===== СІТКА ПОСЛУГ (OurServices) ===== */
.OurServices {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    
    /* Сітка: 3 колонки на комп'ютері */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.Service {
    background-color: #892831; /* Фірмовий бордовий колір */
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.Service:hover {
    transform: translateY(-5px);
}

.Service img {
    margin-bottom: 25px;
    height: auto;
    filter: brightness(0) invert(1); /* Робить іконки білими, якщо вони темні */
}

.Service h2, .Service h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: none;
}

.Service p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== АДАПТИВНІСТЬ (Планшет та Телефон) ===== */

@media (max-width: 1024px) {
    .main1 h1 {
        font-size: 36px;
    }

    .OurServices {
        /* Перехід в одну колонку як на минулій сторінці */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .Service {
        padding: 30px;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .main1 {
        margin: 40px auto 30px;
    }
    
    .main1 h1 {
        font-size: 28px;
    }

    .main1 p:last-child {
        font-size: 16px;
    }
}


/*------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; /* Центрування білої полоски */
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
    .slide{
        flex: 0 0 100%;
    }
}

