:root{
  --bg-body:#ffffff;
  --text-main:#0b0c10;

  --accent:#1a78ff;
  --accent-2:#6aa8ff;

  --transition:all .28s cubic-bezier(.4,0,.2,1);

  --header-h:80px;
  --btn-scale:1.05;

  --header-bg:#1d1d2f;
  --header-bg-2:#161628;

  --glass: rgba(255,255,255,.06);
  --glass-2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);

  --shadow-lg: 0 18px 60px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.25);

  --radius-14: 14px;
  --radius-16: 16px;
}

html[data-theme="dark"]{
  --bg-body:#1f1f24;
  --text-main:#f2f2f5;

  --header-bg:#222231;
  --header-bg-2:#1b1b28;
}

*{box-sizing:border-box}
html,body{height:100%}

html.no-scroll, html.no-scroll body{
  overflow:hidden;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg-body);
  color:var(--text-main);
  transition: background-color .25s ease, color .25s ease;
  padding-top: var(--header-h);
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.main-header{
  position:fixed;
  top:0; left:0;
  width:100%;
  height: var(--header-h);
  z-index:1000;

  background:
    radial-gradient(1200px 220px at 50% -40px, rgba(26,120,255,.18), transparent 60%),
    linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color:#fff;
  box-shadow: var(--shadow-md);
}

.main-header::before{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-24px;
  height:24px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(29,29,47,.55) 0%, rgba(29,29,47,0) 100%);
  opacity:.55;
}
.main-header::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-36px;
  height:36px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 100%);
  opacity:.55;
}

.header-row{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  min-width: 260px;
  flex: 0 0 auto;
}

.brand a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent;
  line-height:0;
  border-radius: var(--radius-14);
}

.brand a:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(26,120,255,.18);
}

.brand img{
  width:235px;
  height:auto;
  display:block;
  margin:0;
  -webkit-user-drag:none;
  user-drag:none;
  user-select:none;
  pointer-events:none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}

.top-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 260px;
}

.top-nav a{
  color: rgba(255,255,255,.80);
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: var(--transition);
  font-size: 14px;
  line-height:1;
  white-space:nowrap;
  position:relative;
}

.top-nav a:hover{
  color:#fff;
  background: rgba(26,120,255,.10);
  transform: translateY(-1px);
}

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 12px;
  min-width: 300px;
  flex: 0 0 auto;
}

.region-selector{position:relative; width:190px;}

.region-btn{
  width:100%;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,.86);
  padding: calc(8px * var(--btn-scale)) calc(12px * var(--btn-scale));
  border-radius: var(--radius-14);
  font-size: calc(13px * var(--btn-scale));
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  transition: var(--transition);
  line-height:1;
  min-height: calc(34px * var(--btn-scale));
  backdrop-filter: blur(10px);
}

.region-btn:hover{
  color:#fff;
  background: rgba(26,120,255,.10);
  border-color: rgba(26,120,255,.35);
  transform: translateY(-1px);
}

.region-arrow{
  margin-left:auto;
  width: calc(12px * var(--btn-scale));
  height: calc(12px * var(--btn-scale));
  transition: transform .25s ease;
}
.region-btn.active .region-arrow{transform:rotate(180deg)}

.region-menu{
  position:absolute;
  top: calc(100% + 10px);
  right:0;
  min-width: 240px;
  margin:0;
  padding:6px 0;
  list-style:none;
  background: rgba(29,29,47,.98);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-lg);
  display:none;
  opacity:0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
  z-index:1001;
  backdrop-filter: blur(12px);
}

.region-menu.show{
  display:block;
  opacity:1;
  transform: translateY(0);
}

.region-menu a{
  display:block;
  padding: 10px 14px;
  color: rgba(255,255,255,.80);
  text-decoration:none;
  transition: var(--transition);
  font-size: 14px;
  white-space:nowrap;
}

.region-menu a:hover{
  color: var(--accent);
  background: rgba(26,120,255,.08);
  padding-left: 18px;
}

.header-icon{
  width: calc(42px * var(--btn-scale));
  height: calc(42px * var(--btn-scale));
  border-radius: var(--radius-14);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: rgba(255,255,255,.82);
  cursor:pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.header-icon i{font-size: calc(18px * var(--btn-scale))}

.header-icon:hover{
  color: var(--accent);
  background: rgba(26,120,255,.10);
  border-color: rgba(26,120,255,.35);
  transform: translateY(-1px);
}

.header-icon:focus-visible,
.region-btn:focus-visible,
.icon-btn:focus-visible,
.theme-btn:focus-visible,
.social-btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(26,120,255,.18);
}

.search-overlay{
  position:fixed;
  top: var(--header-h);
  left:0;
  width:100%;
  padding: 14px 18px 18px;
  z-index: 900;
  transform: translateY(-140%);
  opacity:0;
  visibility:hidden;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .20s ease, visibility .20s ease;
  background: linear-gradient(180deg, rgba(29,29,47,.98) 0%, rgba(29,29,47,.86) 100%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}

.search-overlay.open{
  transform: translateY(0);
  opacity:1;
  visibility:visible;
}

.search-container{max-width: 720px; margin:0 auto;}

.search-field{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-16);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.07);
  box-shadow: 0 16px 46px rgba(0,0,0,.35);
  transition: var(--transition);
}

.search-field:focus-within{
  border-color: rgba(26,120,255,.75);
  box-shadow: 0 16px 54px rgba(0,0,0,.40), 0 0 0 4px rgba(26,120,255,.14);
}

