/* =====================================================
   es-luckygem.com — Estilos principales
   Paleta: gris-verde oscuro + naranja
   ===================================================== */

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:          #101d1e;
  --bg-alt:      #162829;
  --bg-card:     #1c3032;
  --bg-header:   #0b1516;
  --bg-footer:   #0b1516;
  --orange:      #f07926;
  --orange-h:    #ff9040;
  --border:      #f07926;
  --text:        #d6e2e4;
  --text-muted:  #7a9299;
  --text-head:   #ffffff;
  --link:        #f07926;
  --link-h:      #ff9040;
  --radius:      6px;
  --shadow:      0 2px 16px rgba(0,0,0,.45);
  --font:        'Segoe UI', Arial, Helvetica, sans-serif;
  --max-w:       1140px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
main { flex: 1; }

/* ── Ссылки / Links ──────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--link-h); text-decoration: underline; }

/* ── Кнопки / Buttons ───────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  text-align: center;
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1.3;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
}

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Хедер / Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 42px; width: auto; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  width: 100%;
  background: var(--bg-header);
  border-bottom: 2px solid rgba(240,121,38,.25);
}
.hero-inner {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 140% at 0% 50%, rgba(8, 6, 14, .88) 0%, rgba(8, 6, 14, .55) 38%, transparent 72%),
    linear-gradient(to right, rgba(8, 6, 14, .35) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 52px;
  box-sizing: border-box;
}
.hero-content h1 {
  max-width: 520px;
  margin: 0;
  font-size: 2.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-title-line {
  display: block;
}
.hero-content .btn { align-self: flex-start; }

/* ── Двухколоночный блок: баннер + текст ───────────── */
.col2-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 18px 0 26px;
}
.col2-banner-text .col-banner {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.col2-banner-text .col-banner a { display: inline-block; }
.col2-banner-text .col-banner img {
  display: block;
  width: auto;
  height: 400px;
  max-width: 100%;
  border-radius: var(--radius);
  border: 2px solid rgba(240,121,38,.35);
}
.col2-banner-text .col-text {
  flex: 0 0 50%;
  max-width: 50%;
}
.col2-banner-text .col-text p { margin-bottom: 0; }

@media (max-width: 680px) {
  .col2-banner-text { flex-direction: column; }
  .col2-banner-text .col-banner,
  .col2-banner-text .col-text { flex: none; max-width: 100%; }
}

/* ── Inline banners (inside content) ───────────────── */
.banner-inline {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(240,121,38,.35);
  transition: border-color .25s;
}
.banner-inline:hover { border-color: var(--orange); }
.banner-inline a { display: block; }
.banner-inline img { width: 100%; height: auto; display: block; }

/* ── Контент / Content ───────────────────────────────── */
.content-area { padding: 36px 0 52px; }
.content-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 20px;
  line-height: 1.3;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-head);
  margin: 20px 0 8px;
}
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.content-wrap ol,
.home-content ol {
  margin: 10px 0 18px 26px;
}
.content-wrap ol li,
.home-content ol li {
  list-style: decimal;
  margin-bottom: 7px;
  padding-left: 4px;
}
.home-content ul {
  margin: 10px 0 18px 26px;
}
.home-content ul li {
  list-style: disc;
  margin-bottom: 7px;
  padding-left: 4px;
}
.home-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.home-content p { margin-bottom: 14px; }
.home-content p:last-child { margin-bottom: 0; }

/* ── Таблицы / Tables ───────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(240,121,38,.4);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
thead tr { background: rgba(240,121,38,.18); }
thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-head);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
tbody tr { transition: background .15s; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
tbody tr:hover { background: rgba(240,121,38,.08); }
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { margin: 34px 0 0; }
.faq-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.faq-item {
  border: 1px solid rgba(240,121,38,.3);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-head);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item[open] > summary { border-bottom: 1px solid rgba(240,121,38,.25); color: var(--orange); }
.faq-answer { padding: 14px 18px; font-size: .93rem; line-height: 1.65; }
.faq-answer p { margin-bottom: 0; }

/* ── Футер / Footer ──────────────────────────────────── */
.site-footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border);
  padding: 40px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 14px;
}

/* Footer nav */
.footer-nav ul li { margin-bottom: 9px; }
.footer-nav a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); text-decoration: none; }

/* Social */
.social-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,121,38,.5);
  background: rgba(240,121,38,.1);
  color: var(--text) !important;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s, border-color .2s;
}
.social-link:hover { background: var(--orange); border-color: var(--orange); color: #fff !important; }

/* 18+ */
.disclaimer-18 { display: flex; align-items: flex-start; gap: 12px; }
.badge-18 {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  color: var(--orange);
}
.disclaimer-18 p { font-size: .82rem; color: var(--text-muted); line-height: 1.45; margin: 0; }
.disclaimer-18 a { color: var(--orange); }

/* Payment logos row */
.footer-payments {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
}
.payments-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.payments-list a { display: flex; align-items: center; opacity: .75; transition: opacity .2s; }
.payments-list a:hover { opacity: 1; }
.payments-list img { height: 30px; width: auto; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--orange); }

/* ── Адаптив / Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { min-height: 340px; }
  .hero-media img { min-height: 340px; }
  .hero-content { padding: 40px 28px; }
  .hero-content h1 { font-size: 1.65rem; max-width: 420px; }
  .hero-overlay {
    background:
      radial-gradient(ellipse 100% 160% at 0% 50%, rgba(8, 6, 14, .92) 0%, rgba(8, 6, 14, .6) 42%, transparent 78%),
      linear-gradient(to right, rgba(8, 6, 14, .4) 0%, transparent 60%);
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  h2 { font-size: 1.15rem; }
  .hero-inner { min-height: 280px; }
  .hero-media img { min-height: 280px; object-position: center 30%; }
  .hero-content { padding: 28px 20px; }
  .hero-content h1 { font-size: 1.35rem; max-width: 100%; }
  .hero-overlay {
    background:
      radial-gradient(ellipse 120% 180% at 0% 45%, rgba(8, 6, 14, .94) 0%, rgba(8, 6, 14, .7) 50%, transparent 85%);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-actions .btn { padding: 7px 13px; font-size: .82rem; }
}
