/* =========================================================
   1. ЗМІННІ / RESET / БАЗОВА ТИПОГРАФІКА
   ========================================================= */
:root {
    --primary-swamp: #424f3b;    /* Глибокий суворий хакі */
    --secondary-swamp: #45543e;  /* Дуже темний зелений для шапки/футера */
    --accent-green: #de771d;     /* Тактичний помаранчевий (кнопки) */
    --text-dark: #1a1e17;        /* Насичений колір для тексту */
    --text-light: #ffffff;       /* Контрастний білий */
    --text-body: #383838;        /* Колір звичайного тексту в картках */
    --bg-color: #bbd1af;         /* Світлий чистий фон */

    --radius-s: 8px;
    --radius-m: 15px;
    --radius-l: 25px;

    --shadow-card: 0 8px 20px rgba(0,0,0,.05), 0 20px 40px rgba(0,0,0,.08);
    --shadow-soft: 0 5px 15px rgba(0,0,0,.05);
    --shadow-photo: 5px 5px 0px var(--primary-swamp); /* фірмова тінь-рамка */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 17px;
}

h1, h2, h3, .logo {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

b, strong {
    font-weight: 600;
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.lead-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-swamp);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-green);
    padding-left: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--text-light);
    padding: 12px 35px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    border-radius: 10px;
    border: 2px solid var(--accent-green);
    transition: all .3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-swamp);
    border-color: var(--secondary-swamp);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(77,91,71,.4);
}


/* =========================================================
   2. НАВІГАЦІЯ
   ========================================================= */
.navbar {
    background-color: var(--secondary-swamp);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: var(--text-light);
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--accent-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color .3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
}

/* Бургер-кнопка (прихована на ПК) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all .3s ease-in-out;
}


/* =========================================================
   3. HERO (банер сторінки)
   ========================================================= */
.hero {
    width: 100%;
    height: 12vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
   background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url("banner.png");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--text-light);
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}


/* =========================================================
   4. КАРТКИ (feature-card / about-product / product-card)
   ========================================================= */

/* --- Секція "Про продукт" (Головна) --- */
.about-product {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: var(--radius-m);
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: var(--shadow-card);
}

.about-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text { flex: 1; }

.about-text h2 {
    color: var(--primary-swamp);
    margin-bottom: 15px;
    font-size: 1.8rem;
    line-height: 1.2;
}

.about-text p,
.price-container,
.price-list li {
    margin-bottom: 20px;
    color: var(--text-body);
    font-size: 15px;
}

.about-image { flex: .7; }

.about-image img {
    height: 300px;
    width: auto;
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-photo);
}

/* Вертикальний варіант секції (блок "Види раундів") */
.rounds-vertical-layout {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 30px !important;
}

.text-full-width { flex: 1; width: 100%; }
.round-item-text { margin-top: 25px; }
.last-paragraph { margin-top: 10px; }

.rounds-gallery-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 10px 0;
}

.round-gallery-img { flex: 1; }

.round-gallery-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-photo);
}

/* --- Блок цін --- */
.price-container { margin-top: 20px; }

.price-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-swamp);
    margin-bottom: 12px;
    font-size: 15px;
}

.price-list {
    list-style: none;
}

