@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  --brand-blue: #235098;
  --brand-dark: #0b182e;
  --brand-accent: #fa4d00;
  --brand-accent-glow: rgba(250, 77, 0, 0.4);
  --glass-bg: rgba(23, 58, 115, 0.35);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at 50% 0%, var(--brand-blue) 0%, var(--brand-dark) 80%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* ОБЩИЙ КОНТЕЙНЕР CMS */
.header-inner, .container, .footer-inner {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px;
}

/* ТИПОГРАФИКА */
.content h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; margin-bottom: 15px; margin-top: 0; line-height: 1.1; }
.content h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 15px; margin-top: 35px; color: #fff; }
.content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; margin-top: 25px; color: #fff; }
.content p { font-size: 16px; margin-bottom: 15px; color: var(--text-muted); }
.content strong, .content b { color: #fff; }

/* СПИСКИ */
.content ul, .content ol { padding-left: 20px; margin-bottom: 20px; margin-top: 10px; }
.content ul { list-style-type: none; }
.content ul li { position: relative; margin-bottom: 10px; padding-left: 15px; color: var(--text-muted); font-size: 16px; }
.content ul li::before {
  content: ''; position: absolute; left: -10px; top: 10px; width: 6px; height: 6px;
  background: var(--brand-accent); border-radius: 50%; box-shadow: 0 0 8px var(--brand-accent);
}
.content ol li { color: var(--text-muted); font-size: 16px; margin-bottom: 10px; }
.content ol li::marker { color: var(--brand-accent); font-weight: 800; }

/* ТАБЛИЦЫ */
.content table {
  border-collapse: collapse; background: var(--glass-bg); backdrop-filter: blur(10px);
  border-radius: 16px; overflow: hidden; width: 100%; border: 1px solid var(--glass-border);
  margin-bottom: 25px; margin-top: 15px;
}
.content th, .content td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-main); text-align: left; font-size: 16px; }
.content tr:nth-child(even) { background: rgba(0, 0, 0, 0.15); }
.content tr:hover td { background: rgba(250, 77, 0, 0.05); }

/* ЦЕНТРИРОВАНИЕ КАРТИНОК */
.content img.general-image,
.content img {
  display: block;
  margin: 30px auto; 
  max-width: 100%; 
  height: auto;
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
}

/* ГЛОБАЛЬНЫЕ КНОПКИ */
.button, .button-block-btn {
  border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1); padding: 10px 24px; cursor: pointer; color: #fff;
  text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; background: linear-gradient(135deg, #ff6b00, var(--brand-accent));
  box-shadow: 0 4px 15px var(--brand-accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.button:hover, .button-block-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px var(--brand-accent-glow);
}

/* HEADER CMS */
header {
  background: rgba(11, 24, 46, 0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100;
}
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; width: auto; display: block; }
.header-actions { display: flex; gap: 12px; }
.header-actions .button:last-child { background: rgba(255, 255, 255, 0.05); box-shadow: none; border: 1px solid var(--glass-border); }
.header-actions .button:last-child:hover { background: rgba(255, 255, 255, 0.1); }

/* 1. ГЛАВНЫЙ БАННЕР (HERO) */
.hero {
  border-radius: 20px; padding: 60px 50px; min-height: 420px; margin: 15px 0;
  display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #0b182e 10%, transparent 80%), url(/uploads/img/mostbet-cz-banner.jpg) center/cover;
  border: 1px solid var(--glass-border); box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 100% 50%, var(--brand-accent-glow) 0%, transparent 60%); pointer-events: none; }