.search-ico{color: rgba(255,255,255,.78)}

#story{
  width:100%;
  background:transparent;
  border:0;
  outline:0;
  color:#fff;
  font-size:16px;
  padding: 6px 0;
}

#story::placeholder{color: rgba(255,255,255,.55)}

.icon-btn{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.80);
  width: 40px; height: 40px;
  border-radius: var(--radius-14);
  cursor:pointer;
  transition: var(--transition);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.icon-btn:hover{color: var(--accent); background: rgba(26,120,255,.12);}

.menu-backdrop{
  position:fixed;
  inset:0;
  z-index:1000;
  background: rgba(0,0,0,.40);
  opacity:0;
  transition: opacity .22s ease;
  backdrop-filter: blur(2px);
}

.menu-backdrop.show{
  opacity:1;
}

.slide-menu{
  position:fixed; top:0; right:-100%;
  width: 340px; height: 100vh;
  z-index:1001;
  padding: 22px;
  background:
    radial-gradient(900px 240px at 70% -40px, rgba(26,120,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(29,29,47,.98) 0%, rgba(18,18,30,.98) 100%);
  border-left: 1px solid rgba(255,255,255,.10);
  box-shadow: -18px 0 60px rgba(0,0,0,.45);
  transition: right .45s cubic-bezier(.16,1,.3,1);
  backdrop-filter: blur(12px);
  display:flex; flex-direction:column;
}

.slide-menu.open{right:0}

.menu-header{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 14px;
  color:#fff;
  font-weight:700;
  font-size:18px;
}

.menu-nav{flex:1; overflow:auto; padding-right: 6px}

.menu-nav a{
  display:block;
  padding: 12px 0;
  color: rgba(255,255,255,.82);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}

.menu-nav a:hover{
  color: var(--accent);
  padding-left: 10px;
}

.menu-socials{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn{
  width: calc(44px * var(--btn-scale));
  height: calc(44px * var(--btn-scale));
  border-radius: var(--radius-14);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
  transition: var(--transition);
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.social-btn img{
  width: calc(22px * var(--btn-scale));
  height: calc(22px * var(--btn-scale));
  object-fit:contain;
  filter: grayscale(1) brightness(1.7) contrast(1.1);
  opacity:.9;
  transition: var(--transition);
  -webkit-user-drag:none;
  user-drag:none;
}

.social-btn:hover{
  transform: translateY(-1px) scale(1.04);
  background: rgba(26,120,255,.10);
  border-color: rgba(26,120,255,.30);
  box-shadow: 0 16px 46px rgba(0,0,0,.35);
}

.social-btn:hover img{
  filter: grayscale(0) brightness(1.1) contrast(1.1);
  opacity:1;
}

.theme-toggle{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(255,255,255,.78);
  user-select:none;
}

.theme-toggle .label{
  font-size:14px;
  line-height:1;
}

.theme-toggle input{display:none}

.theme-btn{
  width: 54px;
  height: 34px;
  border-radius: var(--radius-14);
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: rgba(255,255,255,.90);
  cursor:pointer;
  transition: var(--transition);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.theme-btn:hover{
  background: rgba(26,120,255,.10);
  border-color: rgba(26,120,255,.35);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-btn i{
  font-size: 16px;
  transition: opacity .2s ease, transform .3s ease;
  position:absolute;
}

.theme-btn .sun{opacity:1; transform: scale(1) rotate(0deg);}
.theme-btn .moon{opacity:0; transform: scale(.85) rotate(-12deg);}

html[data-theme="dark"] .theme-btn .sun{opacity:0; transform: scale(.85) rotate(12deg);}
html[data-theme="dark"] .theme-btn .moon{opacity:1; transform: scale(1) rotate(0deg);}

.top-fade{
  position:fixed;
  left:0; right:0;
  top: var(--header-h);
  height: 40px;
  z-index: 10;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(26,120,255,.10) 0%, rgba(26,120,255,.00) 55%),
    linear-gradient(180deg, rgba(29,29,47,.30) 0%, rgba(29,29,47,.00) 100%);
  opacity:.32;
}

main{
  max-width:1200px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

/* Responsive */
@media (max-width: 980px){
  .top-nav{display:none}
  .brand{min-width: 230px}
  .brand img{width: 210px}
  .header-right{min-width: 260px}
}

@media (max-width: 560px){
  :root{--header-h:72px; --btn-scale: 1.00;}
  .region-selector{display:none}
  .brand{min-width: 200px}
  .brand img{width: 190px}
  .header-right{min-width: 120px}
  .slide-menu{width: min(92vw, 360px);}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{
    transition:none !important;
    scroll-behavior:auto !important;
    animation:none !important;
  }
}
/* Оформление Яндекс Captcha */
.smart-captcha {
    display: inline-block;
}

/* Оформление математических формул */
.mathml-container {
	font-family: math;
}
div.mathml-block {
	font-size: 1.1em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .139em .35em;
}

div.mathml-block .katex {
    font-size: 1.1em;
}

span.mathml-inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0 .12em;
}

/* Оформление блока скрытого текста */
.dleshowhidden {
	color: #104d92;
	background-color: #E3F2FD;
	border: 1px solid #1E88E5;
	box-shadow: 0 5px 12px rgba(126, 142, 177, 0.2);
	padding: .83em;	
}

.dre-date,
.dre-cats,
.dre-day_meta,
.dre-len_meta,
.dre-mire_meta,
.dre-rel_meta,
.dre-short_meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.dre-day_meta,
.dre-len_meta,
.dre-mire_meta,
.dre-rel_meta,
.dre-short_meta{
    margin-bottom:10px;
    color:rgba(255,255,255,.72);
    font-size:13px;
    line-height:1.4;
}

.dre-rel_meta,
.dre-short_meta{
    color:#6f7785;
}

.dre-date,
.dre-cats{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.dre-cats a{
    color:inherit;
    text-decoration:none;
    opacity:.95;
    transition:.25s ease;
}

.dre-cats a:hover{
    color:#1a78ff;
}

.dre-mire_title,
.dre-len_title,
.dre-rel_title,
.dre-short_title,
.dre-day_title{
    text-decoration:none;
}

.dre-mire_title h3{
    margin:0;
}

.dre-rel_poster,
.dre-len_poster,
.dre-mire_poster,
.dre-short_bg{
    display:block;
    text-decoration:none;
}

.dre-short_content{
    padding:14px 0 0;
}

.dre-rel_item{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.dre-rel_poster img,
.dre-len_poster img,
.dre-mire_poster img,
.dre-short_bg img{
    width:100%;
    height:auto;
    display:block;
    border-radius:16px;
}

.dre-day_item{
    position:relative;
    padding:18px;
    border-radius:18px;
    overflow:hidden;
    background:linear-gradient(180deg,#1d1d2f 0%, #161628 100%);
    color:#fff;
}

.dre-day_item::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:var(--poster);
    background-size:cover;
    background-position:center;
    opacity:.18;
    pointer-events:none;
}

.dre-day_item > *{
    position:relative;
    z-index:1;
}

.dre-day_title,
.dre-len_title,
.dre-mire_title,
.dre-rel_title,
.dre-short_title{
    color:inherit;
    transition:.25s ease;
}

.dre-day_title:hover,
.dre-len_title:hover,
.dre-mire_title:hover,
.dre-rel_title:hover,
.dre-short_title:hover{
    color:#1a78ff;
}

/* ===== Главная страница ===== */
.section{
  margin-bottom: 34px;
}

.main-home{
  display:block;
}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  font-size:38px;
  line-height:1.1;
  font-weight:800;
  color:#10131a;
}

.section-head p{
  margin:10px 0 0;
  color:#5e6777;
  font-size:15px;
  line-height:1.6;
  max-width:780px;
}

.section-head__tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#1a78ff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.section-head--center{
  text-align:center;
}

.section-head--center p{
  margin-left:auto;
  margin-right:auto;
}

/* ===== Базовые сетки ===== */
.e-grid2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
}

.e-grid3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.e-grid4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:20px;
}

.e-flex{
  display:flex;
  align-items:center;
}

.e-flex50{
  flex:1 1 50%;
}

.e-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.e-clamp2,
.e-clamp3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.e-clamp2{-webkit-line-clamp:2;}
.e-clamp3{-webkit-line-clamp:3;}

/* ===== Hero ===== */
.home-hero__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.7fr) minmax(320px, .95fr);
  gap:28px;
  align-items:start;
}

