    /* ====== Base ====== */
    :root {
      --bg-main: #0d0a07;
      --bg-panel: #1b120a;
      --bg-card: #19120b;
      --border-gold: #c28c3b;
      --text-main: #ffffff;
      --text-muted: #d9b88a;
      --accent-gold: #f6c453;
      --accent-orange: #d8792a;
      --accent-red: #c84532;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #1b120a, #050302 60%);
      color: var(--text-main);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .pageContainer {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px 40px;
    }

    /* ====== Header ====== */

    .mainHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      margin-bottom: 24px;
      border-radius: 16px;
      background: rgba(10, 6, 3, 0.9);
      border: 1px solid var(--border-gold);
      box-shadow: 0 0 24px rgba(255, 180, 80, 0.15);
      gap: 16px;
    }

    .logoBlock {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .logoSquare {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--border-gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      overflow: hidden;
    }

    .logoSquare img {
      width: 30px;
      height: 30px;
      border-radius: 8px;
    }

    .brandName {
      font-weight: 600;
      font-size: 18px;
      white-space: nowrap;
    }

    .mainNav {
      display: flex;
      gap: 24px;
      font-size: 15px;
      flex: 1;
      justify-content: center;
      min-width: 0;
    }

    .mainNav a {
      position: relative;
      padding-bottom: 2px;
      white-space: nowrap;
    }

    .mainNav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 2px;
      background: var(--accent-gold);
      transition: width 0.2s ease-out;
    }

    .mainNav a:hover::after {
      width: 100%;
    }

    .authButtons {
      display: flex;
      align-items: center;
      gap: 12px;
      white-space: nowrap;
    }

    .btn {
      border-radius: 999px;
      padding: 8px 20px;
      font-size: 14px;
      font-weight: 600;
      border: 1px solid transparent;
      background: transparent;
      color: var(--text-main);
      cursor: pointer;
      transition: background 0.15s ease-out, transform 0.1s ease-out,
        box-shadow 0.15s ease-out;
    }

    .btnLogin {
      border-color: var(--accent-gold);
      background: rgba(0, 0, 0, 0.4);
    }

    .btnLogin:hover {
      background: rgba(246, 196, 83, 0.15);
      box-shadow: 0 0 12px rgba(246, 196, 83, 0.3);
      transform: translateY(-1px);
    }

    .btnSignUp {
      background: var(--accent-red);
      border-color: #ff9c85;
    }

    .btnSignUp:hover {
      box-shadow: 0 0 14px rgba(255, 120, 96, 0.4);
      transform: translateY(-1px);
    }

    /* ====== Search bar ====== */

    .searchBlock {
      margin-bottom: 24px;
    }

    .searchInputWrapper {
      border-radius: 999px;
      border: 1px solid var(--border-gold);
      padding: 10px 18px;
      background: rgba(6, 4, 2, 0.9);
    }

    .searchInput {
      width: 100%;
      border: none;
      outline: none;
      background: transparent;
      color: var(--text-main);
      font-size: 15px;
    }

    .searchInput::placeholder {
      color: var(--text-muted);
    }

    /* ====== Courses grid ====== */

    .coursesGrid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 18px;
    }

    .courseCard {
      min-height: 240px;
      border-radius: 18px;
      border: 1px solid var(--border-gold);
      background: var(--bg-card);
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
    }

    .courseTop {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 12px;
    }

    .courseImage {
      width: 96px;
      height: 96px;
      border-radius: 14px;
      overflow: hidden;
      background: #333;
      border: 1px solid var(--border-gold);
    }

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

    .courseText {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .courseTitle {
      font-size: 17px;
      font-weight: 600;
      line-height: 1.2;
    }

    .courseAuthor {
      font-size: 13px;
      color: var(--text-muted);
    }

    .courseDescription {
      margin-top: 4px;
      font-size: 13px;
      line-height: 1.4;
      color: #f4e7cf;
    }

    .courseStars {
      margin-top: 6px;
      font-size: 14px;
      color: var(--accent-gold);
    }

    /* Stars + Vote row layout */
    .courseStarsRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 6px;
      gap: 8px;
    }

    .courseStarsRow .courseStars {
      margin-top: 0;
    }

    /* Vote buttons container */
    .courseVoteWrap {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Single vote button */
    .voteBtn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      border: 1px solid rgba(194, 140, 59, 0.35);
      border-radius: 999px;
      background: rgba(25, 18, 11, 0.7);
      padding: 3px 8px 3px 6px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease,
                  box-shadow 0.15s ease, transform 0.08s ease;
      user-select: none;
      -webkit-user-select: none;
    }

    .voteBtn:hover {
      background: rgba(246, 196, 83, 0.12);
      border-color: rgba(194, 140, 59, 0.6);
      transform: translateY(-1px);
    }

    .voteBtn:active {
      transform: translateY(0);
    }

    .voteIcon {
      font-size: 15px;
      line-height: 1;
    }


    /* Active (selected) like */
    .voteBtnLike.active {
      background: rgba(76, 175, 80, 0.18);
      border-color: rgba(76, 175, 80, 0.55);
      box-shadow: 0 0 8px rgba(76, 175, 80, 0.25);
    }

    /* Active (selected) dislike */
    .voteBtnDislike.active {
      background: rgba(200, 69, 50, 0.18);
      border-color: rgba(200, 69, 50, 0.55);
      box-shadow: 0 0 8px rgba(200, 69, 50, 0.25);
    }

    .courseBottom {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 10px;
    }

    .btnGetCourse {
      background: var(--accent-orange);
      border-radius: 999px;
      border: 1px solid #ffb067;
      padding: 8px 22px;
      font-weight: 600;
      font-size: 14px;
      color: #fff5eb;
      cursor: pointer;
      box-shadow: 0 0 14px rgba(255, 153, 63, 0.4);
      transition: transform 0.1s ease-out, box-shadow 0.15s ease-out;
    }

    .btnGetCourse:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 20px rgba(255, 180, 90, 0.6);
    }

    .courseActions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        position: relative; /* нужно для абсолютного позиционирования меню */
    }

    .iconButton {
      width: 36px;
      height: 32px;
      border-radius: 12px;
      border: 1px solid var(--border-gold);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--text-main);
      cursor: pointer;
      transition: background 0.15s ease-out, transform 0.1s ease-out;
    }

    .iconButton:hover {
      background: rgba(250, 201, 110, 0.18);
      transform: translateY(-1px);
    }

    /* ====== Footer ====== */

    .mainFooter {
      margin-top: 40px;
      padding-top: 16px;
      border-top: 1px solid #44301b;
      font-size: 13px;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }

    .footerLinks {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .footerLinks a {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* ====== Mobile / responsive ====== */

@media (max-width: 768px) {

  /* Хедер — ВСЕГДА в одну линию */
  .mainHeader {
    display: flex;
    flex-wrap: nowrap;          /* запрещаем перенос */
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    position: relative;
  }

  /* Логотип уменьшить (по желанию) */
  .logoSquare {
    width: 34px;
    height: 34px;
  }

  /* Гамбургер показываем */
  .hamburger {
    display: block;
    order: 3;                   /* двигаем его вправо */
  }

  /* Навигация — скрыта и выпадает поверх */
  .mainNav {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: rgba(15, 10, 6, 0.95);
    border: 1px solid var(--border-gold);
    padding: 16px;
    border-radius: 14px;
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);
    z-index: 3000;
    width: 220px;
  }

  .mainNav.show {
    display: flex;
  }

  /* ===== КНОПКИ СПРАВА ===== */
  .authButtons {
    order: 2;
    margin-left: auto;          /* <<< ВАЖНЕЙШЕЕ — прижимает вправо */
    display: flex;
    gap: 10px;
  }

  /* Меню — order:1, AuthButtons — order:2, гамбургер — order:3 */
  .logoBlock {
    order: 1;
  }

  /* Крупнее общий текст + карточки в одну колонку */
  body {
    font-size: 16px;
  }

  .pageContainer {
    padding: 12px 12px 28px;
  }

  .coursesGrid {
    grid-template-columns: 1fr;   /* одна колонка */
    gap: 16px;
  }

  .courseCard {
    min-height: 0;
  }

  .courseTitle {
    font-size: 24px;
  }

  .courseAuthor,
  .courseDescription,
  .courseStars {
    font-size: 14px;
  }

  /* === УВЕЛИЧИВАЕМ КНОПКИ === */

  /* Login / Sign Up */
  .btn {
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px;
  }

  /* Get Course — заметно больше */
  .btnGetCourse {
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 999px;
  }

  /* Иконки комментариев / меню тоже чуть крупнее */
  .iconButton {
    width: 52px;
    height: 48px;
    font-size: 24px;
  }

  /* Можно чуть подтянуть низ карточки, чтобы не было тесно */
  .courseBottom {
    gap: 14px;
  }

  .logoBlock {
    display: none;
  }

}  


    /* ====== Hamburger ====== */

    .hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    font-size: 22px;
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    }

    @media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .mainNav {
        display: none; /* скрыто по умолчанию */
        flex-direction: column;
        gap: 16px;
        background: rgba(15, 10, 6, 0.95);
        border: 1px solid var(--border-gold);
        padding: 16px;
        border-radius: 14px;
        position: absolute;
        right: 16px;
        top: 70px;
        z-index: 20;
        width: 200px;
    }

    .mainNav.show {
        display: flex; /* при открытии меню */
    }
    }

    /* ====== Popup-меню у карточки ====== */

