:root {
  --color-header: #1d2158;
  --color-footer: #1d2158;
  --color-btn-login: #96a5d1;
  --color-btn-signup: #eaae16;
  --color-bg: #2d3447;
  --color-text-light: #ffffff;
  --color-text-dark: #1a1a1a;
  --color-accent: #96a5d1;
  --color-accent-hover: #7a8ab8;
  --color-signup-hover: #d19912;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background-color: var(--color-header);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  display: block;
}

.logo-img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.main-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.online-text {
  font-size: 14px;
  color: var(--color-text-light);
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-login {
  background-color: var(--color-btn-login);
  color: var(--color-text-light);
}

.btn-login:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-signup {
  background-color: var(--color-btn-signup);
  color: var(--color-text-dark);
}

.btn-signup:hover {
  background-color: var(--color-signup-hover);
  transform: translateY(-2px);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--color-text-light);
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  background: var(--color-header);
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 15px;
}

.mobile-nav-list a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  transition: var(--transition);
}

.mobile-nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  background: rgba(128, 128, 128, 0.6); /* сірий з 60% прозорістю */
  color: #fff;
  padding: 20px;
  border-radius: 10px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  background-color: var(--color-btn-signup);
  color: var(--color-text-dark);
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 700;
}

.btn-hero:hover {
  background-color: var(--color-signup-hover);
  transform: scale(1.05);
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.hero-prev,
.hero-next {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--color-text-light);
  font-size: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--color-text-light);
  width: 30px;
  border-radius: 6px;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  margin-bottom: 30px;
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: var(--color-accent);
}

.breadcrumbs-item a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs-item a:hover {
  text-decoration: underline;
}

.breadcrumbs-item span {
  color: var(--color-text-light);
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar TOC */
.toc-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: var(--border-radius);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
}

.toc-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  padding-left: 20px;
}

/* Main Article */
.main-article {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: var(--border-radius);
}

.main-article h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--color-text-light);
}

.main-article h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--color-accent);
}

.main-article h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: var(--color-text-light);
}

/* Content Block Styles */
.content-block {
  margin: 30px 0;
  line-height: 1.8;
}

.content-block p {
  margin-bottom: 20px;
  font-size: 16px;
}

.content-block ul,
.content-block ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-block li {
  margin-bottom: 10px;
}

.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.content-block th,
.content-block td {
  padding: 15px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-block th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.content-block a {
  color: var(--color-accent);
  text-decoration: underline;
}

.content-block a:hover {
  color: var(--color-accent-hover);
}

/* App Info Section */
.app-info-section {
  margin-bottom: 50px;
}

.app-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

.app-info-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.app-info-table td {
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-info-table td:first-child {
  width: 40%;
  background: rgba(255, 255, 255, 0.05);
}

.download-buttons {
  margin-top: 40px;
}

.download-buttons h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text-light);
  transition: var(--transition);
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-btn img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.download-text {
  display: flex;
  flex-direction: column;
}

.download-label {
  font-size: 12px;
  opacity: 0.8;
}

.download-store {
  font-size: 18px;
  font-weight: 600;
}

/* Winners Section */
.winners-section {
  margin-bottom: 50px;
}

.winners-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.winners-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.winners-table th,
.winners-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.winners-table th {
  font-weight: 600;
  color: var(--color-accent);
}

.winners-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Tournaments Section */
.tournaments-section {
  margin-bottom: 50px;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tournament-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.tournament-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tournament-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tournament-content {
  padding: 25px;
}

.tournament-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--color-text-light);
}

.tournament-description {
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.tournament-prize {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.prize-label {
  opacity: 0.8;
}

.prize-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-btn-signup);
}

.tournament-timer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.timer-value {
  font-weight: 600;
  color: var(--color-accent);
}

.btn-tournament {
  width: 100%;
  background: var(--color-btn-signup);
  color: var(--color-text-dark);
  padding: 12px;
  font-weight: 600;
}

.btn-tournament:hover {
  background: var(--color-signup-hover);
}

/* Games Section */
.games-section {
  margin-bottom: 50px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.game-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-title {
  font-size: 18px;
  margin: 15px 0 5px;
  padding: 0 15px;
}

.game-provider {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 15px;
}

.btn-game {
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  background: var(--color-btn-login);
  color: var(--color-text-light);
  padding: 10px;
}

.btn-game:hover {
  background: var(--color-accent-hover);
}

/* Author Section */
.author-section {
  margin-bottom: 50px;
}

.author-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 30px;
}

.author-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 24px;
  margin-bottom: 5px;
}

