:root {
    --color-black: #000000;
    --color-yellow: #fadb0a;
    --color-green: #52ac62;
    --color-white: #ffffff;
    --brand-blue: #007bff;

    --font-header: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-button: 'Segoe UI Semibold', Tahoma, Geneva, Verdana, sans-serif;
}

/* Общие стили */
body, footer {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-header);
    margin: 0;
    padding: 0;
    padding-top: 60px;
}


/* Верхняя панель */
.navbar .nav-link {
    color: var(--color-white);
    position: relative;
    transition: color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* Жёлтая линия при наведении */
.navbar .nav-link::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.form-text{
  color: #888;
}

/* Анимация из центра при hover */
.navbar .nav-link:hover::after {
    width: 80%;
}

/* Для активной страницы — полоса всегда */
.navbar .nav-link.active::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-logo {
    width: 250px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    padding-top: 0;
    padding-bottom: 0;
    animation: pulse 3s infinite;
}

@media (max-width: 576px) {
    .hero-logo {
        width: 100%;       /* логотип растянется по ширине контейнера */
        max-width: 200px;  /* но не больше 200px */
        padding: 0;        /* убираем паддинги */
        margin-bottom: 10px;
    }
}

/* Кнопки */
.btn {
    border-radius: 6px;
    font-family: var(--font-button);
    font-weight: 600;
    text-transform: none;
    padding: 10px 22px;
    cursor: pointer;
    border: none;
    color: var(--color-black);
    background-color: var(--color-yellow);
    transition: background-color 0.3s ease;
}

.btn:hover, .btn:focus {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* Счётчики */
.stats-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.stats-card {
    background-color: #161616;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    color: var(--color-white);
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease;
}

.stats-card:hover {
    background-color: #52ac62;
    color: var(--color-black);
}

.card{
  background-color: #161616;
  color: white;
  border: 0;
  border-radius: 20px;
  transition: all 0.2s linear;
  
}

#shop .card:hover{
    transform: translateY(-12px);
}

.card:hover {
  box-shadow: 0 4px 0px var(--color-yellow);
}

.stats-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--color-yellow);
}

.stats-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* Контейнер с фоном и отступами */
.col-lg-8.text-center {
    background-color: #323232; 
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 12px;
    margin: 20px auto;
    position: relative;
    color: var(--color-white);
    overflow: hidden;
    z-index: 0;
}


/* Слой с фоном и размытием */
.col-lg-8.text-center::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('/storage/img/img-1.png');
    background-size: cover;
    background-position: center;

    /* filter: blur(2px); */
    z-index: -2;
}

/* Слой для затемнения */
.col-lg-8.text-center::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5); /* степень затемнения */
    z-index: -1;
}



/* Чтобы текст внутри был поверх фона */
.col-lg-8.text-center > * {
    position: relative;
    z-index: 1;
}

/* Другие стандартные стили */

a {
    color: var(--color-yellow);
    text-decoration: none;
}

a:hover {
    color: var(--color-green);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--color-white);
    margin-bottom: 16px;
}

/* Картинки */
.about-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.about-image::before {
    content: '';
    position: absolute;
    bottom: -20px; /* можно подкорректировать */
    left: 50%;
    transform: translateX(-50%);
    width: 200%; /* ширина полукруга */
    height: 100%;
    background: white;
    border-radius: 50% 50% 0 0;
    z-index: -1;
}

/* Убираем отступы у контейнеров, чтобы body не прилипал к верхней панели */
.container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Пример базового контейнера */
.container, .row {
    max-width: 1140px;
    margin: 0 auto;
}

/* Нижний колонтитул */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 30px 0;
    text-align: left;
    font-size: 14px;
}

/* Скругления для кнопок */
.btn {
    border-radius: 8px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}


.fullscreen-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Фоновый слой */
.background-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: -1;
}


/* Когда страница загружена — показываем фон */
body.loaded .background-layer {
  opacity: 1;
}

