:root {
  --bg: #19161a;
  --head: #221f23;
  --panel: #272328;
  --panel-2: #302b31;
  --chip: #2a262b;
  --chip-line: #3c363d;
  --line: rgba(255, 255, 255, .08);
  --red: #e5262b;
  --red-2: #c81c21;
  --coral: #f2484d;
  --text: #ffffff;
  --muted: #a8a1a7;
  --green: #2fbf6b;
  --yellow: #ffc53d;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .5);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: 13.5px; line-height: 1.45;
  color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 10px; }

.ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 14px; font-style: normal; font-weight: 400; line-height: 1;
  user-select: none;
}
.ico--glyph { font-family: var(--font); font-weight: 600; font-size: 15px; }
.ico--mono { filter: grayscale(1) brightness(2.2); }

@media (min-width: 1024px) { .mobile-only { display: none !important; } }
@media (max-width: 1023px) { .desktop-only { display: none !important; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 4px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; white-space: nowrap; letter-spacing: .02em;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn--gray { background: #3b373c; color: #fff; }
.btn--gray:hover { background: #4a454b; }
.btn--red { background: var(--coral); color: #fff; }
.btn--red:hover { background: var(--red); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px var(--chip-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--coral); }
.btn--lg { height: 44px; padding: 0 24px; font-size: 14px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--head); box-shadow: 0 1px 0 var(--line); }
.header__top { display: flex; align-items: center; gap: 12px; height: 52px; }
.logo { display: flex; flex: none; align-items: center; }
.logo img { height: 34px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; background: var(--panel-2); font-size: 18px; }
.header__nav { display: flex; align-items: center; gap: 16px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; position: relative; padding: 6px 7px; font-size: 13px; color: #d9d4d8; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; font-weight: 600; }
.nav a.is-active::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--coral); }
.header__meta { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; }
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.lang__btn:hover { background: var(--panel-2); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 150px; padding: 6px; border-radius: 6px; background: var(--panel-2); box-shadow: var(--shadow); list-style: none; margin: 0; }
.lang__menu[hidden] { display: none; }
.lang__menu a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 4px; font-size: 12.5px; }
.lang__menu a:hover { background: rgba(255, 255, 255, .06); }
.clock { padding-left: 12px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; color: #e9e5e8; }
.flag { display: inline-block; flex: none; width: 20px; height: 14px; border-radius: 2px; }
.flag--br { background: radial-gradient(circle at 50% 50%, #002776 0 24%, transparent 25%), linear-gradient(135deg, transparent 30%, #ffdf00 30% 70%, transparent 70%) 50% 50% / 100% 100%, #009c3b; clip-path: inset(0 round 2px); }
.flag--en { background: linear-gradient(90deg, transparent 42%, #ce1124 42% 58%, transparent 58%), linear-gradient(0deg, transparent 38%, #ce1124 38% 62%, transparent 62%), #fff; }
.flag--es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }

.notice { background: var(--red-2); }
.notice[hidden] { display: none; }
.notice .container { display: flex; align-items: center; gap: 10px; min-height: 22px; font-size: 11px; }
.notice p { margin: 0; flex: 1; }
.notice button { font-size: 12px; padding: 0 4px; }

.top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 8px; }
.wins { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.win { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--radius); background: var(--panel); }
.win img { flex: none; width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.win__text { min-width: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.win__text strong { color: #fff; font-weight: 600; }
.win__amount { color: var(--yellow); font-weight: 600; }
.win__game { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.hero__track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.hero__slide { flex: 0 0 100%; display: block; }
.hero__slide img { width: 100%; height: auto; min-height: 150px; aspect-ratio: 1300 / 300; object-fit: cover; }
.hero__arrow {
  position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 44px; margin-top: -22px; background: rgba(20, 17, 21, .75); color: #fff; font-size: 18px;
  transition: background .2s;
}
.hero__arrow:hover { background: var(--red); }
.hero__arrow--prev { left: 0; border-radius: 0 4px 4px 0; }
.hero__arrow--next { right: 0; border-radius: 4px 0 0 4px; }
.hero__dots { position: absolute; left: 50%; bottom: 8px; z-index: 2; display: flex; gap: 6px; transform: translateX(-50%); }
.hero__dot { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.hero__dot.is-active { background: #fff; }

.filters { margin-top: 10px; background: var(--head); border-radius: var(--radius); }
.chips { display: flex; align-items: center; gap: 6px; padding: 9px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips + .chips { border-top: 1px solid var(--line); }
.chips--cats { justify-content: safe center; }
.chips--provs { justify-content: safe center; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: 16px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-line);
  font-size: 12px; color: #e5e0e4; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s;
}
.chip:hover { background: var(--panel-2); color: #fff; }
.chip.is-active { box-shadow: inset 0 0 0 1.5px var(--coral); background: rgba(242, 72, 77, .14); color: #fff; font-weight: 600; }
.chip--icon { width: 40px; padding: 0; justify-content: center; }
.search { display: none; padding: 0 10px 10px; }
.search.is-open { display: block; }
.search input { width: 100%; height: 38px; padding: 0 14px; border: 0; border-radius: 19px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-line); color: #fff; outline: none; }
.search input:focus { box-shadow: inset 0 0 0 1.5px var(--coral); }
.search input::placeholder { color: var(--muted); }

.games { margin-top: 10px; }
.games__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.games__title { margin: 0; font-size: 15px; font-weight: 600; }
.games__count { font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; list-style: none; margin: 0; padding: 0; }
.game { min-width: 0; }
.game[hidden] { display: none; }
.game__link { position: relative; display: block; overflow: hidden; border-radius: 5px; background: var(--panel); }
.game__link img { width: 100%; aspect-ratio: 400 / 228; object-fit: cover; transition: transform .35s; }
.game__badge { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 1px 7px; border-radius: 3px; background: var(--coral); font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.game__badge--hot { background: #ff8a00; }
.game__over {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; background: rgba(17, 14, 18, .78); opacity: 0; text-align: center; transition: opacity .25s;
}
.game__play { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); font-size: 16px; box-shadow: 0 0 0 5px rgba(242, 72, 77, .25); }
.game__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.game__prov { font-size: 10.5px; color: var(--muted); }
.game__link:hover img, .game__link:focus-visible img { transform: scale(1.06); }
.game__link:hover .game__over, .game__link:focus-visible .game__over { opacity: 1; }
.empty { display: none; padding: 40px 10px; text-align: center; color: var(--muted); }
.empty.is-visible { display: block; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.more[hidden] { display: none; }

.content {
  min-width: 0;
  margin: 26px 0 30px; padding: 32px 36px;
  border-radius: var(--radius-lg); background: var(--head); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 1.75; color: #ddd7dc;
  overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #fff; font-weight: 700; line-height: 1.3; }
.content h1 { font-size: 30px; margin: 0 0 18px; }
.content h2 { font-size: 23px; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--coral); }
.content h3 { font-size: 19px; margin: 28px 0 12px; color: var(--coral); }
.content h4 { font-size: 17px; margin: 22px 0 10px; }
.content h5, .content h6 { font-size: 15px; margin: 18px 0 8px; }
.content p { margin: 0 0 16px; }
.content a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #ff7a7e; }
.content strong, .content b { color: #fff; font-weight: 600; }
.content mark { padding: 0 4px; border-radius: 3px; background: var(--yellow); color: #19161a; }
.content small { font-size: 13px; color: var(--muted); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--coral); }
.content ol li::marker { color: var(--coral); font-weight: 700; }
.content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius-lg); }
.content figure { margin: 24px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--muted); }
.content table {
  width: 100%; margin: 24px 0;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--chip-line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); font-size: 14px; line-height: 1.5;
}
.content caption { padding: 0 0 10px; font-size: 13px; color: var(--muted); text-align: left; }
.content th { padding: 12px 14px; text-align: left; font-weight: 600; background: var(--red-2); color: #fff; }
.content td { padding: 11px 14px; border-top: 1px solid var(--chip-line); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.content tbody tr:hover { background: rgba(242, 72, 77, .08); }
.content blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); font-style: italic; }
.content blockquote p:last-child { margin-bottom: 0; }
.content hr { height: 1px; margin: 32px 0; border: 0; background: var(--chip-line); }
.content code { padding: 2px 6px; border-radius: 4px; background: var(--panel-2); font-size: .9em; }
.content pre { margin: 24px 0; padding: 16px; overflow-x: auto; border-radius: var(--radius); background: var(--bg); }
.content pre code { padding: 0; background: none; }
.content iframe, .content video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 24px 0; border: 0; border-radius: var(--radius-lg); }
.content dl { margin: 0 0 18px; }
.content dt { font-weight: 600; color: #fff; }
.content dd { margin: 0 0 10px 18px; color: var(--muted); }
.content details { margin: 0 0 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); }
.content summary { cursor: pointer; font-weight: 600; color: #fff; }
.content details[open] summary { margin-bottom: 10px; color: var(--coral); }

.footer { margin-top: auto; padding: 36px 0 22px; background: var(--head); color: var(--muted); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.4fr; gap: 28px; }
.footer__about { margin: 14px 0; font-size: 13px; }
.footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { font-size: 13px; transition: color .2s; }
.footer__list a:hover { color: var(--coral); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--panel-2); font-size: 12px; font-weight: 600; color: #fff; }
.orgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-18 { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--coral); border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; }
.org { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 4px; background: var(--panel-2); font-size: 12.5px; font-weight: 600; color: #fff; transition: background .2s, color .2s; }
.org:hover { background: var(--red-2); }
.footer__note { margin: 14px 0 0; font-size: 12.5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }

.drawer { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: min(84vw, 300px); background: var(--head); box-shadow: var(--shadow); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.drawer > * { flex-shrink: 0; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer__top img { height: 30px; }
.drawer__close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; background: var(--panel-2); font-size: 15px; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.drawer__nav { list-style: none; margin: 0; padding: 0 0 20px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .2s, color .2s; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--panel); color: var(--coral); }
.overlay { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.menu-open { overflow: hidden; }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .overlay { opacity: 1; visibility: visible; }

.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(229, 38, 43, .45); font-size: 22px; transition: background .2s, transform .2s; }
.chat-fab:hover { background: var(--coral); transform: scale(1.05); }
.chat-fab__close { display: none; font-family: var(--font); font-size: 22px; font-weight: 600; }
body.chat-open .chat-fab__open { display: none; }
body.chat-open .chat-fab__close { display: inline; }
.chat {
  position: fixed; right: 18px; bottom: 84px; z-index: 60;
  display: flex; flex-direction: column; width: 330px; height: min(520px, calc(100vh - 110px));
  overflow: hidden; border-radius: 10px; background: #fff; color: #222; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s, visibility .25s, transform .25s;
}
body.chat-open .chat { opacity: 1; visibility: visible; transform: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; }
.chat__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2a262b; }
.chat__avatar img { width: 24px; height: 24px; }
.chat__body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.chat__time { align-self: center; font-size: 11px; color: #888; }
.chat__who { margin-top: 4px; font-size: 11px; color: #777; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.msg--bot { align-self: flex-start; background: #f1f1f3; border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.chat__agent { align-self: flex-end; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--red); border-radius: 10px; color: var(--red); font-size: 13px; transition: background .2s, color .2s; }
.chat__agent:hover { background: var(--red); color: #fff; }
.chat__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; }
.chat__form input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid #d5d5d9; border-radius: 19px; outline: none; color: #222; }
.chat__form input:focus { border-color: var(--red); }
.chat__send { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; }
.chat__foot { padding: 0 0 8px; text-align: center; font-size: 11px; color: #999; }

.to-top {
  position: fixed; right: 24px; bottom: 84px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--panel-2); color: #fff; box-shadow: var(--shadow); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.to-top:hover { background: var(--coral); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
body.chat-open .to-top { opacity: 0; visibility: hidden; }

.error-page { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 60px 16px; text-align: center; }
.error-page__code { display: flex; align-items: center; gap: .06em; font-size: clamp(100px, 20vw, 180px); font-weight: 800; line-height: 1; }
.error-target { position: relative; width: .72em; height: .72em; border-radius: 50%; background: radial-gradient(circle, var(--coral) 0 16%, #fff 16% 33%, var(--coral) 33% 50%, #fff 50% 67%, var(--coral) 67% 84%, transparent 84%); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); } }
.error-page h1 { margin: 24px 0 10px; font-size: clamp(24px, 4vw, 32px); }
.error-page p { max-width: 520px; margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.error-page__links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-line); font-size: 13px; }
.error-page__links a:hover { color: var(--coral); }

.page--single { padding-top: 10px; max-width: 1100px; }

@media (max-width: 1400px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .top { grid-template-columns: minmax(0, 1fr); }
  .wins { order: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .wins::-webkit-scrollbar { display: none; }
  .win { flex: 0 0 230px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips--cats, .chips--provs { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .content { padding: 22px 16px; font-size: 15px; line-height: 1.7; }
  .content h1 { font-size: 25px; }
  .content h2 { font-size: 20px; margin-top: 28px; }
  .content h3 { font-size: 17.5px; }
  .content h4 { font-size: 16px; }
  .content table {
    display: block; width: 100%; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; font-size: 14px;
  }
  .content th, .content td { padding: 10px 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__slide img { aspect-ratio: 1300 / 330; object-position: 0 50%; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .chat { right: 10px; left: 10px; width: auto; bottom: 80px; }
  .chat-fab { right: 12px; bottom: 12px; }
  .to-top { right: 18px; bottom: 76px; }
}

@media (max-width: 400px) {
  .header__top { gap: 8px; }
  .logo img { height: 28px; }
  .header__actions .btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .burger { width: 32px; height: 32px; }
}

@media (max-width: 340px) {
  .header__actions .btn--gray { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
