:root {
  --page: #f5f3ed;
  --surface: #fffefb;
  --surface-soft: #edf5f0;
  --ink: #17231e;
  --muted: #607067;
  --line: #dce4de;
  --brand: #176b5b;
  --brand-dark: #0d4d42;
  --accent: #e79a35;
  --shadow: 0 14px 38px rgba(24, 50, 39, .09);
  --radius: 20px;
  --content: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }

.block_width, .wrap, .middle, .container, main > section,
.site-header > div, footer > div {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

header.site-header,
.site-header {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100%;
  margin: 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(231, 154, 53, .28), transparent 28%),
    linear-gradient(120deg, #0c4a40 0%, #176b5b 62%, #1a7d69 100%);
  border: 0;
  box-shadow: none;
}

.site-header .topbar,
.site-header .wrap,
.site-header .block_width {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.site-header > .wrap {
  display: block !important;
  min-height: 0;
  padding-block: 0;
}
.site-header .topbar { width: 100%; }

.site-header .logo,
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff !important;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}

.site-header .logo img { width: min(220px, 52vw); max-height: 52px; object-fit: contain; }
.site-header .brand-logo {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
}
.brand-mark {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #f6cf8d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.menu_block {
  position: static !important;
  width: 100%;
  margin: 0;
  background: #103f37;
  border: 0;
}

.menu_block nav,
.site-header .nav,
.nav_menu ul,
.menu_block ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav a,
.menu_block a,
.nav_menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, .93) !important;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: transparent !important;
}

.site-header .nav a:hover,
.site-header .nav a:focus-visible,
.menu_block a:hover,
.menu_block a:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  outline: none;
}

.menu-toggle, .site-menu-toggle, .easy-menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 44px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px !important;
  line-height: 1 !important;
}
header.site-header .site-menu-toggle { display: none !important; }

.easy-header-note { display: none !important; }
.middle, main { padding-block: clamp(24px, 4vw, 48px); }
.middle.block_width { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 30px; }
.middle .container { width: auto; margin: 0; min-width: 0; }
.content { min-width: 0; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}
.main-grid > *, .main-grid article, .main-grid aside,
.main-grid .content-card { min-width: 0; max-width: 100%; width: auto !important; }

.page_post, article, .panel, .section_block, .hero-text, .hero-card,
.rightBox, .side-card, .quick-card, .article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page_post, article, .section_block { padding: clamp(22px, 4vw, 54px); }
.page_post > :first-child, article > :first-child, .section_block > :first-child { margin-top: 0; }
.page_post > :last-child, article > :last-child, .section_block > :last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: inherit;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { margin: 0 0 22px; font-size: clamp(32px, 5vw, 58px); }
h2 { margin: 2.2em 0 .8em; font-size: clamp(25px, 3.2vw, 38px); }
h3 { margin: 1.8em 0 .65em; font-size: clamp(20px, 2.4vw, 27px); }
p, ul, ol { margin-block: 0 1.2em; }
li + li { margin-top: .42em; }
blockquote {
  margin: 1.7em 0;
  padding: 18px 22px;
  color: #2b453b;
  background: var(--surface-soft);
  border: 0;
  border-left: 5px solid var(--brand);
  border-radius: 0 14px 14px 0;
}