.home-hero__main,
.home-hero__side,
.home-feature,
.home-feed,
.category-block,
.home-articles{
  min-width:0;
}

.hero-slider{
  position:relative;
  overflow:hidden;
  border-radius:22px;
}

.hero-slider .swiper-wrapper{
  display:flex;
  gap:20px;
}

.hero-slider__nav{
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:5;
  display:flex;
  gap:10px;
}

.hero-slider__nav i{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(17,20,28,.72);
  color:#fff;
  cursor:pointer;
  transition:.25s ease;
  backdrop-filter:blur(10px);
}

.hero-slider__nav i:hover{
  background:#1a78ff;
}

/* ===== MIRE ===== */
.dre-mire_item{
  position:relative;
  min-height:460px;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg,#dfe6ef 0%, #cfd7e2 100%);
}

.dre-mire_poster,
.dre-len_poster,
.dre-rel_poster,
.dre-short_bg{
  display:block;
  text-decoration:none;
}

.dre-mire_poster,
.dre-mire_poster img{
  width:100%;
  height:100%;
}

.dre-mire_item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(12,16,24,.05) 0%, rgba(12,16,24,.82) 100%);
  pointer-events:none;
}

.dre-mire_content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:24px;
  color:#fff;
}

.dre-mire_title{
  text-decoration:none;
  color:#fff;
}

.dre-mire_title h3{
  margin:0;
  font-size:30px;
  line-height:1.18;
  font-weight:800;
}

.dre-mire_title:hover{
  color:#8ec0ff;
}

.dre-mire_meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:12px;
  font-size:13px;
  color:rgba(255,255,255,.88);
}

/* ===== Последние новости ===== */
.home-hero__side{
  background:#fff;
  border:1px solid #e7ebf2;
  border-radius:22px;
  padding:22px;
  box-shadow:0 16px 40px rgba(14,22,40,.06);
}

.news-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.dre-rel_item{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-bottom:16px;
  border-bottom:1px solid #edf1f6;
}

.dre-rel_item:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.dre-rel_title{
  color:#10131a;
  text-decoration:none;
  font-size:21px;
  line-height:1.3;
  font-weight:700;
}

.dre-rel_title:hover{
  color:#1a78ff;
}

.dre-rel_meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:#697386;
  font-size:13px;
  line-height:1.45;
}

