/* ===== Праздничный hero «Тәуелсіздікке 35 жыл» — v3 =====
   Видео на весь первый экран (cover, без размытых полей), шапка прозрачная поверх баннера,
   элементы hero — аккуратная панель внизу кадра. Масштаб/позиция видео — holiday-hero.js.
   Подключается только из шаблонов hero главных страниц. */
:root{--h35-gold:#f1cf73;--h35-gold-d:#c9932f;--h35-ink:#06303b;--h35-line:rgba(241,207,115,.42)}

/* Шапка на главной: прозрачная поверх баннера, лёгкое затемнение сверху для читаемости меню */
html body header.site-header{background:linear-gradient(180deg,rgba(2,30,40,.66) 0%,rgba(2,30,40,.38) 62%,rgba(2,30,40,0) 100%)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body.header-scrolled header.site-header,html body.header-hovered header.site-header{background:rgba(3,44,56,.96)!important;box-shadow:0 6px 24px rgba(0,0,0,.25)!important}

/* Запасной фон, если JS не загрузился (старое видео в шаблоне на праздник отключено) */
#hero.hero:not(.h35-on){background:#04323f url(/holiday35/poster/poster-desktop-1920x1080.jpg) center/cover no-repeat!important}

/* Сцена: под шапкой, на всю ширину */
#hero.hero.h35-on{position:relative!important;display:block!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:#04323f!important;overflow:hidden!important}
#hero.h35-on > .hero-overlay,#hero.h35-on > #myVideo{display:none!important}
.h35-stage{position:relative;height:var(--h35-h,100svh);overflow:hidden;background:#05485a}
.h35-media{position:absolute;left:0;top:0;transform-origin:0 0;z-index:0;pointer-events:none}
.h35-media video,.h35-media .h35-poster{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill}
.h35-media .h35-poster{z-index:1;transition:opacity .6s}
.h35-stage.is-playing .h35-poster{opacity:0}
.h35-bird{position:absolute;z-index:2;pointer-events:none;filter:drop-shadow(0 10px 22px rgba(0,0,0,.25));animation:h35-in 1.2s .5s cubic-bezier(.2,.8,.2,1) both,h35-float 7s 1.7s ease-in-out infinite}
@keyframes h35-in{from{opacity:0;transform:translateY(24px) scale(.96)}}
@keyframes h35-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px) rotate(-.6deg)}}

