/* ===================== */
/* ПЕРЕМЕННЫЕ */
/* ===================== */
:root {
    --bg-main: #0f0f0f;
    --bg-dark: #111;
    --accent: #ffb300;
    --accent-hover: #ffa000;
    --text-light: #ccc;
    --border: #222;
}

/* ===================== */
/* БАЗА */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg-main);
    color: #fff;
}

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

/* контейнер */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===================== */
/* HEADER */
/* ===================== */
.header {
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
}

.phone {
    color: var(--accent);
    text-decoration: none;
}

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

/* ===================== */
/* МЕНЮ */
/* ===================== */
.menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: var(--bg-dark);
    padding: 10px 0;
}

.menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover {
    color: var(--accent);
}

/* ===================== */
/* HERO */
/* ===================== */
.hero {
    background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    url("img/5.jpg") center/cover no-repeat;

    padding: 120px 20px;
    min-height: 500px;

    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-light);
    margin: 5px 0;
}

.hero-info {
    margin-top: 15px;
    color: var(--accent);
}

/* ===================== */
/* КНОПКА */
/* ===================== */
.btn {
    display: inline-block;
    margin-top: 25px;
    background: var(--accent);
    color: #000;
    padding: 14px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(255,165,0,0.6);
}

/* ===================== */
/* СЕКЦИИ */
/* ===================== */
.section {
    padding: 60px 0;
    text-align: center;
}

/* ===================== */
/* УСЛУГИ */
/* ===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent);
}

/* ===================== */
/* ГАЛЕРЕЯ */
/* ===================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: 220px; /* фикс вместо aspect-ratio */
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.08);
}

/* ===================== */
/* КОНТАКТЫ */
/* ===================== */
.contacts {
    background: var(--bg-dark);
}

/* ===================== */
/* ФОРМА */
/* ===================== */
form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
}

/* ===================== */
/* LIGHTBOX */
/* ===================== */
.lightbox {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* ===================== */
/* КНОПКА ВВЕРХ */
/* ===================== */
#toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 15px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

/* ===================== */
/* POPUP */
/* ===================== */
.success-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-box {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    border: 2px solid orange;
}

/* ===================== */
/* АНИМАЦИИ */
/* ===================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* АДАПТАЦИЯ */
/* ===================== */
@media (max-width: 900px) {
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

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

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

@media (max-width: 600px) {
    .burger {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
    }

    .menu.active {
        display: flex;
    }

    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        width: 100%;
    }

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

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

    .phone {
        display: none;
    }
}