* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Montserrat, sans-serif;
    background: #0f0f0f;
    color: white;
}

/* ВАЖНО — только один container */
.container {
    max-width: 1100px;
    width: 100%;
    padding: 0 15px;
    margin: auto;
}

/* ФИКС КАРТИНОК */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SECTION */
.section {
    padding: 80px 20px;
}

h1 { font-size: 40px; margin-bottom: 20px; }
h2 { font-size: 36px; text-align: center; margin-bottom: 40px; }
p { color: #cfcfcf; }

/* BUTTONS */
.max {
    margin-top: 20px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 28px;
    background:linear-gradient(135deg, #00D4FF, #7B68EE, #8B00FF);
    color:white !important;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
    font-family:system-ui, sans-serif;
    font-size:16px;
    box-shadow:0 4px 15px rgba(123,104,238,0.3);
    transition:all 0.3s ease;
}

.max a {
    color: white !important;
    text-decoration: none;
    display:inline-flex;
    align-items:center;
}

.btn {
    background: #B95A02;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 28px;
    height: 60px;
    line-height: 1;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
}

/* HERO */
.hero {
    background: url('https://optim.tildacdn.pub/tild6665-3033-4133-a466-306161363165/-/format/webp/photo.png.webp') center/cover no-repeat;
    padding: 160px 20px;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.65);
}
.hero .container {
    position: relative;
    z-index: 2;
}

/* FLEX БЛОКИ */
.cards,
.price,
.reviews,
.before-after {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* CARDS */
.card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    width: 250px;
    text-align: center;
}

/* BEFORE AFTER */
.before-after img {
    width: 100%;
    border-radius: 10px;
}

/* PRICE */
.price-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    width: 220px;
    text-align: center;
}

/* REVIEWS */
.review {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
}

/* CONTACTS */
.contacts {
    text-align: center;
}


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

/* Планшеты */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .buttons {
        align-items: center;
    }
}

/* Телефоны */
@media (max-width: 768px) {

    h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    h2 {
        font-size: 24px;
    }

    .section {
        padding: 50px 15px;
    }

    .hero {
        padding: 100px 15px;
        text-align: center;
    }
    
        .buttons {
        align-items: center;
    }

    /* ВСЕ В СТОЛБЕЦ */
    .cards,
    .price,
    .reviews,
    .before-after {
        flex-direction: column;
        align-items: center;
    }

    .card,
    .price-card,
    .review {
        width: 100%;
        max-width: 320px;
    }


    .max-float {
        right: 10px;
        bottom: 10px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
    }

    .hero {
        padding: 80px 10px;
    }
    
    .buttons {
        align-items: center;
    }
}