.hero-content { flex: 1; max-width: 65%; position: relative; z-index: 2; }
.hero-title { font-size: clamp(32px, 5vw, 44px); font-weight: 900; margin-bottom: 15px; line-height: 1.1; color: #fff; }
.hero-content p { font-size: 18px; color: #cbd5e1; margin-bottom: 25px; }
.hero-cta-wrapper { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-btn { padding: 16px 40px !important; border-radius: 14px; animation: neon-pulse 2.5s infinite alternate; }

@keyframes neon-pulse {
  0% { box-shadow: 0 0 10px var(--brand-accent-glow); }
  100% { box-shadow: 0 0 20px var(--brand-accent-glow), 0 0 40px rgba(250,77,0,0.6); }
}

/* 2. ПАНЕЛЬ UX (ЭМОДЗИ) */
.trust-bar { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; margin-bottom: 25px; }
.trust-item {
  flex: 1; min-width: 200px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; 
  text-align: center; gap: 10px; backdrop-filter: blur(10px); transition: all 0.3s ease; cursor: pointer;
}
.trust-item:hover { background: rgba(250, 77, 0, 0.15); transform: translateY(-4px); border-color: rgba(250, 77, 0, 0.4); }
.trust-emoji { font-size: 30px; line-height: 1; }
.trust-item span { font-weight: 700; font-size: 15px; color: #fff; }

/* 3. КАРТОЧКИ РЕГИСТРАЦИИ */
.registration-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 25px 0; }
.reg-card { background: var(--glass-bg); border-radius: 16px; padding: 25px 20px; border: 1px solid var(--glass-border); transition: all 0.3s ease; text-align: center; }
.reg-card:hover { transform: translateY(-6px); border-color: rgba(250, 77, 0, 0.3); box-shadow: 0 12px 25px rgba(0,0,0,0.3); }
.reg-card .icon-wrapper { width: 44px; height: 44px; border-radius: 12px; background: rgba(250, 77, 0, 0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; border: 1px solid rgba(250, 77, 0, 0.2); }
.reg-card h3 { font-size: 17px; margin-bottom: 10px; color: #fff; }
.reg-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 0; }

/* 4. БАННЕР-ПРОМО */
.bonus-banner { background: linear-gradient(135deg, #fa4d00, #ff2a00); border-radius: 20px; padding: 50px 35px; text-align: center; position: relative; overflow: hidden; margin: 30px 0; }
.bonus-banner h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 15px; margin-top: 0; color: #ffffff; }
.bonus-banner p { color: rgba(255,255,255,0.95); font-size: 17px; max-width: 700px; margin: 0 auto 30px; }
.banner-btn { background: #fff !important; color: #fa4d00 !important; font-size: 15px; padding: 15px 35px; border-radius: 14px; box-shadow: none; }
.banner-btn:hover { background: #f8f9fa !important; transform: scale(1.05); box-shadow: none; }

/* 5. ПЛИТКИ БОНУСОВ (BENTO) */
.bonus-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.bento-card { background: rgba(23, 58, 115, 0.4); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; backdrop-filter: blur(12px); transition: all 0.3s; }
.bento-card:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.15); }
.bento-value { font-size: clamp(36px, 5vw, 50px); font-weight: 900; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; line-height: 1; }
.bento-card h3 { font-size: 20px; color: #fff; margin-bottom: 20px; margin-top: 0; }
.bento-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.bento-meta span { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 6px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; }
.bento-item-1, .bento-item-4 { grid-column: span 2; }
.bento-item-2, .bento-item-3 { grid-column: span 1; }
.VIP-card { background: linear-gradient(135deg, rgba(66, 140, 220, 0.3), rgba(23, 58, 115, 0.5)); border-color: rgba(66, 140, 220, 0.3); }

/* 6. ПЛИТКИ СПОРТА */
.sports-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 25px 0; }
.sport-card { background: rgba(11, 24, 46, 0.6); border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px 15px; text-align: center; transition: all 0.3s ease; }
.sport-card:hover { transform: translateY(-5px); border-color: var(--brand-accent); background: linear-gradient(180deg, rgba(250,77,0,0.1), transparent); }
.sport-svg { width: 44px; height: 44px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,0.05); transition: 0.3s; }
.sport-card:hover .sport-svg { background: var(--brand-accent); }
.sport-svg svg { stroke: #fff; width: 24px; height: 24px; }
.sport-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }

/* 7. ПЛИТКИ ПРИЛОЖЕНИЙ */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.app-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 25px; backdrop-filter: blur(10px); transition: all 0.3s ease; display: flex; flex-direction: column; }
.app-card:hover { transform: translateY(-5px); border-color: var(--brand-accent); }
.app-card-icon { font-size: 32px; margin-bottom: 15px; line-height: 1; }
.app-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; margin-top: 0; }

/* 8. ИСПРАВЛЕННЫЙ FAQ АККОРДЕОН */
.faq-container { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; position: relative; padding: 18px 20px; transition: all 0.3s; overflow: hidden; }
.faq-item:hover { background: rgba(23, 58, 115, 0.6); }
.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: 16px; font-weight: 600; margin: 0; padding-right: 40px; color: #fff; line-height: 1.4; }
.faq-item .icon { position: absolute; right: 20px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--brand-accent); border-bottom: 2px solid var(--brand-accent); transform: rotate(45deg); transition: transform 0.4s; }

/* Принудительно скрываем ответ и схлопываем высоту */
.faq-answer { max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; color: var(--text-muted); margin: 0; font-size: 15px; overflow: hidden; }
/* Раскрываем только при клике */
.faq-item input.toggle:checked ~ .faq-answer { max-height: 600px; opacity: 1; margin-top: 15px; overflow: visible; }
.faq-item input.toggle:checked ~ .icon { transform: rotate(-135deg); border-color: #fff; top: 26px; }

/* ЦИТАТЫ И БЛОКИ ВНИМАНИЯ */
.expert-note { background: linear-gradient(90deg, rgba(250,77,0,0.1), transparent); border-left: 4px solid var(--brand-accent); padding: 20px; border-radius: 0 16px 16px 0; margin-bottom: 25px; margin-top: 15px; }
.expert-note p { margin: 0; color: #fff; font-style: italic; font-size: 16px; }

/* ========================================================
   ИСПРАВЛЕННЫЙ FOOTER CMS (Учет шаблона {{> footer}})
   ======================================================== */
footer { background: rgba(11, 24, 46, 0.9); padding: 40px 0 25px; margin-top: 60px; border-top: 1px solid var(--glass-border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-left { display: flex; flex-direction: column; gap: 15px; }
.footer-socials, .footer-nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* Принудительно отменяем оранжевый цвет у кнопок внутри футера */
footer .button, footer .button-block-btn { 
  background: rgba(255,255,255,0.05) !important; 
  border: 1px solid rgba(255,255,255,0.1) !important; 
  box-shadow: none !important; 
  border-radius: 10px !important; 
  font-weight: 500 !important; 
  text-transform: none !important; 
  padding: 8px 20px !important; 
  margin: 0 !important;
  color: #fff !important;
}
footer .button:hover, footer .button-block-btn:hover { 
  background: rgba(255,255,255,0.15) !important; 
  border-color: rgba(255,255,255,0.2) !important; 
  transform: translateY(-2px);
}
.footer-socials .button { padding: 10px !important; display: flex; align-items: center; justify-content: center; }

.footer-brand { border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: 20px; font-size: 14px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-brand strong { color: #fff; }

/* АДАПТИВНОСТЬ */
@media (max-width: 900px) {
  .bonus-bento, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item-1, .bento-item-4 { grid-column: span 2; }
  .trust-item { min-width: 45%; }
}
@media (max-width: 768px) {
  .hero { padding: 40px 25px; text-align: center; justify-content: center; background-position: center; }
  .hero-content { max-width: 100%; }
  .hero-cta-wrapper { flex-direction: column; align-items: stretch; gap: 15px; }
  .registration-cards { grid-template-columns: repeat(2, 1fr); }
  .sports-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .bonus-bento, .app-grid { grid-template-columns: 1fr; }
  .bento-item-1, .bento-item-2, .bento-item-3, .bento-item-4 { grid-column: span 1; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .registration-cards { grid-template-columns: 1fr; }
  .trust-item { min-width: 100%; }
  .header-inner { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
}