* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* HEADER */



/* початковий стан (прозорий) */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: 0.3s;
    background: transparent;
}

/* коли скролимо */
header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* текст стає чорним */
header.scrolled .menu a {
    color: black;
}

/* кнопка теж змінюється (щоб красиво було) */
header.scrolled .btn {
    background: orange;
    color: white;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    position: relative;
}



.logo {
    font-weight: bold;
    padding: 8px 10px;
    
}

.logo img {width: 50px;}

.menu a {
    margin: 0 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.menu {margin-right: 37%;
 z-index: 9999;}

/* BUTTON */
.btn {
    background: orange;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

.back-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    
    font-size: 24px;
    color: white;
    text-decoration: none;
    z-index: 1100;
    transition: 0.3s;
}

/* коли хедер білий */
header.scrolled .back-arrow {
    color: black;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("2.jpg");

    background-size: cover;
    background-position: center;

    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.tag {
    display: inline-block;
    border: 1px solid #aaa;
    border-radius: 20px;
    padding: 5px 15px;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 14px;
}

h1 {
    font-size: 60px;
    color: white;
    line-height: 1.2;
}

.hero-content h2 {font-size: 42px;
    color: white;
    line-height: 1.2;}

h1 span {
    color: orange;
}

.hero p {
    margin: 20px 0;
    color: #ccc;
}

/* BUTTONS */
.buttons {
    margin-top: 20px;
}

.main {
    background: #ffa500;
    margin-right: 10px;
}

.outline {
    background: transparent;
    border: 1px solid #aaa;
}

/* STATS */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stats h3 {
    color: orange;
    font-size: 28px;
}

.stats p {
    color: #ccc;
    font-size: 14px;
}

/* SCROLL EFFECT */


.scrolled .menu a {
    color: black;
}

/* SERVICES */
.services {
    padding: 60px 40px;
    background: #f5f5f5;
    text-align: center;
}

.services h2 {
    font-size: 35px;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    margin-bottom: 60px;
}

.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* CARD */
.card {
    background: #eee;
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    height: 270px;
    text-align: left;
    transition: 0.3s;
    cursor: pointer;
}

.card.active {
    background: orange;
    color: white;
}

/* ICON */
.icon {
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon svg {
    width: 30px;
    height: 30px;
    fill: orange;
    transition: 0.3s;
}

/* TEXT */
.card h3 {
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 20px;
    color: #555;
}

.card ul {
    list-style: none;
    margin-bottom: 20px;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* LINK */
.more {
    text-decoration: none;
    font-weight: bold;
    color: orange;
}

/* 🔥 HOVER EFFECT */
.card:hover {
    background: orange;
    color: white;
    transform: translateY(-10px);
}

.card:hover p,
.card:hover ul li,
.card:hover .more {
    color: white;
}

/* 🔥 SVG міняє колір */
.card:hover .icon {
    background: rgba(255,255,255,0.2);
}

.card:hover .icon svg {
    color: white;
}

.icon svg {
    color: orange;
    transition: 0.3s;
}


html {
    scroll-behavior: smooth;
}

.btn {
    display: inline-block;
    text-decoration: none;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}



/*page*/
/* Загальний хедер
header {
    position: fixed;
    width: 100%;
    transition: 0.3s;
    
} */

/* Головна сторінка — прозорий старт 
.home header {
    background: transparent;
    color: white;
}

/* Скрол (тільки для головної)
.home header.scrolled {
    background: white;
    color: black;
} */

/* Інші сторінки — одразу білий 
.page header   {
    background: white;
    color: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
}

.page a {color: #000;}*/





.cta-hero-wrapper {
    position: relative;
    min-height: 70vh; /* ✅ */
    height: auto;     /* ✅ */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom:70px;
}

.cta-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 244, 244, 0.65);
}

.cta-hero-content {
    position: relative;
    max-width: 1200px;
    padding: 20px;
}

.cta-hero-badge {
    background-color: rgb(248, 239, 222);
    display: inline-block;
    border: 1px solid orange;
    border-radius: 20px;
    padding: 5px 15px;
    color: orange;
    margin-bottom: 20px;
    font-size: 14px;
   
}

.cta-hero-title {
    font-size: 35px;
    margin-bottom: 15px;
    color: #000;
}

.cta-hero-subtitle {
    color: #777;
    margin-bottom: 60px;
}

/* ===== CONTACT CARDS ===== */
.contact-grid-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-glass-card {
    background: #eee;
    padding: 25px;
    border-radius: 15px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon-box i {
    color: rgb(0, 0, 0);
    font-size: 20px;
}

.contact-label {
    margin-bottom: 10px;
    color: #000000;
}

.contact-value {
    font-weight: bold;
}

.contact-label {
    margin-bottom: 10px;
    color: #555;
    font-size: small;
}


.contact-value {
    display: block;
    text-decoration: none;
    color: inherit;
    
}

.contact-value:hover  {
    color: orange;
    transition: 0.3s;
}



html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: sans-serif;
}

/* ГАЛЕРЕЯ */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 40px;
}

.item {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}



.item {
    aspect-ratio: 3 / 4; /* вертикальні фото */
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HOVER */
.item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

/* Фото */
.modal-img {
    max-height: 80vh;
    border-radius: 20px;
}

/* Закрити */
.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Стрілки */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    color: white;
}

.prev { left: 40px; }
.next { right: 40px; }

/* Лічильник */
.counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 14px;
}

