/* Neon dark theme inspired by reference */
:root{
  --bg-1: #0a0a0f;
  --bg-2: #12121a;
  --fg: #e9e9f1;
  --muted: #a3a3b2;
  --neon: #a64dff; /* purple */
  --neon-2: #00e676; /* green accent */
  --card: #151520;
  --border: rgba(166,77,255,.35);
  --radius: 16px;
}
html,body{height:100%}
body.theme-dark-neon{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1000px 600px at 5% 0%, rgba(166,77,255,.12), transparent 60%),
    radial-gradient(800px 500px at 95% 30%, rgba(0,230,118,.10), transparent 60%),
    linear-gradient(180deg,var(--bg-1),var(--bg-2));
  background-attachment: fixed;
}
.neon-nav{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.neon-brand{
  font-family: 'Russo One', sans-serif;
  letter-spacing:.5px;
  text-transform: uppercase;
  color: var(--fg) !important;
  text-shadow: 0 0 8px rgba(166,77,255,.7), 0 0 24px rgba(166,77,255,.4);
}
.neon-hero{padding: 40px 0 10px}
.neon-logo{
  font-family: 'Russo One', sans-serif;
  font-size: clamp(32px,8vw,72px);
  color: var(--fg);
  text-shadow: 0 0 10px rgba(166,77,255,.9), 0 0 40px rgba(166,77,255,.5);
}
.neon-sub{
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-top: .25rem;
}
.neon-buttons{
  display:grid;
  gap:14px;
  margin: 24px auto 12px;
  max-width: 560px;
}
.neon-btn, .neon-outline{
  display:block;
  text-align:center;
  padding:14px 18px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing:.02em;
  text-decoration:none;
  box-shadow:
    0 0 0 1px var(--border),
    inset 0 0 16px rgba(166,77,255,.35),
    0 0 24px rgba(166,77,255,.35);
  background: rgba(21,21,32,.6);
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  backdrop-filter: blur(4px);
}
.neon-outline{
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  background: transparent;
  color: var(--fg);
}
.neon-btn.small, .neon-outline.small{padding:10px 14px; font-weight:600; display:inline-block}
.neon-btn:hover, .neon-outline:hover{transform: translateY(-1px); filter: brightness(1.08)}
.neon-contacts{
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--fg);
}
.neon-contacts .label{color: var(--neon-2); font-weight:700; margin-right:6px}
.neon-contacts a{color:#fff; text-decoration: none}
.neon-contacts i{margin-right:8px; color: var(--neon-2)}
.neon-contacts .socials a{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; margin-right:8px; background:#1a1a27; box-shadow: inset 0 0 12px rgba(0,230,118,.15)}
.neon-contacts .socials i{color:#fff; margin:0}
.section-title{
  font-weight:800;
  color:#fff;
  text-shadow: 0 0 12px rgba(166,77,255,.25);
}
.neon-card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.neon-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(166,77,255,.25), 0 12px 36px rgba(0,0,0,.4);
}
.card img{object-fit:cover; height:220px}
footer{background: transparent; color: var(--muted)}
footer a{color:#fff}
.neon-frame{box-shadow: 0 0 0 1px var(--border), 0 0 20px rgba(166,77,255,.25)}
.navbar .nav-link{color: var(--muted)}
.navbar .nav-link:hover{color:#fff}
.btn-primary{background: var(--neon); border-color: var(--neon)}
.btn-outline-primary{border-color: var(--neon); color:#fff}
.btn-outline-primary:hover{background: var(--neon)}
/* Smooth scrolling */
html{scroll-behavior: smooth}

/* News carousel */
.news-carousel{
  position: relative;
}
.news-track{
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.news-track::-webkit-scrollbar{height:8px}
.news-track::-webkit-scrollbar-thumb{background: rgba(255,255,255,.12); border-radius: 8px}
.news-card{
  width: clamp(260px, 60vw, 360px);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
}
.news-img{width:100%; height:180px; object-fit:cover}
.news-body{padding:14px}
.news-title{margin:0 0 4px 0}
.news-meta{margin:0 0 10px 0; color: var(--muted)}
.news-link{font-weight:700; text-decoration:none; color:#fff}
.news-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(10,10,15,.6);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.news-nav span{font-size: 28px; line-height: 1; color:#fff}
.news-nav.prev{left: -8px}
.news-nav.next{right: -8px}
@media (min-width: 1200px){
  .news-nav.prev{left: -20px}
  .news-nav.next{right: -20px}
}

/* 2x2 neon buttons grid like reference */
.neon-buttons-grid{
  max-width: 760px;
  margin: 24px auto 8px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 576px){
  .neon-buttons-grid{grid-template-columns: 1fr 1fr;}
}
.neon-btn{font-size: clamp(16px, 2.6vw, 20px); padding:18px 20px; border-radius:18px}

/* NEWS title uppercase glow */
.section-title-news{
  text-transform: uppercase;
  letter-spacing: .06em;
  text-shadow: 0 0 8px rgba(166,77,255,.8), 0 0 30px rgba(166,77,255,.35);
}
/* Carousel arrows more neon */
.news-nav{
  box-shadow: 0 0 0 1px rgba(166,77,255,.35), 0 0 18px rgba(166,77,255,.25);
  border-color: rgba(166,77,255,.45);
}
.news-nav span{filter: drop-shadow(0 0 6px rgba(166,77,255,.8));}
/* NEWS: аккуратные изображения и типографика */
.news-body, .post-body, .wysiwyg, .entry-content, .article-content { 
  max-width: 780px;
  margin: 0 auto;
}

/* любые картинки внутри контента новости */
.news-body img,
.post-body img,
.wysiwyg img,
.entry-content img,
.article-content img,
article img {
  display: block;
  max-width: 720px;   /* соизмеримо с блоком 2×2 на главной */
  width: 100% !important;
  height: auto !important;
  margin: 10px auto;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(144,86,255,.22);
}

/* заголовок и дата — читаемо на тёмном */
.news-title{ 
  color:#f6edff; 
  font-weight:800; 
  font-size: clamp(22px, 3.2vw, 32px);
  text-shadow: 0 0 10px rgba(144,86,255,.35);
  margin: 0 0 8px;
}
.news-meta{ color:#bfb3d9; font-size:14px; margin-bottom:18px; }

/* ====== НЕОНОВЫЙ ФУТЕР ====== */
footer.footer {
  background: radial-gradient(circle at center, rgba(150, 90, 255, 0.08) 0%, rgba(10, 10, 15, 0.9) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #d6ccff;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #b987ff;
  text-shadow: 0 0 12px rgba(180,120,255,0.7), 0 0 22px rgba(150,90,255,0.4);
}

.footer-sub {
  color: rgba(220,210,255,0.75);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: rgba(230,225,255,0.85);
}

.footer-text a {
  color: #c49aff;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,154,255,0.3);
  transition: 0.25s ease;
}
.footer-text a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.7);
  text-shadow: 0 0 8px rgba(195,140,255,0.7);
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(140,100,255,0.3);
}

.footer-copy {
  margin-top: 30px;
  font-size: 14px;
  color: rgba(220,210,255,0.45);
  letter-spacing: 1px;
}
/* ====== НЕОНОВЫЙ ФУТЕР (добавка для соцсетей) ====== */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.soc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(160,120,255,0.08);
  border: 1px solid rgba(180,140,255,0.25);
  color: #d8c9ff;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 0 0 rgba(160,120,255,0);
}

.soc-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.9;
}

.soc-btn span {
  font-weight: 600;
  letter-spacing: .4px;
  font-size: 14px;
}

.soc-btn:hover {
  color: #fff;
  background: rgba(160,120,255,0.15);
  border-color: rgba(210,180,255,0.55);
  box-shadow: 0 0 14px rgba(170,120,255,0.35), inset 0 0 10px rgba(170,120,255,0.15);
  transform: translateY(-1px);
}
/* ===== 2 карточки в ряд (адаптив) ===== */
.products-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(320px,1fr));
  gap: 28px;
}
@media (max-width: 980px){
  .products-grid{ grid-template-columns: 1fr; }
}

/* Стабильная обложка без «прыжков» */
.product .thumb{
  margin: 0 0 12px 0;
  border-radius: 14px;
  overflow: hidden;
  height: 260px;              /* фиксируем высоту */
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  cursor: pointer;
}
.product .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* без искажений, без скачков */
  display: block;
}

/* Заголовок как триггер */
.product .name{
  font-weight: 700;
  margin: 6px 0 2px;
  cursor: pointer;
  color: #e9e3ff;
  text-shadow: 0 0 10px rgba(167,119,255,.35);
}

/* Блок описания, создаётся JS-ом. По умолчанию скрыт. */
.product__desc{
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border:1px solid rgba(167,119,255,.25);
  background: rgba(20,16,35,.6);
  color:#dddaf7;
  line-height: 1.55;
  box-shadow: 0 0 18px rgba(167,119,255,.12) inset;
}
.product.is-open .product__desc{ display:block; }

/* ==== НОВОСТИ: БАЗА ==== */
#home-news { 
  box-sizing: border-box;
  overflow-x: hidden;             /* защиты от горизонтального скролла */
}
#home-news *, 
#home-news *::before, 
#home-news *::after { 
  box-sizing: inherit; 
}

/* Сетка из 3 колонок на десктопе */
#home-news .news-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* На планшетах 2 колонки, на мобилках 1 */
@media (max-width: 1024px){
  #home-news .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  #home-news .news-grid{ grid-template-columns: 1fr; }
}

/* Карточка — гибкая колонка: картинка -> текст -> зона кнопки */
#home-news .news-card{
  display: flex;
  flex-direction: column;
  min-width: 0;                   /* предотвращает «выпирание» контента */
  background: rgba(20,20,32,.55);
  border: 1px solid rgba(162,112,255,.25);
  border-radius: 16px;
  overflow: hidden;               /* ничто не «вылезает» за край */
  box-shadow: 0 0 20px rgba(164,119,255,.18), inset 0 0 0 1px rgba(164,119,255,.12);
}