.dre-rel_poster{
  border-radius:16px;
  overflow:hidden;
}

.dre-rel_poster img{
  width:100%;
  display:block;
  border-radius:16px;
}

/* ===== Новость дня ===== */
.home-feature{
  padding:30px;
  background:linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  border:1px solid #e4ecfb;
  border-radius:26px;
}

.home-feature__items .dre-day_item{
  min-height:240px;
}

.dre-day_item{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  padding:20px;
  min-height:260px;
  background:linear-gradient(180deg,#1f2434 0%, #131722 100%);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.dre-day_item::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--poster);
  background-size:cover;
  background-position:center;
  opacity:.22;
  pointer-events:none;
}

.dre-day_item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(10,14,22,.10) 0%, rgba(10,14,22,.78) 100%);
}

.dre-day_item > *{
  position:relative;
  z-index:1;
}

.dre-day_meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:10px;
  color:rgba(255,255,255,.84);
  font-size:13px;
}

.dre-day_title{
  color:#fff;
  text-decoration:none;
  font-size:24px;
  font-weight:800;
  line-height:1.22;
}

.dre-day_title:hover{
  color:#8ec0ff;
}

/* ===== Лента ===== */
.home-feed__items .dre-short_item{
  height:100%;
}

.dre-short_item{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e7ebf2;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(14,22,40,.05);
  transition:.25s ease;
}

.dre-short_item:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 50px rgba(14,22,40,.10);
}

.dre-short_bg{
  aspect-ratio:16/10;
  overflow:hidden;
  background:#dfe6ef;
}

.dre-short_bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.dre-short_content{
  padding:18px 18px 20px;
}

.dre-short_meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:10px;
  color:#697386;
  font-size:13px;
  line-height:1.45;
}

.dre-short_title{
  display:block;
  margin-bottom:10px;
  color:#10131a;
  text-decoration:none;
  font-size:22px;
  line-height:1.3;
  font-weight:800;
}

.dre-short_title:hover{
  color:#1a78ff;
}

.dre-short_text{
  color:#586173;
  font-size:15px;
  line-height:1.6;
}

/* ===== Категории ===== */
.categories-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
}

.category-block{
  background:#fff;
  border:1px solid #e7ebf2;
  border-radius:22px;
  padding:22px;
  box-shadow:0 16px 40px rgba(14,22,40,.05);
}

.category-block__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.category-block__head h3{
  margin:0;
  font-size:26px;
  line-height:1.2;
  font-weight:800;
  color:#10131a;
}

.category-block__head a{
  color:#1a78ff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

.category-block__head a:hover{
  text-decoration:underline;
}

.category-block__items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ===== Лента слайдер ===== */
.dre-len_item{
  display:flex;
  flex-direction:column;
  min-height:340px;
  background:#fff;
  border:1px solid #e7ebf2;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(14,22,40,.05);
}

.dre-len_poster{
  aspect-ratio:16/10;
  overflow:hidden;
  background:#dfe6ef;
}

.dre-len_poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.dre-len_content{
  padding:18px;
}

.dre-len_meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:10px;
  color:#697386;
  font-size:13px;
}

.dre-len_title{
  color:#10131a;
  text-decoration:none;
  font-size:22px;
  line-height:1.3;
  font-weight:800;
}

.dre-len_title:hover{
  color:#1a78ff;
}

