/* ============================================
   ГОЛОВНА СТОРІНКА — home_style.css
   ============================================ */

/* === NAV ACTIVE === */
.nav-links a.active {
    color: var(--mauve);
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mauve);
    border-radius: 2px;
}

/* === ABOUT SERVICES === */
.about-services {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.about-service-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--rose);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.about-service-link:hover {
    transform: translateX(6px);
    border-color: var(--dusty-rose);
    box-shadow: 0 4px 20px var(--shadow);
}
.about-service-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* === SERVICES SECTION === */
.home-services { background: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.service-card {
    background: linear-gradient(135deg, var(--cream), var(--blush));
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--rose);
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dusty-rose), var(--mauve));
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow);
}
.service-icon { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.service-tag {
    display: inline-block;
    background: var(--white);
    color: var(--mauve);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--rose);
}
.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warm-brown);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}
.service-link:hover { color: var(--mauve); }

/* === INTENSIVE PREVIEW === */
.home-intensive { background: var(--cream); }
.intensive-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid var(--rose);
}
.intensive-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.intensive-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 500;
    font-style: italic;
}
.intensive-content p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}
.intensive-price {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
    padding: 20px;
    background: var(--cream);
    border-radius: 16px;
}
.intensive-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.intensive-price-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mauve);
}
.intensive-price-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--warm-brown);
}
.intensive-price-value.old {
    font-size: 1.4rem;
    color: var(--text-light);
    text-decoration: line-through;
}
.intensive-price-divider {
    width: 1px;
    height: 40px;
    background: var(--rose);
}
.intensive-visual-inner {
    background: linear-gradient(135deg, var(--warm-brown), var(--mauve));
    border-radius: 24px;
    padding: 36px;
    color: var(--cream);
}
.intensive-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.88rem;
}
.intensive-feature:last-child { border: none; }
.intensive-feature-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-light);
    opacity: 0.6;
    min-width: 32px;
}

/* === WHY HOME === */
.home-why { background: var(--blush); }
.why-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.why-card-home {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid var(--rose);
    text-align: center;
    transition: all 0.4s;
}
.why-card-home:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow);
}
.why-home-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card-home h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}
.why-card-home p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === CTA BUTTONS === */
.home-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .intensive-preview { grid-template-columns: 1fr; gap: 40px; padding: 36px 24px; }
    .why-grid-home { grid-template-columns: repeat(2, 1fr); }
    .home-cta-buttons { flex-direction: column; align-items: center; }
    .home-cta-buttons .btn-primary,
    .home-cta-buttons .btn-outline { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
    .why-grid-home { grid-template-columns: 1fr; }
    .intensive-price { flex-direction: column; gap: 16px; }
    .intensive-price-divider { width: 60px; height: 1px; }
}



/* === BOOK SECTION HOME === */
.home-book { background: var(--cream); }
.book-grid-home {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.book-photo-wrap-home {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--blush), var(--rose));
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-photo-wrap-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-fallback-home {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--blush), var(--rose));
}
.book-fallback-home span { font-size: 5rem; margin-bottom: 16px; }
.book-fallback-home p {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.book-fallback-home small {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.book-text-home p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 16px;
}
.book-features-home {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}
.book-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 10px 16px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--rose);
}
.book-feature-check {
    color: var(--sage-dark);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.book-cta-home { margin-top: 24px; }

/* === RESPONSIVE BOOK === */
@media (max-width: 900px) {
    .book-grid-home { grid-template-columns: 1fr; gap: 40px; }
}