/* =========================
   GLOBAL RESET
========================= */
*,
*::before,
*::after {ё
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
}

body {
  font-family: system-ui, sans-serif;
  background: #0b0f1a;
  overflow-x: hidden;
}

/* =========================
   IMAGES RESET
========================= */
img, svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   DIVIDER
========================= */
.yellow-divider {
	position: relative;
  width: 100%;
  height: 2px;
  background: #FFD400; /* насыщенный жёлтый */
  margin: 0;           /* без отступов — чёткий раздел */
  z-index: 5;
}

/* =========================
   PANEL BUTTONS
========================= */
.panel-buttons {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;	
}

.panel-buttons img {
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.panel-buttons img:hover {
  transform: scale(1.04);
  filter: brightness(1.05) contrast(1.05);
}

/* =========================
   FULL WIDTH SLIDER
========================= */
.full-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* SLIDES */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides img.active {
  opacity: 1;
}

/* DARK OVERLAY */
.full-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.65);
  z-index: 1;
}

/* =========================
   SLIDER TEXT OVERLAY
========================= */
.slider-texts {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

/* TEXT BLOCK (NO BACKGROUND) */
.slider-text {
  position: absolute;

  max-width: 720px;
  width: calc(100% - 48px);

  text-align: center;

  /* ⛔ БЕЗ ФОНА */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;

  text-shadow:
    0 0 12px rgba(0,0,0,0.6),
    0 0 24px rgba(0,0,0,0.4);
}

.slider-text.active {
  opacity: 1;
  transform: translateY(0);
}

/* HEADINGS */
.slider-text h2 {
  font-size: 42px;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: #F6F1E1;
}

/* PARAGRAPH */
.slider-text p {
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: #F6F1E1;
  opacity: 0.85;
}

/* =========================
   SLIDER TEXT ADAPTIVE
========================= */
@media (max-width: 768px) {
  .slider-text h2 {
    font-size: 28px;
  }

  .slider-text p {
    font-size: 16px;
  }
}

/* =========================
   TEXT BLOCK
========================= */
.text-block {
  padding: 14px 20px;
}

.text-block-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: justify;
}

.text-block p {
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.03em;
/*  color: #F6F1E1;  */
  color:#E19F65;	
}