/* ===== Общие meta ===== */
.dre-date,
.dre-cats{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.dre-cats a{
  color:inherit;
  text-decoration:none;
}

.dre-cats a:hover{
  color:#1a78ff;
}

.dre-date i,
.dre-cats i{
  font-size:14px;
  opacity:.9;
}

/* ===== Если картинка не задана ===== */
.dre-mire_poster:empty,
.dre-rel_poster:empty,
.dre-short_bg:empty,
.dre-len_poster:empty{
  background:linear-gradient(135deg,#dbe5f2 0%, #cfd9e8 100%);
  min-height:180px;
}

/* ===== Адаптив ===== */
@media (max-width: 1180px){
  .home-hero__grid{
    grid-template-columns:1fr;
  }

  .e-grid4{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .e-grid3,
  .categories-grid{
    grid-template-columns:1fr 1fr;
  }

  .section-head h2{
    font-size:32px;
  }

  .dre-mire_item{
    min-height:400px;
  }

  .dre-mire_title h3,
  .dre-day_title,
  .dre-rel_title,
  .dre-short_title,
  .dre-len_title{
    font-size:24px;
  }
}

@media (max-width: 760px){
  .e-grid2,
  .e-grid3,
  .e-grid4,
  .categories-grid{
    grid-template-columns:1fr;
  }

  .home-feature{
    padding:22px;
  }

  .home-hero__side,
  .category-block{
    padding:18px;
  }

  .section-head h2{
    font-size:28px;
  }

  .dre-mire_item{
    min-height:340px;
  }

  .dre-mire_content{
    padding:18px;
  }

  .dre-mire_title h3,
  .dre-day_title,
  .dre-rel_title,
  .dre-short_title,
  .dre-len_title{
    font-size:21px;
  }
}
/* ===== Страница категории ===== */
.category-layout{
  max-width:1200px;
  margin:0 auto;
  padding:30px 18px 50px;
  display:grid;
  grid-template-columns:minmax(0, 1.7fr) 360px;
  gap:28px;
  align-items:start;
}

.category-main{
  min-width:0;
}

.category-top{
  margin-bottom:24px;
  padding:26px 28px;
  border-radius:24px;
  background:linear-gradient(180deg,#f7faff 0%, #eef4ff 100%);
  border:1px solid #e3ebfa;
  box-shadow:0 14px 40px rgba(16,24,40,.06);
}

.category-top__label{
  display:inline-block;
  margin-bottom:10px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.category-top h1{
  margin:0;
  font-size:34px;
  line-height:1.12;
  font-weight:700;
  color:#111827;
}

.category-top__desc{
  margin-top:12px;
  color:#667085;
  font-size:15px;
  line-height:1.7;
}

.category-list{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.category-list .dre-short_item{
  display:grid;
  grid-template-columns:300px 1fr;
  align-items:stretch;
  min-height:240px;
  background:#ffffff;
  border:1px solid #e8edf5;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  transition:.25s ease;
}

.category-list .dre-short_item:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(16,24,40,.10);
}

.category-list .dre-short_bg{
  aspect-ratio:auto;
  min-height:100%;
  height:100%;
  background:#dbe5f0;
}

.category-list .dre-short_bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.category-list .dre-short_content{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.category-list .dre-short_meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:12px;
  color:#667085;
  font-size:13px;
  line-height:1.45;
}

.category-list .dre-short_title{
  display:block;
  margin-bottom:12px;
  color:#111827;
  text-decoration:none;
  font-size:24px;
  line-height:1.28;
  font-weight:700;
}

.category-list .dre-short_title:hover{
  color:#1a78ff;
}

.category-list .dre-short_text{
  color:#667085;
  font-size:15px;
  line-height:1.7;
}

.category-sidebar{
  min-width:0;
}

.category-sidebar__box{
  position:sticky;
  top:110px;
  padding:22px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e8edf5;
  box-shadow:0 12px 35px rgba(16,24,40,.06);
}

.category-sidebar__head{
  margin-bottom:18px;
}

.category-sidebar__head span{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.category-sidebar__head h3{
  margin:0;
  color:#111827;
  font-size:24px;
  line-height:1.2;
  font-weight:700;
}

.category-sidebar__items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.category-sidebar__items .dre-rel_item{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-bottom:16px;
  border-bottom:1px solid #edf1f6;
}

.category-sidebar__items .dre-rel_item:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.category-sidebar__items .dre-rel_title{
  color:#111827;
  text-decoration:none;
  font-size:18px;
  line-height:1.35;
  font-weight:600;
}

.category-sidebar__items .dre-rel_title:hover{
  color:#1a78ff;
}

.category-sidebar__items .dre-rel_meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:#667085;
  font-size:13px;
  line-height:1.45;
}

.category-pagination{
  margin-top:28px;
}

.category-pagination .navigation,
.category-pagination .pages,
.category-pagination .page-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.category-pagination a,
.category-pagination span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:14px;
  border:1px solid #e1e8f2;
  background:#ffffff;
  color:#111827;
  font-size:14px;
  font-weight:600;
  transition:.25s ease;
}

.category-pagination a:hover{
  color:#1a78ff;
  border-color:#bcd3fb;
  background:#f4f8ff;
}

.category-pagination span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

/* meta */
.dre-date,
.dre-cats{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.dre-cats a{
  color:inherit;
  text-decoration:none;
}

.dre-cats a:hover{
  color:#1a78ff;
}

/* ===== Тёмная тема ===== */
html[data-theme="dark"] .category-top{
  background:linear-gradient(180deg,#242c3c 0%, #1c2230 100%);
  border-color:#353c4d;
  box-shadow:0 14px 40px rgba(0,0,0,.22);
}

html[data-theme="dark"] .category-top h1{
  color:#f3f5f8;
}

html[data-theme="dark"] .category-top__desc{
  color:#aeb7c6;
}

html[data-theme="dark"] .category-list .dre-short_item{
  background:#242734;
  border-color:#35394b;
  box-shadow:0 12px 35px rgba(0,0,0,.22);
}

html[data-theme="dark"] .category-list .dre-short_item:hover{
  box-shadow:0 18px 42px rgba(0,0,0,.30);
}

html[data-theme="dark"] .category-list .dre-short_bg{
  background:#2b3140;
}

html[data-theme="dark"] .category-list .dre-short_meta{
  color:#aeb7c6;
}

html[data-theme="dark"] .category-list .dre-short_title{
  color:#f3f5f8;
}

html[data-theme="dark"] .category-list .dre-short_title:hover{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-list .dre-short_text{
  color:#aeb7c6;
}

html[data-theme="dark"] .category-sidebar__box{
  background:#242734;
  border-color:#35394b;
  box-shadow:0 12px 35px rgba(0,0,0,.22);
}

html[data-theme="dark"] .category-sidebar__head h3{
  color:#f3f5f8;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_item{
  border-bottom-color:#35394b;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_title{
  color:#f3f5f8;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_title:hover{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_meta{
  color:#aeb7c6;
}

html[data-theme="dark"] .category-pagination a{
  background:#242734;
  border-color:#35394b;
  color:#f3f5f8;
}

html[data-theme="dark"] .category-pagination a:hover{
  background:#2a3142;
  border-color:#4d5b77;
  color:#6aa8ff;
}

html[data-theme="dark"] .category-pagination span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

/* ===== Адаптив ===== */
@media (max-width: 1100px){
  .category-layout{
    grid-template-columns:1fr;
  }

  .category-sidebar__box{
    position:static;
  }
}

@media (max-width: 760px){
  .category-top{
    padding:20px;
  }

  .category-top h1{
    font-size:28px;
  }

  .category-list .dre-short_item{
    grid-template-columns:1fr;
  }

  .category-list .dre-short_bg{
    min-height:220px;
  }

  .category-list .dre-short_content{
    padding:18px;
  }

  .category-list .dre-short_title{
    font-size:20px;
  }

  .category-sidebar__box{
    padding:18px;
  }

  .category-sidebar__head h3{
    font-size:22px;
  }
}
/* ===== ТЁМНАЯ ТЕМА — СТРАНИЦА КАТЕГОРИЙ (ДОПОЛНЕНИЕ) ===== */

html[data-theme="dark"] .category-layout{
  background: transparent;
}

/* верхний блок */
html[data-theme="dark"] .category-top{
  background: linear-gradient(180deg,#232938 0%, #1b2030 100%);
  border-color:#32384a;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

html[data-theme="dark"] .category-top__label{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-top h1{
  color:#f2f4f8;
}

html[data-theme="dark"] .category-top__desc{
  color:#a9b2c3;
}

/* карточки новостей слева */
html[data-theme="dark"] .category-list .dre-short_item{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.35);
}

html[data-theme="dark"] .category-list .dre-short_item:hover{
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}

html[data-theme="dark"] .category-list .dre-short_bg{
  background:#2a3142;
}

html[data-theme="dark"] .category-list .dre-short_title{
  color:#f2f4f8;
}

html[data-theme="dark"] .category-list .dre-short_title:hover{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-list .dre-short_text{
  color:#a9b2c3;
}

html[data-theme="dark"] .category-list .dre-short_meta{
  color:#9aa3b5;
}

/* сайдбар */
html[data-theme="dark"] .category-sidebar__box{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.35);
}

html[data-theme="dark"] .category-sidebar__head span{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-sidebar__head h3{
  color:#f2f4f8;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_item{
  border-bottom-color:#32384a;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_title{
  color:#f2f4f8;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_title:hover{
  color:#6aa8ff;
}

html[data-theme="dark"] .category-sidebar__items .dre-rel_meta{
  color:#9aa3b5;
}

/* пагинация */
html[data-theme="dark"] .category-pagination a{
  background:#242734;
  border-color:#32384a;
  color:#f2f4f8;
}

html[data-theme="dark"] .category-pagination a:hover{
  background:#2a3142;
  border-color:#4b5a78;
  color:#6aa8ff;
}

html[data-theme="dark"] .category-pagination span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}
/* ===== ПОИСК ===== */
.search-page{
  max-width:1200px;
  margin:0 auto;
  padding:30px 18px 0;
}

.search-layout{
  max-width:1200px;
  margin:0 auto;
  padding:20px 18px 50px;
  display:grid;
  grid-template-columns:minmax(0,1.7fr) 360px;
  gap:28px;
  align-items:start;
}

.search-main{
  min-width:0;
}

.search-top{
  padding:26px 28px;
  border-radius:24px;
  background:linear-gradient(180deg,#f7faff 0%, #eef4ff 100%);
  border:1px solid #e3ebfa;
  box-shadow:0 14px 40px rgba(16,24,40,.06);
}

.search-top__label{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-top h1{
  margin:0;
  font-size:32px;
  line-height:1.12;
  font-weight:700;
  color:#111827;
}

.search-top__desc{
  margin-top:10px;
  color:#667085;
  font-size:15px;
  line-height:1.7;
}

.search-main > .info,
.search-main > .berrors,
.search-main > .message-info,
.search-main > .message-error,
.search-main > .attention{
  margin:0 0 20px;
  padding:20px 22px;
  border-radius:20px;
  background:#fff8f8;
  border:1px solid #f1d0d0;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  color:#8a3b3b;
  font-size:15px;
  line-height:1.7;
}

.search-main .dre-short_item{
  display:grid;
  grid-template-columns:300px 1fr;
  align-items:stretch;
  background:#ffffff;
  border:1px solid #e8edf5;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  margin-bottom:20px;
}

.search-main .dre-short_bg{
  min-height:100%;
  height:100%;
  background:#dbe5f0;
}

.search-main .dre-short_bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.search-main .dre-short_content{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.search-main .navigation,
.search-main .pages,
.search-main .page-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:28px;
}

.search-main .navigation a,
.search-main .navigation span,
.search-main .pages a,
.search-main .pages span,
.search-main .page-navigation a,
.search-main .page-navigation span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:14px;
  border:1px solid #e1e8f2;
  background:#ffffff;
  color:#111827;
  font-size:14px;
  font-weight:600;
  transition:.25s ease;
}

.search-main .navigation a:hover,
.search-main .pages a:hover,
.search-main .page-navigation a:hover{
  color:#1a78ff;
  border-color:#bcd3fb;
  background:#f4f8ff;
}

.search-main .navigation span,
.search-main .pages span,
.search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

.search-sidebar__box{
  position:sticky;
  top:110px;
  padding:22px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e8edf5;
  box-shadow:0 12px 35px rgba(16,24,40,.06);
}

.search-sidebar__head{
  margin-bottom:18px;
}

.search-sidebar__head span{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-sidebar__head h3{
  margin:0;
  color:#111827;
  font-size:24px;
  line-height:1.2;
  font-weight:700;
}

.search-sidebar__items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ===== DARK MODE ===== */
html[data-theme="dark"] .search-top{
  background:linear-gradient(180deg,#232938 0%, #1b2030 100%);
  border-color:#32384a;
  box-shadow:0 14px 40px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-top__label{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-top h1{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-top__desc{
  color:#a9b2c3;
}

html[data-theme="dark"] .search-main > .info,
html[data-theme="dark"] .search-main > .berrors,
html[data-theme="dark"] .search-main > .message-info,
html[data-theme="dark"] .search-main > .message-error,
html[data-theme="dark"] .search-main > .attention{
  background:#2a2024;
  border-color:#5b3c43;
  color:#ffb4aa;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-main .dre-short_item{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-main .dre-short_bg{
  background:#2a3142;
}

html[data-theme="dark"] .search-sidebar__box{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-sidebar__head span{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-sidebar__head h3{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a,
html[data-theme="dark"] .search-main .pages a,
html[data-theme="dark"] .search-main .page-navigation a{
  background:#242734;
  border-color:#32384a;
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a:hover,
html[data-theme="dark"] .search-main .pages a:hover,
html[data-theme="dark"] .search-main .page-navigation a:hover{
  background:#2a3142;
  border-color:#4b5a78;
  color:#6aa8ff;
}

html[data-theme="dark"] .search-main .navigation span,
html[data-theme="dark"] .search-main .pages span,
html[data-theme="dark"] .search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

/* ===== ADAPTIVE ===== */
@media (max-width:1100px){
  .search-layout{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    position:static;
  }
}

@media (max-width:760px){
  .search-top{
    padding:20px;
  }

  .search-top h1{
    font-size:28px;
  }

  .search-main .dre-short_item{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    padding:18px;
  }

  .search-sidebar__head h3{
    font-size:22px;
  }
}
/* ===== ПОИСК ===== */
.search-layout{
  max-width:1200px;
  margin:0 auto;
  padding:30px 18px 50px;
  display:grid;
  grid-template-columns:minmax(0,1.7fr) 360px;
  gap:28px;
  align-items:start;
}

.search-main{
  min-width:0;
}

.search-page{
  margin-bottom:20px;
}

.search-top{
  padding:26px 28px;
  border-radius:24px;
  background:linear-gradient(180deg,#f7faff 0%, #eef4ff 100%);
  border:1px solid #e3ebfa;
  box-shadow:0 14px 40px rgba(16,24,40,.06);
}

.search-top__label{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-top h1{
  margin:0;
  font-size:32px;
  line-height:1.12;
  font-weight:700;
  color:#111827;
}

.search-top__desc{
  margin-top:10px;
  color:#667085;
  font-size:15px;
  line-height:1.7;
}

.search-main .dre-short_item{
  display:grid;
  grid-template-columns:300px 1fr;
  align-items:stretch;
  background:#ffffff;
  border:1px solid #e8edf5;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  margin-bottom:20px;
}

.search-main .dre-short_bg{
  min-height:100%;
  height:100%;
  background:#dbe5f0;
}

.search-main .dre-short_bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.search-main .dre-short_content{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.search-main .navigation,
.search-main .pages,
.search-main .page-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:28px;
}

.search-main .navigation a,
.search-main .navigation span,
.search-main .pages a,
.search-main .pages span,
.search-main .page-navigation a,
.search-main .page-navigation span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:14px;
  border:1px solid #e1e8f2;
  background:#ffffff;
  color:#111827;
  font-size:14px;
  font-weight:600;
  transition:.25s ease;
}

.search-main .navigation a:hover,
.search-main .pages a:hover,
.search-main .page-navigation a:hover{
  color:#1a78ff;
  border-color:#bcd3fb;
  background:#f4f8ff;
}

.search-main .navigation span,
.search-main .pages span,
.search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

.search-sidebar__box{
  position:sticky;
  top:110px;
  padding:22px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e8edf5;
  box-shadow:0 12px 35px rgba(16,24,40,.06);
}

.search-sidebar__head{
  margin-bottom:18px;
}

.search-sidebar__head span{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-sidebar__head h3{
  margin:0;
  color:#111827;
  font-size:24px;
  line-height:1.2;
  font-weight:700;
}

.search-sidebar__items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ===== DARK MODE ===== */
html[data-theme="dark"] .search-top{
  background:linear-gradient(180deg,#232938 0%, #1b2030 100%);
  border-color:#32384a;
  box-shadow:0 14px 40px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-top__label{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-top h1{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-top__desc{
  color:#a9b2c3;
}

html[data-theme="dark"] .search-main .dre-short_item{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-main .dre-short_bg{
  background:#2a3142;
}

html[data-theme="dark"] .search-sidebar__box{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-sidebar__head span{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-sidebar__head h3{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a,
html[data-theme="dark"] .search-main .pages a,
html[data-theme="dark"] .search-main .page-navigation a{
  background:#242734;
  border-color:#32384a;
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a:hover,
html[data-theme="dark"] .search-main .pages a:hover,
html[data-theme="dark"] .search-main .page-navigation a:hover{
  background:#2a3142;
  border-color:#4b5a78;
  color:#6aa8ff;
}

html[data-theme="dark"] .search-main .navigation span,
html[data-theme="dark"] .search-main .pages span,
html[data-theme="dark"] .search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

/* ===== ADAPTIVE ===== */
@media (max-width:1100px){
  .search-layout{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    position:static;
  }
}

@media (max-width:760px){
  .search-top{
    padding:20px;
  }

  .search-top h1{
    font-size:28px;
  }

  .search-main .dre-short_item{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    padding:18px;
  }

  .search-sidebar__head h3{
    font-size:22px;
  }
}
.search-main .search-page{
  max-width:none;
  margin:0 0 20px;
  padding:0;
}

.search-main .search-top{
  width:100%;
}
.search-layout{
  max-width:1200px;
  margin:0 auto;
  padding:30px 18px 50px;
  display:grid;
  grid-template-columns:minmax(0,1.7fr) 360px;
  gap:28px;
  align-items:start;
}

.search-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

.search-main .search-page{
  width:100%;
  margin:0 0 20px;
  padding:0;
  order:1;
}

.search-main > .info,
.search-main > .berrors,
.search-main > .message-info,
.search-main > .message-error,
.search-main > .attention{
  order:2;
  width:100%;
  margin:0 0 20px;
  padding:20px 22px;
  border-radius:20px;
  background:#fff8f8;
  border:1px solid #f1d0d0;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  color:#8a3b3b;
  font-size:15px;
  line-height:1.7;
}

.search-main .dre-short_item,
.search-main .navigation,
.search-main .pages,
.search-main .page-navigation{
  order:3;
}

.search-top{
  width:100%;
  padding:26px 28px;
  border-radius:24px;
  background:linear-gradient(180deg,#f7faff 0%, #eef4ff 100%);
  border:1px solid #e3ebfa;
  box-shadow:0 14px 40px rgba(16,24,40,.06);
}

.search-top__label{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-top h1{
  margin:0;
  font-size:32px;
  line-height:1.12;
  font-weight:700;
  color:#111827;
}

.search-main .dre-short_item{
  display:grid;
  grid-template-columns:300px 1fr;
  align-items:stretch;
  background:#ffffff;
  border:1px solid #e8edf5;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(16,24,40,.05);
  margin-bottom:20px;
}

.search-main .dre-short_bg{
  min-height:100%;
  height:100%;
  background:#dbe5f0;
}

.search-main .dre-short_bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.search-main .dre-short_content{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.search-main .navigation,
.search-main .pages,
.search-main .page-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:28px;
}

.search-main .navigation a,
.search-main .navigation span,
.search-main .pages a,
.search-main .pages span,
.search-main .page-navigation a,
.search-main .page-navigation span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:14px;
  border:1px solid #e1e8f2;
  background:#ffffff;
  color:#111827;
  font-size:14px;
  font-weight:600;
  transition:.25s ease;
}

.search-main .navigation a:hover,
.search-main .pages a:hover,
.search-main .page-navigation a:hover{
  color:#1a78ff;
  border-color:#bcd3fb;
  background:#f4f8ff;
}

.search-main .navigation span,
.search-main .pages span,
.search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

.search-sidebar__box{
  position:sticky;
  top:110px;
  padding:22px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e8edf5;
  box-shadow:0 12px 35px rgba(16,24,40,.06);
}

.search-sidebar__head{
  margin-bottom:18px;
}

.search-sidebar__head span{
  display:inline-block;
  margin-bottom:8px;
  color:#1a78ff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.search-sidebar__head h3{
  margin:0;
  color:#111827;
  font-size:24px;
  line-height:1.2;
  font-weight:700;
}

.search-sidebar__items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* dark */
html[data-theme="dark"] .search-top{
  background:linear-gradient(180deg,#232938 0%, #1b2030 100%);
  border-color:#32384a;
  box-shadow:0 14px 40px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-top__label{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-top h1{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main > .info,
html[data-theme="dark"] .search-main > .berrors,
html[data-theme="dark"] .search-main > .message-info,
html[data-theme="dark"] .search-main > .message-error,
html[data-theme="dark"] .search-main > .attention{
  background:#2a2024;
  border-color:#5b3c43;
  color:#ffb4aa;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-main .dre-short_item{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-main .dre-short_bg{
  background:#2a3142;
}

html[data-theme="dark"] .search-sidebar__box{
  background:#242734;
  border-color:#32384a;
  box-shadow:0 12px 35px rgba(0,0,0,.30);
}

html[data-theme="dark"] .search-sidebar__head span{
  color:#6aa8ff;
}

html[data-theme="dark"] .search-sidebar__head h3{
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a,
html[data-theme="dark"] .search-main .pages a,
html[data-theme="dark"] .search-main .page-navigation a{
  background:#242734;
  border-color:#32384a;
  color:#f2f4f8;
}

html[data-theme="dark"] .search-main .navigation a:hover,
html[data-theme="dark"] .search-main .pages a:hover,
html[data-theme="dark"] .search-main .page-navigation a:hover{
  background:#2a3142;
  border-color:#4b5a78;
  color:#6aa8ff;
}

html[data-theme="dark"] .search-main .navigation span,
html[data-theme="dark"] .search-main .pages span,
html[data-theme="dark"] .search-main .page-navigation span{
  background:#1a78ff;
  border-color:#1a78ff;
  color:#fff;
}

@media (max-width:1100px){
  .search-layout{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    position:static;
  }
}

@media (max-width:760px){
  .search-top{
    padding:20px;
  }

  .search-top h1{
    font-size:28px;
  }

  .search-main .dre-short_item{
    grid-template-columns:1fr;
  }

  .search-sidebar__box{
    padding:18px;
  }

  .search-sidebar__head h3{
    font-size:22px;
  }
}