/* База */
* {
  box-sizing: border-box;
}

/* Высота на весь экран */
html,
body {
  height: 100%;
}

@font-face {
  font-family: 'Dangrek';
  src: url('/template/fonts/dangrek.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Sofia';
  src: url('/template/fonts/SofiaSans-Bold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/template/fonts/Nunito-Bold.ttf') format('truetype');
  font-display: swap;
}


html,
body {
  margin: 0;
  font-weight: 600;
  font-family: 'Dangrek', sans-serif;
  font-weight: 300;
  line-height: 1.2;
  color: #333;
  background: #eee;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #08418c;
}

a:hover {
  color: #2196f3;
}

/* Каркас: тело тянется по высоте, футер прижат вниз */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  /* для мобильных браузеров */
}

/* Общая ширина страницы */
main,
footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* Шапка (фиксированная, центрирована, max 1200) */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 65px;
  display: flex;
  align-items: center;
  background: #f8f8ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 1000;
}

#logo {
  border-right: 1px solid #d9dee4;
  width: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контент: main заполняет свободное место, article растягивается внутри */
main {
  padding-top: 65px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

article {
  background: #ffffee;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card {
  position: fixed;
  left: 0;
  right: 0;
  margin: 5px auto;

  width: min(100% - 10px, 1190px);
  box-sizing: border-box;

  min-height: 30px;
  background: #f9ef9c;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #6d6f71;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 2;
}

.two-blocks {
  flex: 1 1 auto;
  display: flex;
  width: 100%;
  min-height: 0;
}

.two-blocks .left {
  flex: 0 0 50%;
  background: #f3f3f3;
  min-width: 0;
}

.two-blocks .right {
  flex: 1 1 auto;
  background: #fafafa;
  min-width: 0;
  padding-top: 70px;
}

h1 {
  font-size: 20px;
  font-weight: 500;
  color: #1976d2;
  margin: 0;
}

/* Кнопка-«гамбургер» и меню (видно и на десктопе) */
.hb-hamburger {
  display: flex;
  position: absolute;
  right: 5px;
  padding: 10px;
  font-size: 33px;
  color: transparent;
  text-shadow: 0 2px 3px rgba(255, 255, 255, .5);
  -webkit-background-clip: text;
  background-clip: text;
}

.hb-title {
  font-size: 9px;
  color: #1976d2;
  font-weight: 500;
  margin-top: 7px;
  letter-spacing: 1px;
}

.hb-list {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 10px 0 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transform: translateY(-500px);
  z-index: 1100;
}

.hb-openList {
  transform: translateY(0);
  transition: transform .2s ease-in;
}

.hb-closeList {
  transform: translateY(-500px);
  transition: transform .2s ease-in;
}

.hb-button {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  color: #5c6bc0;
  font-size: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 0 10px 10px 0;
  margin: 10px;
  width: calc(100% - 20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hb-button img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* Футер (max 1200) */
footer {
  display: flex;
  gap: 20px;
  border-top: 1px solid #ffc400;
  background: #fdfbc7;
  min-height: 120px;
  font-size: .7rem;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.ft-text {
  margin: 25px;
  font-size: .6rem;
  flex: 1;
}


/* Левая группа иконок */
.left-icons {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 16px;
}

/* Пара "иконка + число" — один универсальный стиль */
.toolbar_icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar_icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.toolbar_icon span {
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
}

.toolbar_icon .gold {
  color: #d4af37;
}

.toolbar_icon .blue {
  color: #64b5f6;
}


.settings_icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  display: block;
  margin-right: 16px;
}


.quiz-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
  gap: 8px;
  overflow-y: auto;
  /* Прокрутка внутри quiz-list */
  height: calc(100vh - 185px);
  /* Высота с учётом header (65px) и footer (120px) */
  max-height: calc(100vh - 185px);
  /* Ограничиваем высоту */
}

.two-blocks .left {
  flex: 0 0 50%;
  background: #f3f3f3;
  min-width: 0;
  padding: 10px 0;
  margin-bottom: 120px;
  overflow: hidden;
  /* Убираем прокрутку из .left, она теперь в .quiz-list */
}

/* Элемент списка: кнопка + соединитель */
.quiz-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-item:first-child {
  margin-top: 150px;
}

.quiz-item:last-child {
  margin-bottom: 100px;
}

/* Кнопка: картинка 100x100 + номер по центру */
.quiz-button {
  position: relative;
  width: 100px;
  height: 100px;
}

.quiz-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.quiz-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  pointer-events: none;
}

/* Соединитель из трёх кружков 15x15 между элементами */
.quiz-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* расстояние между кружками */
  padding: 6px 0;
  /* расстояние между кнопками */
}

.quiz-connector .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #b0bec5;
  /* поменяй цвет при желании */
}



/* Правая колонка — свободная область (меняй при необходимости) */
.two-blocks .right {
  flex: 1 1 auto;
  background: #ffffee;
  min-width: 0;
}