/* Нижняя панель — поверх шёлка и ленты, затемнение только у самого низа */
.h35-dock{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:40px 0 26px;background:linear-gradient(180deg,rgba(2,34,44,0) 0%,rgba(2,34,44,.38) 40%,rgba(2,30,40,.72) 100%)}
#hero.h35-on .h35-dock .hero-container{position:static!important;padding:0 32px!important;margin:0 auto!important;max-width:1360px;width:100%;box-sizing:border-box!important;transform:none!important}
/* место под плавающий чат-бот сайта (a.urlbot, справа внизу) */
@media (min-width:992px){#hero.h35-on .h35-dock .hero-container{padding-right:max(32px,calc(170px - max(0px,(100vw - 1360px) / 2)))!important}}
@media (max-width:991px){#hero.h35-on .h35-stage.h35-bot .h35-dock{padding-bottom:78px!important}}
#hero.h35-on .h35-stage.h35-no-soc .hero-socials{display:none!important}
#hero.h35-on .h35-dock .row{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:stretch;margin:0!important}
#hero.h35-on .h35-dock .row > *{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important}
#hero.h35-on .h35-dock [data-aos]{opacity:1!important;transform:none!important;transition:none!important}

/* Слоган над «16 ЖЕЛТОҚСАН» (компьютер; позицию ставит JS) */
#hero.h35-on .h35-stage > .hero-title.h35-kicker-top{position:absolute!important;z-index:3;margin:0!important;font-size:17px!important;letter-spacing:.14em!important;white-space:nowrap;display:flex;align-items:center;gap:14px}
#hero.h35-on .h35-stage > .hero-title.h35-kicker-top::before{content:"";width:36px;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(241,207,115,0),#f1cf73)}

#hero.h35-on .h35-stage.h35-kick-up .hero-description{display:none!important}

/* Левая колонка: подпись, описание, две кнопки в ряд */
#hero.h35-on .hero-left-col{display:flex!important;flex-direction:column;justify-content:flex-end}
#hero.h35-on .hero-title{font-size:15px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--h35-gold)!important;margin:0 0 6px!important;text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 14px rgba(2,30,40,.85)!important;white-space:nowrap}
#hero.h35-on .hero-title br{display:none}
#hero.h35-on .hero-description{font-size:14px!important;line-height:1.4!important;color:rgba(255,255,255,.86)!important;margin:0 0 16px!important;text-shadow:0 1px 2px rgba(0,0,0,.5),0 0 12px rgba(2,30,40,.8);max-width:520px}
#hero.h35-on .hero-cta{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch;gap:12px;margin:0!important}
#hero.h35-on .hero-button{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;height:50px!important;min-height:0!important;padding:0 24px!important;margin:0!important;border-radius:10px!important;font-size:15px!important;font-weight:600!important;line-height:1!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap;width:auto!important;border:1.5px solid transparent!important;background:linear-gradient(100deg,#d4a23e 0%,#f3d47e 55%,#e3b655 100%)!important;color:var(--h35-ink)!important;box-shadow:0 4px 14px rgba(0,0,0,.18)!important;transition:transform .2s,filter .2s;transform:none}
#hero.h35-on .hero-button svg{width:18px!important;height:18px!important;display:block;flex:0 0 18px;margin:0!important}
#hero.h35-on .hero-button:hover{transform:translateY(-2px);filter:brightness(1.05)}
#hero.h35-on .hero-button--survey{background:rgba(3,40,52,.42)!important;color:#fff!important;border-color:rgba(241,207,115,.8)!important;box-shadow:none!important}
#hero.h35-on .hero-button--survey:hover{background:rgba(241,207,115,.16)!important}

/* Плитки: одинаковая высота, иконка по центру круга, без размытия фона */
#hero.h35-on .hero-right-col{display:flex!important;align-items:stretch}
#hero.h35-on .monolith-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0!important;height:auto!important;width:100%}
#hero.h35-on .monolith-block{display:flex!important;height:auto!important;min-height:0!important;margin:0!important;padding:16px!important;border-radius:12px!important;background:rgba(3,42,54,.5)!important;border:1px solid var(--h35-line)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:#fff!important;text-decoration:none!important;box-shadow:none!important;transform:none;transition:transform .2s,border-color .2s,background .2s}
#hero.h35-on .monolith-block:hover{transform:translateY(-3px);border-color:var(--h35-gold)!important;background:rgba(4,58,74,.62)!important}
#hero.h35-on .monolith-content{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:0!important;margin:0!important;height:auto!important;width:100%}
#hero.h35-on .monolith-icon{display:grid!important;place-items:center;flex:0 0 auto;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:rgba(241,207,115,.14)!important;border:1px solid rgba(241,207,115,.35);color:var(--h35-gold)!important;line-height:0}
#hero.h35-on .monolith-icon svg{width:18px!important;height:18px!important;display:block;margin:0!important;stroke:currentColor;position:static!important;top:auto!important;left:auto!important;transform:none!important}
#hero.h35-on .monolith-text{margin:0!important;padding:0!important}
#hero.h35-on .monolith-block{align-items:center}
#hero.h35-on .monolith-title{font-size:15.5px!important;font-weight:700!important;line-height:1.2!important;margin:0!important;color:#fff!important;text-transform:none!important;letter-spacing:0!important}
#hero.h35-on .monolith-description{display:none!important;font-size:12.5px!important;line-height:1.35!important;margin:0!important;color:rgba(255,255,255,.78)!important}
/* Большие экраны (от 1600×1000): плитки с описанием */
@media (min-width:1600px) and (min-height:1000px){
  #hero.h35-on .monolith-description{display:block!important}
  #hero.h35-on .monolith-content{flex-direction:column;align-items:flex-start;gap:10px}
  #hero.h35-on .monolith-block{align-items:flex-start}
  #hero.h35-on .monolith-title{margin:0 0 4px!important}
}

/* Соцсети: колонка золотых кружков в левом поле кадра */
#hero.h35-on .hero-socials{position:absolute!important;left:24px!important;top:var(--h35-soc-top,45%)!important;transform:translateY(-50%)!important;z-index:3;display:flex!important;flex-direction:column;gap:10px;margin:0!important}
#hero.h35-on .hero-socials a{width:40px!important;height:40px!important;border-radius:50%!important;display:grid!important;place-items:center;border:1px solid rgba(241,207,115,.6)!important;background:rgba(3,40,52,.35)!important;color:var(--h35-gold)!important;padding:0!important;margin:0!important;line-height:0}
#hero.h35-on .hero-socials a:hover{background:rgba(241,207,115,.18)!important}
#hero.h35-on .hero-socials svg{width:18px;height:18px;display:block}
#hero.h35-on .hero-socials span{display:none!important}

/* Невысокие ноутбуки: панель компактнее */
@media (min-width:992px) and (max-height:820px){#hero.h35-on .hero-description{display:none!important}.h35-dock{padding-top:32px;padding-bottom:20px}#hero.h35-on .hero-button{height:46px!important}}

/* до 1600 px или ниже 1000 px: кнопки строкой, плитки ниже на всю ширину
   (в одну строку с кнопками плитки помещаются только с описаниями, на экранах от 1600×1000) */
@media (max-width:1599px),(max-height:999px){
  #hero.h35-on .h35-dock .row{grid-template-columns:1fr;gap:16px}
  #hero.h35-on .hero-left-col{display:grid!important;grid-template-columns:1fr auto;align-items:end;column-gap:20px}
  #hero.h35-on .hero-title,#hero.h35-on .hero-description{grid-column:1}
  #hero.h35-on .hero-cta{grid-column:2;grid-row:1 / span 2}
  #hero.h35-on .monolith-block{padding:12px 14px!important}
  #hero.h35-on .h35-dock .row{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1199px) and (min-width:992px){
  #hero.h35-on .hero-left-col{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
  #hero.h35-on .hero-title{white-space:normal;margin:0!important}
  #hero.h35-on .hero-description{display:none!important}
  #hero.h35-on .hero-button{padding:0 18px!important;font-size:14.5px!important}
  #hero.h35-on .monolith-title{font-size:14px!important}
  #hero.h35-on .monolith-icon{width:34px!important;height:34px!important}
  #hero.h35-on .monolith-content{gap:10px}
}
/* Планшет и узкие экраны */
@media (max-width:991px){
  #hero.h35-on .hero-socials{display:none!important}
  #hero.h35-on .hero-left-col{display:flex!important;flex-direction:column;align-items:center;text-align:center}
  #hero.h35-on .hero-title{white-space:normal}
  #hero.h35-on .hero-description{display:none!important}
  #hero.h35-on .monolith-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #hero.h35-on .h35-dock .hero-container{padding:0 20px!important}
}
/* Телефон */
@media (max-width:767px){
  .h35-dock{padding:28px 0 16px;background:linear-gradient(180deg,rgba(2,34,44,0) 0%,rgba(2,34,44,.45) 18%,rgba(2,30,40,.8) 100%)}
  #hero.h35-on .h35-dock .hero-container{padding:0 16px!important}
  #hero.h35-on .h35-dock .row{gap:12px}
  #hero.h35-on .hero-left-col{align-items:stretch}
  #hero.h35-on .hero-title{font-size:12.5px!important;margin-bottom:10px!important;text-align:center}
  #hero.h35-on .hero-cta{flex-direction:column!important;gap:8px}
  #hero.h35-on .hero-button{width:100%!important;height:44px!important;font-size:15px!important}
  #hero.h35-on .monolith-grid{gap:8px}
  #hero.h35-on .monolith-block{padding:8px 12px!important;border-radius:10px!important;min-height:50px!important}
  #hero.h35-on .monolith-content{gap:10px}
  #hero.h35-on .monolith-icon{width:32px!important;height:32px!important}
  #hero.h35-on .monolith-icon svg{width:16px!important;height:16px!important}
  #hero.h35-on .monolith-title{font-size:14px!important;text-align:left}
}
@media (prefers-reduced-motion:reduce){.h35-media video{display:none}.h35-bird{animation:none}}
