/* ============================================================
   СНТ CMS — Современный стиль (glassmorphism, анимации, адаптив)
   ============================================================ */

:root {
    --color-primary: #1b5e20;
    --color-primary-light: #2e7d32;
    --color-primary-lighter: #4caf50;
    --color-primary-pale: #8bc34a;
    --color-bg-light: #e8f5e9;
    --color-white: #ffffff;
    --color-text: #1e2a1e;
    --color-text-muted: #4a5a4a;
    --shadow-soft: 0 12px 40px rgba(27, 94, 32, 0.10);
    --shadow-hover: 0 20px 50px rgba(27, 94, 32, 0.20);
    --radius-card: 24px;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Кастомный курсор (обычный) */
    cursor: url('/assets/img/material-bush-cursor.png') 0 0, auto;
}

/* Курсор при наведении на кликабельные элементы */
a, button, .btn, .feature-card, .tariff-card, .review-card, .faq-item__trigger,
input, textarea, select, label, .form__input {
    cursor: url('/assets/img/material-bush-pointer.png') 0 0, pointer;
}

/* На мобильных устройствах возвращаем стандартный курсор */
@media (max-width: 1023px) {
    body {
        cursor: auto;
    }
    a, button, .btn, .feature-card, .tariff-card, .review-card, .faq-item__trigger {
        cursor: pointer;
    }
    main {
        padding-top: 60px;
    }
}

/* ---------- Отступ для контента ---------- */
main {
    padding-top: 70px;
}

/* ---------- Общие компоненты ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.section__tag {
    display: inline-block;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section__title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-primary);
}
.section__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ---------- Стеклянные карточки ---------- */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.15);
    text-align: center;
}
.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}
.btn--primary:hover {
    transform: scale(0.97);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.3);
}
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}
.btn--outline:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(0.97);
}
.btn--block {
    display: block;
    width: 100%;
}

/* ---------- Шапка ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 0;
    transition: background 0.3s;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.logo__icon {
    font-size: 2rem;
}
.logo__text {
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav__link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}
.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}
.nav__link:hover {
    color: var(--color-primary);
}
.nav__link.active {
    color: var(--color-primary);
}

/* ---------- Мобильное меню ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle__line {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: 0.3s;
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 80px 30px 40px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.05);
    overflow-y: auto;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-nav__link {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav__link:hover,
.mobile-nav__link.active {
    color: var(--color-primary);
    padding-left: 10px;
}

@media (max-width: 1023px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* ---------- Hero (главная) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    padding-top: 80px;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}
.hero__content {
    z-index: 2;
}
.hero__badge {
    display: inline-block;
    background: rgba(27, 94, 32, 0.12);
    color: var(--color-primary);
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero__title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.hero__desc {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 30px;
}
.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero__illustration {
    font-size: 12rem;
    filter: drop-shadow(0 20px 40px rgba(27, 94, 32, 0.15));
    animation: float 6s ease-in-out infinite;
}
.hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}
.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 1;
}
.hero__wave svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* ---------- Анимации появления при скролле ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
[data-animation="fadeUp"].visible {
    animation: fadeUp 0.8s forwards;
}
[data-animation="fadeLeft"].visible {
    animation: fadeLeft 0.8s forwards;
}
[data-animation="fadeRight"].visible {
    animation: fadeRight 0.8s forwards;
}
[data-animation="blurIn"].visible {
    animation: blurIn 0.9s forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes blurIn {
    0% { opacity: 0; filter: blur(12px); transform: scale(0.92); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* ---------- Карточки возможностей ---------- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 32px 24px;
    text-align: center;
}
.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.feature-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.feature-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ---------- Тарифы ---------- */
.tariffs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.tariff-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
}
.tariff-card--popular {
    border: 2px solid var(--color-primary);
    transform: scale(1.02);
}
.tariff-card__badge {
    display: inline-block;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tariff-card__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.tariff-card__price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.tariff-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}
.tariff-card__list {
    list-style: none;
    margin: 0 0 30px;
    text-align: left;
}
.tariff-card__list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}
.tariff-card__list li::before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------- О нас ---------- */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 16px 0 30px;
}
.about__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat__number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
}
.stat__label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.about__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about__image-placeholder {
    font-size: 10rem;
    background: rgba(139, 195, 74, 0.2);
    border-radius: 40px;
    padding: 40px 20px;
    backdrop-filter: blur(4px);
}

/* ---------- Отзывы ---------- */
.reviews__slider {
    position: relative;
    overflow: hidden;
}
.reviews__track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}
.review-card {
    min-width: 300px;
    padding: 28px 24px;
}
.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.review-card__name {
    font-weight: 700;
    font-size: 1rem;
}
.review-card__role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.review-card__text {
    font-style: italic;
    margin-bottom: 12px;
}
.review-card__stars {
    color: #f5b342;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}
.reviews__btn {
    background: var(--color-white);
    border: 1px solid var(--color-primary-pale);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}
.reviews__btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ---------- FAQ ---------- */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    overflow: hidden;
}
.faq-item__trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.faq-item__trigger:hover {
    background: rgba(27, 94, 32, 0.05);
}
.faq-item__icon {
    font-size: 1.6rem;
    transition: transform 0.3s;
}
.faq-item.open .faq-item__icon {
    transform: rotate(45deg);
}
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.4s ease, padding 0.3s;
    color: var(--color-text-muted);
}
.faq-item.open .faq-item__answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ---------- Контакты ---------- */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contacts__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 16px 0 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
}
.contact-item__icon {
    font-size: 1.4rem;
}
.form__group {
    margin-bottom: 20px;
}
.form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.form__input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(27, 94, 32, 0.15);
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}
textarea.form__input {
    resize: vertical;
}

/* ---------- Подвал ---------- */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__brand .logo__text {
    color: white;
}
.footer__copy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}
.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.footer__links a:hover {
    color: white;
    text-decoration: underline;
}

/* ---------- Сообщения формы ---------- */
.alert {
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}
.alert-error {
    background: #ffe0e0;
    color: #b71c1c;
}
.alert-success {
    background: #e0ffe0;
    color: #1b5e20;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1023px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__title {
        font-size: 2.8rem;
    }
    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__buttons {
        justify-content: center;
    }
    .hero__visual {
        order: -1;
    }
    .hero__illustration {
        font-size: 8rem;
    }
    .about__inner,
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__stats {
        justify-content: center;
    }
    .tariffs__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .tariff-card--popular {
        transform: none;
    }
    .section__title {
        font-size: 2rem;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 90vh;
    }
    .hero__title {
        font-size: 2.2rem;
    }
    .hero__illustration {
        font-size: 6rem;
    }
    .hero__glow {
        width: 250px;
        height: 250px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .section {
        padding: 50px 0;
    }
}