:root {
    --panel-bg: linear-gradient(135deg, #ffffff 0%, #edf2f9 52%, #e6edf7 100%);
    --hero-surface: var(--panel-bg);
    --hero-height: 700px;
    --panel-border: rgba(15, 22, 32, 0.08);
    --slider-height: 2px;
}

.hero {
    padding: 72px 16px 88px;
}

.hero__panel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: center;
    padding: 56px 56px 96px;
    height: var(--hero-height);
    background: linear-gradient(rgba(15, 22, 32, 0.4), rgba(15, 22, 32, 0.4)),
        url("../images/hero1.avif") center/cover no-repeat;
    border-radius: var(--radius-lg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__panel::after {
    content: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    display: grid;
    gap: 16px;
}

.hero__eyebrow {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.15;
    color: #fff;
}

.hero__title--dynamic {
    display: none;
}

.hero__panel[data-active-slide="0"] .hero__title--static {
    display: block;
}

.hero__panel[data-active-slide="0"] .hero__title--dynamic {
    display: none;
}

.hero__panel:not([data-active-slide="0"]) .hero__title--static {
    display: none;
}

.hero__panel:not([data-active-slide="0"]) .hero__title--dynamic {
    display: block;
}

.hero__description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

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

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #0b0f14;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 16px 40px rgba(240, 195, 106, 0.3);
}

.hero__button:focus-visible {
    outline: 2px solid rgba(240, 195, 106, 0.7);
    outline-offset: 2px;
}

.hero__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(240, 195, 106, 0.35);
}

.hero__link {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.hero__link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
}

.hero__link:focus-visible {
    outline: 2px solid rgba(126, 196, 255, 0.65);
    outline-offset: 2px;
}

.hero__badge {
    position: absolute;
    right: 56px;
    top: 56px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 195, 106, 0.28), rgba(240, 195, 106, 0));
    filter: blur(0.5px);
    display: grid;
    place-items: center;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.hero__badge-text {
    padding: 28px;
    border: 1px solid var(--muted-strong);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.hero__slider {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 64px));
    display: grid;
    gap: 10px;
    z-index: 1;
}

.hero__slider-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-pill);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(6px);
}

.hero__slider-step {
    height: var(--slider-height);
    border-radius: var(--radius-md);
    border: none;
    background: var(--muted-strong);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.hero__slider-step:focus-visible {
    outline: 2px solid rgba(126, 196, 255, 0.8);
    outline-offset: 1px;
}

.hero__slider-step:hover {
    background: var(--muted-strong);
}

.hero__slider-step--active {
    background: rgba(240, 195, 106, 0.6);
    transform: translateY(-1px);
}

@media (max-width: 1920px) and (min-width: 1441px) {
    .hero {
        padding-top: 68px;
        padding-bottom: 86px;
    }

    .hero__panel {
        padding: 52px 52px 90px;
        height: 680px;
    }

    .hero__content {
        max-width: 540px;
    }

    .hero__title {
        font-size: clamp(1.95rem, 2.7vw, 2.6rem);
    }

    .hero__description {
        font-size: 1.02rem;
    }

    .hero__badge {
        width: 170px;
        height: 170px;
        right: 48px;
        top: 48px;
    }

    .hero__slider {
        width: min(460px, calc(100% - 64px));
    }
}

@media (max-width: 1440px) and (min-width: 1281px) {
    .hero {
        padding-top: 64px;
        padding-bottom: 82px;
    }

    .hero__panel {
        padding: 48px 48px 88px;
        height: 660px;
    }

    .hero__content {
        max-width: 520px;
    }

    .hero__title {
        font-size: clamp(1.9rem, 2.5vw, 2.5rem);
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__badge {
        width: 160px;
        height: 160px;
        right: 44px;
        top: 44px;
    }

    .hero__slider {
        width: min(440px, calc(100% - 60px));
    }
}

@media (max-width: 1280px) and (min-width: 901px) {
    .hero {
        padding-top: 60px;
        padding-bottom: 78px;
    }

    .hero__panel {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 44px 36px 82px;
        height: 620px;
    }

    .hero__content {
        max-width: 500px;
    }

    .hero__title {
        font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    }

    .hero__description {
        font-size: 0.98rem;
    }

    .hero__badge {
        width: 150px;
        height: 150px;
        right: 36px;
        top: 36px;
    }

    .hero__slider {
        width: min(400px, calc(100% - 56px));
        bottom: 28px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .hero {
        padding-top: 56px;
        padding-bottom: 76px;
    }

    .hero__panel {
        padding: 40px 30px 78px;
        gap: 18px;
        height: 580px;
    }

    .hero__content {
        max-width: 460px;
    }

    .hero__title {
        font-size: clamp(1.65rem, 2vw, 2.1rem);
    }

    .hero__description {
        font-size: 0.96rem;
    }

    .hero__badge {
        width: 140px;
        height: 140px;
        right: 30px;
        top: 30px;
    }

    .hero__slider {
        width: min(360px, calc(100% - 52px));
        bottom: 26px;
    }
}

@media (max-width: 768px) and (min-width: 569px) {
    .hero {
        padding-top: 48px;
        padding-bottom: 68px;
    }

    .hero__panel {
        padding: 32px 24px 72px;
        gap: 18px;
        height: 540px;
    }

    .hero__content {
        max-width: 440px;
    }

    .hero__title {
        font-size: clamp(1.55rem, 3.4vw, 1.9rem);
    }

    .hero__description {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero__badge {
        right: 20px;
        top: 20px;
        width: 120px;
        height: 120px;
    }

    .hero__slider {
        width: min(320px, calc(100% - 48px));
        bottom: 24px;
    }
}

@media (max-width: 568px) and (min-width: 321px) {
    .hero {
        padding: 42px 12px 60px;
    }

    .hero__panel {
        padding: 26px 20px 66px;
        gap: 16px;
        height: 500px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
    }

    .hero__description {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .hero__actions {
        gap: 10px;
    }

    .hero__badge {
        right: 16px;
        top: 16px;
        width: 110px;
        height: 110px;
    }

    .hero__slider {
        width: min(280px, calc(100% - 40px));
        bottom: 22px;
    }
}

@media (max-width: 320px) {
    .hero {
        padding: 36px 12px 54px;
    }

    .hero__panel {
        padding: 22px 16px 58px;
        gap: 14px;
        height: 460px;
    }

    .hero__title {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
    }

    .hero__description {
        font-size: 0.92rem;
    }

    .hero__badge {
        right: 12px;
        top: 12px;
        width: 96px;
        height: 96px;
    }

    .hero__slider {
        width: min(240px, calc(100% - 32px));
        bottom: 20px;
    }
}
