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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ================= ТИПОГРАФИЯ ================= */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2a5c3d; /* Тёмно-зелёный, ассоциируется с цветами */
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ================= КНОПКИ ================= */
.btn {
    display: inline-block;
    background-color: #e63946; /* Акцентный красный/коралловый */
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #d62839; /* Более тёмный оттенок при наведении */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2a5c3d; /* Основной зелёный */
}

.btn-secondary:hover {
    background-color: #1f4a2f;
}

/* ================= ШАПКА САЙТА ================= */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e63946;
    border-bottom: 2px solid #e63946;
}

/* ================= ГЛАВНЫЙ БАННЕР ================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/glave.jpg') center/cover no-repeat;
    /* ЗАМЕНИТЕ 'hero-bg.jpg' на имя вашего фонового изображения для баннера! */
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    margin-bottom: 4rem;
}

.hero h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ================= СЕКЦИЯ "О НАС" ================= */
.about {
    padding: 4rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.about-image {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    width: 50%;
}

/* ================= КАТАЛОГ ================= */
.catalog-preview {
    background-color: #f9f9f9;
    padding: 5rem 0;
}

.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.flower-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flower-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.flower-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.flower-info {
    padding: 1.5rem;
}

.flower-info h3 {
    color: #2a5c3d;
    margin-bottom: 0.5rem;
}

.flower-info p {
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e63946;
    margin-top: 0.5rem;
}

/* ================= СЕКЦИЯ "КОНТАКТЫ" ================= */
.contact {
    padding: 5rem 0;
}

.contact-wrapper {
    display: flex;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* ================= ПОДВАЛ ================= */
.site-footer {
    background-color: #2a5c3d;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.site-footer a {
    color: #a8d5ba;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-nav {
    margin-top: 1.5rem;
}

/* ================= АДАПТИВНОСТЬ (ДЛЯ МОБИЛЬНЫХ) ================= */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding: 5rem 1rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image, .about-text {
        width: 100%;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .flower-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}
