.rt-hero {
    position: relative;
    min-height: 570px;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    background: #173f31;
}

.rt-hero__background,
.rt-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rt-hero__background {
    z-index: -3;
    object-fit: cover;
    object-position: center;
}

.rt-hero__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(17, 49, 37, .94) 0%, rgba(24, 65, 49, .82) 43%, rgba(22, 57, 43, .42) 68%, rgba(12, 31, 24, .58) 100%),
        linear-gradient(0deg, rgba(8, 25, 18, .34), transparent 55%);
}

.rt-hero::after {
    position: absolute;
    right: -105px;
    bottom: -165px;
    z-index: -1;
    width: 380px;
    height: 380px;
    content: "";
    border: 1px solid rgba(220, 235, 221, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(220, 235, 221, .05), 0 0 0 104px rgba(220, 235, 221, .035);
}

.rt-hero__container {
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
    padding-top: 62px;
    padding-bottom: 62px;
}

.rt-hero__content {
    max-width: 690px;
    color: #fff;
}

.rt-hero__content h1 {
    max-width: 680px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(2.65rem, 5vw, 4.8rem);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.rt-hero__content p {
    max-width: 600px;
    margin: 0 0 34px;
    color: #e7f0e9;
    font-size: 1.08rem;
    line-height: 1.7;
}

.rt-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.rt-hero__primary,
.rt-hero__secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none !important;
}

.rt-hero__primary {
    gap: 11px;
    padding: 0 21px;
    color: #173f31 !important;
    background: #d9ed9f;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(8, 29, 20, .22);
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.rt-hero__primary:hover,
.rt-hero__primary:focus-visible {
    color: #173f31 !important;
    background: #eef6ed;
    box-shadow: 0 13px 28px rgba(8, 29, 20, .28);
    transform: translateY(-2px);
}

.rt-hero__secondary {
    position: relative;
    padding: 0 2px;
    color: #fff !important;
}

.rt-hero__secondary::after {
    position: absolute;
    right: 0;
    bottom: 9px;
    left: 0;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, .55);
    transform: scaleX(.38);
    transform-origin: left;
    transition: transform .3s ease;
}

.rt-hero__secondary:hover::after,
.rt-hero__secondary:focus-visible::after { transform: scaleX(1); }

.rt-hero__primary:focus-visible,
.rt-hero__secondary:focus-visible,
.rt-hero__gallery-controls button:focus-visible,
.rt-gallery-card a:focus-visible {
    outline: 3px solid rgba(217, 237, 159, .8);
    outline-offset: 4px;
}

.rt-hero__gallery-wrap {
    width: min(100%, 390px);
    justify-self: end;
}

.rt-hero__gallery-heading {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
}

.rt-hero__gallery-heading > span {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rt-hero__gallery-controls { display: flex; gap: 8px; }

.rt-hero__gallery-controls button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 11px;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.rt-hero__gallery-controls button:hover {
    color: #173f31;
    background: #eef6ed;
}

.rt-hero-gallery {
    width: 100%;
    height: 390px;
    overflow: visible;
}

.rt-hero-gallery .swiper-slide {
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 42px rgba(5, 22, 15, .28);
}

.rt-gallery-card,
.rt-gallery-card > a,
.rt-gallery-card img,
.rt-gallery-card__overlay {
    width: 100%;
    height: 100%;
}

.rt-gallery-card { margin: 0; }
.rt-gallery-card > a { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.rt-gallery-card img { display: block; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.rt-gallery-card__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 28, 19, .88), rgba(8, 28, 19, .04) 68%); border: 7px solid;border-radius: 14px;}
.rt-gallery-card > a:hover img { transform: scale(1.035); }

.rt-gallery-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-gallery-card__content time {
    color: #d9ed9f;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.rt-gallery-card__content strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 620;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rt-gallery-pagination {
    min-height: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.rt-gallery-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    background: #fff;
    opacity: .42;
}

.rt-gallery-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 8px;
    background: #d9ed9f;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .rt-hero__container {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
        gap: 44px;
    }
    .rt-hero__content h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
    .rt-hero-gallery { height: 350px; }
}

@media (max-width: 767.98px) {
    .slider-inner.rt-hero {
        padding-top: 110px !important;
        margin-bottom: 0;
    }
    .slider-inner.rt-hero .container { padding-right: 24px !important; padding-left: 24px !important; }
    .rt-hero { min-height: auto; }
    .rt-hero__background { object-position: 42% center; }
    .rt-hero__shade { background: linear-gradient(180deg, rgba(17, 49, 37, .94) 0%, rgba(24, 65, 49, .84) 55%, rgba(12, 31, 24, .72) 100%); }
    .rt-hero::after { right: -190px; bottom: -210px; opacity: .62; }
    .rt-hero__container { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 42px; padding-bottom: 48px; }
    .rt-hero__content { width: 100%; max-width: 570px; }
    .rt-hero__content h1 { max-width: 13ch; margin-bottom: 18px; font-size: clamp(2.15rem, 9.5vw, 3.2rem); line-height: 1.04; }
    .rt-hero__content h1 br { display: none; }
    .rt-hero__content p { max-width: 54ch; margin-bottom: 26px; font-size: .98rem; line-height: 1.62; }
    .rt-hero__actions { gap: 12px 18px; }
    .rt-hero__primary, .rt-hero__secondary { min-height: 48px; }
    .rt-hero__gallery-wrap { width: min(100%, 340px); justify-self: center; }
    .rt-hero-gallery { height: clamp(270px, 82vw, 340px); }
    .rt-gallery-card__content { padding: 20px; gap: 6px; }
    .rt-gallery-card__content strong { font-size: 1.05rem; -webkit-line-clamp: 2; }
    .rt-gallery-pagination { margin-top: 14px; }
}

@media (max-width: 575.98px) {
    .slider-inner.rt-hero { padding-top: 0 !important; }
    .slider-inner.rt-hero .container { padding-right: 20px !important; padding-left: 20px !important; }
    .rt-hero__container { gap: 30px; padding-top: 34px; padding-bottom: 40px; }
    .rt-hero__content h1 { max-width: 12ch; font-size: clamp(2rem, 10.5vw, 2.65rem); }
    .rt-hero__content p { margin-bottom: 23px; font-size: .94rem; }
    .rt-hero__actions { align-items: stretch; flex-direction: column; }
    .rt-hero__primary, .rt-hero__secondary { width: 100%; }
    .rt-hero__secondary { min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 12px; }
    .rt-hero__secondary::after { display: none; }
    .rt-hero__gallery-wrap { width: min(100%, 310px); }
    .rt-hero-gallery { height: clamp(260px, 84vw, 310px); }
    .rt-gallery-card__content { padding: 18px; }
}

@media (max-width: 359.98px) {
    .slider-inner.rt-hero .container { padding-right: 16px !important; padding-left: 16px !important; }
    .rt-hero__content h1 { font-size: 1.95rem; }
    .rt-hero-gallery { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-hero__primary,
    .rt-hero__secondary::after,
    .rt-gallery-card img { transition-duration: .01ms !important; }
}
