/*
Theme Name: Виртуальный музей Николая Рубцова
Author: Valery
Description: Тема виртуального музея Николая Рубцова
Version: 1.0
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3eee5;
  color: #26231f;
}

/* HEADER */

.site-header {
  width: 100%;
  padding: 25px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;

  background: transparent !important;
  color: #ffffff;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.site-logo {
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 700;
}

.site-title {
  font-size: 14px;
  letter-spacing: 3px;
}

/* HERO */

.museum-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(20, 18, 15, 0.55), rgba(20, 18, 15, 0.55)), #51483d;

  color: #ffffff;
}

.museum-hero-content {
  max-width: 900px;
  padding: 40px 20px;
}

.museum-subtitle {
  margin: 0 0 25px;
  font-size: 14px;
  letter-spacing: 6px;
  font-weight: 600;
}

.museum-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: 4px;
  font-weight: 700;
}

.museum-description {
  margin-top: 30px;
  font-size: 22px;
  letter-spacing: 3px;
}

/* SECTIONS */

.museum-sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.museum-card {
  min-height: 280px;
  padding: 35px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: #ffffff;
  border: 1px solid #d8d0c4;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;

  cursor: pointer;
}

.museum-card-full {
  grid-column: 1 / -1;
}

.museum-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  background: #ebe3d7;
}

.museum-card span {
  margin-bottom: auto;

  font-size: 13px;
  letter-spacing: 3px;
  color: #8a7b69;
}

.museum-card h2 {
  margin: 0;

  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
}

/* FOOTER */

.site-footer {
  padding: 40px 20px;
  text-align: center;

  background: #171614;
  color: #ffffff;
}

.site-footer p {
  margin: 5px 0;
  font-size: 13px;
  letter-spacing: 1px;
}

/* MOBILE */

@media (max-width: 768px) {
  .site-header {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .museum-hero {
    min-height: 450px;
  }

  .museum-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .museum-description {
    font-size: 16px;
  }

  .museum-sections {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .museum-card {
    min-height: 220px;
  }

  .museum-card h2 {
    font-size: 26px;
  }
}

/* Вкладки подразделов музея */
/* ВКЛАДКИ ПОДРАЗДЕЛОВ */

.museum-subsections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;

  max-width: 1200px;
  margin: 45px auto 0;
  padding: 0 20px;
}

.museum-subsection-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 24px;

  flex: 1 1 280px;

  color: #26231f;
  background: #ffffff;

  border: 1px solid #d8d0c4;
  border-radius: 12px;

  text-decoration: none !important;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.museum-subsection-link-full {
  flex: 1 1 100%;
}

.museum-subsection-link:hover {
  color: #26231f;
  background: #ebe3d7;
  border-color: #b9aa96;

  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.1);
}

.museum-subsection-link:active {
  transform: translateY(0);
}

.museum-subsection-link::after {
  content: "→";

  margin-left: 10px;

  font-size: 16px;
  opacity: 0.45;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.museum-subsection-link:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .museum-subsections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    margin-top: 30px;
    padding: 0 20px;
  }

  .museum-subsection-link {
    width: 100%;
    min-height: 52px;

    justify-content: space-between;

    padding: 14px 18px;

    white-space: normal;
    text-align: left;
  }
}

/* Структура страницы: footer внизу */
html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > header {
  flex: 0 0 auto;
}

body > main {
  flex: 1 0 auto;
}

body > footer {
  flex: 0 0 auto;
}

/* Заглушки для изображений музея */

.museum-placeholder {
  width: 100%;
  min-height: 320px;
  margin: 35px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: #f1eee8;
  border: 2px dashed #b8b1a5;
  border-radius: 16px;

  color: #716b62;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.museum-placeholder span {
  padding: 30px;
}

/* Адаптация для телефона */

@media (max-width: 700px) {
  .museum-placeholder {
    min-height: 220px;
    margin: 25px 0;
    font-size: 15px;
  }
}

