/* Базовые настройки и сброс стилей */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #235098;
  color: #ffffff;
  line-height: 1.5;
  min-height: 100vh;
}

/* Шапка (Header) */
header {
  background: #173a73;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотипы (резервируем высоту, контент вставит админка) */
.logo {
  height: 40px;
  display: flex;
  align-items: center;
}

/* Стили для картинки логотипа, которую сгенерирует движок */
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Универсальные кнопки */
.button {
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  padding: 10px 28px;
  cursor: pointer;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  background: linear-gradient(to top, #fa4d00, #fa5e00);
}

.button:hover {
  opacity: 0.9;
}

/* Вторая кнопка (синяя) в шапке */
.header-actions .button:last-child {
  background: linear-gradient(to top, #428cdc, #509aea 97%, #509aea 100%);
}

/* Центрирование контента в секциях */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* Отступы для элементов внутри секций */
.section > ul,
.section > ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.section > table,
.section > .pros-cons,
.section > .expert-note {
  margin-bottom: 30px;
  width: 100%;
}

.section .button {
  margin: 15px auto 0 auto;
  display: flex;
  width: fit-content;
}

/* Главный баннер (Hero) */
.hero {
  border-radius: 20px;
  padding: 50px 40px;
  margin-top: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #173a73 url(/uploads/img/mostbet-cz-banner.jpg);
  background-size: cover;
  background-position: center;
}

.hero-content {
  flex: 1;
  max-width: 55%;
  position: relative;
  z-index: 2;
}

/* Текст и кнопка внутри баннера */
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #ffffff;
}

.hero .button {
  margin: 0;
}

/* Типографика */
h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffffff;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

p {
  font-size: 16px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
}

/* Таблицы */
table {
  border-collapse: collapse;
  background: #173a73;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.2);
}

/* Плюсы и минусы */
.pros-cons {
  display: flex;
  gap: 30px;
}

.pros-cons > div {
  flex: 1;
  background: #173a73;
  padding: 30px;
  border-radius: 12px;
}

.pros-cons ul {
  padding-left: 20px;
}

/* Заметка эксперта */
.expert-note {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #fa4d00;
  padding: 20px;
  border-radius: 0 12px 12px 0;
}

.expert-note p {
  margin: 0;
}

/* FAQ Аккордеон */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #173a73;
  border-radius: 10px;
  position: relative;
  padding: 20px;
}

.faq-item input.toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.faq-question {
  font-size: 18px;
  margin: 0;
  padding-right: 30px;
}

.faq-item .icon {
  position: absolute;
  right: 20px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  margin-top: 15px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.faq-item input.toggle:checked ~ .faq-answer {
  display: block;
}

.faq-item input.toggle:checked ~ .icon {
  transform: rotate(-135deg);
}

/* Подвал (Footer) */
footer {
  background: #173a73;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-left .logo {
  height: 48px;
}

/* Стили для логотипа в футере */
.footer-left .logo img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-socials,
.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav .button,
.footer-socials .button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;
  text-transform: none;
  padding: 8px 20px;
  margin: 0;
}

.footer-socials .button {
  padding: 8px;
  border-radius: 8px;
}

.footer-nav .button:hover,
.footer-socials .button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  color: #ffffff;
}

/* Адаптив */
@media (max-width: 768px) {
  .hero {
    padding: 30px 20px;
    min-height: 350px;
    /* Накладываем синий полупрозрачный градиент поверх картинки для читаемости */
    background: linear-gradient(rgba(23, 58, 115, 0.7), rgba(23, 58, 115, 0.85)), url(/uploads/img/mostbet-cz-banner.jpg);
    background-size: cover;
    background-position: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .pros-cons {
    flex-direction: column;
  }
  
  .header-actions .button {
    padding: 10px 15px;
    font-size: 12px;
  }
  
  .footer-top {
    flex-direction: column;
  }
}