.courseMenu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);      /* всплывает НАД кнопками; можно заменить на top: calc(100% + 6px), если нужно вниз */
  min-width: 190px;

  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);

  padding: 6px 0;
  z-index: 4000;
}

.courseMenuItem {
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.courseMenuItem:hover {
  background: rgba(246, 196, 83, 0.15); /* мягкий золотистый фон при наведении */
}

/* разделитель между блоками меню (между Listen и Describe у автора) */
.courseMenuSeparator {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
}

/* ====== Overlay + модалка Delete ====== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  z-index: 3900;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.deleteModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  z-index: 4001;
  transition: opacity 0.15s ease-out;
}

.deleteModal.visible {
  opacity: 1;
  pointer-events: auto;
}

.deleteModalContent {
  min-width: 280px;
  max-width: 360px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.deleteModalTitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.deleteModalText {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.deleteModalButtons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* красная кнопка Delete в модалке */
.btnDanger {
  background: #b93333;
  border-color: #ff9c85;
}

.btnDanger:hover {
  background: #d64141;
  box-shadow: 0 0 12px rgba(255, 120, 96, 0.4);
}

/* ====== Bot attributes (Describe) modal ====== */

.attrsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.attrsModalCard {
  background: #14110F;
  border: 2px solid rgba(212, 175, 55, 0.85);
  border-radius: 16px;
  padding: 20px;
  min-width: min(460px, 94vw);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 38px rgba(255, 122, 26, 0.26);
}

.attrsModalCard h2 {
  margin: 0 0 12px 0;
  font: 800 20px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--accent-gold);
  text-shadow: 0 2px 14px rgba(255, 122, 26, 0.18);
}

