/*
Theme Name: PusulaBet Custom Theme
Theme URI: https://example.com/
Author: Dmitriy
Author URI: https://example.com/
Description: WordPress тема на основе статического HTML PusulaBet 2025
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pusulabet
*/

:root {
  --bg: #191D26;
  --surface: #212531;
  --accent: #FFAC2C;
  --text: #fff;
  --white: #fff;
  --radius: 24px;
  --gap: 24px;
  --font: 'Inter', Arial, sans-serif;
  --border: none
}

html,
body {
  margin: 24px 24px 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh
}

body {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto
}

/* Surfaces */
.container,
header,
.card,
footer {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius);
  padding: var(--gap);
  background: var(--surface);
  color: var(--text);
  border: var(--border)
}

.container {
  margin: 0 auto var(--gap)
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10
}

.logo {
  height: 32px;
  width: auto
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap)
}

nav {
  display: flex;
  gap: var(--gap);
  align-items: center
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  opacity: .85;
  transition: opacity .2s
}

nav a:hover {
  opacity: 1;
  text-decoration: underline
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer
}

.hamburger span {
  width: 28px;
  height: 4px;
  background: var(--white);
  border-radius: 2px;
  display: block
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: var(--border)
}

.button:hover {
  background: var(--accent);
  color: var(--bg)
}

/* Hero */
.hero-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: var(--gap);
  min-height: 30vh
}

/* Banner */
.banner-slider {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 var(--gap)
}

.banner-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform
}

.banner-slide {
  min-width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative
}

.banner-content {
  margin-left: 64px
}

.banner-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 3rem;
  line-height: 2rem;
  margin: 0 0 8px
}

.banner-sub {
  font-size: 1.2rem
}

.banner-dots {
  position: absolute;
  bottom: 18px;
  right: 32px;
  display: flex;
  gap: 10px
}

.banner-dot {
  width: 18px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  display: inline-block;
  cursor: pointer;
  transition: background .2s
}

.banner-dot.active {
  background: #fff
}

/* Logos row (payments/providers) */
.logo-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0
}

.logo-section::before,
.logo-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  pointer-events: none
}

.logo-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent)
}

.logo-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent)
}

.logo-row {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  animation: scroll-left 24s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden
}

.logo-row.reverse {
  margin-top: 16px;
  animation: scroll-right 24s linear infinite;
  direction: rtl
}

.logo-row.reverse .logo-set {
  direction: ltr
}

.logo-set {
  display: flex;
  flex-shrink: 0
}

.logo-section .logo {
  width: 96px;
  height: auto;
  flex-shrink: 0;
  margin-right: 24px
}

@keyframes scroll-left {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-133%)
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(133%)
  }
}

/* Anchors */
.anchor-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0;
  color: var(--text)
}

.anchor-section {
  border-radius: var(--radius);
  box-sizing: border-box;
  padding: var(--gap)
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.anchor-link {
  display: flex;
  align-items: left;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  border-radius: var(--radius);
  padding: 16px 24px;
  transition: background .18s;
  border: var(--border)
}

.anchor-link:hover {
  background: #18223a
}

.anchor-num {
  margin-right: 12px
}

.anchor-arrow {
  margin-left: 12px
}

/* Cards */
.card {
  margin-bottom: var(--gap)
}

/* Text */
h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2
}

h1 {
  font-size: 2rem
}

h2 {
  font-size: 1.5rem
}

h3 {
  font-size: 1.2rem
}

p,
ul,
ol {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 12px;
  line-height: 1.6
}

ul,
ol {
  padding-left: 1.5em
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px)
}

.modal.open {
  display: flex;
  justify-content: center;
  align-items: center
}

.modal-inner {
  max-width: 400px;
  width: 90%;
  border-radius: var(--radius);
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative
}

.modal-content {
  margin: 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer
}

/* Footer */
footer {
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
  opacity: .7
}

.footer-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 1rem
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: .7
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline
}

/* Responsive */
@media (max-width:700px) {

  .container,
  header,
  .hero-section,
  .anchor-section,
  .card,
  footer {
    padding: 12px;
    border-radius: 12px
  }

  .logo {
    height: 28px
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 24px;
    padding: 24px 0;
    background: var(--surface);
    border-radius: var(--radius);
    flex-direction: column;
    width: 50%
  }

  nav.open {
    display: flex
  }

  .hamburger {
    display: flex
  }

  h1 {
    font-size: 1.2rem
  }

  h2 {
    font-size: 1.1rem
  }

  h3 {
    font-size: 1rem
  }

  .anchor-title {
    font-size: 1.1rem
  }

  .anchor-link {
    font-size: .95rem;
    padding: 10px 12px
  }

  .anchor-list {
    gap: 8px
  }

  .logo-section .logo {
    width: 64px;
    margin-right: 12px
  }
}