/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.5;
}

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

/* Хедер */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    color: #2E7D32;
    text-decoration: none;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2E7D32;
    color: #2E7D32;
}

.btn-primary {
    background: #2E7D32;
    color: #fff;
}

.btn-primary:hover {
    background: #1B5E20;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: #f8f9fa;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

/* Сетки */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Карточки целей */
.target-card .card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.target-card:hover {
    transform: translateY(-10px);
}

.target-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.target-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.target-card p {
    color: #666;
    margin-bottom: 20px;
}

.target-link {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
}

/* Дашборд */
.dashboard {
    background: #e8f5e9;
    padding: 60px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.dashboard-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-card.highlight {
    background: #2E7D32;
    color: #fff;
}

.metric-label {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
}

.chart-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

/* Как работает */
.how-it-works {
    padding: 60px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

.step i {
    font-size: 48px;
    color: #2E7D32;
    margin-bottom: 20px;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Тарифы */
.tariffs {
    background: #f8f9fa;
    padding: 60px 0;
}

.tariff-card {
    position: relative;
    /* для позиционирования бейджа */
    transition: transform 0.3s, border 0.3s;
}

.tariff-card.popular {
    border: 2px solid #FF9800;
    /* оранжевая обводка */
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #FF9800;
    /* оранжевый фон */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tariff-price {
    font-size: 36px;
    font-weight: 700;
    color: #2E7D32;
    margin: 20px 0;
}

.tariff-price span {
    font-size: 16px;
    color: #666;
}

.tariff-features {
    margin: 20px 0;
    text-align: left;
}

.tariff-features ul {
    list-style: none;
}

.tariff-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tariff-features li:before {
    content: "✓";
    color: #2E7D32;
    position: absolute;
    left: 0;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 0 20px 0;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Футер */
.footer {
    background: #1B5E20;
    color: #fff;
    padding: 40px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top {
    cursor: pointer;
}

/* Блок правовых документов в футере */
.footer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-docs a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-docs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* Анимации появления */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность (минимальная) */
@media (max-width: 768px) {

    .grid-3,
    .grid-4,
    .steps,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}