.attrsFields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.attrsField {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attrsLabel {
  font-size: 13px;
  color: var(--text-muted);
}

.attrsInput {
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(15, 10, 6, 0.9);
  color: var(--text-main);
  padding: 6px 8px;
  font: 500 13px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.attrsInput:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.6);
}

.attrsInputMultiline {
  resize: vertical;
  min-height: 80px;
}

.attrsModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.courseMenuItemDisabled {
  opacity: 0.45;
  cursor: default;
}

/* ====== Generic modals: attrs + comments ====== */

.attrsOverlay {
  position: fixed;
  inset: 0;
  display: none;            /* показываем через style.display = "flex" */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
}

.attrsModalCard {
  width: min(640px, 100% - 32px);
  max-height: min(90vh, 620px);
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(ellipse at top, #2a190b 0, #120a06 55%, #0b0704 100%);
  box-shadow:
    0 0 26px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(242, 180, 82, 0.35);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.attrsModalCard h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-gold);
}

.attrsFields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.attrsField {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attrsLabel {
  font-size: 13px;
  color: var(--text-muted);
}

.attrsInput {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(194, 140, 59, 0.6);
  background: rgba(9, 6, 4, 0.95);
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}

.attrsInput:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(246, 196, 83, 0.4);
}

.attrsInputMultiline {
  min-height: 80px;
  resize: vertical;
}

