/* ===== ОБЩИЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: #34495e;
}

.btn-order {
    background: #e67e22;
    border-radius: 20px;
    padding: 8px 20px !important;
    font-weight: 600;
}

.btn-order:hover {
    background: #d35400 !important;
}

/* ===== БУРГЕР ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 70px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* ===== ГЛАВНАЯ ===== */
.home {
    background: linear-gradient(rgba(44,62,80,0.8), rgba(44,62,80,0.8)), url('img/hero-bg.jpg') no-repeat center/cover;
    color: #fff;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.home p {
    font-size: 1.4rem;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #d35400;
}

/* ===== О КОМПАНИИ ===== */
.about {
    background: #f9f9f9;
}

.about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

/* ===== УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* ===== ГАЛЕРЕЯ ФОТО ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: block;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* ===== КОНТАКТЫ ===== */
.contacts-info {
    text-align: center;
    font-size: 1.1rem;
}

.contacts-info p {
    margin: 10px 0;
}

.contacts-info a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dotted #2c3e50;
}

.contacts-info a:hover {
    border-bottom: 2px solid #e67e22;
}

/* ===== ФОРМЫ ===== */
.order {
    background: #ecf0f1;
}

.order form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order input,
.order textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.order button {
    align-self: center;
}

#formStatus,
#catalogStatus {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* ===== ЛОГОТИП НА ГЛАВНОЙ (КРУГЛЫЙ) ===== */
.home-logo {
    display: block;
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
}

/* ===== ЛАЙТБОКС (ЗАТЕМНЕНИЕ) – РАБОТАЕТ НА ВСЕХ ЭКРАНАХ ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255,255,255,0.3);
    object-fit: contain;
}

/* ===== ФУТЕР ===== */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2c3e50;
        padding: 15px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .home h1 {
        font-size: 2.2rem;
    }

    .home p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Кнопки на главной в столбик */
    .home .btn-primary {
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 10px auto;
        text-align: center;
    }

    /* Логотип на главной чуть меньше на мобильных */
    .home-logo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        min-width: 120px !important;
    }
}

