/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; max-width: 900px; margin: 0 auto; padding: 20px; width: 100%; }
h1, h2 { color: #0f172a; margin-bottom: 20px; }

/* =========================================
   НАВИГАЦИЯ
   ========================================= */
nav {
    background: #1e293b;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav .logo { color: #fff; font-weight: bold; font-size: 1.2rem; }

/* Ссылки для ПК */
nav .links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
    font-weight: 500;
}
nav .links a:hover { color: #38bdf8; }

/* =========================================
   ВЫКАТНОЕ МЕНЮ (БУРГЕР)
   ========================================= */
.burger {
    display: none; /* Скрыт на ПК */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 102;
}
.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #1e293b;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 101;
    }

    .links.active {
        right: 0;
    }

    .links a {
        margin: 15px 0;
        font-size: 1.2rem;
        margin-left: 0;
    }

    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================
   СЕКЦИИ И ФОТО
   ========================================= */
.section { padding: 60px 0; border-bottom: 1px solid #e2e8f0; }
.section:last-child { border-bottom: none; }

.main-photo {
    width: 100%; max-width: 350px; height: auto;
    border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 20px; display: block;
}

/* =========================================
   УСЛУГИ
   ========================================= */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-top: 20px;
}
.service-card {
    background: #fff; border-radius: 10px; padding: 25px;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 2.5rem; margin-bottom: 10px; }
.service-card h3 { margin-bottom: 10px; color: #0ea5e9; }

/* =========================================
   ГАЛЕРЕЯ (ПОРТФОЛИО)
   ========================================= */
.gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-top: 20px;
}
.gallery-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; padding-bottom: 15px;
}
.gallery-img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; }
.gallery-card h3 { margin-bottom: 8px; color: #0f172a; }
.gallery-card p { color: #64748b; }

/* =========================================
   ОТЗЫВЫ
   ========================================= */
.reviews-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; margin-bottom: 40px; }
.review-box {
    display: flex; gap: 20px; background: #fff; padding: 20px;
    border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); align-items: center;
}
.review-avatar {
    font-size: 2rem; background: #e2e8f0; width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.review-text p { font-style: italic; margin-bottom: 10px; font-size: 1rem; line-height: 1.5; }
.review-author { font-weight: bold; color: #0ea5e9; font-style: normal !important; }
.review-date { color: #94a3b8; font-weight: normal; font-size: 0.85rem; }

.add-review-box {
    background: #fff; padding: 25px; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 5px solid #0ea5e9;
}
.add-review-box h3 { margin-bottom: 15px; color: #0f172a; }
.review-form { display: flex; flex-direction: column; gap: 10px; }
.review-form input, .review-form textarea {
    padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit;
}
.review-form button {
    background: #0ea5e9; color: #fff; border: none; padding: 12px;
    border-radius: 6px; cursor: pointer; font-weight: bold; transition: background 0.2s;
}
.review-form button:hover { background: #0284c7; }

/* =========================================
   КОНТАКТЫ (ФОРМА)
   ========================================= */
.contact-form {
    display: flex; flex-direction: column; gap: 15px; max-width: 500px;
    background: #fff; padding: 30px; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-top: 20px;
}
.contact-form label { font-weight: bold; color: #475569; }
.contact-form input, .contact-form textarea {
    padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit;
}
.contact-form button {
    background: #0ea5e9; color: #fff; border: none; padding: 14px;
    border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: bold;
}
.contact-form button:hover { background: #0284c7; }
.alert { background: #dcfce7; color: #166534; padding: 15px; border-radius: 6px; margin-bottom: 20px; font-weight: bold; }

/* =========================================
   ФУТЕР
   ========================================= */
footer {
    background: #1e293b; color: #94a3b8; text-align: center;
    padding: 40px 20px; margin-top: 40px;
}
.footer-contacts, .socials {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; flex-wrap: wrap;
}
.footer-contacts a, .socials a {
    color: #cbd5e1; text-decoration: none; transition: color 0.2s; font-weight: 500;
}
.footer-contacts a:hover, .socials a:hover { color: #38bdf8; }
.copyright { font-size: 0.9rem; margin-top: 20px; color: #64748b; }