/* ===== ОСНОВА ===== */

:root {
    --dark: #0A1D3D;
    --gold: #C79C49;
    --light: #F5F7FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--light);
    color: var(--dark);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===== HEADER ===== */

.header {
    background: var(--dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
}

/* ===== КНОПКИ ===== */

.btn {
    background: var(--gold);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    display: inline-block;
}

.btn:hover {
    background: #b88b3f;
}

.btn-outline {
    border: 1px solid var(--dark);
    color: var(--dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
}

/* ===== HERO ===== */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A1D3D, #132c5c);
    color: white;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-inner > * {
    min-width: 0;
}

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ===== ABOUT ===== */

.about {
    padding: 70px 0;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ===== FEATURES ===== */

.features {
    padding: 60px 0;
}

.features-grid {
    display: flex;
    gap: 20px;
}

.feature {
    text-align: center;
    width: 100%;
}

.feature img {
    height: 60px;
    margin-bottom: 15px;
}

/* ===== CATALOG ===== */

.catalog {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== КАРТОЧКИ ===== */

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: white;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
    background: #fff;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    min-height: 48px;
    font-size: 18px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card-buttons a {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

/* ===== PRODUCT ===== */

.product {
    padding: 60px 0;
}

.product-inner {
    display: flex;
    gap: 50px;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

.product-info h1 {
    font-size: 32px;
}

.product-desc {
    margin: 20px 0;
}

.product-chars li {
    margin-bottom: 6px;
}

/* ===== CTA ===== */

.cta {
    background: var(--dark);
    color: white;
    padding: 60px 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== FOOTER ===== */

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1024px) {

    .container {
        width: 90%;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .features-grid {
        flex-direction: column;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-inner {
        flex-direction: column;
    }

    .product-image img {
        width: 100%;
    }

    .cta-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero-image {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 26px;
    }

    .btn {
        display: block;
        margin-bottom: 10px;
    }

    .card-buttons a {
        width: 100%;
    }
}

/* ===== ГАЛЕРЕЯ ===== */

.main-image {
    position: relative;
    cursor: pointer;
}

.main-image img {
    max-width: 400px;
    width: 100%;
}

.photo-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #C79C49;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.photo-hint {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* ===== МОДАЛКА ===== */

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

/* крестик */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* стрелки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* ===== ДОБАВЛЕНО: МОБ МЕНЮ (АККУРАТНО) ===== */

.burger {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background: var(--dark);
    padding: 20px;
    transition: 0.3s;
    z-index: 9999;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 15px 0;
}

.mobile-menu.active {
    left: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9998;
}

.overlay.active {
    display: block;
}