/* ========= HOME.CSS - СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ========= */

/* ========= HERO секция ========= */
.hero {
    padding: 30px 0 10px 0;
    position: relative;
    padding-top: 96px;
    padding-bottom: 40px;
}

.hero-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 18px 55px rgba(15,27,18,.18));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #cfe8d6 url('/static/images/hero-lawn.jpg') center/cover no-repeat;
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22,36,26,.55) 0%, rgba(22,36,26,.35) 45%, rgba(22,36,26,.10) 70%, rgba(22,36,26,.00) 100%);
}

.hero-content {
    position: relative;
    padding: 46px 42px;
}

.hero-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 26px rgba(0,0,0,.18);
    line-height: 1.02;
    font-size: clamp(34px, 4vw, 56px);
    margin: 0;
}

.hero-lead {
    color: rgba(255,255,255,.92);
    max-width: 680px;
    font-size: 18px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== СТЕКЛЯННАЯ ФОРМА ЗАЯВКИ ===== */
.hero-form {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--glass-shadow) !important;
    padding: 24px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
}

.hero-form::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 35%);
    z-index: 1;
}

.hero-form .card-head {
    font-weight: 800;
    color: var(--garden-700, #1f6b36);
    font-size: 1.25rem;
    padding: 0 0 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(42, 125, 46, 0.2);
    position: relative;
    z-index: 2;
}

.hero-form .form-control,
.hero-form textarea {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(42, 125, 46, 0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 15px;
    color: var(--g-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-form .form-control:focus,
.hero-form textarea:focus {
    border-color: var(--g-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(42, 125, 46, 0.25) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    outline: none;
}

.hero-form .form-control::placeholder,
.hero-form textarea::placeholder {
    color: rgba(15, 27, 18, 0.5);
}

.hero-form .btn-accent {
    background: var(--g-accent);
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(63, 191, 107, 0.3);
}

.hero-form .btn-accent:hover {
    background: var(--g-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 125, 46, 0.4);
}

.hero-form .form-text {
    color: rgba(15, 27, 18, 0.6) !important;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ===== СТЕКЛЯННАЯ КАРТОЧКА ДЛЯ ТЕКСТА В HERO ===== */
.hero-text-card {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--glass-shadow) !important;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-text-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 35%);
}

.hero-text-card .hero-title {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.hero-text-card .hero-lead {
    color: rgba(255,255,255,.95);
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-text-card .btn-accent {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-text-card .btn-price {
    background-color: rgba(255,255,255,.9) !important;
    border-color: rgba(255,255,255,.8) !important;
    color: #2a7d2e !important;
    backdrop-filter: blur(5px);
}

.hero-text-card .btn-price:hover {
    background-color: #2a7d2e !important;
    border-color: #2a7d2e !important;
    color: #ffffff !important;
}

/* ===== TILES (ПЛИТКИ ПРЕИМУЩЕСТВ) ===== */
.tiles {
    margin: 20px 0 30px 0;
}

.tile {
    background: var(--glass-bg) !important;
    border: 1px solid rgba(255,255,255,.50) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 14px 40px rgba(15,27,18,.12) !important;
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 18px 20px;
    height: 100%;
    min-height: 100px;
    transition: all 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
}

.tile i {
    font-size: 2rem !important;
    min-width: 40px;
    text-align: center;
    color: var(--g-primary) !important;
}

.tile b {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--g-text);
}

.tile small {
    display: block;
    color: var(--g-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tile.opacity-50 {
    cursor: default;
    opacity: 0.7;
}

.tile.opacity-50:hover {
    transform: none;
}

/* ===== ПОВЕРХНОСТИ ===== */
.surface {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(15,27,18,.10);
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(15,27,18,.10);
    backdrop-filter: blur(10px);
}

.card-lite {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(15,27,18,.10);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15,27,18,.08);
}

/* ===== КАРТОЧКИ КАТЕГОРИЙ НА ГЛАВНОЙ ===== */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(42,125,46,0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(42,125,46,0.15);
    border-color: rgba(42,125,46,0.3);
    text-decoration: none;
    color: inherit;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2a7d2e, #3fbf6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.5rem;
    color: #2a7d2e;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e2a1e;
    margin-bottom: 12px;
}

.category-description {
    color: #5a6b5a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(42,125,46,0.1);
}

.category-count {
    background: rgba(42,125,46,0.1);
    color: #2a7d2e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-link {
    color: #2a7d2e;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.category-card:hover .category-link {
    transform: translateX(5px);
}

/* Специальные стили для карточки "Все услуги" */
.all-services-card {
    background: linear-gradient(135deg, #f8fff8, #ffffff);
    border: 2px dashed rgba(42,125,46,0.3);
}

.all-services-card .category-icon {
    color: #ffc107;
}

.all-services-card .category-link {
    color: #ffc107;
}

.all-services-card .category-count {
    background: rgba(255,193,7,0.1);
    color: #b3860b;
}

.all-services-card:hover {
    border-color: #ffc107;
    background: #fffcf0;
}

.all-services-card:hover .category-icon {
    color: #ffc107;
}

/* ===== ОТЗЫВЫ ===== */
.review-rating {
    color: #f0b429;
    margin-bottom: 15px;
}

/* ===== СЕКЦИИ НА ГЛАВНОЙ ===== */
.section-pad {
    padding: 40px 0;
}

.panel-section {
    margin-bottom: 20px;
}

/* ===== ФОРМА ЗАЯВКИ ВНИЗУ ===== */
.lead-form-section {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--glass-shadow) !important;
    padding: 40px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
    .hero-content {
        padding: 34px 22px;
    }

    .hero-form {
        margin-top: 20px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 84px;
    }

    .hero-content {
        padding: 26px 18px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-form {
        padding: 20px;
    }

    .tiles {
        margin-top: 14px;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .lead-form-section {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 56px 0 18px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-text-card {
        padding: 25px 20px;
    }

    .hero-text-card .hero-title {
        font-size: 1.8rem;
    }

    .tile {
        padding: 12px 14px;
    }

    .tile i {
        font-size: 1.5rem !important;
    }

    .tile b {
        font-size: 1rem;
    }

    .tile small {
        font-size: 0.8rem;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta-row .btn {
        width: 100%;
    }
}

/* Опционально: добавить иконки в поля */
.hero-form .input-group {
    position: relative;
    z-index: 2;
}

.hero-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g-primary);
    z-index: 3;
}

.hero-form .input-group .form-control {
    padding-left: 45px;
}