/* =========================
   CATEGORY BUTTONS
========================= */
.category-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.category-buttons img {
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.category-buttons img:hover {
  transform: scale(1.04);
  filter: brightness(1.05) contrast(1.05);
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 32px 20px 20px;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

.footer-socials a {
  width: 26px;
  height: 26px;
}

.footer-socials svg {
  fill: #F6F1E1;
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.footer-socials a:hover svg {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #F6F1E1;
  opacity: 0.6;
}

/* =========================
   RESPONSIVE GRIDS
========================= */
@media (max-width: 1024px) {
  .panel-buttons,
  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .panel-buttons {
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 в ряд */
    gap: 14px;
    padding: 20px 16px;
    justify-items: center;
  }

  .panel-buttons img {
    max-width: 150px;
    aspect-ratio: 3 / 4;
  }
}

/* =========================
   NEWS (ARCHIVE + SINGLE)
========================= */

.news-hero {
  padding: 48px 20px;
}

.news-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.news-title {
  font-size: 44px;
  letter-spacing: 0.22em;
/*  color: #F6F1E1; */
  color: #E19F65;	
  margin-bottom: 10px;
}

.news-subtitle {
/*  color: #F6F1E1;  */
  color:#E19F65;	
  opacity: 0.75;
  letter-spacing: 0.08em;
  line-height: 1.5;
  max-width: 860px;
  margin: 0 auto;
}

/* ARCHIVE GRID */
.news-archive {
  padding: 48px 20px 56px;
}

.news-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARD */
.news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.03) contrast(1.03);
  border-color: rgba(255, 212, 0, 0.35);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* IMAGE */
.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* ✅ без обрезки */
  background: rgba(0,0,0,0.25);
}


.news-card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image--empty span {
  color: #F6F1E1;
  opacity: 0.55;
  letter-spacing: 0.2em;
  font-size: 12px;
}

/* BODY */
.news-card-body {
  padding: 18px 18px 16px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.news-card-date {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #F6F1E1;
  opacity: 0.65;
}

.news-card-badge {
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 5px 8px;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 999px;
  color: #FFD400;
  opacity: 0.95;
}

/* TITLE + TEXT */
.news-card-title {
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: #F6F1E1;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.news-card-text {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #F6F1E1;
  opacity: 0.78;
  text-align: justify;
  min-height: 68px;
}

/* FOOTER */
.news-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.news-card-more {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #FFD400;
  opacity: 0.9;
}

/* PAGINATION */
.news-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.news-pagination .page-numbers {
  display: inline-block;
  padding: 10px 12px;
  margin: 0 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 212, 0, 0.25);
  color: #F6F1E1;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.9;
}

.news-pagination .page-numbers.current {
  background: rgba(255, 212, 0, 0.12);
  border-color: rgba(255, 212, 0, 0.45);
  color: #FFD400;
}

.news-pagination .page-numbers:hover {
  border-color: rgba(255, 212, 0, 0.5);
}

/* EMPTY */
.news-empty {
  padding: 40px 0;
  text-align: center;
  color: #F6F1E1;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

/* SINGLE */
.news-single {
  padding: 52px 20px 56px;
}

.news-single-inner {
  max-width: 980px;
  margin: 0 auto;
}

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

.news-back {
  color: #FFD400;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.95;
}

.news-back:hover {
  opacity: 1;
  text-decoration: underline;
}

.news-single-date {
  color: #F6F1E1;
  opacity: 0.6;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.news-single-title {
  font-size: 36px;
  letter-spacing: 0.12em;
  color: #F6F1E1;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 22px;
}

/* COVER */
.news-single-cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 212, 0, 0.18);
  background: rgba(0,0,0,0.25);
  margin-bottom: 24px;

  overflow: hidden;        /* можно оставить для скругления */
  aspect-ratio: auto;      /* ✅ убираем фикс 16:9 */
}

.news-single-cover img {
  width: 100%;
  height: auto;            /* ✅ натуральная высота */
  display: block;
  object-fit: contain;     /* ✅ не режем */
}


/* CONTENT */
.news-single-content {
  color: #F6F1E1;
  opacity: 0.82;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  text-align: justify;
}

.news-single-content p {
  margin-bottom: 18px;
}

/* BUTTON */
.news-single-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.news-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: #FFD400;
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 12px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.news-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) contrast(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-title {
    font-size: 32px;
  }

  .news-single-title {
    font-size: 26px;
  }
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* =========================
   LIBRARY (Document Library)
========================= */

.library-section {
  padding: 48px 20px 56px;
  width: 100%;
}

.library-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Table reset for Document Library */
.library-section table {
  width: 100%;
  border-collapse: collapse;
}

.library-section th,
.library-section td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

/* Header */
.library-section th {
  color: #FFD400;
  letter-spacing: 0.12em;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 212, 0, 0.35);
}

/* Rows */
.library-section td {
  color: #F6F1E1;
  border-bottom: 1px solid rgba(255, 212, 0, 0.15);
}

/* Links */
.library-section a {
  color: #FFD400;
  text-decoration: none;
}

.library-section a:hover {
  text-decoration: underline;
}

/* Search box */
.library-section input[type="search"] {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255, 212, 0, 0.35);
  color: #F6F1E1;
  padding: 8px 10px;
  border-radius: 6px;
}

/* Empty message */
.library-section .doc-library-empty {
  color: #F6F1E1;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 32px 0;
}

/* =========================
   LIBRARY SINGLE DOCUMENT
========================= */

.library-single {
  padding: 48px 20px 56px;
}

.library-single-inner {
  max-width: 960px;
  margin: 0 auto;
}

.library-back {
  margin-bottom: 20px;
}

.library-back a {
  color: #FFD400;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.library-back a:hover {
  text-decoration: underline;
}

.library-title {
  font-size: 36px;
  letter-spacing: 0.14em;
  color: #F6F1E1;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.library-meta {
  margin-bottom: 18px;
}

.library-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-radius: 999px;
  color: #FFD400;
}

.library-description {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #F6F1E1;
  opacity: 0.85;
  margin-bottom: 28px;
  text-align: justify;
}

.library-viewer {
  margin: 32px 0;
}

.library-download {
  margin-top: 24px;
  text-align: center;
}

.library-download a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: #FFD400;
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 12px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.library-download a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) contrast(1.05);
}


.library-page {
  padding: 48px 20px;
}

.library-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.library-title {
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.2em;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.library-item {
  border: 1px solid rgba(255,212,0,0.25);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
}

.library-item-title {
  margin-bottom: 10px;
  font-size: 18px;
}

.library-item-description {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.library-item-categories {
  margin-bottom: 14px;
}

.library-category {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(255,212,0,0.4);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-right: 6px;
}

.library-actions {
  margin-top: 10px;
}

.library-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255,212,0,0.6);
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.14em;
}