.fullscreen-hero .overlay {
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.fullscreen-hero > .container {
  position: relative;
  z-index: 1;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.parallax-coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: visible;
}

.coin {
    position: absolute;
    width: 120px;
    transition: transform 0.1s linear;
    z-index: 20;
}

.welcome-title {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #fff;
  user-select: none;
  text-align: center;
  margin-bottom: 1rem;
  
  /* Flex-контейнер, который переносит элементы ТОЛЬКО когда не хватает места */
  display: inline-flex;
  flex-wrap: nowrap; /* сначала запрещаем перенос */
  justify-content: center;
  gap: 12px;
  align-items: center;
  line-height: 1.2;
  
  /* Адаптивный размер шрифта с более агрессивным уменьшением */
  font-size: clamp(1.8rem, 10vw, 3.8rem); /* изменённые значения для лучшего сжатия */
  
  /* Минимальная ширина, чтобы не ломать layout */
  min-width: 0; /* разрешаем сжатие */
}

.reign, .craft {
  /* Запрещаем сжатие внутри flex-контейнера */
  flex-shrink: 0;
  white-space: nowrap; /* запрещаем перенос текста внутри элементов */
  font-size: 1em;
  line-height: inherit;
}

.reign {
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
}

.craft {
  font-weight: 800;
  color: #000000;
  background: linear-gradient(90deg, #fadb0a 0%, #f9bc16 100%);
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Адаптивные стили срабатывают ТОЛЬКО когда совсем нет места */
@media (max-width: 500px) {
  .welcome-title {
    flex-wrap: wrap; /* разрешаем перенос только на очень узких экранах */
  }
}

@media (max-width: 400px) {
  .welcome-title {
    flex-direction: column; /* вертикальное расположение в крайнем случае */
    gap: 4px;
  }
  .craft {
    padding: 4px 10px; /* уменьшаем отступы */
  }
}

.wide-banner {
    width: 100%;
    overflow: hidden;
}

.wide-banner img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.kings-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
}

.king {
  position: relative;
  width: 180px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.king:hover {
  transform: scale(1.02);
}

.king-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 10px 60px;
  color: white;
  text-align: center;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.king:hover .king-info {
  opacity: 1;
}

.king-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.king-dates {
  font-size: 14px;
  opacity: 0.95;
}

.king-status {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #fadb0a;
}

.modal-footer del {
    color: #888 !important; /* мягкий серый */
}


.modal-content {
    transition: transform 0.25s ease;
}



/* Весь текст в модальном окне — чёрный */
.modal-content {
    color: #000 !important;
}

/* Старая цена (зачёркнутая) — серая */
.modal-content .old-price {
    color: #888 !important;
}

/* Цена со скидкой — чёрная */
.modal-content .discounted-price {
    color: #000 !important;
    font-weight: bold;
}

.modal-title {
    color: #000 !important;
}


del.small {
    color: rgb(120, 120, 120);
    text-decoration: line-through;
    font-size: 0.7em;
}

td a {
    color: black;       /* чёрный цвет текста */
    font-weight: bold;  /* жирный текст */
    text-decoration: none; /* убрать подчёркивание, если нужно */
}

.card-subtitle{
 font-size: 2em;
 color: var(--color-green);
}

.card-body .text-muted {
    color: white !important;
}

.editor-toolbar{
  background-color: white;
}

.CodeMirror-scroll{
  color: black;
}

.list-group-item:hover {
    color: var(--color-green); /* твой синий цвет при наведении */
}

.list-group-item.active {
    color: #000 !important; /* чёрный текст */
}

.accordion-body{
  background-color: #161616;
  color: white;

}

.nav-item.dropdown .dropdown-toggle::after{
  border: 0;
}

@media (max-width: 768px) {
    .dropdown {
        position: static !important; /* Меняем позиционирование для мобилок */
    }
    
    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 80vh;
        overflow-y: auto;
        transform: none !important;
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
    }
    
    /* Затемнение фона */
    .dropdown-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
    }
}

.card-footer .btn {
    border-radius: 0 0 20px 20px; /* скругления только снизу */
}

.instruction {
  font-size: 14px; /* уменьшенный общий шрифт */
}

.instruction strong{
  font-size: 20px;
  color:  var(--color-green);
}

.instruction ol {
  padding-left: 18px;
}

.instruction li {
  margin-bottom: 8px;
  text-align: justify; /* выравнивание по ширине */
  font-size: 15px;
}