.price-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.price-list li::before {
    content: "•";
    color: var(--primary-swamp);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.price-badge {
    color: var(--primary-swamp);
    font-weight: 600;
}

.price-note {
    color: var(--text-body);
    font-size: 14px;
    font-style: italic;
    margin-left: 5px;
}

/* --- Список переваг --- */
.benefits-list {
    list-style: none;
    margin-top: 20px;
}

.benefits-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.benefits-list li::before {
    content: "•";
    color: var(--primary-swamp);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- Картки переваг (Продаж макетів) --- */
.intro {
    padding: 30px 0;
    text-align: center;
}

.intro h2 {
    color: var(--primary-swamp);
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-s);
    border-bottom: 4px solid var(--primary-swamp);
    box-shadow: var(--shadow-card);
    transition: transform .3s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card h3 {
    color: var(--secondary-swamp);
    margin-bottom: 15px;
}

/* --- Картки товарів (Каталог) --- */
.product-card {
    background-color: #fff;
    border-radius: var(--radius-l);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.product-card:hover { transform: translateY(-5px); }

.product-img-box {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.product-img-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-photo);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--secondary-swamp);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-specs {
    list-style: none;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.product-specs li {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-body);
    font-weight: 600;
}

.product-specs li span {
    color: var(--primary-swamp);
    font-weight: 400;
    margin-left: 5px;
}


/* =========================================================
   5. СТОРІНКА "ПРОДАЖ МАКЕТІВ" (buypage.html)
   ========================================================= */
.buypage-wrapper {
    padding-bottom: 50px;
}

.content-box {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.content-box h2 {
    color: var(--secondary-swamp);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-box .func-text:first-of-type,
.content-box .func-text:first-of-type h2 {
    margin-top: 0;
}

.func-text {
    width: 100%;
    font-size: 1.1rem;
    color: var(--text-body);
    margin: 30px 0;
}

.func-text h2 {
    color: var(--primary-swamp);
    text-align: center;
}

/* Модифікатор: центрований текстовий блок (використовується в каталозі) */
.func-text--centered {
    text-align: center;
    padding-top: 40px;
}

.func-text .benefits-list {
    display: inline-block;
    text-align: left;
}

.func-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 40px auto;
    max-width: 1200px;
}

.func-featured-img {
    flex: 1;
    display: block;
    width: 100%;
    max-width: 450px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-photo);
}


/* =========================================================
   6. СТОРІНКА "КАТАЛОГ" (catalog.html)
   ========================================================= */
.catalog-wrapper {
    padding: 40px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.catalog-grid:last-child { margin-bottom: 0; }


/* =========================================================
   7. СТОРІНКА "КОНТАКТИ" (contacts.html)
   ========================================================= */
.contacts-wrapper {
    padding-top: 50px;
    padding-bottom: 60px;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info-box {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-l);
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-soft);
}

.contact-info-box h2 {
    color: var(--secondary-swamp);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
    padding-left: 15px;
    border-left: 3px solid var(--accent-green);
}

.contact-list strong {
    color: var(--primary-swamp);
    display: block;
    margin-bottom: 0;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}


/* =========================================================
   8. ФУТЕР
   ========================================================= */
footer {
    background-color: var(--secondary-swamp);
    color: #f1f1f1;
    text-align: center;
    padding: 20px 0;
}

footer strong,
footer .phone {
    font-weight: 600;
}

footer .phone {
    color: inherit;
    text-decoration: none;
}

footer .phone:hover {
    text-decoration: underline;
}


/* =========================================================
   9. АДАПТИВНІСТЬ (МОБІЛЬНА ВЕРСІЯ)
   Орієнтир — реальні телефони (320–430px), не планшети.
   ≤600px  — основний мобільний брейкпоінт (усі смартфони)
   ≤380px  — додаткове звуження для найменших екранів (iPhone SE тощо)
   ========================================================= */
@media (max-width: 600px) {

    .container { padding: 0 16px; }

    /* --- Навігація --- */
    .hamburger { display: block; z-index: 1001; }

    .nav-menu {
        position: absolute;   /* прив'язане до nav-container, а не до жорсткого top:60px */
        top: 100%;
        left: 0;
        transform: translateX(-100%);
        gap: 0;
        flex-direction: column;
        background-color: var(--secondary-swamp);
        width: 100%;
        text-align: center;
        transition: transform .3s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,.1);
        z-index: 1000;
    }

    .nav-menu.active { transform: translateX(0); }

    .nav-link { display: block; margin: 0; padding: 16px 0; font-size: 1.1rem; }

    /* Анімація перетворення бургера в хрестик */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Hero --- */
    .hero { height: auto; min-height: 160px; padding: 30px 16px; }
    .hero h1 { font-size: 1.5rem; }

    /* --- Головна / картки --- */
    .about-product { padding: 25px 0; }
    .about-content { flex-direction: column; gap: 25px; padding: 0 16px; }
    .about-text h2 { font-size: 1.4rem; }
    .lead-text { font-size: 16px; }
    .about-image img { height: auto; width: 100%; max-height: 240px; object-fit: cover; box-shadow: 5px 5px 0px var(--accent-green); }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 20px; }
    .btn { width: 100%; text-align: center; }

    .rounds-gallery-row { flex-direction: column; gap: 12px; }
    .round-gallery-img img { height: 200px; }

    /* --- Продаж макетів --- */
    .buypage-wrapper { padding-top: 20px; }
    .content-box { padding: 20px; }
    .content-box h2 { font-size: 1.3rem; }
    .func-image-wrapper { flex-direction: column; gap: 16px; }
    .func-featured-img { max-width: 100%; height: auto; }
    .intro h2 { font-size: 1.5rem; margin-bottom: 25px; }

    /* --- Каталог --- */
    .catalog-wrapper { padding: 20px 0; }
    .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-img-box img { height: 200px; }

    /* --- Контакти --- */
    .contacts-wrapper { padding-top: 20px; padding-bottom: 30px; }
    .contact-info-box { padding: 25px; }
}

/* --- Найменші екрани (iPhone SE та подібні, ~320–380px) --- */
@media (max-width: 380px) {
    body { font-size: 15px; }
    .logo { font-size: 19px; }
    .hero h1 { font-size: 1.25rem; }
    .about-text h2 { font-size: 1.2rem; }
    .content-box { padding: 16px; }
    .round-gallery-img img,
    .product-img-box img { height: 170px; }
}