/* === FIX CLICKABILITY === */

.library-item {
  position: relative;
  z-index: 1;
}

.library-item a {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.library-item * {
  pointer-events: auto;
}

.library-item::before,
.library-item::after {
  pointer-events: none !important;
}


/* =========================
   LIBRARY (PAGE /library/)
========================= */

.library-section {
  padding: 48px 20px 56px;
  width: 100%;
}

.library-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.library-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  letter-spacing: 0.22em;
  color: #E19F65;
  text-transform: uppercase;
}

/* =========================
   TABLE
========================= */

.library-section table {
  width: 100%;
  border-collapse: collapse;
}

/* Table header */
.library-section th {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  color: #FFD400;
  font-size: 12px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255, 212, 0, 0.45);
  white-space: nowrap;
}

/* Table cells */
.library-section td {
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
  color: #F6F1E1;
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 212, 0, 0.18);
}

/* Row hover */
.library-section tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* =========================
   LINKS
========================= */

.library-section a {
  color: #FFD400;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.library-section a:hover {
  text-decoration: underline;
}

/* =========================
   CATEGORY
========================= */

.library-section td .library-category {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #FFD400;
  white-space: nowrap;
}

/* =========================
   EMPTY STATE
========================= */

.library-section .doc-library-empty,
.library-section p {
  text-align: center;
  padding: 32px 0;
  color: #F6F1E1;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

/* =========================
   SEARCH (если добавишь)
========================= */

.library-section input[type="search"] {
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-radius: 8px;
  color: #F6F1E1;
  font-size: 14px;
}

.library-section input[type="search"]::placeholder {
  color: rgba(246, 241, 225, 0.55);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .library-section table,
  .library-section thead,
  .library-section tbody,
  .library-section th,
  .library-section td,
  .library-section tr {
    display: block;
  }

  .library-section thead {
    display: none;
  }

  .library-section tr {
    margin-bottom: 24px;
    border: 1px solid rgba(255, 212, 0, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  .library-section td {
    border: none;
    padding: 6px 0;
  }

  .library-section td:first-child {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

/* =========================
   LIBRARY – FINAL THEME FIX
========================= */

/* Base */
.library-page {
  background: transparent;
  color: #F6F1E1;
  font-family: system-ui, sans-serif;
}

.library-page * {
  box-sizing: border-box;
}

/* Title */
.library-title {
  color: #E19F65 !important;
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* Cards */
.library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.library-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 212, 0, 0.25);
  border-radius: 16px;
  padding: 22px 22px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.library-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 0, 0.45);
}

/* Title link */
.library-item-title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.library-item-title a {
  color: #FFD400 !important;
  text-decoration: none !important;
}

.library-item-title a:visited {
  color: #FFD400 !important;
}

.library-item-title a:hover {
  text-decoration: underline;
}

/* Description */
.library-item-description {
  font-size: 15px;
  line-height: 1.6;
  color: #F6F1E1;
  opacity: 0.85;
  margin-bottom: 16px;
  text-align: justify;
}

/* Categories */
.library-item-categories {
  margin-bottom: 18px;
}

.library-category {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 0, 0.45);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #FFD400;
  text-transform: uppercase;
}

/* Buttons */
.library-actions {
  margin-top: 18px;
  text-align: center;
}

.library-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 0, 0.6);
  background: transparent;
  color: #FFD400 !important;
  text-decoration: none !important;
  letter-spacing: 0.16em;
  font-size: 12px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.library-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Empty */
.library-page p {
  text-align: center;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 600px) {
  .library-title {
    font-size: 28px;
  }

  .library-item {
    padding: 18px;
  }

  .library-item-title {
    font-size: 18px;
  }
}

/* === FORCE bottom-left === */

.library-item {
  position: relative;
  padding-bottom: 64px;
}

.library-actions {
  position: absolute;
  left: 18px;
  right: auto !important;   /* 🔥 КЛЮЧЕВО */
  bottom: 18px;
  margin: 0;
  text-align: left;
}

.library-btn {
  display: inline-block;
}

@media (max-width: 600px) {
  .library-actions {
    left: 14px;
    right: auto !important; /* 🔥 обязательно и тут */
    bottom: 14px;
  }
}

.text-block,
.text-block-inner {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* === FIX GUTENBERG LIST COLOR === */

.text-block,
.text-block-inner {
  color: #E19F65;
}

.text-block ul,
.text-block ol,
.text-block li {
  color: #E19F65;
}

.text-block strong {
  color: #FFD400; /* если хочешь акцент */
}
