/* 1xbet-so.com — общий стиль для EN и AR */

:root {
  --bg-header: #1d4268;
  --bg-main: #205583;
  --bg-footer: #00102e;
  --text: #ffffff;
  --link: #3da5ff;
  --border: #3d8ed4;
  --btn: #7eac2f;
  --btn-hover: #8bc34a;
  --promo: #f5a623;
  --promo-ok: #4caf50;
  --container: 1248px;
  --gutter: 30px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto;
  clip-path: none;
  inset-inline-start: 10px; top: 10px; z-index: 100;
  background: #fff; color: #000; padding: 8px 12px;
}

/* ---------- Header ---------- */

.site-header { background: var(--bg-header); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 40px;
  min-height: 80px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img { width: 200px; height: 44px; }

.main-nav { display: flex; align-items: center; }

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li > a {
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  display: inline-block;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu > li > a.btn { padding: 13px 29px; border: 0; margin-inline-start: 12px; }
.menu > li > a:not(.btn):hover,
.menu > li > a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--link);
}

/* Переключатель языка */
.lang { position: relative; }
.lang-toggle {
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-toggle::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.lang-list {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 70px;
  z-index: 20;
}
.lang:hover .lang-list,
.lang.open .lang-list { display: block; }
.lang-list a { display: block; padding: 4px 14px; color: var(--text); font-size: 14px; }
.lang-list a:hover { background: var(--bg-main); text-decoration: none; }

.burger { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 50px;
  padding: 10px 25px;
  background: var(--btn);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }

.btn-header {
  min-width: 0;
  min-height: 0;
  padding: 13px 29px;
  font-size: 14px;
  font-weight: 500;
}

.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 8px 0 24px;
}

/* ---------- Content ---------- */

main.container { padding-top: 40px; padding-bottom: 20px; flex: 1 0 auto; width: 100%; }

.section { margin-bottom: 20px; }

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  margin: 10px 0 15px;
}
h1 { font-size: 48px; letter-spacing: -0.72px; }
h2 { font-size: 38px; }
h3 { font-size: 32px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-inline-start: 24px; }

.table-wrap { overflow-x: auto; margin-bottom: 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #3e668b;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 15px;
  text-align: start;
}
th { font-weight: 600; text-align: center; }

.media { margin: 0 auto 15px; text-align: center; }
.media img { margin: 0 auto; border-radius: 6px; }
.media--narrow { max-width: 800px; }
.media--rounded img { border-radius: 12px; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 7.5%;
  align-items: center;
  margin-bottom: 20px;
}

.promo-code {
  display: inline;
  background: var(--promo);
  color: #000;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
}
.promo-code.copied { background: var(--promo-ok); }

.cols--top { align-items: start; }
.cols--2-3 { grid-template-columns: 2fr 3fr; }
.cols--3-2 { grid-template-columns: 3fr 2fr; }
.cols--1-2 { grid-template-columns: 1fr 2fr; }
.cols--2-1 { grid-template-columns: 2fr 1fr; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.cols > * { min-width: 0; }
.cols--custom { grid-template-columns: var(--cols); gap: 20px 3%; }

/* FAQ (details/summary) */
.faq-item { margin: 0; }
.faq-item summary { cursor: pointer; padding: 2px 0; }
.faq-item[open] summary { margin-bottom: 6px; }
.faq-answer p { margin-bottom: 12px; }

.faq-item { border-bottom: 1px solid rgba(255,255,255,.15); padding: 8px 0; }
.faq-item:last-of-type { border-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.gallery .media { margin: 0; }

.btn-copy {
  min-width: 0;
  min-height: 0;
  padding: 6px 25px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-copy.copied { background: var(--promo-ok); }

/* Видимость по устройствам (как fusion-no-*-visibility) */
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 641px) and (max-width: 1024px) { .hide-md { display: none !important; } }
@media (min-width: 1025px) { .hide-lg { display: none !important; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-footer);
  padding: 60px 0;
}
.footer-block { max-width: 350px; margin-inline-start: 25%; }
.footer-block img { width: 200px; height: 44px; margin-bottom: 25px; }
.footer-block p { margin: 0; line-height: 1.6; }

/* ---------- Responsive ---------- */

/* ПК: логотип слева, меню справа — в одну строку */
@media (min-width: 1025px) {
  .header-inner { flex-wrap: nowrap; }
  .main-nav { margin-inline-start: auto; }
  .menu { flex-wrap: nowrap; gap: 0 clamp(12px, 1.8vw, 28px); }
  .menu > li > a, .lang-toggle { white-space: nowrap; }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 0;
    gap: 10px;
  }
  .logo img { width: 159px; height: 35px; }
  .header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
  .btn-header { padding: 7px 12px 8px; font-size: 14px; font-weight: 600; border-radius: 8px; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none; border: 0; cursor: pointer; padding: 4px;
  }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 1px; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg-header);
    border-top: 1px solid var(--bg-main);
    z-index: 30;
  }
  .site-header { position: relative; }
  .main-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a, .lang-toggle {
    display: block;
    width: 100%;
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--bg-main);
    text-align: start;
  }
  .menu > li > a:hover { border-bottom-color: var(--bg-main); background: var(--bg-main); }
  .lang-list { position: static; border: 0; border-radius: 0; padding: 0; }
  .lang-list a { padding: 12px calc(var(--gutter) + 16px); }
  .menu .menu-apk { display: none; }

  main.container { padding-top: 24px; }
  .btn { min-width: 120px; font-size: 13px; }
  .btn-row { gap: 10px; }
  .footer-block { margin-inline-start: 0; }
}

@media (min-width: 1025px) {
  .header-actions .btn-header, .burger { display: none; }
}

/* Как в оригинале: на узких экранах H1/H2 по центру */
@media (max-width: 712px) {
  h1, h2 { text-align: center; }
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  h3 { font-size: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .cols, .cols[class*="cols--"] { grid-template-columns: 1fr; }
  /* Кнопки в контенте: половина ширины, по центру */
  .btn-row .btn { width: calc(50% - 5px); min-width: 0; }
  .cols > :empty { display: none; }
}

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding-bottom: 60px; }
.page-404 h1 { text-align: center; }
.code-404 {
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  margin: 20px 0 0;
  color: var(--btn);
}
.links-404 {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
@media (max-width: 640px) { .code-404 { font-size: 80px; } }
