/* ==========================================================================
   1. ОБЩИЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
    --primary-color: #2e7d32;     /* Фирменный зеленый */
    --primary-dark: #1b5e20;
    --accent-color: #e65100;      /* Оранжевый акцент */
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-desc {
    font-size: 12px;
    color: #777;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contacts .phone {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
}

.header-messengers {
    display: flex;
    gap: 10px;
}

.header-messengers a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
}

.ms-tg { background-color: #0088cc; }
.ms-wa { background-color: #25d366; }
.ms-max { background-color: #ff3366; font-family: sans-serif; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ==========================================================================
   3. ГЕРОЙ-СЛАЙДЕР
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.slider-track {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-info {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 650px;
}

.slide-info h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.slide-info p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover { background-color: var(--primary-color); }
.prev { left: 20px; }
.next { right: 20px; }

/* ==========================================================================
   4. ИНФОРМАЦИОННЫЙ БЛОК
   ========================================================================== */
.info-block-sec { padding: 40px 0 20px 0; }
.info-banner {
    background-color: #e8f5e9;
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: center;
}
.info-icon-box {
    font-size: 35px;
    color: var(--primary-color);
}
.info-content h3 { margin-bottom: 5px; color: var(--primary-dark); }
/* ==========================================================================
   5. ПОИСК И СОРТИРОВКА
   ========================================================================== */
.search-filter-sec { padding: 20px 0; }
.filter-form {
    display: flex;
    gap: 15px;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
}
.input-group {
    position: relative;
    flex: 1;
}
.search-inp i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}
.search-inp input { padding-left: 40px !important; }
.filter-form input, .filter-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.filter-controls {
    display: flex;
    gap: 15px;
    flex: 2;
}
.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* ==========================================================================
   6. КАТАЛОГ С СОВРЕМЕННЫМИ ПЛАШКАМИ
   ========================================================================== */
.catalog-sec { padding: 40px 0; }
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}
.plant-card {
    background: var(--white);
    border: 1px solid #eef2f5;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}
.card-image {
    position: relative;
    height: 220px;
    background-color: #f9f9f9;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    color: var(--white);
}
.in-stock { background-color: var(--primary-color); }
.out-of-stock { background-color: #757575; }

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.plant-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.plant-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.plant-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 6px;
}
.plant-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}
.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
}
.btn-buy {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}
.btn-buy:hover { background-color: var(--accent-color); }

/* ==========================================================================
   7. О НАС
   ========================================================================== */
.about-sec { padding: 60px 0; background-color: var(--light-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.about-img-wrapper { position: relative; text-align: center; }
.about-photo-frame {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-photo-frame img { width: 100%; display: block; }
.about-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    position: relative;
    top: -20px;
}

/* ==========================================================================
   8. СПОСОБЫ ОПЛАТЫ И ДОСТАВКА
   ========================================================================== */
.payment-sec { padding: 60px 0; }
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.payment-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
}
.p-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
.payment-card h4 { margin-bottom: 10px; font-size: 18px; }

.delivery-sec { padding: 40px 0 80px 0; }
.delivery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f1f8e9;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.delivery-text { padding: 40px; }
.delivery-list { margin: 20px 0; }
.delivery-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.delivery-list i { color: var(--primary-color); }
.delivery-warning {
    background-color: #fff3e0;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}
.delivery-map-stub {
    background-color: #c8e6c9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--primary-dark);
}
.delivery-map-stub i { font-size: 60px; }

/* ==========================================================================
   9. ПОДВАЛ (FOOTER) И СТИЛИ МЕССЕНДЖЕРОВ
   ========================================================================== */
.site-footer { background-color: #1a251c; color: #b1c2b5; padding: 60px 0 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.site-footer h3 { color: var(--white); margin-bottom: 20px; font-size: 22px; }
.site-footer h4 { color: var(--white); margin-bottom: 15px; }
.socnets-links { display: flex; gap: 15px; margin-top: 15px; }
.socnets-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: var(--transition);
}
.socnets-links a:hover { background-color: var(--primary-color); transform: scale(1.1); }
.footer-contacts-list li { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-contacts-list i { color: var(--primary-color); font-size: 18px; }

.messenger-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }
.m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
}
.m-btn small { font-weight: 400; opacity: 0.8; margin-left: auto; }
.wa-btn { background-color: #25d366; }
.tg-btn { background-color: #0088cc; }
.max-btn { background-color: #ff3366; }

.footer-bottom {
    background-color: #111a12;
    padding: 20px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-wrapper { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }

/* ==========================================================================
   10. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .delivery-wrapper { grid-template-columns: 1fr; }
    .delivery-map-stub { height: 180px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background-color: var(--white);
        transition: var(--transition);
        padding: 40px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-menu.open { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; font-size: 18px; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    
    .header-contacts { display: none; }
    .slide-info h2 { font-size: 28px; }
    .slide-info p { font-size: 15px; }
    .hero-slider { height: 350px; }
    .filter-form, .filter-controls { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
