/* ============================================================================
 * Home page — все секции главной
 * ========================================================================= */

/* === HERO ============================================================== */
.h-home-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hlife-color-navy, #1A2B49);
    color: #fff;
    isolation: isolate;
}

.h-home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.h-home-hero__bg-gradient {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top right, rgba(197, 160, 89, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(46, 125, 50, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1A2B49 0%, #0e1a2f 100%);
}

.h-home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px clamp(1rem, 4vw, 2rem) 100px;
    text-align: center;
}

.h-home-hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.h-home-hero__title {
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.h-home-hero__title em {
    font-style: italic;
    color: var(--hlife-color-gold, #C5A059);
    font-weight: 300;
}

.h-home-hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.h-home-hero__search {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 540px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
    font-size: 15px;
    margin-bottom: 32px;
}

.h-home-hero__search:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.h-home-hero__search-placeholder {
    flex: 1;
    text-align: left;
}

.h-home-hero__search-shortcut {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.h-home-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.h-home-hero__cta,
.h-home-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.h-home-hero__cta {
    background: var(--hlife-color-emerald, #2E7D32);
    color: #fff;
}

.h-home-hero__cta:hover {
    background: #246728;
    transform: translateY(-1px);
}

.h-home-hero__cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.h-home-hero__cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.h-home-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 1px;
    height: 40px;
    overflow: hidden;
}

.h-home-hero__scroll-line {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: h-scroll-pulse 2s ease-in-out infinite;
}

@keyframes h-scroll-pulse {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

@media (max-width: 640px) {
    .h-home-hero {
        min-height: 70vh;
    }
    .h-home-hero__content {
        padding-block: 60px 80px;
    }
}

/* === SECTIONS BASE ===================================================== */
.h-home-section {
    padding-block: 80px;
}

.h-home-section--destinations {
    background: var(--hlife-color-bg, #fff);
}

.h-home-section--holidays {
    background: var(--hlife-color-sand-light, #F4F1EA);
}

[data-theme="dark"] .h-home-section--holidays {
    background: rgba(255, 255, 255, 0.02);
}

.h-home-section--services {
    background: var(--hlife-color-bg, #fff);
}

.h-home-section--top-rated {
    background: var(--hlife-color-sand-light, #F4F1EA);
}

[data-theme="dark"] .h-home-section--top-rated {
    background: rgba(255, 255, 255, 0.02);
}

.h-home-section--values {
    background: var(--hlife-color-bg, #fff);
    padding-block: 100px;
}

.h-home-section__inner {
    max-width: var(--hlife-container-max, 1200px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.h-home-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.h-home-section__header--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 56px;
}

.h-home-section__eyebrow {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hlife-color-emerald, #2E7D32);
    font-weight: 600;
    margin-bottom: 8px;
}

.h-home-section__title {
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
    font-weight: 500;
    color: var(--hlife-color-navy, #1A2B49);
    margin: 0;
    max-width: 600px;
}

[data-theme="dark"] .h-home-section__title {
    color: var(--hlife-color-text, #f3f4f6);
}

.h-home-section__subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--hlife-color-muted, #6b7280);
    max-width: 600px;
}

.h-home-section__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hlife-color-emerald, #2E7D32);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.h-home-section__more:hover {
    background: var(--hlife-color-emerald, #2E7D32);
    color: #fff;
}

/* === HOLIDAYS GRID ===================================================== */
.h-home-holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.h-home-holiday {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--hlife-color-bg, #fff);
    border: 1px solid var(--hlife-color-border, #e5e7eb);
    border-radius: 6px;
    text-decoration: none;
    color: var(--hlife-color-navy, #1A2B49);
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .h-home-holiday {
    background: rgba(255, 255, 255, 0.03);
    color: var(--hlife-color-text, #f3f4f6);
}

.h-home-holiday:hover {
    transform: translateY(-2px);
    border-color: var(--hlife-color-emerald, #2E7D32);
    box-shadow: 0 8px 16px -8px rgba(46, 125, 50, 0.2);
}

.h-home-holiday__icon {
    font-size: 36px;
    line-height: 1;
}

.h-home-holiday__name {
    font-size: 14px;
    font-weight: 500;
}

/* === SERVICES GRID ===================================================== */
.h-home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.h-home-service {
    position: relative;
    display: block;
    padding: 32px 28px 60px;
    background: var(--hlife-color-bg, #fff);
    border: 1px solid var(--hlife-color-border, #e5e7eb);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    isolation: isolate;
}

[data-theme="dark"] .h-home-service {
    background: rgba(255, 255, 255, 0.03);
}

.h-home-service:hover {
    transform: translateY(-2px);
    border-color: var(--hlife-color-navy, #1A2B49);
    box-shadow: 0 12px 24px -12px rgba(26, 43, 73, 0.15);
}

.h-home-service__icon {
    display: inline-block;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 16px;
}

.h-home-service__title {
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--hlife-color-navy, #1A2B49);
}

[data-theme="dark"] .h-home-service__title {
    color: var(--hlife-color-text, #f3f4f6);
}

.h-home-service__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--hlife-color-muted, #6b7280);
}

.h-home-service__arrow {
    position: absolute;
    bottom: 24px;
    right: 28px;
    font-size: 18px;
    color: var(--hlife-color-emerald, #2E7D32);
    transition: transform 0.2s;
}

.h-home-service:hover .h-home-service__arrow {
    transform: translateX(4px);
}

/* === VALUES =========================================================== */
.h-home-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.h-home-value {
    text-align: center;
    padding: 32px 16px;
}

.h-home-value__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hlife-color-sand-light, #F4F1EA);
    color: var(--hlife-color-emerald, #2E7D32);
    font-size: 24px;
    margin-bottom: 20px;
}

[data-theme="dark"] .h-home-value__icon {
    background: rgba(255, 255, 255, 0.05);
}

.h-home-value__title {
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--hlife-color-navy, #1A2B49);
}

[data-theme="dark"] .h-home-value__title {
    color: var(--hlife-color-text, #f3f4f6);
}

.h-home-value__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hlife-color-muted, #6b7280);
    max-width: 320px;
    margin-inline: auto;
}

/* === FINAL CTA ========================================================= */
.h-home-cta {
    background: var(--hlife-color-navy, #1A2B49);
    color: #fff;
    padding-block: 100px;
    text-align: center;
}

[data-theme="dark"] .h-home-cta {
    background: #0e1a2f;
}

.h-home-cta__inner {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.h-home-cta__title {
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 16px;
}

.h-home-cta__text {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0 0 32px;
}

.h-home-cta__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.h-home-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--hlife-color-emerald, #2E7D32);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.h-home-cta__btn:hover {
    background: #246728;
    transform: translateY(-1px);
}

.h-home-cta__btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.h-home-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}
