/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Merriweather', Georgia, serif;
    background: url('fon.jpg') center/cover no-repeat fixed;
    background-color: #2c2418;
    color: #2c2418;
    line-height: 1.5;
    position: relative;
}

/* Затемнение для всего фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА (HEADER) ========== */
header {
    background: rgba(249, 166, 2, 0.95);
    background: linear-gradient(135deg, rgba(249, 166, 2, 0.95) 0%, rgba(255, 205, 74, 0.95) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #2c2b26;
}

.logo p {
    font-size: 0.9rem;
    color: #4a3b28;
    font-weight: 500;
}

.contacts-header a {
    color: #2c2418;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 200, 0.9);
    padding: 6px 14px;
    border-radius: 40px;
    transition: 0.2s;
}

.contacts-header a:hover {
    background: white;
    transform: translateY(-2px);
}

/* ========== ГЕРОЙ-БЛОК ========== */
.hero {
    background: transparent;
    min-height: 380px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    margin: 2rem;
}

.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px black;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    background: #f5b042;
    color: #2c2418;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #ffc857;
    transform: scale(1.02);
}

/* ========== СЕКЦИИ ========== */
section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(240, 224, 192, 0.3);
    background: rgba(255, 247, 232, 0.92);
    margin: 0;
    border-radius: 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: #6b3e1c;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #f5b042;
    margin: 10px auto 0;
}

/* ========== БЛОК "О НАС" ========== */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
    background: rgba(255, 247, 232, 0.95);
    padding: 1.5rem;
    border-radius: 32px;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-badge {
    flex: 1;
    background: rgba(255, 243, 224, 0.95);
    padding: 1.5rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-badge span {
    font-size: 3rem;
}

.about-badge h3 {
    margin: 10px 0;
}

.about-badge hr {
    margin: 10px 0;
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item p {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    background: rgba(255, 247, 239, 0.95);
}

/* ========== ДОСТАВКА ========== */
.delivery-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 1rem;
}

.delivery-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 1rem 2rem;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.2s;
}

.delivery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.delivery-card span {
    font-size: 2rem;
    display: block;
}

.region-note {
    background: rgba(231, 240, 232, 0.95);
    border-left: 8px solid #f5b042;
    padding: 1rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    text-align: center;
}

/* ========== ФОРМА ЗАКАЗА ========== */
.order-form {
    background: rgba(255, 247, 232, 0.95);
    padding: 2rem;
    border-radius: 36px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #eeddbb;
    border-radius: 48px;
    font-size: 1rem;
    background: white;
    transition: 0.2s;
    font-family: inherit;
}

textarea {
    border-radius: 24px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #f5b042;
    box-shadow: 0 0 0 2px rgba(245, 176, 66, 0.2);
}

button[type="submit"] {
    background: #6b3e1c;
    color: white;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: #8b5a2b;
    transform: translateY(-2px);
}

/* ========== АЛЕРТЫ (СООБЩЕНИЯ) ========== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 28px;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== ПОДВАЛ (FOOTER) ========== */
footer {
    background: rgba(44, 36, 24, 0.95);
    color: #e9dbc9;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: #ffcd7e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 8px 0;
}

/* ========== АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ========== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-grid {
        flex-direction: column;
    }

    .about-text {
        padding: 1rem;
    }

    .delivery-card {
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .gallery-item img {
        height: 180px;
    }

    .order-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 280px;
    }

    .hero-content {
        margin: 1rem;
        padding: 1rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .delivery-icons {
        gap: 1rem;
    }

    .delivery-card {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .delivery-card span {
        font-size: 1.5rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #f5b042;
    color: #2c2418;
}