.btn-emerald {
  --g1: #16a34a;
  /* emerald-600 */
  --g2: #22c55e;
  /* emerald-500 */
  --g3: #86efac;
  /* emerald-200 */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 26px;
  text-decoration: none;

  font-family: 'Nunito';
  letter-spacing: .02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g2), var(--g1));
  background-size: 300% 100%;
  animation: emerald-shimmer 3s linear infinite;

}

.btn-emerald:any-link {
  color: #fff;
  text-decoration: none;
}

@keyframes emerald-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.btn-emerald:hover {
  filter: brightness(1.06);
}

.btn-emerald:active {
  transform: scale(.98);
}

.btn-emerald:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-track {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Равномерно распределяет элементы */
  gap: 12px; /* Минимальный отступ между элементами */
  flex: 1; /* Позволяет треку растягиваться на всю доступную ширину */
  min-width: 0; /* Предотвращает переполнение */
}

.reward-track .keys-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3vw, 20px); /* Адаптивное расстояние между ключами */
  flex: 1; /* Позволяет контейнеру ключей растягиваться */
}

.reward-track .key {
  width: 32px;
  height: auto;
  display: block;
  flex-shrink: 0; /* Предотвращает сжатие ключей */
}

.reward-track .chest {
  width: 52px;
  height: auto;
  display: block;
  margin-left: clamp(16px, 4vw, 32px); /* Адаптивный отступ сундука от ключей */
  flex-shrink: 0; /* Предотвращает сжатие сундука */
}



.left-info {
  margin-top: 6px;
  margin-left: 18px;
  text-align: center;
  min-height: 45px;
  background: #ddeeff;
  padding: 8px 8px 4px 8px;
  color: #6d6f71;
  border-radius: 25px 0px 0px 25px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.left-info p {
  font-family: 'Nunito', sans-serif;
  display: block;
  padding: 0px;
  margin: 0px;
  font-size: 11px;
}

.left-info span {
  font-size: 20px;
  font-family: 'Dangrek', sans-serif;
  display: block;
  font-weight: 900;
}


/* === RIGHT: меньше промежутки + фиксированная ширина кнопок === */
.right-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;            /* было больше — сделал меньше; можно 6px */
  padding-right: 12px;
}

.right-actions .nav-tile {
  display: inline-flex;
  flex-direction: column;   /* картинка сверху, текст снизу */
  align-items: center;
  gap: 2px;

  width: 64px;              /* стандартная ширина */
  min-width: 64px;
  max-width: 64px;

  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
}

.right-actions .nav-tile img {
  width: 27px;
  height: 27px;
  display: block;
}

.right-actions .nav-tile span {
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;       /* ширина не зависит от текста */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === LEFT: coin/crystal — картинка сверху, текст снизу (оставляю для ясности) === */
.left-icons .toolbar_icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.left-icons .toolbar_icon span {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}


/* === LANDING: прокрутка контента между fixed header (65px) и fixed footer (120px) === */
.page-scroll{
  position: relative;
  overflow-y: auto;
  height: calc(100vh - 65px - 120px);
  height: calc(100dvh - 65px - 120px);
  padding: 16px 10px 140px; /* запас снизу, чтобы текст не упирался под футер */
  scroll-behavior: smooth;
}

/* Контейнер лендинга — вписывается в твою сетку 1200px */
.landing-words{
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  background: transparent; /* article уже #ffffee */
}

/* Герой-блок (НЕ тег <header>, чтобы не словить твой глобальный header{}) */
.landing-words .hero{
  margin: 0;
}
.landing-words .hero h1{
  font-family: 'Sofia','Dangrek',sans-serif;
  font-size: 28px;
  color: #1976d2;
  margin: 8px 0 12px;
}
.landing-words .lead{
  font-family: 'Nunito',sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px;
}

/* Заголовки секций/текст под твои шрифты */
.landing-words h2{
  font-family: 'Sofia','Dangrek',sans-serif;
  font-size: 22px;
  color: #1976d2;
  margin: 20px 0 10px;
}
.landing-words p,
.landing-words li{
  font-family: 'Nunito',sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.landing-words ul,
.landing-words ol{
  padding-left: 18px;
  margin: 8px 0 14px;
}
.landing-words .note{opacity:.9}

/* FAQ */
.landing-words details{
  background:#f8f8ff;
  border:1px solid #d9dee4;
  border-radius:8px;
  padding:8px 10px;
  margin:6px 0;
}
.landing-words details summary{
  cursor:pointer;
  color:#1976d2;
  font-weight:600;
}
.landing-words .faq-answer{margin-top:8px}

/* Кнопки CTA: primary = твоя .btn-emerald; secondary — простая */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid #d1d5db;
  font-family:'Nunito',sans-serif;
  font-size:16px;
}
.btn-secondary{ background:#fff; color:#ff4900; }
.btn-group{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

/* Медиа внутри текста (на будущее) */
.landing-words img,
.landing-words video{
  max-width:100%;
  height:auto;
  display:block;
}

/* Адаптив */
@media (max-width:560px){
  .landing-words .hero h1{font-size:24px}
  .landing-words h2{font-size:20px}
  .page-scroll{padding:12px 8px 140px}
}