.attrsModalActions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ====== Inline-rename input на карточке ====== */

.courseTitleInput {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-gold);
  outline: none;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 0;
  border-radius: 0;
  caret-color: var(--accent-gold);
}

.courseTitleInput:focus {
  box-shadow: none;
}

/* ====== Comments modal specifics ====== */

.attrsModalCard--comments {
  width: min(700px, 100% - 32px);
}

/* scrollable comment list */
.commentsList {
  flex: 1;
  min-height: 60px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(194, 140, 59, 0.3);
  background: rgba(10, 7, 4, 0.7);
}

/* --- empty state --- */
.commentsEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 12px;
  min-height: 100px;
}

.commentsEmptyIcon {
  font-size: 28px;
  opacity: 0.5;
}

.commentsEmptyText {
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.75;
}

/* --- single comment row --- */
.commentItem {
  display: flex;
  flex-direction: column;
  margin: 6px 0;
}

.commentItem:first-child {
  margin-top: 0;
}

.commentItemOwn {
  align-items: flex-end;
}

.commentItemOther {
  align-items: flex-start;
}

/* author + date line */
.commentHeader {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 3px;
  padding: 0 2px;
}

.commentItemOwn .commentHeader {
  flex-direction: row-reverse;
}

.commentAuthor {
  font-weight: 600;
  color: var(--text-muted);
}

.commentDate {
  color: var(--text-muted);
}

/* speech bubble */
.commentBubble {
  position: relative;
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(246, 196, 83, 0.08);
  border: 1px solid rgba(246, 196, 83, 0.25);
}

.commentItemOwn .commentBubble {
  border-radius: 14px 14px 4px 14px;
  background: rgba(216, 121, 42, 0.14);
  border-color: rgba(216, 121, 42, 0.45);
}

.commentText {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
  word-break: break-word;
}

/* delete × — compact, top-right corner of bubble */
.commentDeleteBtn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  padding: 0;
}

.commentBubble:hover .commentDeleteBtn {
  opacity: 0.55;
}

.commentDeleteBtn:hover {
  opacity: 1 !important;
  background: rgba(200, 69, 50, 0.2);
  color: var(--accent-red);
}

/* textarea для нового комментария */
.commentsInputWrap {
  margin-bottom: 4px;
}

.commentsTextarea {
  min-height: 52px;
  resize: vertical;
}

.commentsTextarea::placeholder {
  color: rgba(217, 184, 138, 0.45);
}

/* Скрываем старое верхнее меню и бургер */
#mainNav,
#hamburgerBtn {
  display: none !important;
}

/* Intro modal */
.introModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 4001; /* выше overlay */
  transition: opacity 0.15s ease-out;
}

.introModal.visible {
  opacity: 1;
  pointer-events: auto;
}

.introModalInner {
  width: min(960px, 100% - 32px);
  max-height: min(640px, 100% - 32px);
  background: var(--bg-panel);
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.9);
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.introModalCloseButton {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.introModalCloseButton:hover {
  background: rgba(246, 196, 83, 0.1);
}

.introTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-right: 40px; /* место под крестик */
}

