/* ===== Басты беттің баннер слайдері (inc/hero-slider.php) =====
   Фон — .slider-eco градиенті (front-page.php). Сол жақта мәтін, оң жақта сурет; телефонда сурет жоғарыда. */

.slider-eco .row.py-5 { padding-top: 34px !important; padding-bottom: 40px !important; }
.hs { position: relative; font-family: Merriweather, Georgia, "Times New Roman", serif; color: #fff; text-align: left; }
.hs * { box-sizing: border-box; }
.hs a { text-decoration: none; transition: none; }
.hs a:hover { opacity: 1; }

/* Барлық слайд бір ұяшықта — биіктік ең биік слайдқа тең, ауысқанда төмендегі блоктар секірмейді */
.hs-track { display: grid; min-height: 400px; }
.hs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.hs-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.hs-kicker { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 50px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font: 700 12px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #F5C46B; }
.hs-title { margin: 18px 0 14px; font-size: 26px; line-height: 1.28; font-weight: 700; color: #fff; }
.hs-text { margin: 0 0 26px; max-width: 520px; font-size: 16px; line-height: 1.65; color: #d6e3f5; }
.hs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: #fff; color: #0052A5 !important; font-weight: 700; font-size: 14.5px; }
.hs-btn:hover { background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #2b1900 !important; }
.hs-btn:focus-visible, .hs button:focus-visible { outline: 2px solid #F5C46B; outline-offset: 3px; }

.hs-media { position: relative; display: flex; justify-content: center; align-items: center; }
.hs-media--photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.hs-media--cutout { align-self: end; margin-bottom: -40px; }
/* Компьютерде фонсыз сурет мәтінмен бір деңгейде (ортасы бойынша) — бұрын төменге жабысып (-40px), мәтіннен ~44px төмен тұратын */
@media (min-width: 992px) { .hs-media--cutout { align-self: center; margin-bottom: 0; } }
/* Фонсыз суреттің төменгі ~28%-і баннерге біртіндеп сіңеді — аяқ жағы кесілген суреттің «қиылған» шеті көрінбейді */
.hs-media--cutout img { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.hs-media--cutout::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245,196,107,.35), rgba(245,196,107,0) 70%); bottom: 6%; }
.hs-media--cutout img { position: relative; max-height: 440px; max-width: 100%; /* кең PNG бағаннан шықпасын (1280px-те 30px шығып тұрған) */ width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }

.hs-nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; transition: width .2s; }
.hs-dots button.on { width: 46px; }
.hs-dots button.on::after { content: ""; display: block; height: 100%; background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); animation: hs-progress 6s linear forwards; }
.hs.is-paused .hs-dots button.on::after { animation-play-state: paused; }
@keyframes hs-progress { from { width: 0; } to { width: 100%; } }
.hs-arrows { display: flex; gap: 8px; margin-left: 6px; }
.hs-arrows button { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.hs-arrows button:hover { background: #fff; color: #0052A5; }

@media (max-width: 991px) {
    .slider-eco .row.py-5 { padding-top: 18px !important; padding-bottom: 26px !important; }
    .hs-track { min-height: 0; }
    .hs-slide { grid-template-columns: 1fr; gap: 16px; }
    .hs-media { order: -1; }
    .hs-media--photo img { aspect-ratio: 16 / 10; border-radius: 14px; }
    .hs-media--cutout { margin-bottom: 0; max-height: 240px; }
    .hs-media--cutout img { max-height: 240px; }
    .hs-title { font-size: 19px; line-height: 1.3; margin: 12px 0 8px; }
    .hs-text { font-size: 14px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hs-kicker { font-size: 10.5px; padding: 5px 10px; }
    .hs-btn { padding: 10px 16px; font-size: 13.5px; }
    .hs-nav { margin-top: 18px; }
    .hs-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide, .hs-slide.on { transition: none; }
    .hs-dots button.on::after { animation: none; width: 100%; }
}

/* ===== Слайдер көрінісін жақсарту (сурет баяу жақындайды, мәтін кезекпен шығады) =====
   Ұнамаса — осы блокты толық өшіру жеткілікті (жоғарыдағы бастапқы стильдер өзгерген жоқ). */

/* Белсенді фото 7 секундта 107%-ға дейін баяу үлкейеді (рамка — .hs-media--photo, сурет оның ішінде қиылады);
   адам суреті слайд ашылғанда төменнен жұмсақ көтеріледі */
.hs-media--photo { overflow: hidden; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.hs-media--photo img { box-shadow: none; }
.hs-slide.on .hs-media--photo img { animation: hs-kb 7s ease-out forwards; }
.hs-slide:not(.on) .hs-media--photo img { transform: scale(1.07) translate(-1%, -1%); } /* шығып бара жатқан слайдтың суреті кері секірмейді */
@keyframes hs-kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1%, -1%); } }
.hs-slide.on .hs-media--cutout img { animation: hs-rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Белгі → тақырып → мәтін → батырма 80 мс аралықпен төменнен шығады */
.hs-slide.on .hs-body > * { animation: hs-up .6s cubic-bezier(.2,.8,.2,1) both; }
.hs-slide.on .hs-body > :nth-child(2) { animation-delay: .08s; }
.hs-slide.on .hs-body > :nth-child(3) { animation-delay: .16s; }
.hs-slide.on .hs-body > :nth-child(4) { animation-delay: .24s; }
@keyframes hs-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
    .hs-media--photo { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide.on .hs-media--photo img, .hs-slide.on .hs-media--cutout img, .hs-slide.on .hs-body > * { animation: none; }
    .hs-slide:not(.on) .hs-media--photo img { transform: none; }
}
/* ===== /Слайдер көрінісін жақсарту ===== */

/* ===== YouTube бейне (hs_youtube, inc/hero-slider.php): «▶ Бейнені көру» батырмасы мен терезесі ===== */
.hs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hs-vbtn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 50px; background: rgba(255,255,255,.08); color: #fff; font: 700 14.5px Merriweather, Georgia, serif; cursor: pointer; transition: background .15s, border-color .15s; }
.hs-vbtn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hs-vbtn__ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #2b1900; }
.hs-vbtn__ico svg { width: 15px; height: 15px; margin-left: 2px; }
.hs-modal { position: fixed; inset: 0; z-index: 100000; /* қалқымалы батырмалардан (9999+) жоғары */ display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,22,40,.82); }
.hs-modal[hidden] { display: none; }
.hs-modal__box { position: relative; width: min(960px, 100%); }
.hs-modal__frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hs-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hs-modal__x { position: absolute; right: 0; top: -52px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #0A1628; font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 991px) {
    .hs-vbtn { padding: 5px 14px 5px 5px; font-size: 13.5px; }
    .hs-vbtn__ico { width: 28px; height: 28px; }
}
