/* ============================================================
   Общие стили
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c7a4d;
    --color-primary-dark: #1a5a35;
    --color-accent: #d4a017;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9f7;
    --color-border: #e0e5e0;
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

section {
    padding: 5rem 1.5rem;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #f0f7f2 0%, #e8f2ec 100%);
    padding: 2rem 1.5rem 6rem;
    text-align: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hint {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Features
   ============================================================ */
.features {
    background: var(--color-bg);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   Скриншоты
   ============================================================ */
.screenshots {
    background: var(--color-bg-alt);
}

.screens-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.screens-grid img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: white;
}

/* ============================================================
   Тарифы
   ============================================================ */
.pricing {
    background: var(--color-bg);
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.price-card {
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card-featured {
    background: white;
    border: 2px solid var(--color-primary);
    box-shadow: 0 12px 40px rgba(44, 122, 77, 0.15);
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-card li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    background: var(--color-bg-alt);
}

.faq details {
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin-top: 1rem;
    color: var(--color-text-muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #1a1a1a;
    color: #a0a0a0;
    font-size: 0.9rem;
}

footer a {
    color: #a0a0a0;
}

footer .small {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 1.5rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav {
        margin-bottom: 2rem;
    }

    .price-card-featured {
        transform: none;
    }

    section {
        padding: 3rem 1rem;
    }
}