/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Inter,Arial,sans-serif;

    color:#222;

    background:#F6F4F1;

    line-height:1.6;

}

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    border:none;

    cursor:pointer;

    font-family:inherit;

}

/* ===========================
   CONTAINER
=========================== */

.container{

    width:min(1200px,92%);

    margin:auto;

}

/* ===========================
   HEADER
=========================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    background:rgba(248,246,242,.95);
    border-bottom:1px solid rgba(183,149,75,.18);

    backdrop-filter:blur(12px);

    box-shadow:0 2px 20px rgba(0,0,0,.05);

}

header .container{

    height:82px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-size:30px;

    font-weight:800;

    letter-spacing:2px;

}

nav{

    display:flex;

    gap:38px;

}

nav a{

    transition:.3s;

    font-weight:500;

}

nav a:hover{

    color:#B7954B;

}

.header-btn{

    background:#B7954B;

    color:#222;

    padding:14px 28px;

    border-radius:40px;

    transition:.3s;

}

.header-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(24,181,103,.3);

}

/* ===========================
   HERO
=========================== */












.hero{

    position:relative;

    height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

}

.hero img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(90deg,rgba(36,36,36,.72),rgba(36,36,36,.32));

}


.hero-content{
    position:relative;
    color:#fff;  /* изменено с #222 на белый */
    max-width:700px;
}

.hero h1{
    font-size:68px;
    line-height:1.1;
    margin-bottom:25px;
    color:#fff;  /* добавлено */
}


.hero p{
    font-size:22px;
    margin-bottom:40px;
    color:#fff;  /* добавлено */
}

.btn{
    display:inline-block;
    padding:18px 42px;
    background:#B7954B;
    background:linear-gradient(180deg,#D4BE82,#B7954B);
    border-radius:50px;
    color:#222;
    font-weight:600;
    transition:.3s;
}


.btn:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(183,149,75,.4);  /* изменено с зеленого на золотистый */
}

/* ===========================
   SECTIONS
=========================== */

section{

    padding:110px 0;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:44px;

    margin-bottom:15px;

}

.section-title p{

    color:#777;

}

/* ===========================
   PRODUCTS
=========================== */

.products{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:35px;

}

.card{

    border-radius:20px;

    overflow:hidden;

    background:white;

    box-shadow:0 15px 50px rgba(0,0,0,.07);

    transition:.35s;

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 30px 70px rgba(0,0,0,.15);

}

.card img{

    height:300px;

    width:100%;

    object-fit:cover;

}

.card-content{

    padding:28px;

}

.card h3{

    margin-bottom:15px;

    font-size:24px;

}

.card p{

    color:#666;

    margin-bottom:20px;

}

.price{

    font-size:30px;

    color:#B7954B;

    font-weight:700;

    margin-bottom:20px;

}

.card button{

    width:100%;

    height:54px;

    border-radius:40px;

    background:#B7954B;

    color:#222;

    font-size:16px;

    transition:.3s;

}

.card button:hover{

    background:#2A2A2A;
    border-top:2px solid #B7954B;

}

/* ===========================
   ADVANTAGES
=========================== */

.advantages{

    background:#F1EFEA;

}

.adv-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.adv{

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:0 10px 35px rgba(0,0,0,.05);

}

.adv h3{

    margin-bottom:15px;

}

/* ===========================
   ABOUT
=========================== */

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about img{

    border-radius:25px;

}

.about h2{

    font-size:42px;

    margin-bottom:25px;

}

.about p{

    margin-bottom:20px;

    color:#555;

}

/* ===========================
   CONTACTS
=========================== */

.contacts{

    background:#F1EFEA;

}

form{

    max-width:700px;

    margin:auto;

}

input,
textarea{

    width:100%;

    margin-bottom:20px;

    padding:18px;

    border:none;

    border-radius:14px;

    background:white;

    font-size:16px;

}

textarea{

    min-height:170px;

    resize:none;

}

form button{

    width:100%;

    height:60px;

    background:#B7954B;

    color:#222;

    border-radius:40px;

    font-size:18px;

    transition:.3s;

}

form button:hover{

    background:#2A2A2A;
    border-top:2px solid #B7954B;

}

/* ===========================
   FOOTER
=========================== */

footer{

    background:#2A2A2A;
    border-top:2px solid #B7954B;

    color:white;

    text-align:center;

    padding:40px 0;

}

/* ===========================
   BURGER
=========================== */

.burger{

    display:none;

    flex-direction:column;

    gap:5px;

    cursor:pointer;

}

.burger span{

    width:28px;

    height:3px;

    background:#222;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:900px){

.hero h1{

font-size:48px;

}

.about-grid{

grid-template-columns:1fr;

}

nav{

display:none;

}

.header-btn{

display:none;

}

.burger{

display:flex;

}

}

@media(max-width:600px){

.hero h1{

font-size:38px;

}

.section-title h2{

font-size:34px;

}

section{

padding:80px 0;

}

.card img{

height:230px;

}

}

/* ===========================
   ФОРМА ЗАКАЗА — ЧЕКБОКС В ОДНУ СТРОКУ
=========================== */



.order_form .lb_b input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #B7954B;
    cursor: pointer;
    flex-shrink: 0; /* ЗАПРЕЩАЕМ СЖАТИЕ */
}

.order_form .lb_b a {
    color: #B7954B;
    text-decoration: underline;
    white-space: nowrap; /* ЗАПРЕЩАЕМ ПЕРЕНОС ССЫЛКИ */
}
.order_form .lb_b a:hover {
    color: #8a6f3a;
}

/* АДАПТИВ ДЛЯ ТЕЛЕФОНОВ */
@media(max-width: 480px) {
    .order_form .lb_b {
        flex-wrap: wrap; /* РАЗРЕШАЕМ ПЕРЕНОС ТОЛЬКО НА МАЛЕНЬКИХ ЭКРАНАХ */
        gap: 5px;
    }
    .order_form .lb_b a {
        white-space: normal; /* РАЗРЕШАЕМ ПЕРЕНОС ССЫЛКИ НА ТЕЛЕФОНАХ */
    }
}

.lb_b {
    font-size: 13px;
    line-height: 13px;
    margin-top: 15px;
    padding-left: 10px;
    padding-bottom: 10px;
    width: 100%;
    display: block;
    text-align: center;
    color: #000;
}


/* ===========================
   ГАЛЕРЕЯ ТОВАРА — ИСПРАВЛЕННАЯ
=========================== */

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 100%;
}

.product-gallery .main-img {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.product-gallery .main-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* ИСПРАВЛЕНИЕ — через flex */
.thumbs {
    display: flex !important; /* добавляем !important чтобы перебить другие стили */
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.thumbs img {
    border-radius: 12px;
    height: 100px;
    width: calc(33.333% - 8px) !important; /* 3 фото в ряд */
    min-width: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: .3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbs img:hover {
    border-color: #B7954B;
    opacity: .8;
}

/* АДАПТИВ */
@media(max-width: 768px) {
    .thumbs img {
        height: 80px;
        width: calc(33.333% - 8px);
    }
}

@media(max-width: 480px) {
    .thumbs img {
        height: 70px;
        width: calc(33.333% - 8px);
        min-width: 60px;
    }
}

.product-gallery {
    margin-right: 20px; /* ДОПОЛНИТЕЛЬНЫЙ ОТСТУП СПРАВА ОТ ГАЛЕРЕИ */
}