/* premium.css (hero-only overrides). Do NOT style global page here. */

/* --- hero layout --- */
.hero-wrap{ width:100%; max-width:1200px; margin:20px auto; padding:0 20px; }
#heroCard{ position:relative; }

/* button (pill) */
#heroInfoBtn2.hero-info-btn{
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:50;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;

  background: linear-gradient(90deg,#66d3ff,#b58bff);
  color:#0b1020;
  border:0;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
}
#heroInfoBtn2.hero-info-btn:hover{ filter:brightness(1.05); }

/* hero description (glass) + smooth reveal */
#heroDesc{
  display:block;               /* needed for animation */
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;

  margin-top:14px;
  padding:16px 18px 62px 18px;
  border-radius:14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    max-height 1600ms cubic-bezier(.22,1,.36,1),
    opacity 1100ms ease,
    transform 1100ms ease;
}

body.show-desc #heroDesc{
  max-height:1200px;
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* typography inside desc */
#heroDesc{ color: rgba(255,255,255,.88); font-size:13.5px; line-height:1.55; }
#heroDesc p{ margin:0 0 10px 0; }
#heroDesc .muted{ color: rgba(255,255,255,.65); }
#heroDesc ul{ margin:10px 0 12px 18px; }
#heroDesc li{ margin:6px 0; }
#heroDesc b{ color: rgba(255,255,255,.95); }

/* ===== hero small polish ===== */

/* больше воздуха сверху */
.hero-wrap{ margin: 28px auto 18px !important; }

/* вернём “карточность”/стекло hero (как раньше) */
#heroCard{
  border-radius: 18px !important;
  padding: 26px 28px 22px !important;
  background:
    radial-gradient(1200px 420px at 18% 30%, rgba(255,60,60,0.16), transparent 60%),
    radial-gradient(900px 520px at 72% 22%, rgba(90,150,255,0.16), transparent 55%),
    rgba(10,14,22,0.86) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 55px rgba(0,0,0,0.50) !important;
}

/* чуть аккуратнее заголовок (и адаптив) */
.hero-title{
  font-size: clamp(44px, 4.6vw, 64px) !important;
  line-height: 1.05 !important;
  margin: 0 0 10px 0 !important;
}

/* подзаголовок читаемее */
.hero-subtitle{
  color: rgba(255,255,255,.72) !important;
  margin: 0 0 14px 0 !important;
}

/* поиск: убрать зелёную “таблетку”, сделать спокойную кнопку */
.hero-search{ display:flex !important; gap:10px !important; align-items:center !important; max-width: 560px !important; }
.hero-search-input{
  height: 46px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.88) !important;
}
.hero-search-btn{
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* чтобы карточки не прилипали к hero */
.shorts-wrap{ margin-top: 18px !important; }


/* ===== page bg a bit lighter ===== */
html.dark body{
  background: #141a26 !important; /* было ~#0b0f18, стало светлее */
}

/* ===== lighter dark theme background (real containers) ===== */
html.dark body,
html.dark .wrapper,
html.dark #wrapper,
html.dark #content,
html.dark .base,
html.dark .center,
html.dark .content-wrap,
html.dark .main-wrap{
  background: #1b2231 !important;
}

/* верхняя часть (чтобы не была “угольной”) */
html.dark .head-wrap,
html.dark .nav-wrap{
  background: #141a26 !important;
}


/* make hero card slightly lighter on lighter page bg */
#heroCard{
  background:
    radial-gradient(1200px 420px at 18% 30%, rgba(255,60,60,0.14), transparent 60%),
    radial-gradient(900px 520px at 72% 22%, rgba(90,150,255,0.14), transparent 55%),
    rgba(18,24,36,0.78) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
}


/* ===== header/nav polish ===== */
html.dark .head-wrap{
  background: rgba(18,24,36,0.75) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.dark .nav-wrap{
  background: rgba(18,24,36,0.62) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* чтобы блоки не казались “обрубком” */
html.dark .head,
html.dark .nav{
  border-radius: 14px !important;
}


/* ===== hero polish ===== */
.hero-kicker{ opacity:.9 !important; letter-spacing:.14em !important; }
.hero-subtitle{ font-size: 13px !important; line-height: 1.45 !important; }

.hero-search{ max-width: 520px !important; }
.hero-search-input{
  height: 46px !important;
  padding: 0 16px !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
.hero-search-btn{
  width: 46px !important;
  height: 46px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

/* чуть добавим “объёма” hero на фоне */
#heroCard{
  box-shadow: 0 22px 60px rgba(0,0,0,.45) !important;
}


/* ===== layout fixes: hero less пустой, поиск цельный, больше воздуха до карточек ===== */

/* hero: сделать компактнее по высоте */
#heroCard{
  padding: 22px 26px 20px !important;
  min-height: 260px !important;   /* было “как баннер”, станет компактнее */
}

/* заголовок чуть меньше, чтобы не съедал пространство */
.hero-title{
  font-size: clamp(40px, 4.2vw, 56px) !important;
}

/* поиск: поле + кнопка как один control */
.hero-search{
  max-width: 520px !important;
  gap: 0 !important;
}
.hero-search-input{
  height: 46px !important;
  border-radius: 999px 0 0 999px !important;
  border-right: 0 !important;
}
.hero-search-btn{
  height: 46px !important;
  width: 52px !important;
  border-radius: 0 999px 999px 0 !important;
  margin-left: 0 !important;
}

/* отступ между hero и карточками */
.shorts-wrap{ margin-top: 26px !important; }

/* карточки: чуть больше “воздуха” и мягче тень */
html.dark .premium-card{
  box-shadow: 0 16px 44px rgba(0,0,0,.40) !important;
}

/* шапка: сделать чуть ниже (меньше “толщины”) */
html.dark .head-wrap{ padding-top: 6px !important; padding-bottom: 6px !important; }
html.dark .nav-wrap{ padding-top: 4px !important; padding-bottom: 4px !important; }

