/* ═══════════════════════════════════════════════════════
   home.css — стили ТОЛЬКО главной страницы rodinateam.ru
   Depends on: base.css (reset, fonts, tokens, section, footer, cookie, a11y)
               nav.css (навигация)
   ═══════════════════════════════════════════════════════ */


/* ─── 1. HEADING FONT (home-specific) ────────────────── */

h1, h2, h3,
.club-title, .section-title {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.2px;
}


/* ─── 2. HERO ────────────────────────────────────────── */

.hero-badge {
    display: inline-block;
    background: var(--warm);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.stat {
    text-align: left;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}


/* ─── 3. HERO GRID (двухколоночный) ──────────────────── */

.hero {
    padding: 100px 24px 60px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    text-align: left;
}

.hero-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .hero-badge {
    margin-bottom: 20px;
}

.hero-content h1 {
    max-width: 540px;
    margin: 0 0 20px;
    text-align: left;
}

.hero-content > p {
    max-width: 460px;
    margin: 0 0 32px;
    text-align: left;
}

.hero-content .hero-buttons {
    justify-content: flex-start;
}

.hero-content .hero-stats {
    justify-content: flex-start;
    gap: 32px;
    margin-top: 40px;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--warm) 0%, var(--gold-light) 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}


/* ─── 4. PAIN CARDS ──────────────────────────────────── */

.pain-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .pain-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.pain-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 32px;
    border-left: 3px solid var(--gold-light);
}

.pain-icon {
    width: 44px;
    height: 44px;
    background: var(--warm);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.pain-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.pain-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}


/* ─── 5. CARDS (направления) ─────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--cream);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--warm);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.card-arrow {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}


/* ─── 6. ABOUT ───────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--warm) 0%, var(--gold-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-light);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 16px;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.about-tags span {
    background: var(--warm);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}


/* ─── 6b. TIMELINE ───────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 28px;
    margin-bottom: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-4px);
}

.timeline-year {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-text {
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}


/* ─── 7. BLOG ────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-more {
    text-align: center;
    margin-top: 36px;
}

.blog-more a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}


/* ─── 8. CLUB (Bento Grid) ───────────────────────────── */

.club-section {
    max-width: none;
    padding: 80px 20px;
    background: var(--cream);
}

.club-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.club-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.club-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.6;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.bento-cell {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bento-large { grid-column: span 2; }

.bento-accent {
    background: var(--black);
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento-accent p { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: transform 0.3s, background 0.3s;
}

.bento-accent .bento-icon { background: rgba(255, 255, 255, 0.1); }
.bento-num { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.bento-accent .bento-num { color: var(--white); }
.bento-num-big { font-size: 48px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.bento-cell p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.bento-accent-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.club-pricing { text-align: center; }

.club-price-card {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 40px 60px;
    border-radius: 16px;
}

.club-price { font-size: 48px; font-weight: 700; }
.club-price span { font-size: 20px; font-weight: 400; opacity: 0.7; }
.club-price-desc { font-size: 16px; opacity: 0.8; margin: 12px 0 24px; }

.club-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}


/* ─── 9. CTA ─────────────────────────────────────────── */

.cta-block {
    background: var(--black);
    border-radius: 20px;
    padding: 64px 40px;
    text-align: center;
    color: var(--white);
}

.cta-block h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-block p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    font-size: 16px;
}


/* ─── 10. REVIEWS ────────────────────────────────────── */

.reviews-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.review-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-stars { display: flex; gap: 4px; color: var(--gold); }
.review-text { font-size: 15px; color: var(--text); line-height: 1.7; flex: 1; }

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm) 0%, var(--gold-light) 100%);
    flex-shrink: 0;
}

.review-name { font-size: 14px; font-weight: 600; color: var(--black); }
.review-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }


/* ─── 11. SCROLL REVEAL ──────────────────────────────── */

[data-reveal],
[data-stagger] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed,
[data-stagger].revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero[data-reveal] {
    opacity: 1;
    transform: none;
}


/* ─── 12. CTA PULSE ──────────────────────────────────── */

@keyframes home-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(201, 169, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
}

.home-cta-pulse.pulse {
    animation: home-pulse 0.6s ease-out 2;
}


/* ─── 13. HOVER (page-specific, touch-safe) ──────────── */

@media (hover: hover) {
    .card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
    .card:hover .card-icon { transform: scale(1.08); background: var(--gold-light); }
    .card:hover .card-icon svg { color: var(--gold-dark); }
    .blog-card:hover { border-color: var(--gold-light); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
    .blog-more a:hover { color: var(--black); }
    .bento-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
    .bento-cell:not(.bento-accent):hover .bento-icon { transform: scale(1.08); background: var(--gold-light); }
    .bento-cell:not(.bento-accent):hover .bento-icon svg { color: var(--gold-dark); }
    .bento-accent-btn:hover { background: var(--gold); color: var(--black); }
    .club-btn:hover { background: var(--gold-dark); }
}


/* ─── 14. PREFERS-REDUCED-MOTION ─────────────────────── */

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-stagger],
    [data-reveal].revealed,
    [data-stagger].revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .home-cta-pulse.pulse { animation: none !important; }
    .card, .card-icon, .blog-card, .bento-cell,
    .bento-icon, .bento-accent-btn, .club-btn {
        transition: none !important;
    }
}


/* ─── 15. RESPONSIVE ─────────────────────────────────── */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-image { order: -1; max-height: 360px; aspect-ratio: 4/3; }
    .hero-content { align-items: center; }
    .hero-content h1 { text-align: center; max-width: 100%; }
    .hero-content > p { text-align: center; max-width: 100%; }
    .hero-content .hero-buttons { justify-content: center; }
    .hero-content .hero-stats { justify-content: center; }
    .stat { text-align: center; }
    .hero { text-align: center; padding-top: 100px; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 80px 24px 48px; }
    .hero-image { max-height: 280px; }
    .hero-content .hero-stats { gap: 20px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .blog-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .club-price-card { padding: 32px 24px; }
    .club-price { font-size: 36px; }

    .hero h1, .section-title, .section-desc,
    .card p, .about-text p, .blog-card p,
    .bento-cell p, .cta-block p, .review-text {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}
