.home-hero {
    position: relative;
    height: min(800px, calc(100vh - 148px));
    min-height: 620px;
    overflow: hidden;
}

.hero-track,
.hero-slide,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-shade {
    background: linear-gradient(
        90deg,
        rgba(20, 45, 67, 0.88) 0%,
        rgba(20, 45, 67, 0.5) 53%,
        rgba(20, 45, 67, 0.08) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    max-width: 660px;
    color: var(--white);
    font-size: clamp(48px, 6.4vw, 70px);
    line-height: 1.03;
}

.hero-content > p {
    max-width: 660px;
    margin-top: 22px;
    color: #edf3f6;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    background: rgba(20, 45, 67, 0.28);
    transform: translateY(-50%);
}

.hero-control:hover,
.hero-control:focus-visible {
    background: var(--red);
}

.hero-control svg {
    width: 24px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    display: flex;
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 4;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 34px;
    height: 4px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.is-active {
    background: var(--red);
}

.intro-strip {
    border-bottom: 1px solid var(--line);
}

.intro-grid,
.capability-grid,
.cta-inner {
    display: flex;
    gap: 80px;
}

.intro-grid > *,
.cta-inner > * {
    flex: 1 1 0;
}

.intro-grid h2 {
    font-size: clamp(34px, 4.5vw, 55px);
}

.intro-grid .text-link {
    margin-top: 20px;
}

.family-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.family-card {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 22px;
    border: 1px solid var(--line);
    color: var(--navy);
    background: var(--white);
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.family-card:hover,
.family-card:focus-visible {
    color: var(--white);
    background: var(--navy);
    transform: translateY(-4px);
}

.family-card svg {
    flex: 0 0 42px;
    width: 42px;
    fill: none;
    stroke: var(--red);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.quality-section {
    background: var(--warm);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--navy);
    font-weight: 700;
}

.check-list li {
    padding: 13px 16px;
    border-left: 3px solid var(--red);
    background: rgba(255, 255, 255, 0.7);
}

.capability-section {
    color: var(--white);
    background: var(--navy);
}

.capability-grid > article {
    flex: 1 1 0;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-grid svg {
    width: 56px;
    margin-bottom: 26px;
    fill: none;
    stroke: #ff6b7e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.capability-grid h2 {
    color: var(--white);
    font-size: 30px;
}

.capability-grid p {
    margin-top: 16px;
    color: #c6d5de;
}

.home-cta {
    color: var(--white);
    background: #b14b58;
}

.home-cta h2,
.home-cta p {
    color: var(--white);
}

.home-cta .button {
    margin-top: 22px;
}

.home-cta .button:hover {
    color: var(--white);
}

@media (max-width: 900px) {
    .home-hero {
        height: 635px;
        min-height: 635px;
    }

    .hero-content h1 {
        max-width: 560px;
    }

    .intro-grid,
    .cta-inner {
        flex-direction: column;
        gap: 30px;
    }

    .capability-grid {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .home-hero {
        height: 490px;
        min-height: 490px;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: 38px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-control {
        top: auto;
        bottom: 24px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    .hero-dots {
        bottom: 42px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .capability-grid {
        flex-direction: column;
    }
}
