/* ==========================================================================
   Rusia777 - Site-wide stylesheet
   Palette: red (brand), gold, green accent, dark ink, white
   ========================================================================== */

:root {
  --brand: #c8102e;
  --brand-dark: #9c0b23;
  --brand-deep: #74091a;
  --brand-soft: #fdecef;
  --gold: #f0b429;
  --gold-light: #ffd166;
  --gold-deep: #b8860b;
  --green: #1e8e5a;
  --green-soft: #e8f7f0;
  --blue: #1f6feb;
  --blue-soft: #e9f1fe;
  --ink: #14161f;
  --ink-2: #1b1f2b;
  --ink-3: #232939;
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #ffffff;
  --paper-2: #f6f7fb;
  --paper-3: #eef0f6;
  --text: #262c3a;
  --muted: #5b6472;
  --muted-2: #8a92a1;
  --line: #e3e6ee;
  --shadow: 0 10px 30px rgba(16, 20, 34, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 20, 34, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 66px;
  --float-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: calc(var(--float-h) + 16px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: #10131c; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold);
  color: #14161f; padding: 8px 16px; font-weight: 700; z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 0.95rem; cursor: pointer;
  text-decoration: none !important; line-height: 1.2; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(200, 16, 46, 0.45); }
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #241a04; box-shadow: 0 6px 18px rgba(240, 180, 41, 0.4); }
.btn--gold:hover { box-shadow: 0 8px 22px rgba(240, 180, 41, 0.5); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(180deg, #171a24, #10121a);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__name { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.4px; line-height: 1; }
.brand__name em { font-style: normal; color: var(--gold-light); }
.brand__tag { display: block; font-size: 0.62rem; font-weight: 600; color: #aab3c5; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 3px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; color: #d6dbe8; font-weight: 700; font-size: 0.92rem;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-light); background: rgba(240, 180, 41, 0.12); }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 18px; }
.search-btn {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.search-btn:hover { background: rgba(255, 255, 255, 0.16); }
.menu-toggle {
  display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 11px 0;
  font-size: 0.83rem; color: var(--muted);
}
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--muted-2); }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 700; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(200, 16, 46, 0.4), transparent 60%), linear-gradient(180deg, #171a24 0%, #101321 100%); color: #e8ecf5; padding: 64px 0 70px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(240, 180, 41, 0.14); border: 1px solid rgba(240, 180, 41, 0.45);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
}
.hero__title { color: #fff; font-size: 2.65rem; margin: 18px 0 14px; letter-spacing: -0.5px; }
.hero__title .hl { color: var(--gold-light); }
.hero__title .hl-red { color: #ff5d75; }
.hero__sub { font-size: 1.06rem; color: #b9c1d2; max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d6dbe8; font-size: 0.8rem; font-weight: 700;
}
.chip--light { background: #fff; border-color: var(--line); color: var(--text); }
.chip--gold { background: rgba(240, 180, 41, 0.16); border-color: rgba(240, 180, 41, 0.5); color: #8a5f04; }
.chip--green { background: var(--green-soft); border-color: #bfe6d4; color: #12603c; }
.chip--red { background: var(--brand-soft); border-color: #f3c2cc; color: var(--brand-dark); }
.hero__media { position: relative; }
.hero__media img {
  border-radius: 18px; border: 3px solid rgba(240, 180, 41, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.hero__float {
  position: absolute; left: -14px; bottom: -18px; background: #fff; color: var(--text);
  border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; max-width: 280px;
}
.hero__float strong { display: block; font-size: 0.95rem; }
.hero__float small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; display: block; }
.badge18 {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 32% 30%, #ff5d75, var(--brand) 65%);
  color: #fff; font-weight: 900; font-size: 0.95rem; border: 3px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.45);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { background: radial-gradient(900px 380px at 90% -20%, rgba(200, 16, 46, 0.35), transparent 60%), linear-gradient(180deg, #171a24, #11141f); color: #dfe4ef; padding: 46px 0 50px; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.page-hero__title { color: #fff; font-size: 2rem; margin: 12px 0 10px; }
.page-hero__lead { color: #b9c1d2; font-size: 1rem; max-width: 58ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.page-hero__media img {
  border-radius: 14px; border: 2px solid rgba(240, 180, 41, 0.5); aspect-ratio: 16 / 10;
  object-fit: cover; width: 100%; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.page-hero--slim { padding: 36px 0 40px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 58px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: linear-gradient(180deg, #171a24, #101321); color: #d6dbe8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-block; color: var(--brand-dark); background: var(--brand-soft);
  font-size: 0.76rem; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.section--dark .kicker { color: var(--gold-light); background: rgba(240, 180, 41, 0.14); }
.section-title { font-size: 1.75rem; letter-spacing: -0.3px; }
.section-sub { color: var(--muted); font-size: 0.98rem; margin: 8px 0 0; }
.section--dark .section-sub { color: #aab3c5; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.card--dark { background: var(--ink-3); border-color: var(--line-dark); }
.card--dark p { color: #aab3c5; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--gold { background: #fdf3dd; color: var(--gold-deep); }
.card__icon--green { background: var(--green-soft); color: var(--green); }
.card__icon--blue { background: var(--blue-soft); color: var(--blue); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 0.96rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  background: var(--green-soft); color: var(--green); border-radius: 50%;
  font-size: 0.78rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.section--dark .check-list li::before { background: rgba(30, 142, 90, 0.25); color: #6fe0a8; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 18px; position: relative; }
.step__num {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a04; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Promo cards
   -------------------------------------------------------------------------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.promo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card__tag {
  position: absolute; top: 12px; left: 12px; background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a04; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.promo-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-card__body h3 { margin: 0; font-size: 1.06rem; }
.promo-card__text { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.promo-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.promo-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.link-arrow { font-weight: 800; font-size: 0.9rem; color: var(--brand-dark); }
.link-arrow::after { content: "\2192"; margin-left: 6px; transition: margin-left 0.15s ease; }
.link-arrow:hover::after { margin-left: 10px; }

/* --------------------------------------------------------------------------
   Article layout
   -------------------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; padding: 46px 0 58px; }
.article-main { min-width: 0; }
.article-figure { margin: 0 0 22px; }
.article-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.article-figure figcaption { font-size: 0.8rem; color: var(--muted-2); margin-top: 8px; text-align: center; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.84rem; color: var(--muted); }
.article-body { font-size: 1.01rem; }
.article-body h2 { margin: 1.6em 0 0.6em; padding-bottom: 8px; border-bottom: 2px solid var(--brand-soft); font-size: 1.4rem; }
.article-body h3 { margin: 1.4em 0 0.5em; font-size: 1.12rem; }
.article-body ul { margin-bottom: 1.2em; }
.article-body table { width: 100%; }
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.side-box h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.side-box--dark { background: linear-gradient(180deg, #1b1f2b, #14161f); border-color: var(--line-dark); color: #c7cede; }
.side-box--dark h3 { color: #fff; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.side-box ul li:last-child { border-bottom: 0; }
.side-box ul a { color: var(--text); font-weight: 600; }
.side-box ul a:hover { color: var(--brand); }
.side-box--dark ul a { color: #d6dbe8; }
.side-box--dark ul li { border-color: var(--line-dark); }

.note {
  border-left: 4px solid var(--blue); background: var(--blue-soft); color: #1c3d74;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 0 0 1.3em; font-size: 0.93rem;
}
.note strong { color: inherit; }
.note--warn { border-left-color: var(--brand); background: var(--brand-soft); color: #6d0d1d; }
.note--gold { border-left-color: var(--gold); background: #fdf3dd; color: #6b4d05; }
.note--green { border-left-color: var(--green); background: var(--green-soft); color: #0f5c3a; }

.table-scroll { overflow-x: auto; margin: 0 0 1.3em; border-radius: var(--radius-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.terms { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.terms th, table.terms td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
table.terms th { background: var(--paper-2); width: 200px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
table.terms tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.glossary-item dt { font-weight: 900; color: var(--brand-dark); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.glossary-item dd { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Reader voice / reviews
   -------------------------------------------------------------------------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.quote-card__head { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}
.quote-card__avatar--gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #241a04; }
.quote-card__avatar--green { background: linear-gradient(135deg, #27a86c, #11633d); }
.quote-card__name { font-weight: 800; font-size: 0.95rem; }
.quote-card__loc { color: var(--muted-2); font-size: 0.78rem; }
.quote-card__q { margin: 0; font-size: 0.93rem; color: var(--text); flex: 1; }
.quote-card__a { margin: 0; font-size: 0.86rem; color: var(--muted); background: var(--paper-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.quote-card__a strong { color: var(--green); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 800; font-size: 0.98rem;
  position: relative; color: #10131c;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px dashed var(--line); }
.faq-item__a { padding: 16px 20px 18px; color: var(--muted); font-size: 0.93rem; }
.faq-item__a p { margin: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 7px; color: #1a1f2c; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"] {
  width: 100%; padding: 12px 15px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.96rem; font-family: var(--font); color: var(--text); background: #fbfcfe; transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 5px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.field-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, #14161f, #0d0f16); color: #b6bfd0; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 0.88rem; color: #97a0b3; margin-bottom: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-col h3 { color: #fff; font-size: 0.92rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b6bfd0; font-size: 0.9rem; font-weight: 600; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-legal {
  border-top: 1px solid var(--line-dark); padding: 20px 0; display: grid; gap: 10px;
  font-size: 0.8rem; color: #8b94a7;
}
.footer-legal strong { color: #c7cede; }
.footer-legal .row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 16px 0 22px; font-size: 0.78rem; color: #6f7889; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.mini18 {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 8px; background: rgba(200, 16, 46, 0.25); border: 1px solid rgba(255, 93, 117, 0.5);
  color: #ff9aab; font-weight: 900; font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Floating CTA (slot machine + coins, no close button)
   -------------------------------------------------------------------------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(13, 15, 22, 0.99));
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.45);
  padding: 10px 0;
}
.float-cta__inner { display: flex; align-items: center; gap: 16px; }
.float-cta__slot { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.reel {
  width: 28px; height: 36px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(180deg, #fdfdfd, #dcdfe8 88%, #c6cad6);
  border: 2px solid #454b5e; box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.reel__strip { display: flex; flex-direction: column; animation: reelspin 5.4s linear infinite; }
.reel__strip span { height: 32px; line-height: 32px; text-align: center; font-size: 17px; }
.reel--2 .reel__strip { animation-duration: 6.6s; animation-delay: -2.1s; }
.reel--3 .reel__strip { animation-duration: 7.2s; animation-delay: -4.4s; }
@keyframes reelspin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.coins { display: flex; flex: 0 0 auto; }
.coin {
  width: 17px; height: 17px; border-radius: 50%; margin-left: -5px;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #f0b429 58%, #a86f0a);
  border: 1.5px solid #8a5c06; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.coin:first-child { margin-left: 0; }
.float-cta__info { min-width: 0; }
.float-cta__info strong { display: block; color: #fff; font-size: 0.92rem; line-height: 1.2; }
.float-cta__info small { display: block; color: #97a0b3; font-size: 0.72rem; line-height: 1.3; }
.float-cta__actions { margin-left: auto; display: flex; gap: 10px; flex: 0 0 auto; }
.float-cta__actions .btn { padding: 10px 22px; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .reel__strip { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Search overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 250; background: rgba(10, 12, 18, 0.78);
  display: none; align-items: flex-start; justify-content: center; padding: 90px 18px 30px;
  backdrop-filter: blur(3px);
}
.search-overlay[data-open="true"] { display: flex; }
.search-panel {
  width: 100%; max-width: 640px; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.search-head svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.search-input {
  flex: 1; border: none; outline: none; font-size: 1.05rem; font-family: var(--font); color: var(--text); background: transparent; min-width: 0;
}
.search-close {
  border: none; background: var(--brand-soft); color: var(--brand-dark); width: 34px; height: 34px; border-radius: 9px;
  font-weight: 900; font-size: 1rem; cursor: pointer; flex: 0 0 auto;
}
.search-tags { padding: 14px 16px 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-tags .tag-btn {
  border: 1px solid var(--line); background: var(--paper-2); color: var(--text); font-size: 0.8rem; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; cursor: pointer; font-family: var(--font);
}
.search-tags .tag-btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.search-results { padding: 10px 12px 16px; max-height: 46vh; overflow-y: auto; }
.search-results a {
  display: block; padding: 11px 12px; border-radius: 10px; color: var(--text);
}
.search-results a:hover { background: var(--paper-2); text-decoration: none; }
.search-results a strong { display: block; font-size: 0.94rem; }
.search-results a small { color: var(--muted); font-size: 0.8rem; }
.search-results .no-result { padding: 14px 12px; color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #14161f; border-bottom: 2px solid var(--gold); margin-left: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 16px; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .header-inner { position: relative; }
  .header-cta .btn--ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner, .page-hero__grid, .split { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 56px; }
  .hero__title { font-size: 2.1rem; }
  .hero__media { max-width: 560px; }
  .article-layout { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --float-h: 66px; }
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { font-size: 0.55rem; letter-spacing: 1px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 8px 13px; font-size: 0.82rem; }
  .search-btn { width: 36px; height: 36px; }
  .menu-toggle { width: 38px; height: 38px; }
  .grid-3, .grid-2, .grid-4, .promo-grid, .glossary-grid, .steps { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.75rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__float { position: static; margin-top: 14px; max-width: none; }
  .section { padding: 42px 0; }
  .section-title { font-size: 1.4rem; }
  .page-hero__title { font-size: 1.55rem; }
  .float-cta__inner { gap: 10px; }
  .float-cta__info small { display: none; }
  .float-cta__slot .reel:nth-child(3), .float-cta__slot .coins { display: none; }
  .float-cta__actions .btn { padding: 10px 16px; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-card { padding: 22px 18px; }
  .crumbs { font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .float-cta__info { display: none; }
  .float-cta__actions { margin-left: auto; }
  .float-cta__actions .btn { padding: 10px 14px; }
}
