/* public/assets/news.css */
/* =========================================================
   NEWS — list + single
   Под общий светлый воздушный стиль сайта
   ========================================================= */

.news-page,
.news-single-page{
  padding-top: 14px;
}

/* =========================================================
   LIST PAGE
   ========================================================= */

.news-page{
  width: 100%;
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 18px 0 32px;
}

.news-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.news-header h1,
.news-header .page-title,
.news-page .page-title{
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.025em;
  color: #163b67;
  text-shadow: 0 1px 0 rgba(255,255,255,.36);
}

.news-empty{
  margin-top: 10px;
  color: rgba(107,114,128,.95);
}

/* =========================================================
   LIST — horizontal rows (photo left, text right)
   ========================================================= */

.news-page .news-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-page .news-item{
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 118px;
  background: rgba(255,255,255,.72);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.28);
  box-shadow:
    0 8px 22px rgba(71,85,105,.045),
    inset 0 1px 0 rgba(255,255,255,.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform .14s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.news-page .news-item:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(71,85,105,.06),
    inset 0 1px 0 rgba(255,255,255,.62);
  border-color: rgba(167,188,221,.34);
  background: rgba(255,255,255,.80);
}

.news-page .news-item-link{
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.news-page .news-item-link:hover{
  text-decoration: none;
}

.news-page .news-item-media{
  flex: 0 0 220px;
  width: 220px;
  max-width: 34vw;
  background: rgba(248,251,255,.72);
  border-right: 1px solid rgba(181,194,222,.18);
}

.news-page .news-item-img{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.news-page .news-item-placeholder{
  width: 100%;
  min-height: 118px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(107,114,128,.72);
  background: linear-gradient(180deg, rgba(248,251,255,.88), rgba(240,245,251,.86));
}

.news-page .news-item-body{
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 88px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.news-page .news-item-meta{
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-page .news-item-title{
  margin: 0;
  font-family: var(--site-header-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #1e293b;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .news-item-excerpt{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .news-item-badges{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.news-date{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

.news-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(181,194,222,.24);
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 3px 8px rgba(71,85,105,.03);
}

.news-badge-num{
  font-weight: 700;
}

.news-badge-btn{
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-badge-btn:hover{
  text-decoration: none;
}

.news-fav-btn.is-active{
  background: rgba(255,245,200,.92);
  border-color: rgba(245,158,11,.38);
}

.news-fav-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.news-pagination-nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.news-pagination-nav__info{
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.news-pagination-nav__info strong{
  font-weight: 600;
  color: #334155;
}

.news-pagination{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination li{
  margin: 0;
}

.news-pagination a,
.news-pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(181,194,222,.32);
  background: rgba(255,255,255,.82);
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.news-pagination a:hover{
  text-decoration: none;
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.22);
  color: #1d4ed8;
}

.news-pagination .is-active span{
  background: linear-gradient(180deg, var(--theme-color, #0088cc), #006fa8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,136,204,.18);
}

.news-pagination .is-disabled span,
.news-pagination .is-ellipsis span{
  background: rgba(255,255,255,.55);
  border-color: rgba(181,194,222,.22);
  color: #94a3b8;
  cursor: default;
}

.news-page-bottom-space{
  height: 10px;
}

/* =========================================================
   MOBILE LIST
   ========================================================= */

@media (max-width: 768px){
  .news-page{
    padding: 14px 0 24px;
  }

  .news-header{
    margin-bottom: 12px;
  }

  .news-page .news-item{
    min-height: 0;
  }

  .news-page .news-item-link{
    flex-direction: column;
  }

  .news-page .news-item-media{
    flex: none;
    width: 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid rgba(181,194,222,.18);
  }

  .news-page .news-item-img,
  .news-page .news-item-placeholder{
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-page .news-item-body{
    padding: 12px 14px 14px;
  }

  .news-page .news-item-title{
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .news-page .news-item-excerpt{
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .news-page .news-item-badges{
    top: 10px;
    bottom: auto;
    right: 10px;
  }

  .news-pagination-nav{
    margin-top: 18px;
  }

  .news-pagination a,
  .news-pagination span{
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* =========================================================
   SINGLE PAGE
   ========================================================= */

.news-single-page{
  padding-bottom: 24px;
}

.news-single{
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(181,194,222,.28);
  border-radius: 22px;
  box-shadow:
    0 10px 24px rgba(71,85,105,.05),
    inset 0 1px 0 rgba(255,255,255,.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
}

@media (min-width: 760px){
  .news-single{
    padding: 20px 22px;
  }
}

@media (max-width: 520px){
  .news-single{
    border-radius: 18px;
    padding: 12px;
  }
}

/* topbar */
.news-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.news-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(181,194,222,.26);
  background: rgba(255,255,255,.66);
  font-weight: 900;
  color: rgba(15,23,42,.92);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: filter .15s ease, border-color .15s ease, background .15s ease;
}

.news-back:hover{
  filter: brightness(.985);
  text-decoration: none;
  border-color: rgba(167,188,221,.34);
  background: rgba(255,255,255,.72);
}

.news-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-action-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(181,194,222,.24);
  background: rgba(255,255,255,.78);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .08s ease, filter .15s ease, border-color .15s ease, background .15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-action-btn:hover{
  filter: brightness(.985);
  border-color: rgba(0,136,204,.26);
  background: rgba(255,255,255,.84);
}

.news-action-btn:active{
  transform: translateY(1px);
}

.news-action-btn.is-ok{
  border-color: rgba(34,197,94,.26);
  background: rgba(220,252,231,.62);
}

.admin-edit-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(181,194,222,.24);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  color: rgba(15,23,42,.92);
  text-decoration: none;
  transition: filter .15s ease, border-color .15s ease, background .15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-edit-btn:hover{
  filter: brightness(.985);
  border-color: rgba(0,136,204,.26);
  background: rgba(255,255,255,.84);
  text-decoration: none;
}

@media (max-width: 520px){
  .admin-edit-text{
    display: none;
  }
}

/* head */
.news-head{
  margin-bottom: 12px;
}

.news-title{
  margin: 0 0 10px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

/* chips */
.news-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.news-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(181,194,222,.24);
  background: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.92);
  text-decoration: none;
}

.news-chip-link{
  background: rgba(0,136,204,.06);
  border-color: rgba(0,136,204,.18);
  color: rgba(0,136,204,.95);
}

.news-chip-link:hover{
  text-decoration: none;
  filter: brightness(.985);
}

/* hero */
.news-hero{
  margin-top: 12px;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.20);
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 18px rgba(71,85,105,.04);
}

.news-hero-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: min(60vh, 520px);
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 520px){
  .news-hero-img{
    max-height: min(46vh, 360px);
  }
}

/* body */
.news-body{
  padding-top: 6px;
}

.news-body.ui-prose{
  font-size: 16px;
  line-height: 1.75;
  color: rgba(15,23,42,.92);
}

.news-body.ui-prose h2,
.news-body.ui-prose h3{
  margin: 18px 0 10px;
  line-height: 1.25;
}

.news-body.ui-prose blockquote{
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid rgba(0,136,204,.28);
  background: rgba(241,245,249,.56);
  border-radius: 12px;
}

.news-body.ui-prose img{
  border-radius: 14px;
  border: 1px solid rgba(181,194,222,.18);
  box-shadow: 0 6px 16px rgba(71,85,105,.04);
}

.news-body.ui-prose a{
  color: var(--theme-color, #0088cc);
}

/* sections */
.news-section{
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(181,194,222,.18);
}

.news-section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.news-section-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
  color: rgba(15,23,42,.95);
}

.news-section-sub{
  font-size: 12px;
  font-weight: 900;
  color: rgba(107,114,128,.92);
}

/* videos */
.news-videos{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-video-wrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.22);
  background: #000;
  box-shadow: 0 8px 18px rgba(71,85,105,.05);
}

.news-video{
  width: 100%;
  height: auto;
  display: block;
}

.news-video-embed{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #000;
}

/* gallery */
.news-gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 760px){
  .news-gallery{
    grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
    justify-content: start;
  }
}

.news-photo-thumb,
.photo-thumb{
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.22);
  box-shadow: 0 6px 16px rgba(71,85,105,.04);
  background: rgba(255,255,255,.76);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.news-photo-thumb:hover,
.photo-thumb:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(71,85,105,.05);
  border-color: rgba(167,188,221,.30);
}

.news-photo-thumb img,
.photo-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* tables */
.news-body .table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(181,194,222,.18);
  background: rgba(255,255,255,.82);
}

.news-body table{
  border-collapse: collapse;
  min-width: 520px;
}

.news-body table td,
.news-body table th{
  border: 1px solid rgba(15,23,42,.10);
  padding: 8px;
  vertical-align: top;
}

.news-body table th{
  background: rgba(247,249,255,.82);
}

/* bottom */
.news-bottom{
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(181,194,222,.24);
  background: rgba(255,255,255,.66);
  font-weight: 900;
  color: rgba(15,23,42,.92);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: filter .15s ease, border-color .15s ease, background .15s ease;
}

.back-link:hover{
  filter: brightness(.985);
  text-decoration: none;
  border-color: rgba(167,188,221,.34);
  background: rgba(255,255,255,.72);
}

/* =========================================================
   NEWS DESIGN REFINEMENT
   A calmer, richer layer aligned with the home blocks.
   ========================================================= */

.news-page,
.news-single_view{
  --news-ink: #18243a;
  --news-muted: #64748b;
  --news-blue: #215f9a;
  --news-card-bg: rgba(255,255,255,.80);
  --news-card-bg-hover: rgba(255,255,255,.88);
  --news-border: rgba(175,193,222,.32);
  --news-shadow:
    0 16px 38px rgba(44,62,92,.075),
    inset 0 1px 0 rgba(255,255,255,.68);
  --news-shadow-hover:
    0 20px 44px rgba(44,62,92,.095),
    inset 0 1px 0 rgba(255,255,255,.74);
  --news-radius: 18px;
  --news-radius-lg: 22px;
}

.news-page .news-header h1,
.news-page .news-header .page-title,
.news-page .page-title{
  font-family: var(--site-header-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 700;
  letter-spacing: -.02em;
}

.news-header{
  margin-bottom: 18px;
}

.news-header h1,
.news-header .page-title,
.news-page .page-title{
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--news-blue);
}

.news-page .news-item{
  border-radius: var(--news-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.91), var(--news-card-bg));
  border-color: var(--news-border);
  box-shadow: var(--news-shadow);
  font-family: var(--site-header-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.news-page .news-item:hover{
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), var(--news-card-bg-hover));
  border-color: rgba(126,156,198,.42);
  box-shadow: var(--news-shadow-hover);
}

.news-page .news-item-media{
  border-right-color: rgba(175,193,222,.24);
}

.news-page .news-item-body{
  padding-top: 14px;
  padding-bottom: 14px;
}

.news-page .news-item-title{
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #1e293b;
}

.news-page .news-item-excerpt{
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.news-badge{
  min-height: 28px;
  background: rgba(255,255,255,.88);
  border-color: rgba(175,193,222,.34);
  box-shadow: 0 6px 14px rgba(44,62,92,.06);
}

.news-pagination a,
.news-pagination span{
  border-color: rgba(175,193,222,.34);
  background: rgba(255,255,255,.78);
  box-shadow: 0 4px 12px rgba(44,62,92,.04);
}

.news-single_view{
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 10px;
}

.news-single{
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.78));
  border-color: rgba(175,193,222,.34);
  box-shadow:
    0 18px 44px rgba(44,62,92,.08),
    inset 0 1px 0 rgba(255,255,255,.68);
}

.news-topbar{
  margin-bottom: 16px;
}

.news-back,
.news-action-btn,
.admin-edit-btn,
.back-link{
  border-color: rgba(175,193,222,.34);
  background: rgba(255,255,255,.74);
  box-shadow: 0 8px 18px rgba(44,62,92,.05);
}

.news-single_view .news-title,
.news-single .news-title{
  max-width: none;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #0f172a;
  text-wrap: pretty;
}

.news-chip{
  background: rgba(255,255,255,.70);
  border-color: rgba(175,193,222,.32);
  color: #52627a;
  font-weight: 720;
}

.news-hero{
  border-radius: 22px;
  border-color: rgba(175,193,222,.30);
  box-shadow: 0 14px 34px rgba(44,62,92,.075);
}

.news-body.ui-prose{
  max-width: 880px;
  font-size: 17px;
  line-height: 1.78;
  color: #243248;
}

.news-body.ui-prose p{
  margin: 0 0 1em;
}

.news-body.ui-prose :where(h2,h3){
  font-weight: 800;
  letter-spacing: 0;
  color: var(--news-ink);
}

.news-section{
  border-top-color: rgba(175,193,222,.24);
}

.news-section-title{
  font-weight: 820;
  letter-spacing: 0;
  color: var(--news-blue);
}

.news-video-wrap,
.news-photo-thumb,
.photo-thumb{
  border-radius: 16px;
  border-color: rgba(175,193,222,.30);
  box-shadow: 0 10px 24px rgba(44,62,92,.06);
}

@media (max-width: 900px){
  .news-page{
    padding-top: 8px;
  }

  .news-header{
    padding: 0 2px;
  }

  .news-single{
    border-radius: 20px;
    padding: 16px;
  }

  .news-title{
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.2;
  }

  .news-body.ui-prose{
    font-size: 16px;
    line-height: 1.68;
  }
}

@media (max-width: 560px){
  .news-page .news-item{
    border-radius: 16px;
  }

  .news-page .news-item-body{
    padding: 12px 13px 14px;
  }

  .news-page .news-item-title{
    font-size: 14px;
    line-height: 1.46;
  }

  .news-page .news-item-excerpt{
    -webkit-line-clamp: 3;
  }

  .news-topbar{
    align-items: flex-start;
    gap: 10px;
  }

  .news-actions{
    gap: 7px;
  }

  .news-chip{
    font-size: 12px;
  }
}

/* =========================================================
   SINGLE NEWS COMPACT REFINEMENT
   Keeps article pages calmer and centered.
   ========================================================= */

.news-single_view{
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 8px;
}

.news-single{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 18px 20px 22px;
  border-radius: 22px;
}

.news-single .news-topbar,
.news-single .news-head,
.news-single .news-body.ui-prose,
.news-single .news-section,
.news-single .news-bottom{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.news-single .news-meta-row{
  gap: 7px;
}

.news-single .news-chip{
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 680;
}

.news-single .news-hero{
  width: 100%;
  max-width: none;
  margin: 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.news-single .news-hero-img{
  width: auto;
  max-width: 100%;
  max-height: min(58vh, 500px);
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.news-single .news-body.ui-prose,
.news-single .news-section,
.news-single .news-bottom{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.news-single .news-body.ui-prose{
  font-size: 16px;
  line-height: 1.72;
}

.news-single .news-section-title{
  font-size: 1rem;
}

.news-single .news-section{
  margin-top: 18px;
  padding-top: 14px;
}

.news-single .news-section-head{
  align-items: center;
  margin-bottom: 12px;
}

.news-single .news-section-sub{
  font-size: 12px;
  font-weight: 760;
  color: #65758c;
}

.news-single .news-gallery{
  grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
  justify-content: start;
  gap: 10px;
}

.news-single .photo-thumb,
.news-single .news-photo-thumb{
  background: rgba(255,255,255,.82);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}

.news-single .photo-thumb img,
.news-single .news-photo-thumb img{
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

/* GLightbox: полноразмерное фото в оверлее */
.glightbox-container .gslide-media{
  display: flex;
  align-items: center;
  justify-content: center;
}

.glightbox-container .gslide-image img{
  width: auto !important;
  height: auto !important;
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

.news-single .news-comments{
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.news-single .news-comments > *{
  border-radius: 18px;
}

.news-single .news-bottom{
  margin-top: 20px;
}

@media (min-width: 1180px){
  .news-single_view{
    max-width: none;
  }
}

@media (max-width: 900px){
  .news-single_view{
    max-width: none;
  }

  .news-single{
    padding: 16px;
  }

  .news-single .news-title{
    font-size: clamp(17px, 4.2vw, 20px);
    line-height: 1.36;
  }

  .news-single .news-hero-img{
    max-height: min(52vh, 420px);
  }

  .news-single .news-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .news-single{
    padding: 13px;
    border-radius: 18px;
  }

  .news-single .news-topbar{
    margin-bottom: 12px;
  }

  .news-single .news-title{
    font-size: clamp(16px, 4.8vw, 18px);
    line-height: 1.38;
  }

  .news-single .news-chip{
    font-size: 11px;
  }

  .news-single .news-hero{
    border-radius: 15px;
    margin-bottom: 15px;
  }

  .news-single .news-body.ui-prose{
    font-size: 15.5px;
    line-height: 1.66;
  }

  .news-single .news-gallery{
    gap: 9px;
  }

  .news-single .photo-thumb img,
  .news-single .news-photo-thumb img{
    height: 100%;
  }
}

/* =========================================================
   SINGLE ARTICLE — editorial layout (Manrope)
   ========================================================= */

.news-single_view{
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 12px;
  padding-bottom: 28px;
}

.news-single{
  font-family: var(--site-header-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.84));
  border-color: rgba(175,193,222,.30);
  box-shadow:
    0 18px 42px rgba(44,62,92,.08),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.news-single .news-topbar,
.news-single .news-head,
.news-single .news-body.ui-prose,
.news-single .news-section,
.news-single .news-bottom{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.news-single .news-back,
.news-single .back-link,
.news-single .admin-edit-btn{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #334155;
}

.news-single .news-action-btn{
  font-weight: 500;
}

.news-single .news-head{
  margin-bottom: 18px;
  padding-bottom: 0;
}

.news-single .news-title{
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #0f172a;
  text-wrap: pretty;
}

.news-single .news-meta-row{
  gap: 8px;
}

.news-single .news-chip{
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(248,250,252,.88);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: .01em;
}

.news-single .news-chip--muted{
  background: rgba(241,245,249,.92);
}

.news-single .news-chip-link{
  background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.16);
  color: #2563eb;
  font-weight: 600;
}

.news-single .news-chip-link:hover{
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
}

/* Hero + body: float on wide screens, stack on mobile */
.news-single .news-content::after{
  content: "";
  display: block;
  clear: both;
}

.news-single .news-hero{
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  display: block;
  min-height: 0;
  max-height: none;
  aspect-ratio: unset;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(175,193,222,.24);
  background: transparent;
  box-shadow: 0 8px 22px rgba(44,62,92,.06);
}

.news-single .news-hero-link{
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

.news-single .news-hero-link:focus-visible{
  outline: 2px solid rgba(37,99,235,.45);
  outline-offset: 2px;
  border-radius: 12px;
}

.news-single .news-hero-link:hover .news-hero-img{
  opacity: .94;
}

.news-single .news-hero-img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(44vh, 360px);
  object-fit: contain;
  object-position: left top;
  margin: 0;
  transition: opacity .15s ease;
}

@media (min-width: 720px){
  .news-single .news-hero{
    float: left;
    width: clamp(240px, 30%, 340px);
    margin: 2px 24px 14px 0;
  }

  .news-single .news-hero-img{
    max-height: none;
    object-position: center;
  }
}

.news-single .news-body.ui-prose :where(img, picture img){
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border-radius: 14px;
}

.news-single .news-body.ui-prose{
  font-size: 17px;
  line-height: 1.72;
  color: #334155;
  letter-spacing: -.01em;
}

.news-single .news-body.ui-prose p{
  margin: 0 0 1em;
}

.news-single .news-body.ui-prose p:last-child{
  margin-bottom: 0;
}

.news-single .news-body.ui-prose :where(h2, h3){
  margin: 1.4em 0 .65em;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -.02em;
}

.news-single .news-body.ui-prose a{
  color: #2563eb;
  text-underline-offset: 2px;
}

.news-single .news-body.ui-prose blockquote{
  margin: 1.1em 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(37,99,235,.35);
  background: rgba(241,245,249,.72);
  border-radius: 0 12px 12px 0;
  color: #475569;
}

.news-single .news-section{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(175,193,222,.22);
  clear: both;
}

.news-single .news-bottom{
  clear: both;
}

.news-single .news-section-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #0f172a;
}

.news-single .news-section-sub{
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.news-single .news-comments{
  margin-top: 32px;
}

@media (max-width: 768px){
  .news-single{
    padding: 16px 14px 20px;
    border-radius: 18px;
  }

  .news-single .news-title{
    font-size: clamp(17px, 4.2vw, 19px);
    line-height: 1.36;
  }

  .news-single .news-body.ui-prose{
    font-size: 16px;
    line-height: 1.68;
  }

  .news-single .news-hero{
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .news-single .news-hero-img{
    max-height: min(40vh, 280px);
  }

  .news-single .news-gallery{
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
