/* === Фирменные переменные === */
:root {
    --primary: #0d5c2e;
    --primary-dark: #083d1e;
    --accent: #4caf50;
    --bg: #f9f9f9;
    --white: #ffffff;
    --text: #333333;
    --text-light: #555555;
    --border-radius: 8px;
}

/* === Базовые стили === */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-weight: 500;
    transition: background 0.3s;
}
.btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* === Шапка === */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
}
.logo-img {
    height: 48px;
    vertical-align: middle;
}
.logo span {
    font-family: 'Rubik Dirt', 'Montserrat', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--primary);
}
.logo:hover span { color: var(--accent); }

/* Навигация */
nav a { margin-left: 40px; }

/* === Главный экран (паттерн + градиент) === */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1b5e34, #0e4623);
    padding: 60px 0;
    text-align: center;
}
/* Псевдоэлемент с полупрозрачным паттерном */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('pattern.png') repeat;
    opacity: 0.15;            /* лёгкий узор, не перебивает цвет */
    pointer-events: none;
}
.hero h1, .hero p, .hero-cards {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
}
.hero p {
    font-size: 1.4em;
    font-weight: 500;
    opacity: 0.95;
    color: white;
}
.hero-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    flex: 1 1 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-5px); }
.hero-card.emergency { border-top: 5px solid #e63946; }
.hero-card.regular  { border-top: 5px solid #f4a261; }
.hero-card.project  { border-top: 5px solid var(--primary); }
.hero-card .btn { margin-top: 10px; }

/* === Услуги === */
#services { padding: 60px 0; background: var(--white); }
.services-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-light);
}
.services-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.service {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    flex: 1 1 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary);
}
.service-icon { font-size: 2.5em; margin-bottom: 15px; }
.service h3 { margin-bottom: 10px; color: var(--primary-dark); }
.service ul { list-style: none; padding: 0; }
.service ul li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
}

/* === Бот === */
#bot {
    background: #f0f8f4;
    padding: 60px 0;
    text-align: center;
}
.tariffs {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.tariff {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    flex: 1 1 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.tariff h3 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* === Магазин с вкладками === */
#shop { padding: 60px 0; }
.tabs { margin-top: 30px; }
.tabs input[type="radio"] { display: none; }
.tabs label {
    display: inline-block;
    padding: 10px 20px;
    background: #e0f2e9;
    color: var(--primary);
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin-right: 4px;
    font-weight: bold;
}
.tabs input[type="radio"]:checked + label {
    background: var(--primary);
    color: white;
}
.tab-content {
    display: none;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 0 5px 5px 5px;
}
#tab-plants:checked ~ #content-plants,
#tab-terrariums:checked ~ #content-terrariums,
#tab-succulents:checked ~ #content-succulents,
#tab-soils:checked ~ #content-soils,
#tab-care:checked ~ #content-care {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 220px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.product-img { font-size: 3em; }
.product h4 { margin: 10px 0; }
.product .btn { margin-top: 10px; }

/* === Контакты === */
#contacts { padding: 60px 0; text-align: center; }

/* === Подвал === */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ========================================================================== */
@media (max-width: 768px) {
    /* Шапка становится вертикальной */
    header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    .logo { margin-bottom: 8px; }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        margin-left: 15px;
        font-size: 0.9em;
    }

    /* Главный экран */
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.8em; }
    .hero p  { font-size: 1.1em; }
    .hero-cards { gap: 15px; }
    .hero-card { padding: 20px; flex: 1 1 100%; }

    /* Услуги */
    .services-grid { gap: 20px; }
    .service { flex: 1 1 100%; }

    /* Тарифы */
    .tariffs { flex-direction: column; align-items: center; }
    .tariff { width: 100%; max-width: 300px; flex: 1 1 auto; }

    /* Магазин – вкладки в столбик */
    .tabs label {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
        border-radius: 5px;
    }
    .tab-content { padding: 15px; }
    #tab-plants:checked ~ #content-plants,
    #tab-terrariums:checked ~ #content-terrariums,
    #tab-succulents:checked ~ #content-succulents,
    #tab-soils:checked ~ #content-soils,
    #tab-care:checked ~ #content-care {
        flex-direction: column;
    }
    .product { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5em; }
    .hero p  { font-size: 1em; }
    nav a { margin-left: 10px; font-size: 0.85em; }
}