/* Контент страницы подраздела */

.museum-single-content {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}

.museum-single-content .museum-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Заголовки внутри подраздела */

.museum-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.museum-content p {
  line-height: 1.8;
}

/* Адаптация для телефона */

@media (max-width: 700px) {
  .museum-single-content {
    padding: 35px 18px;
  }
}

/* Центрирование заголовка страницы подраздела */

.museum-single-header-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  text-align: center;
}

.museum-single-label {
  text-align: center;
}

.museum-single-header-content h1 {
  text-align: center;
}

/* Подподразделы внутри страницы */

.museum-child-subsections {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 30px 0 45px;
}

.museum-child-subsection {
  flex: 1 1 280px;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 70px;
  padding: 18px 24px;

  box-sizing: border-box;

  background: #f1eee8;
  border: 1px solid #d8d1c5;
  border-radius: 12px;

  color: #403c36;
  text-decoration: none;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.museum-child-subsection:hover {
  background: #e8e3da;
  border-color: #b8b0a3;
  color: #2f2c28;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Телефон */

@media (max-width: 700px) {
  .museum-child-subsections {
    flex-direction: column;
    gap: 12px;
    margin: 25px 0 35px;
  }

  .museum-child-subsection {
    flex: none;
    width: 100%;
    min-height: 65px;
    font-size: 16px;
  }
}

/* Кнопка возврата к разделу */

.museum-breadcrumb {
  max-width: 900px;
  margin: 0 auto 25px;
  padding: 0 20px;
  box-sizing: border-box;
}

.museum-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;

  border: 1px solid #d8d1c5;
  border-radius: 8px;

  background: #f7f4ef;

  color: #403c36;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  transition: all 0.2s ease;
}

.museum-breadcrumb a:hover {
  background: #e8e3da;
  border-color: #b8b0a3;
  color: #2f2c28;
  text-decoration: none;
  transform: translateX(-2px);
}

/* =========================================================
   ГЛАВНАЯ — КАРТОЧКИ РАЗДЕЛОВ МУЗЕЯ
   ========================================================= */

.museum-sections {
  width: min(1100px, 90%);
  margin: 70px auto 100px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.museum-card {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 190px;
  padding: 35px 40px;

  text-decoration: none;

  background: #f4f0e8;
  border: 1px solid #d8d0c1;
  border-radius: 4px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.museum-card > span {
  display: block;

  margin-bottom: 18px;

  font-size: 14px;
  letter-spacing: 0.18em;

  color: #8b8172;
}

.museum-card h2 {
  margin: 0;

  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;

  color: #26231f;
}

.museum-card:hover {
  transform: translateY(-6px);

  background: #faf8f3;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.museum-card:hover h2 {
  color: #000;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {
  .museum-sections {
    width: 90%;
    margin: 45px auto 70px;

    grid-template-columns: 1fr;
    gap: 18px;
  }

  .museum-card {
    min-height: 150px;
    padding: 28px;
  }

  .museum-card h2 {
    font-size: 25px;
  }
}

/* Фоновая фотография главного блока */

.museum-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-color: #51483d;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  color: #ffffff;
}

/* =========================================================
   АФИША МЕРОПРИЯТИЙ
   ========================================================= */

.museum-events {
  width: 100%;
  max-width: 1100px;
  margin: 50px auto 80px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.museum-event-card {
  cursor: pointer;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-radius: 14px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.museum-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Фотография */

.museum-event-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.museum-event-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Контент */

.museum-event-content {
  padding: 28px 30px 32px;
}

.museum-event-title {
  margin: 0 0 14px;

  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;

  color: #26231f;
}

/* Дата */

.museum-event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 20px;
  padding: 9px 14px;

  background: #f1eee8;
  border: 1px solid #ddd6ca;
  border-radius: 8px;

  color: #62594e;

  font-size: 14px;
  font-weight: 600;
}

.museum-event-date-icon {
  font-size: 15px;
}

/* Описание */

.museum-event-description {
  color: #5b554d;

  font-size: 16px;
  line-height: 1.7;
}

/* Телефон */

@media (max-width: 700px) {
  .museum-events {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 35px auto 60px;
    gap: 20px;
  }

  .museum-event-image {
    max-height: 230px;
  }

  .museum-event-content {
    padding: 22px;
  }

  .museum-event-title {
    font-size: 24px;
  }
}

/* =========================================================
   КВИЗ «ПО СЛЕДАМ Н. РУБЦОВА»
   ========================================================= */

.rubtsov-quiz {
  width: min(900px, 92%);
  margin: 50px auto 90px;
}

/* Вступление */

.rubtsov-quiz-intro {
  padding: 55px 45px;
  text-align: center;

  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.rubtsov-quiz-intro h2 {
  margin: 0 0 18px;

  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  color: #26231f;
}

.rubtsov-quiz-intro p {
  max-width: 650px;
  margin: 0 auto 32px;

  color: #6d665d;
  font-size: 17px;
  line-height: 1.7;
}

/* Кнопка начала */

#rubtsov-quiz-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 0 34px;

  border: 0;
  border-radius: 10px;

  background: #26231f;
  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#rubtsov-quiz-start:hover {
  background: #403b34;
  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   ВОПРОС
   ========================================================= */

.rubtsov-quiz-game {
  width: 100%;
}

.rubtsov-quiz-question {
  padding: 45px;

  background: #ffffff;

  border: 1px solid #d8d0c4;
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

/* Номер вопроса */

.rubtsov-quiz-counter {
  display: inline-flex;
  align-items: center;

  margin-bottom: 25px;
  padding: 8px 14px;

  background: #f1eee8;
  border: 1px solid #ddd6ca;
  border-radius: 8px;

  color: #756b5e;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Текст вопроса */

.rubtsov-quiz-question h2 {
  margin: 0 0 35px;

  color: #26231f;

  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
}

/* Ответы */

.rubtsov-quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Кнопка ответа */

.rubtsov-quiz-answer {
  position: relative;

  min-height: 70px;
  padding: 18px 22px;

  border: 1px solid #d8d0c4;
  border-radius: 12px;

  background: #f8f5ef;
  color: #302c27;

  font-family: inherit;
  font-size: 16px;
  font-weight: 500;

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rubtsov-quiz-answer:hover {
  background: #ebe4d8;
  border-color: #b9aa96;

  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.rubtsov-quiz-answer:active {
  transform: translateY(0);
}

/* =========================================================
   ЗАГРУЗКА
   ========================================================= */

.rubtsov-quiz-loading {
  padding: 50px;

  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-radius: 18px;

  text-align: center;

  color: #71695f;
  font-size: 17px;
}

/* =========================================================
   РЕЗУЛЬТАТ
   ========================================================= */

.rubtsov-quiz-result {
  padding: 50px 45px;

  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);

  text-align: center;
}

.rubtsov-quiz-result h2 {
  margin: 0 0 25px;

  font-size: 34px;
  line-height: 1.2;
  color: #26231f;
}

.rubtsov-quiz-result p {
  margin: 0;

  color: #625b52;
  font-size: 18px;
  line-height: 1.7;
}

.rubtsov-quiz-result strong {
  color: #26231f;
  font-size: 22px;
}

/* =========================================================
   АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНА
   ========================================================= */

@media (max-width: 700px) {
  .rubtsov-quiz {
    width: 92%;
    margin: 30px auto 60px;
  }

  .rubtsov-quiz-intro {
    padding: 35px 22px;
  }

  .rubtsov-quiz-intro h2 {
    font-size: 27px;
  }

  .rubtsov-quiz-intro p {
    font-size: 15px;
  }

  .rubtsov-quiz-question {
    padding: 28px 20px;
  }

  .rubtsov-quiz-question h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .rubtsov-quiz-answers {
    grid-template-columns: 1fr;
  }

  .rubtsov-quiz-answer {
    min-height: 62px;
  }

  .rubtsov-quiz-result {
    padding: 35px 22px;
  }

  .rubtsov-quiz-result h2 {
    font-size: 28px;
  }
}

/* =========================================
   РЕЗУЛЬТАТЫ КВИЗА
   ========================================= */

.rubtsov-quiz-result {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  color: #2b241f;
}

/* Заголовок */

.rubtsov-quiz-result-header {
  text-align: center;
  margin-bottom: 35px;
}

.rubtsov-quiz-result-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 18px;

  border-radius: 30px;

  background: #f1e6d6;
  color: #8b5e34;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.rubtsov-quiz-result-header h2 {
  margin: 0 0 15px;

  font-size: 38px;
  line-height: 1.2;
}

.rubtsov-quiz-result-description {
  max-width: 650px;
  margin: 0 auto;

  color: #756b63;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================
   СТАТИСТИКА
   ========================================= */

.rubtsov-quiz-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-bottom: 35px;
}

.rubtsov-quiz-stat {
  padding: 25px 15px;

  background: #fff;
  border: 1px solid #e8ded3;
  border-radius: 18px;

  text-align: center;

  box-shadow: 0 8px 25px rgba(60, 40, 20, 0.06);
}

.rubtsov-quiz-stat-value {
  display: block;

  margin-bottom: 7px;

  color: #8b5e34;

  font-size: 30px;
  font-weight: 800;
}

.rubtsov-quiz-stat-label {
  display: block;

  color: #81776f;

  font-size: 14px;
}

/* =========================================
   КНОПКИ
   ========================================= */

.rubtsov-quiz-result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;

  margin-bottom: 40px;
}

.rubtsov-quiz-result-button {
  min-width: 220px;

  padding: 15px 25px;

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.rubtsov-quiz-result-button:hover {
  transform: translateY(-2px);
}

.rubtsov-quiz-result-button-primary {
  background: #8b5e34;
  color: #fff;

  box-shadow: 0 8px 20px rgba(139, 94, 52, 0.25);
}

.rubtsov-quiz-result-button-primary:hover {
  background: #744c29;
}

.rubtsov-quiz-result-button-secondary {
  background: #f1e6d6;
  color: #76502e;
}

.rubtsov-quiz-result-button-secondary:hover {
  background: #e8d8c4;
}
/* =========================================================
   РАЗБОР ОТВЕТОВ — ФИНАЛЬНОЕ ОФОРМЛЕНИЕ
   ========================================================= */

.rubtsov-quiz-details {
  width: 100%;
  margin-top: 35px;
  text-align: left;
}

/* Заголовок разбора */

.rubtsov-quiz-details > h3 {
  margin: 0 0 25px;
  padding-bottom: 15px;

  color: #26231f;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;

  text-align: left;

  border-bottom: 1px solid #e8ded3;
}

/* Список вопросов */

.rubtsov-quiz-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка вопроса */

.rubtsov-quiz-review-item {
  position: relative;

  padding: 24px 28px 24px 30px;

  background: #ffffff;

  border: 1px solid #e8ded3;
  border-radius: 14px;

  text-align: left;

  box-shadow: 0 5px 18px rgba(60, 40, 20, 0.045);

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rubtsov-quiz-review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px rgba(60, 40, 20, 0.08);
}

/* Левая цветная полоска */

.rubtsov-quiz-review-item::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 4px;

  background: #b95c50;
}

.rubtsov-quiz-review-item.is-correct::before {
  background: #4f8a5b;
}

/* Номер вопроса */

.rubtsov-quiz-review-number {
  margin-bottom: 9px;

  color: #8b5e34;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1.2px;
  text-transform: uppercase;

  text-align: left;
}

/* Текст вопроса */

.rubtsov-quiz-review-question {
  margin-bottom: 18px;

  color: #26231f;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;

  text-align: left;
}

/* Блок ответа */

.rubtsov-quiz-review-answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 5px;

  margin: 0;

  padding: 13px 16px;

  background: #f8f5ef;

  border-radius: 9px;

  text-align: left;
}

/* Надпись "Ваш ответ" */

.rubtsov-quiz-review-answer span {
  color: #81776f;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Сам ответ */

.rubtsov-quiz-review-answer strong {
  color: #302c27;

  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;

  text-align: left;
}

/* Статус */

.rubtsov-quiz-review-status {
  display: inline-flex;

  align-items: center;

  margin-top: 14px;
  padding: 7px 11px;

  border-radius: 7px;

  font-size: 13px;
  font-weight: 800;

  text-align: left;
}

/* Правильно */

.rubtsov-quiz-review-status.correct {
  background: #edf6ef;
  color: #4f8a5b;
}

/* Неправильно */

.rubtsov-quiz-review-status.wrong {
  background: #faeeee;
  color: #b95c50;
}

/* =========================================================
   КНОПКА "ПОСМОТРЕТЬ РАЗБОР"
   ========================================================= */

.rubtsov-quiz-details-button {
  min-width: 220px;

  padding: 14px 24px;

  border: 1px solid #8b5e34;
  border-radius: 10px;

  background: #8b5e34;
  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rubtsov-quiz-details-button:hover {
  background: #744c29;

  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(139, 94, 52, 0.2);
}

/* =========================================================
   КНОПКА "ПРОЙТИ ЕЩЁ РАЗ"
   ========================================================= */

.rubtsov-quiz-restart {
  min-width: 220px;

  padding: 14px 24px;

  border: 1px solid #d8d0c4;
  border-radius: 10px;

  background: #f8f5ef;
  color: #5e554b;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.rubtsov-quiz-restart:hover {
  background: #ebe4d8;

  border-color: #b9aa96;

  transform: translateY(-2px);
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {
  .rubtsov-quiz-review-item {
    padding: 20px 20px 20px 23px;
  }

  .rubtsov-quiz-review-question {
    font-size: 17px;
  }

  .rubtsov-quiz-review-answer strong {
    font-size: 15px;
  }

  .rubtsov-quiz-details > h3 {
    font-size: 23px;
  }
}

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ ВОПРОСА
   ========================================================= */

.rubtsov-quiz-header {
  margin-bottom: 20px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.rubtsov-quiz-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: #756b5e;
  font-size: 14px;
  font-weight: 600;
}

.rubtsov-quiz-progress-info strong {
  color: #2b2722;
  font-size: 16px;
}

/* Таймер */

.rubtsov-quiz-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  padding: 7px 12px;
  background: #f1eee8;
  border: 1px solid #ddd6ca;
  border-radius: 8px;
  color: #5f574e;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Полоса прогресса */

.rubtsov-quiz-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #eee9e1;
  border-radius: 10px;
}

.rubtsov-quiz-progress-bar {
  height: 100%;
  background: #8b5e34;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* =========================================================
   ФОН САЙТА — СТАРАЯ МУЗЕЙНАЯ БУМАГА
   ========================================================= */

body {
  position: relative;
  background: radial-gradient(
    ellipse at center,
    rgba(244, 239, 226, 0.95) 0%,
    rgba(220, 211, 192, 0.95) 65%,
    rgba(155, 139, 115, 0.9) 100%
  );
}

/* Старая бумага по краям страницы */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: 9999;

  background:
    /* затемнение краёв */ radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(91, 78, 61, 0.08) 72%,
    rgba(69, 56, 42, 0.18) 88%,
    rgba(48, 38, 28, 0.28) 100%
  );

  mix-blend-mode: multiply;
}

/* Дополнительная фактура бумаги */

body::after {
  content: "";
  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: 9998;

  opacity: 0.18;

  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(90, 70, 45, 0.18) 0,
      transparent 2px
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(110, 90, 60, 0.14) 0,
      transparent 2px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(80, 60, 40, 0.12) 0,
      transparent 2px
    );

  background-size:
    90px 90px,
    130px 130px,
    170px 170px;

  mix-blend-mode: multiply;
}

.museum-child-subsection-full {
  flex-basis: 100%;
}

/* =========================================================
   ИЗОБРАЖЕНИЕ ВОПРОСА КВИЗА
   ========================================================= */

.rubtsov-quiz-question-image {
  width: 100%;
  margin: 0 0 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
  border-radius: 14px;
  background: #f1eee8;
  border: 1px solid #d8d0c4;
}

.rubtsov-quiz-question-image img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  max-height: 420px;

  object-fit: contain;
}

/* Кнопки скачивания файлов мероприятий */
.museum-event-files {
  margin-top: 25px;
}

.museum-event-files-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 18px;
}

.museum-event-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.museum-event-file-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;

  padding: 10px 16px;

  background: linear-gradient(135deg, #8b877d 0%, #817c70 45%, #726d61 100%);

  color: #f4f0df !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.12);

  border-radius: 8px;
  text-decoration: none !important;

  font-size: 16px;
  font-weight: 500;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.museum-event-file-download:hover {
  background: linear-gradient(135deg, #989286 0%, #898376 45%, #797366 100%);

  color: #ffffff !important;

  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

.museum-event-file-download:active {
  transform: translateY(0);
}

/* Кнопка «Подробнее» у мероприятия */
.museum-event-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  padding: 11px 20px;

  background: linear-gradient(135deg, #aaa394 0%, #9a9180 45%, #887f6e 100%);

  color: #fffdf4 !important;

  border: 1px solid rgba(91, 82, 67, 0.45);
  border-radius: 8px;

  text-decoration: none !important;

  font-size: 16px;
  font-weight: 600;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(70, 62, 50, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.12);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.museum-event-details-button:hover {
  background: linear-gradient(135deg, #b8af9f 0%, #a59c8b 45%, #918675 100%);

  color: #ffffff !important;

  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 5px rgba(70, 62, 50, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.16);
}

.museum-event-details-button:active {
  transform: translateY(0);
}

/* Статус актуальности мероприятия */
.museum-event-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;

  margin-top: 10px;
  margin-bottom: 8px;

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;

  text-transform: uppercase;
}

/* Точка статуса */
.museum-event-status-dot {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  display: inline-block;

  animation: museum-status-blink 1.8s ease-in-out infinite;
}

/* Актуально */
.museum-event-status-actual {
  color: #315b37;

  background: rgba(116, 160, 118, 0.18);

  border: 1px solid rgba(70, 120, 76, 0.35);
}

.museum-event-status-actual .museum-event-status-dot {
  background: #4f9b59;

  box-shadow:
    0 0 6px rgba(79, 155, 89, 0.65),
    0 0 12px rgba(79, 155, 89, 0.35);
}

/* Неактуально */
.museum-event-status-not-actual {
  color: #7a3b35;

  background: rgba(180, 105, 95, 0.16);

  border: 1px solid rgba(150, 70, 60, 0.35);
}

.museum-event-status-not-actual .museum-event-status-dot {
  background: #c6534c;

  box-shadow:
    0 0 6px rgba(198, 83, 76, 0.7),
    0 0 12px rgba(198, 83, 76, 0.35);
}

/* Плавное мигание */
@keyframes museum-status-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.site-logo,
.site-title {
  color: inherit;
  text-decoration: none;
}

.site-logo:hover,
.site-title:hover {
  color: inherit;
  text-decoration: none;
}

/* Логотип в шапке */

.site-header {
  position: relative;
}

.museum-header-logo {
  display: flex;
  align-items: center;
}

.museum-header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.museum-header-logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 140px;
  object-fit: contain;
}

/* Слева */
.museum-header-logo-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* По центру */
.museum-header-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Справа */
.museum-header-logo-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.museum-header-transparent {
  background: transparent !important;
}

.museum-header-transparent .site-header {
  background: transparent !important;
}