.breadcrumbs, .breadcrumb, [class*="breadcrumb"] {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.lead, .intro, .page_post > p:first-of-type, article > p:first-of-type {
  color: #34473f;
  font-size: 1.08em;
}

.right-sidebar, .sidebar { min-width: 0; }
.rightBox, .side-card { padding: 20px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(24, 50, 39, .07); }
.rightBox h3, .side-card h3 { margin-top: 0; font-size: 19px; }
.rightBox ul, .side-card ul { padding-left: 1.2em; }

.site-toc, nav.toc, .toc, .side-toc {
  margin: 24px 0 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8dcd2;
  border-radius: 16px;
  background: #f4faf6;
  box-shadow: none;
}
.site-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 13px 18px;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.site-toc > summary::-webkit-details-marker { display: none; }
.site-toc > summary::after { content: "+"; font-size: 24px; line-height: 1; }
.site-toc[open] > summary::after { content: "−"; }
.site-toc .site-toc__body { padding: 2px 20px 18px; border-top: 1px solid #dbe8e1; }
.site-toc ol, .site-toc ul { margin: 14px 0 0; padding-left: 1.35em; }

.easy-table-scroll, .table-wrap, .cm-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92em; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--brand); }
tbody tr:nth-child(even) { background: #f7faf8; }

.casino-offers-grid, .casino-fast-grid, .casino-grid, .casino-banner-gallery,
.quick-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.casino-offer-card, .casino-fast-card, .casino-card, .casino-banner-gallery__item,
.quick-card, .article-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(24, 50, 39, .07);
}
.article-card, .quick-card { color: var(--ink); text-decoration: none; }
.article-card:hover, .quick-card:hover { transform: translateY(-2px); border-color: #aac9bb; }
.article-card strong, .article-card span { display: block; }
.article-card strong { margin-bottom: 8px; line-height: 1.3; }
.article-card span { color: var(--muted); font-size: .9em; line-height: 1.55; }
.casino-reg-btn, .btn, .button, a[class*="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  color: #fff !important;
  background: var(--brand);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.casino-reg-btn:hover, .btn:hover, .button:hover { background: var(--brand-dark); }
.casino-banner-gallery img, .article-card img { width: 100%; border-radius: 13px; object-fit: cover; }

footer, .footer {
  margin-top: clamp(28px, 5vw, 64px);
  color: rgba(255, 255, 255, .86);
  background: #122b24;
}
footer .top, footer .bottom1, footer .bottom2 { background: transparent; }
footer .block_width, footer .wrap, .footer-grid {
  width: min(var(--content), calc(100% - 40px));
  padding-block: 22px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
footer a, .footer a { color: #d5f0e4 !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.copyright { color: rgba(255, 255, 255, .7); }

.scrollTop { position: fixed; right: 18px; bottom: 18px; z-index: 5; }

@media (max-width: 900px) {
  .block_width, .wrap, .middle, .container, main > section,
  .site-header > div, footer > div { width: min(100% - 28px, var(--content)); }
  .middle.block_width { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .right-sidebar, .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rightBox, .side-card { margin: 0; }
  .site-header .topbar {
    display: block !important;
    position: relative;
    min-height: 68px;
    padding-right: 78px;
  }
  .site-header .brand { min-width: 0; }
  .menu-toggle, .site-menu-toggle, .easy-menu-toggle,
  header.site-header .site-menu-toggle {
    display: inline-flex !important;
    position: absolute !important;
    top: 12px;
    right: 0;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }
  .site-header .nav, .nav_menu, .menu_block .nav_menu { display: none; width: calc(100% + 78px); margin-top: 12px; }
  .site-header .nav.is-open, .nav_menu.is-open, .menu_block .nav_menu.is-open { display: block; }
  .site-header .nav.is-open, .nav_menu.is-open ul, .menu_block .nav_menu.is-open ul { flex-direction: column; align-items: stretch; }
  .site-header .nav a, .menu_block a, .nav_menu a { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }
  .block_width, .wrap, .middle, .container, main > section,
  .site-header > div, footer > div { width: min(100% - 20px, var(--content)); }
  .middle, main { padding-block: 20px; }
  .page_post, article, .section_block { padding: 20px 16px; border-radius: 15px; }
  h1 { font-size: clamp(29px, 10vw, 40px); }
  h2 { font-size: clamp(23px, 7.5vw, 31px); }
  .casino-offers-grid, .casino-fast-grid, .casino-grid, .casino-banner-gallery,
  .quick-grid, .card-grid, .right-sidebar, .sidebar, .footer-grid { grid-template-columns: 1fr; }
  .casino-offer-card, .casino-fast-card, .casino-card, .casino-banner-gallery__item,
  .quick-card, .article-card { padding: 15px; border-radius: 15px; }
  th, td { min-width: 130px; padding: 10px; }
  footer .block_width, footer .wrap, .footer-grid { width: min(100% - 20px, var(--content)); }
}

@media (max-width: 360px) {
  body { font-size: 15.5px; }
  .site-header .logo img { max-width: 170px; }
  .page_post, article, .section_block { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