.author-title {
  font-size: 16px;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.author-bio {
  line-height: 1.8;
  margin-bottom: 20px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0077b5;
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.social-link:hover {
  background: #005885;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 45px;
  margin-bottom: 20px;
}

.footer-description {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-menu a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-support,
.footer-email {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-payments,
.footer-providers {
  margin-bottom: 30px;
}

.payment-logos,
.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.payment-logos img,
.provider-logos img {
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

.payment-logos img:hover,
.provider-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-legal p {
  margin-bottom: 10px;
  opacity: 0.7;
  font-size: 14px;
}

.footer-warning {
  color: #fbbf24;
  font-weight: 500;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-header) 0%, #2a2f5f 100%);
  padding: 15px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.widget-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.widget-text {
  display: flex;
  flex-direction: column;
}

.widget-bonus {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-btn-signup);
}

.widget-label {
  font-size: 14px;
  opacity: 0.9;
}

.widget-btn {
  background: var(--color-btn-signup);
  color: var(--color-text-dark);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.widget-btn:hover {
  background: var(--color-signup-hover);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc-block {
    position: static;
  }

  .desktop-only {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .tournaments-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .main-article {
    padding: 25px;
  }

  .main-article h1 {
    font-size: 28px;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-image img {
    margin: 0 auto;
  }

  .author-social {
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .widget-content {
    flex-direction: column;
    text-align: center;
  }

  .widget-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .header-left {
    justify-content: space-between;
  }

  .header-right {
    justify-content: space-between;
    width: 100%;
  }

  .online-counter {
    font-size: 12px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Unused styles for uniqueness */
.legacy-wrapper {
  display: none;
}

.deprecated-container {
  visibility: hidden;
}

.old-style-box {
  opacity: 0;
}

.unused-grid {
  grid-template-columns: repeat(5, 1fr);
}

.hidden-element {
  position: absolute;
  left: -9999px;
}
/* ===== MOBILE/TABLET PATCH — append only, desktop untouched ===== */

/* Універсальні дрібниці */
:root {
  --header-h: 64px;
}
body.menu-open { overflow: hidden; } /* блокуємо скрол під моб.меню */

/* ---------- ≤ 992px (tablet & down) ---------- */
@media (max-width: 992px) {
  /* Хедер */
  .site-header { position: sticky; top: 0; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .header-left { gap: 16px; }
  .logo-img { height: 42px; }

  /* Ховаємо десктопну навігацію, вмикаємо бургер + моб.меню */
  .main-nav { display: none; }
  .burger-menu { display: flex; }
  .mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    overflow: auto;
    padding: 20px;
    background: var(--color-header);
    display: none;
  }
  .mobile-menu.active { display: block; }

  /* Правий блок хедера — стискаємо; лічильник online ховаємо */
  .header-right { gap: 10px; }
  .online-counter { display: none; }

  /* Хіро */
  .hero-section { height: 360px; }
  .hero-content {
    width: min(92vw, 720px);
    padding: 16px;
    border-radius: 12px;
  }
  .hero-title { font-size: clamp(24px, 4.5vw, 36px); }
  .hero-subtitle { font-size: clamp(16px, 3.6vw, 20px); }
  .btn-hero { padding: 12px 28px; font-size: 16px; }

  /* Сітка контенту */
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc-block { position: static; padding: 20px; }

  /* Статті/тексти */
  .main-article { padding: 28px; }
  .main-article h1 { font-size: clamp(24px, 5vw, 32px); }
  .main-article h2 { font-size: clamp(20px, 4.2vw, 26px); }
  .main-article h3 { font-size: clamp(18px, 3.8vw, 22px); }

  /* Таблиці — горизонтальний скрол без зламу лейаута */
  .content-block table,
  .app-info-table,
  .winners-table { font-size: 14px; }
  .app-table-wrapper,
  .winners-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Карти/гріди */
  .tournaments-grid { grid-template-columns: 1fr; gap: 20px; }
  .tournament-image img { height: 180px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .game-image img { height: 140px; }

  /* Автор */
  .author-card { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .author-image img { margin: 0 auto; }

  /* Footer */
  .footer-top { gap: 24px; }
}

/* ---------- ≤ 768px (phones L) ---------- */
@media (max-width: 768px) {
  :root { --header-h: 58px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .header-buttons .btn { padding: 8px 14px; font-size: 14px; }
  .btn-login, .btn-signup { min-height: 44px; } /* tap target */

  .hero-section { height: 300px; }
  .hero-controls { gap: 12px; bottom: 14px; }
  .hero-prev, .hero-next { width: 36px; height: 36px; font-size: 22px; }

  .main-article { padding: 22px; }
  .content-block p { font-size: 15px; }

  .tournament-prize, .tournament-timer { padding: 12px; }
  .btn-tournament { padding: 10px; font-size: 15px; }

  .games-grid { grid-template-columns: 1fr; }
  .game-card { text-align: left; }
  .game-title { padding: 0 12px; }
  .btn-game { width: calc(100% - 24px); margin: 0 12px 12px; }

  /* Хлібні крихти */
  .breadcrumbs-wrapper { padding: 10px 0; }
  .breadcrumbs-list { gap: 6px; }
  .breadcrumbs-item a, .breadcrumbs-item span { font-size: 14px; }
}

/* ---------- ≤ 576px (phones S) ---------- */
@media (max-width: 576px) {
  :root { --header-h: 56px; }

  .site-header { padding: 10px 0; }
  .logo-img { height: 36px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .header-right { width: auto; }
  .btn-login { display: none; } /* лишаємо тільки основну CTA */
  .btn-signup { padding: 10px 16px; font-weight: 700; }

  .hero-section { height: 240px; }
  .hero-content { padding: 12px; }
  .hero-title { font-size: 22px; margin-bottom: 10px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 16px; }
  .hero-prev, .hero-next { display: none; } /* лишаємо точки */
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.active { width: 18px; }

  .main-article h1 { margin-bottom: 18px; }
  .content-block { margin: 20px 0; }
  .content-block th, .content-block td { padding: 12px; }

  .download-grid { grid-template-columns: 1fr; }
  .download-btn { padding: 16px; }

  /* Стіккі-виджет: не перекриває контент, враховує safe-area */
  .sticky-widget { padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .widget-content { flex-direction: column; gap: 10px; text-align: center; }
  .widget-btn { width: 100%; }
  /* додаємо «простір» під контент, якщо є виджет */
  @supports(selector(:has(*))) {
    body:has(.sticky-widget) .main-content { padding-bottom: 96px; }
  }
  /* fallback без :has */
  .main-content { padding-bottom: 84px; }
}

/* Зменшення анімацій для користувачів з уподобанням */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
