/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ===== ОСНОВА ===== */
body {
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #ffeff6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: #ff5fa2;
}

/* ===== HERO ===== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('https://images.unsplash.com/photo-1526045612212-70caf35c14df');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding-top: 200px;
}

.hero h1 {
    font-size: 48px;
}

.hero p {
    margin-top: 15px;
    font-size: 20px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    margin-top: 25px;
    background: #ff5fa2;
    padding: 15px 30px;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.btn:hover {
    background: #e94c8f;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 60px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: #ffe3ef;
    padding: 25px;
    border-radius: 20px;
    font-size: 18px;
}

/* ===== КАТАЛОГ ===== */
.catalog {
    padding: 80px 60px;
}

.catalog h1,
.catalog h2 {
    text-align: center;
    font-size: 40px;
}

.subtitle {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    color: #666;
}

/* ===== СЕТКА ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* ===== КАРТОЧКА ===== */
.card {
    background: #fff0f7;
    padding: 25px;
    border-radius: 25px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden; /* 🔥 РЕШАЕТ ПРОБЛЕМУ */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== КАРТИНКА ===== */
.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.08);
}

/* ===== ТЕКСТ ===== */
.card h3 {
    font-size: 22px;
    margin-top: 10px;
}

.card p {
    margin-top: 8px;
    font-size: 18px;
    color: #444;
}

/* ===== ЦЕНА ===== */
.price {
    font-weight: bold;
    color: #ff5fa2;
}

/* ===== ORDER ===== */
.order {
    background: #ff5fa2;
    color: white;
    text-align: center;
    padding: 70px 30px;
}

.order h2 {
    font-size: 36px;
}

.order p {
    margin-top: 15px;
    font-size: 18px;
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
    display: inline-block;
    margin-top: 25px;
    background: #25d366;
    color: white;
    padding: 16px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
}

/* ===== BACK BUTTON ===== */
.back-home {
    margin: 30px 0;
}

.back-btn {
    display: inline-block;
    background: #ff5fa2;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.back-btn:hover {
    background: #e94c8f;
    transform: translateX(-5px);
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 25px;
}

/* ===== АНИМАЦИИ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards;
}

.fade-delay-1 { animation-delay: 0.3s; }
.fade-delay-2 { animation-delay: 0.6s; }
.fade-delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }
}

