/* ============================================================
   HOME PAGE
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 80px 0 120px;
    overflow: hidden;
}

/* Слой леса/гор — SVG-фон */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(123, 160, 91, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(200, 149, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(26, 53, 64, 0.5) 0%, transparent 60%);
}
.hero-bg svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.4;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text {
    animation: fadeUp 1s cubic-bezier(.4, 0, .2, 1);
}
.hero-text .eyebrow {
    animation: fadeUp 0.8s cubic-bezier(.4, 0, .2, 1);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: italic;
    color: var(--color-ochre);
    font-weight: 500;
}

.hero-lead {
    font-size: 1.3rem;
    color: var(--color-text);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 36px;
    font-weight: 400;
}

@media (max-width: 640px) {
    .hero-lead { font-size: 1.1rem; }
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    max-width: 540px;
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-meta-num {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-ochre);
    line-height: 1;
}
.hero-meta-label {
    font-size: 0.78rem;
    color: var(--color-text-soft);
    letter-spacing: 0.05em;
}

/* Боковая декоративная карточка (компас + точки) */
.hero-decor {
    position: relative;
    max-width: 360px;
    width: 100%;
    margin-left: auto;
    aspect-ratio: 1 / 1.15;
    animation: fadeIn 1.5s cubic-bezier(.4, 0, .2, 1);
}
.hero-decor-frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    background: var(--color-surface);
    backdrop-filter: blur(8px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.hero-compass {
    max-width: 240px;
    margin: 0 auto;
}
.hero-decor-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed var(--color-decor);
    pointer-events: none;
    border-radius: 2px;
}

.hero-compass {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 240px;
    margin: 0 auto;
}
.hero-compass svg {
    width: 100%;
    height: 100%;
}
.hero-compass-needle {
    transform-origin: 50% 50%;
    animation: needleSway 8s ease-in-out infinite;
}

@keyframes needleSway {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(12deg); }
}

.hero-decor-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-soft);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}
.hero-decor-stats span { white-space: nowrap; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Секции ---------- */
.section {
    padding: 100px 0;
}
.section-narrow { padding: 70px 0; }

.section-header {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.section-header.left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-header p {
    color: var(--color-text);
    font-size: 1.2rem;
    line-height: 1.7;
}

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

.feature {
    position: relative;
    padding: 32px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-ochre), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
}
.feature:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-ochre);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.feature p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .features { grid-template-columns: 1fr; }
}

/* ---------- Двухколоночные блоки ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split.reverse > :first-child { order: 2; }

.split-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
}

.split-text h2 { margin-bottom: 20px; }
.split-text p {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.split-text ul.checklist li {
    font-size: 1.05rem;
}

.checklist {
    list-style: none;
    margin: 24px 0 32px;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--color-text);
}
.checklist li svg {
    width: 20px;
    height: 20px;
    color: var(--color-leaf-bright);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split.reverse > :first-child { order: initial; }
}

/* ---------- CTA блок ---------- */
.cta-block {
    position: relative;
    padding: 80px 48px;
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-water) 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
}

[data-theme="light"] .cta-block {
    background: linear-gradient(135deg, #e8dfc6 0%, #d5cdb5 100%);
}

.cta-block::before,
.cta-block::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.cta-block::before {
    background: var(--color-ochre);
    opacity: 0.1;
    top: -100px;
    left: -100px;
}
.cta-block::after {
    background: var(--color-leaf);
    opacity: 0.12;
    bottom: -100px;
    right: -100px;
}

.cta-block > * { position: relative; z-index: 1; }

.cta-block h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}
.cta-block p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Адаптив hero ---------- */
@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 60px 0 80px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-decor { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 48px; }
    .hero-meta { gap: 24px; }
    .hero-meta-num { font-size: 1.6rem; }
    .cta-block { padding: 48px 24px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transform: translateY(150%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
    font-size: 0.88rem;
    color: var(--color-text-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}
.cookie-banner p a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
}
.cookie-banner-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex: 1;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