.introTab {
  border-radius: 999px;
  border: 1px solid rgba(194, 140, 59, 0.5);
  background: rgba(25, 18, 11, 0.9);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap;
}

.introTab.active {
  border-color: var(--accent-gold);
  color: var(--text-main);
  background: rgba(246, 196, 83, 0.12);
}

.introTabPanels {
  border-radius: 12px;
  border: 1px solid rgba(194, 140, 59, 0.4);
  background: rgba(13, 10, 7, 0.95);
  padding: 14px 16px;
  flex: 1;
  overflow: auto;
}

.introTabPanel {
  display: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.introTabPanel.active {
  display: block;
}

@media (max-width: 600px) {
  .introModalInner {
    width: calc(100% - 24px);
    height: auto;
    max-height: calc(100% - 24px);
    padding: 14px 14px 16px 14px;
  }

  .introTabs {
    padding-right: 32px;
  }

  .introTab {
    font-size: 12px;
    padding: 5px 10px;
  }
}

.aboutNewspaper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.aboutColumn {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
}

.aboutColumn p {
  margin: 0 0 10px 0;
}

.aboutImageWrap {
  margin-bottom: 12px;
  text-align: center;
}

.aboutImageWrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(194, 140, 59, 0.5); /* золото, как в остальном UI */
}

/* Intro Panel Buttons */
.introPanelButtonWrap {
  text-align: center;
  margin: 16px 0 20px 0;
}

.introPanelButton {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.introPanelButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #ff9d5c 0%, #ff7a4a 100%);
}

.introPanelButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.introPanelButtonAccent {
  background: linear-gradient(135deg, #ff6b35 0%, #e85d2a 100%);
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.3);
}

.introPanelButtonAccent:hover {
  background: linear-gradient(135deg, #ff7a4a 0%, #f16a37 100%);
  box-shadow: 0 6px 20px rgba(232, 93, 42, 0.4);
}


/* На мобилке — в одну колонку */
@media (max-width: 800px) {
  .aboutNewspaper {
    flex-direction: column;
  }
}

/* Шапка модалки: вкладки + язык на одной линии */
.introModalHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* Контейнер языка в модалке */
.introModalLang {
  flex: 0 0 auto;
}

/* Общий вид "пилюли" языка */
.introModalLang .header-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Сам селект как красивый комбобокс */
.introModalLang .header-lang select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0d0a07;
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 32px 6px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* Рисуем стрелочку v */
.introModalLang .header-lang::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  color: var(--accent-gold);
}

/* Адаптация под мобильный экран */
@media (max-width: 768px) {
  .introModalHeaderRow {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .introModalLang {
    display: flex;
    justify-content: flex-start;
  }

  .introModalInner {
    max-height: 100vh;
    width: 100vw;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .aboutNewspaper {
    flex-direction: column;
    gap: 20px;
  }
}

.introModalLang .header-lang {
  transform: translateY(-4px);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 7, 2, 0.95); /* dark brown overlay */
  transition: opacity 0.35s ease;
  opacity: 1;
}

.splash-screen__circle {
  position: relative;
  width: 260px;   /* bigger outer circle */
  height: 260px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-screen__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* golden rotating disk */
  background: conic-gradient(
    #f5c842 0deg,
    #ffd96a 90deg,
    rgba(245, 200, 66, 0) 200deg,
    rgba(245, 200, 66, 0) 360deg
  );
  animation: splash-rotate 1.2s linear infinite;
  box-shadow: 0 0 32px rgba(245, 200, 66, 0.8);
}

.splash-screen__icon {
  position: relative;
  width: 150px;   /* bigger inner circle */
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: #20120a;
  box-shadow: 0 0 0 5px #8b5a2b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hidden by default – only background circle is visible */
.splash-screen__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* add this class from JS on image load */
.splash-screen__icon-img.icon-visible {
  opacity: 1;
}

.splash-screen.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

/* optional: after fade-out you can fully remove it via JS */
@keyframes splash-rotate {
  to {
    transform: rotate(360deg);
  }
}
