* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
}

body {
    background: #f2f2f2;
    color: #2b2b2b;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.hero {
    background: #e9e9e9;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.b2b-filter {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #f5b400;
    color: #111;
    padding: 14px 26px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

.hero-visual img {
    max-width: 100%;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.gray {
    background: #ededed;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.list {
    list-style: none;
}

.list li {
    margin-bottom: 12px;
}

.negative li::before {
    content: "✕ ";
    color: #999;
}

.positive li::before {
    content: "✓ ";
    color: #f5b400;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 20px;
}

.step {
    background: #fff;
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

.note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

footer {
    background: #1f1f1f;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* HONEYPOT FIELD — MUST BE HIDDEN */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* GALLERY */
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-item.video video {
    background: #000;
}

/* ===== THUMB GALLERY — FINAL FIX ===== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

/* КОНТЕЙНЕР THUMB */
.gallery-item {
    height: 160px;              /* ← ВОТ КЛЮЧ */
    background: #e3e3e3;
    border-radius: 4px;
    overflow: hidden;           /* ← ОБРЕЗАЕТ */
}

/* ФОТО */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* ← КРОП */
    display: block;
}

/* YOUTUBE */
.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {

    /* Галерея: 2 колонки */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Thumb выше, чтобы не резать детали */
    .gallery-item {
        height: 180px;
    }

    /* Убираем hover-эффекты (на mobile они не нужны) */
    .gallery-item img {
        filter: none;
    }
}

@media (max-width: 480px) {

    /* Очень маленькие экраны — 1 колонка */
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }
}

/* ===== CLICK TO ZOOM (B2B SAFE) ===== */

.gallery-item img[data-zoom] {
    cursor: zoom-in;
}

/* dialog */
#zoomDialog {
    border: none;
    padding: 0;
    background: transparent;
}

#zoomDialog::backdrop {
    background: rgba(0,0,0,0.6);
}

#zoomDialog img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
}

/* ===== HERO MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 16px;
    }

    .b2b-filter {
        font-size: 13px;
    }

    .hero-visual img {
        max-width: 220px;
        margin: 0;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 24px;
    }

    .hero-visual {
        display: none; /* скрываем лого — экономим экран */
    }
}