:root {
    --header-height: 80px;
}
/*
header {
    height: var(--header-height);
}*/



.page-roofs .hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(0, 0, 0, 0.273), rgba(0,0,0,0.6)),
                url("ChatGPT\ Image\ 24\ апр.\ 2026\ г.\,\ 11_21_10.png");

    background-size: cover;
    background-position: center;

    text-align: center;
}

.footer {
    background: #242424;
    color: #ccc;
    padding: 60px 40px 20px;
     border-radius: 20px 20px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Колонки */
.footer-col {
    max-width: 250px;
}

.footer-col h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: orange;
}

/* Лого */
.footer-logo {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Соцмережі */
.socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.socials div {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Низ футера */
.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

.history-text cta-hero-badge {text-align: center;}


#hero,
#history,
#services,
#cta-hero-wrapper {
    scroll-margin-top: 90px;
}

#copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

/* коли активний */
#copy-toast.show {
    opacity: 1;
}

.burger {
    display: none;
}

header {
    transition: transform 0.3s ease, background 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}





/* MOBILE */
@media (max-width: 768px) {

    .logo {margin-left: 15px; }
  
.back-arrow {
    font-size: 28px;
    padding: 0px;
}
    .nav {
        padding: 10px 20px;
    }

    /* ховаємо меню */
    .menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        margin-right: 0;
         border-radius: 16px;
         overflow: hidden;
       
    }

  .menu a:hover {
        background: rgba(0, 0, 0, 0.05);
    }


    .menu {
    display: none;
}


    .menu a {
        display: block;
        margin: 15px 0;
        color: black;
    }

    /* активне меню */
    .menu.active {
        display: flex;
    }

    /* кнопка бургер */
    .burger {
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }

    header.scrolled .burger {
        color: black;
    }

    /* HERO */
      .hero {
        padding-top: 60px; /* 🔥 опускає весь контент вниз */
    }

    .hero-content {
        padding: 0 20px;
    }

    /* ===== TAG + TEXT ===== */
    .tag {
        font-size: 15px;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* ===== BUTTONS ===== */
    .buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    
    }

    .btn {
        width: 60%;
        text-align: center;
         margin: 0 auto;
    }

    /* ===== STATS (ГОРИЗОНТАЛЬНО) ===== */
    .stats {
        display: flex;
        flex-direction: row; /* 🔥 В РЯД */
        justify-content: space-between;
        gap: 10px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .stats div {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .stats h3 {
        font-size: 20px;
    }

    .stats p {
        font-size: 13px;
    }


}


@media (max-width: 768px) {

    /* SERVICES */
    .services {
        padding: 30px 20px;
    }

    .services h2 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* КАРТКИ → в колонку */
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

  .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* вирівнюємо заголовки */
.card h3 {
    min-height: 48px;
}

/* вирівнюємо текст */
.card p {
    min-height: 48px;
}

    /* CARD */
    .card {
        width: 100%;
        max-width: 350px;
        height: auto;
        padding: 25px;
        border-radius: 16px;
    }

    /* ICON */
    .icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .icon svg {
        width: 24px;
        height: 24px;
    }

    /* TEXT */
    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* кнопка */
    .more {
        font-size: 14px;
    }

    /* hover ефект краще вимкнути на мобільних */
    .card:hover {
        transform: none;
    }

       .card-link:nth-child(1) .card,
    .card-link:nth-child(3) .card {
        width: 100%;
        max-width: 400px !important;
    }

   .card-link:nth-child(2) .card {
        width: 100%;
        max-width: 320px !important;
    }
}

@media (max-width: 768px) {

    .cta-hero-content {
        padding: 12px;
        text-align: center;
    }

    .cta-hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .cta-hero-subtitle {
        font-size: 14px;
        margin-top: 10px;
    }

    .cta-hero-badge {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* ГОЛОВНЕ — сітка */
     .contact-grid-box {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 в ряд */
        gap: 10px;

    }

    .contact-glass-card {
        padding: 15px;
    }

    .contact-icon-box {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .contact-icon-box img {
        width: 22px;
        height: 22px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-value {
        font-size: 15px;
        word-break: break-word; /* щоб email не ламав верстку */
    }

    .cta-hero-wrapper {
    position: relative;
    padding: 20px 20px;
    overflow: hidden; /* 👈 важливо */
}

.cta-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* 👈 */
}

.cta-hero-content {
    position: relative;
    z-index: 2; /* 👈 */
}

}

.next-section {
    margin-top: 40px;
    position: relative; /* ✅ */
}

@media (max-width: 768px) {

     .gallery {
        grid-template-columns: repeat(2, 1fr); /* 🔥 2 фото в ряд */
        gap: 10px;
        padding: 15px;
    }

    .modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.95);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        touch-action: none; /* важливо для свайпів */
    }

    .modal-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0;
    }

    .prev, .next {
        display: none; /* ❌ ховаємо стрілки на мобільному */
    }

    .close {
        top: 20px;
        right: 20px;
        font-size: 32px;
        z-index: 10000;
    }

    .counter {
        bottom: 20px;
        font-size: 13px;
    }

     .modal .prev,
    .modal .next {
        display: none !important;
    }
}

body.modal-open {
    position: fixed;
    width: 100%;
}

body.modal-open header {
    background: transparent !important;
    box-shadow: none !important;
}