:root {
  --primary-color: #441313;
  --accent-color: #ff8f00;
  --bg-dark: #1c1800;
  --bg-mid: #2b2b2b;
  --text-light: #f5f5f5;
  --border-color: #5c5a02;
  --highlight: #f83370;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.hdr-main-wrapper {
  background-color: var(--bg-mid);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.hdr-top-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  background-color: #2e1d1d;
  padding: 12px;
  border: 1px solid var(--highlight);
  border-radius: 8px;
  margin-bottom: 15px;
}

.hdr-top-banner img {
  height: 34px;
}

.hdr-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.hdr-nav-menu a {
  margin-left: 20px;
  font-weight: 500;
}

.hdr-menu-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.hdr-logo-link img {
  height: 50px;
}

.main-landing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-intro {
  position: relative;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  padding: 80px 20px 80px 60px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 1100px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  /* Ширина картинки — 35% від ширини секції */
  height: 100%;
  /* Повна висота секції */
  background-image: url('images/back.jpg');
  background-size: cover;
  /* Розтягнути на всю площу */
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.15;
  pointer-events: none;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 60%;
  /* Ліміт тексту, щоб не заходив на картинку */
}

.section-summary {
  font-size: 1.3rem;
  max-width: 60%;
  /* Так само, щоб текст не заважав */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.intro-media-block {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-bookmakers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  /* flex-direction: row; - по умолчанию, можно не писать */
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.bk-entry {
  background-color: var(--bg-mid);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bk-score {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}

.bk-offer {
  background-color: #292000;
  padding: 14px;
  border-radius: 8px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1rem;
}

.cta-box {
  margin-top: 12px;
  background-color: var(--primary-color);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-box a {
  background-color: var(--highlight);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.cta-box a:hover {
  background-color: #c02050;
}
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 50px 20px 30px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  border-top: 3px solid var(--accent-color);
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.footer-main p {
  margin: 0 auto 30px;
  max-width: 800px;
  padding: 0 10px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  background-color: rgba(92, 90, 2, 0.1);
  border-left: 4px solid var(--accent-color);
  border-right: 4px solid var(--accent-color);
  padding-left: 16px;
  border-radius: 6px;
  text-align: left;
  box-shadow: inset 0 0 10px rgba(255, 143, 0, 0.05);
}

.footer-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}

.footer-logos a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logos a img {
  width: 160px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(100%) contrast(1.1);
}

.footer-logos a:hover img {
  transform: scale(1.1);
  filter: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 10px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-bottom nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-bottom nav a:hover,
.hdr-nav-menu a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

.footer-bottom span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Контейнер списку букмекерів */
.section-bookmakers-list {
  max-width: 900px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Окрема картка - по 48% ширини, щоб два в ряд */
.bookmaker-card {
  width: 48%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #5c5a02 0%, #441313 100%);
  color: #f5f5f5;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 6px 12px rgba(68, 19, 19, 0.5);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bookmaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(248, 143, 0, 0.7);
  border-color: var(--accent-color);
  /* підсвічуємо бордер при наведенні */
}

/* Логотип букмекера: плавне збільшення на ховер */
.operator-logo {
  text-align: center;
}

.operator-logo img {
  max-width: 140px;
  height: auto;
  transition: transform 0.35s ease;
}

.bookmaker-card:hover .operator-logo img {
  transform: scale(1.12) rotate(2deg);
}

/* Текст бонусу */
.bonus-description {
  font-weight: 600;
  color: var(--accent-color);
  text-shadow: 0 0 6px var(--highlight);
  margin-bottom: 24px;
  font-size: 1rem;
  text-align: center;
}

/* Прогрес-бари прибираємо або робимо менш помітними */
.stats-bar {
  display: none; /* Мінімізуємо візуальне навантаження */
}

/* Кнопка з анімацією блиску */
.cta a.btn-primary {
  display: block;
  margin: 0 auto;
  position: relative;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--bg-dark);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.8);
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 230px;
  text-align: center;
}

.cta a.btn-primary:hover {
  background-color: var(--highlight);
  color: var(--text-light);
}

.cta a.btn-primary img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cta a.btn-primary:hover img {
  transform: translateX(6px);
}

.cta a.btn-primary .shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
  pointer-events: none;
  border-radius: 8px;
}

@keyframes shine {
  0% {
    left: -40%;
  }
  100% {
    left: 140%;
  }
}

/* Рейтинг та ранг по центру зверху */
.rank-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  user-select: none;
}

.rank {
  font-size: 2.8rem;
  line-height: 1;
  color: #fff;
}

.score span {
  font-size: 1.6rem;
}

.score img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

.bookmaker-card:hover .score img {
  filter: none;
}

/* Для адаптиву - на мобільних робимо 1 в рядок */
@media (max-width: 720px) {
  .bookmaker-card {
    flex: 0 1 100%;
  }
}

/* Основний контейнер */
.page-terms {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 60px 20px;
  min-height: 100vh;
}

/* Внутрішній wrapper */
.terms-container {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* Заголовок сторінки */
.page-terms h1 {
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  color: #ffb400;
  margin-bottom: 48px;
  letter-spacing: 1.4px;
  text-shadow: 0 0 10px #ffb400aa;
}

.page-terms h1 span {
  font-weight: 400;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
  color: #ddd;
}

/* Блоки секцій */
.terms-block {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  align-items: flex-start;
  border-left: 4px solid #ffb400;
  padding-left: 20px;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

.terms-block:hover {
  background-color: #333333;
}

/* Іконки */
.terms-block img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  filter: drop-shadow(1px 1px 2px #000);
}

/* Тексти секції */
.terms-block h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffc107;
  margin-bottom: 12px;
  user-select: none;
}

.terms-block p {
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}

.terms-block a {
  color: #ffb400;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.terms-block a:hover,
.terms-block a:focus {
  color: #ffa000;
  outline: none;
}

/* Адаптив */
@media (max-width: 700px) {
  .terms-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .terms-block img {
    margin-bottom: 12px;
  }
}

/* conatact */

.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10000;
}

.contact-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Форма */
.contact-form {
  background: #222;
  padding: 30px 40px;
  border-radius: 15px;
  width: 400px;
  max-width: 90vw;
  box-shadow:
    0 8px 30px rgba(255, 143, 0, 0.8),
    inset 0 0 15px #ff8f00;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  transform: translateY(-40px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-overlay.active .contact-form {
  opacity: 1;
  transform: translateY(0);
}

.contact-form h2 {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: 1.8rem;
  color: #ff8f00;
  text-align: center;
  text-shadow: 0 0 8px #ff8f00;
}

.contact-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: #ff8f00;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
  line-height: 1;
}

.contact-close:hover {
  color: #ffa726;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffb74d;
  text-shadow: 0 0 3px #ff8f00;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #333;
  background: #2b2b2b;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff8f00;
  box-shadow: 0 0 12px 2px rgba(255, 143, 0, 0.6);
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(270deg, #ff8f00, #5c5a02, #ff8f00);
  background-size: 600% 600%;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow:
    0 4px 15px rgba(255, 143, 0, 0.7),
    inset 0 -2px 8px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  animation: gradientShift 10s ease infinite;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  pointer-events: none;
}

.contact-form button[type="submit"]:hover {
  box-shadow:
    0 6px 20px rgba(255, 143, 0, 0.9),
    inset 0 -4px 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.contact-form button[type="submit"]:hover::before {
  top: -60%;
  left: 100%;
  transition: all 0.7s ease;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* cookie */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  width: 90%;
  background: #2b2b2bcc;
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10000;
}

.cookie-consent.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  padding: 20px 25px;
}

.cookie-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.cookie-text {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #eee;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.btn-approve {
  background-color: #ff8f00;
  color: #1c1800;
  box-shadow: 0 4px 12px #ff8f0040;
}

.btn-approve:hover {
  background-color: #ffaa00;
  box-shadow: 0 6px 18px #ffaa0040;
}

.btn-decline {
  background-color: transparent;
  color: #ccc;
  border: 2px solid #ccc;
}

.btn-decline:hover {
  background-color: #444;
  border-color: #eee;
  color: #fff;
}

/* Мобільна адаптація */
@media (max-width: 480px) {
  .cookie-consent {
    max-width: 95%;
    bottom: 10px;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-actions button {
    width: 100%;
  }
}

/* age */

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.age-gate__confirm,
.age-gate__denied {
  background: #222;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: fadeInScale 0.5s ease forwards;
}

.age-gate__denied.hidden {
  display: none;
}

.age-gate img {
  width: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.age-gate p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.age-gate a {
  color: #ff8f00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.age-gate a:hover,
.age-gate a:focus {
  color: #ffaa00;
  outline: none;
}

.age-gate__buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.age-gate__buttons button {
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 140px;
}

.btn-confirm {
  background-color: #5c5a02;
  color: #fff;
  box-shadow: 0 4px 12px #5c5a0222;
}

.btn-confirm:hover,
.btn-confirm:focus {
  background-color: #ff8f00;
  box-shadow: 0 6px 18px #ff8f0044;
  outline: none;
}

.btn-deny {
  background-color: transparent;
  color: #ccc;
  border: 2px solid #ccc;
}

.btn-deny:hover,
.btn-deny:focus {
  background-color: #444;
  border-color: #eee;
  color: #fff;
  outline: none;
}

/* Анімація появи */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Адаптив */
@media (max-width: 480px) {
  .age-gate__buttons {
    flex-direction: column;
  }

  .age-gate__buttons button {
    min-width: 100%;
  }
}

