/* Runtime QA polish for Home content management, hero slider, CTA and footer. */

.hero-slider,
.home-hero-slider {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f7fafb 100%);
}

.hero-slider__slides {
    position: relative;
    min-height: 560px;
}

.hero-slider__slide,
.home-hero-slide {
    display: none;
    padding: 88px 0;
}

.hero-slider__slide.is-active,
.home-hero-slide.is-active {
    display: block;
    animation: homeHeroFade .35s ease;
}

.hero-slider__image,
.home-hero-slide .hero__image {
    width: 100%;
    min-height: 420px;
    max-height: 460px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 26px 60px rgba(13, 39, 66, .2);
}

.hero-slider__dots,
.home-hero-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.home-hero-navigation {
    position: absolute;
    z-index: 5;
    inset-inline: clamp(16px, 5vw, 72px);
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.home-hero-navigation .home-hero-dots {
    position: static;
    inset: auto;
    bottom: auto;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid rgba(13, 39, 66, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(13, 39, 66, .12);
    pointer-events: auto;
}

.hero-slider__dots span,
.home-hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 39, 66, .24);
    transition: .2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.home-hero-navigation .home-hero-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(13, 39, 66, .18);
    background: rgba(13, 39, 66, .28);
}

.hero-slider__dots span.is-active,
.home-hero-dot.is-active {
    width: 26px;
    background: var(--green);
}

.home-hero-navigation .home-hero-dot.is-active {
    width: 34px;
    background: var(--green);
    border-color: var(--green);
}

.home-hero-nav-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(13, 39, 66, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0d2742;
    box-shadow: 0 16px 36px rgba(13, 39, 66, .12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-hero-nav-button span {
    display: block;
    margin-top: -2px;
    font-size: 1.9rem;
    line-height: 1;
}

.home-hero-nav-button:hover,
.home-hero-nav-button:focus-visible {
    background: #fff;
    box-shadow: 0 18px 40px rgba(13, 39, 66, .18);
    transform: translateY(-1px);
}

.home-hero-counter {
    display: none !important;
}

.media-cta-section,
.media-cta-section--custom {
    background-size: cover !important;
    background-position: center !important;
}

.admin-content-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--admin-text, #17212b);
}

.admin-switch-line input[role="switch"] {
    width: 44px;
    height: 24px;
    accent-color: var(--green, #46a646);
}

.form-field small {
    color: var(--admin-muted, #66727d);
}

.site-footer--polished {
    padding: 0;
    background:
        radial-gradient(circle at 16% 12%, rgba(70, 166, 70, .16), transparent 28%),
        linear-gradient(135deg, #061521 0%, #0b2236 54%, #0d2742 100%);
    color: #dbe5ec;
}

.site-footer__shell {
    padding: 58px 0 22px;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .9fr) minmax(260px, 1fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: start;
}

.site-footer__top--without-contact {
    grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .9fr);
}

.site-footer__brand-block,
.site-footer__nav-block,
.site-footer__contact-block {
    display: grid;
    gap: 18px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    font-weight: 900;
    color: #fff;
}

.site-footer__logo {
    width: auto;
    max-width: 190px;
    max-height: 74px;
    object-fit: contain;
}

.site-footer__description {
    max-width: 440px;
    margin: 0;
    color: #c7d5df;
    line-height: 1.9;
}

.site-footer__quote {
    width: fit-content;
}

.site-footer__nav-block h2,
.site-footer__contact-block h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.site-footer__links a {
    color: #dbe5ec;
    font-weight: 700;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact-item:hover,
.site-footer__contact-item:focus-visible {
    color: #9bd19c;
}

.site-footer__contact-list {
    display: grid;
    gap: 10px;
}

.site-footer__contact-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #e8f1f7;
}

.site-footer__contact-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #9bd19c;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #b9c8d3;
    font-size: .92rem;
}

@keyframes homeHeroFade {
    from { opacity: .65; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .site-footer__top,
    .site-footer__top--without-contact {
        grid-template-columns: 1fr;
    }

    .hero-slider__slides {
        min-height: auto;
    }

    .hero-slider__slide,
    .home-hero-slide {
        padding: 64px 0 88px;
    }

    .hero-slider__image,
    .home-hero-slide .hero__image {
        min-height: 320px;
    }

    .admin-content-subgrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer__links {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
    }

    .home-hero-navigation {
        inset-inline: 12px;
        bottom: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-hero-navigation .home-hero-dots {
        order: 1;
        width: 100%;
        min-height: 40px;
    }

    .home-hero-nav-button {
        width: 40px;
        height: 40px;
    }
}


.media-cta-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0d2742;
}

.media-cta-section__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.media-cta-section--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8,26,43,.92), rgba(13,39,66,.82));
}

.media-cta-section > .container {
    position: relative;
    z-index: 1;
}