/* КОНТЕЙНЕР ПОД КАРТИНКУ — фиксируем формат, чтобы все были одинаковыми */
#home-news .news-card .thumb-wrap{
  width: 100%;
  aspect-ratio: 16 / 9;           /* единый формат превью */
  overflow: hidden;
}

/* Сама картинка — заполняет контейнер, аккуратно кадрируется */
#home-news .news-card .thumb-wrap img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);       /* мелкий лайфхак для резкости */
}

/* Тело карточки (дата, заголовок) — растягивается, чтобы кнопка прилипала вниз */
#home-news .news-card .body{
  padding: 14px 16px 8px;
  color: #f3eaff;
  flex: 1 1 auto;                 /* занимает оставшуюся высоту */
  min-height: 0;
}

/* Дата и заголовок */
#home-news .news-card .date{
  font-size: 14px;
  opacity: .85;
  margin-bottom: 6px;
}
#home-news .news-card .title{
  font-weight: 700;
  line-height: 1.25;
}

/* Зона кнопки — всегда внизу карточки, одинаковая высота */
#home-news .news-card .actions{
  padding: 12px 16px 16px;
}

/* Кнопка «Читать» */
#home-news .news-card .btn{
  width: 100%;
  text-align: center;
  border: 1px solid rgba(173,120,255,.55);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(173,120,255,.15), rgba(173,120,255,.05));
}
#home-news .news-card .btn:hover{
  box-shadow: 0 0 14px rgba(173,120,255,.5);
}

/* На всякий случай — убираем «чужие» слои/стрелки от слайдеров */
#home-news .uk-slidenav,
#home-news [class*="uk-slidenav"],
#home-news .slick-arrow,
#home-news .swiper-button-prev,
#home-news .swiper-button-next{ display:none!important; visibility:hidden!important; pointer-events:none!important; }
