:root {
  --color-primary: #007bff;
  --color-secondary: #ff4500;
  --color-background: #ffffff;
  --color-text-dark: #212529;
  --color-text-light: #6c757d;
  --color-accent: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  --color-light: #f8f9fa;
  --color-dark: #343a40;
  --color-primary-50: rgba(0, 123, 255, 0.5);
  --color-secondary-50: rgba(255, 69, 0, 0.5);
  --color-background-90: rgba(255, 255, 255, 0.9);
  --color-text-dark-80: rgba(33, 37, 41, 0.8);
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 50%;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  --container-max: 1200px;
  --container-padding: 1rem;
  --border-thin: 1px solid #dee2e6;
  --border-regular: 1px solid #ced4da;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-secondary);
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  color: var(--color-dark);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.6;
}

.subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

strong {
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
  color: var(--color-text-light);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding: var(--space-16) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header.centered {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.main-header {
  background-color: var(--color-light);
  border-bottom: var(--border-thin);
  position: sticky;
  top: 0;
  z-index: var(--z-50);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
}

.logo a {
  color: var(--color-primary);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-4);
}

.nav a {
  color: var(--color-text-dark);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.nav a:hover {
  background-color: var(--color-primary-50);
}

.menu-icon {
  display: none;
  font-size: var(--text-2xl);
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-16) 0;
  background-color: var(--color-light);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero-grid.reversed {
  flex-direction: column-reverse;
}

.hero-content {
  max-width: 600px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background-color: #fff;
  box-shadow: var(--shadow-md);
}

.hero-content h1 {
  font-size: var(--text-3xl);
}

.hero-content ul {
  padding-left: var(--space-4);
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.additional-detail {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-info);
  color: white;
  border-radius: var(--radius-md);
}

.bookmakers-section {
  background-color: #f8f9fa;
}

.bookmakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.bookmakers-grid.flex-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bookmaker-card {
  background-color: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: var(--transition-normal);
}

.bookmaker-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.bookmaker-card img {
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
}

.extra-info-card {
  background-color: var(--color-accent);
  color: white;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}

.features-section {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.features-grid.column-layout {
  display: flex;
  flex-direction: column;
}

.feature-item {
  background-color: #f8f9fa;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
}

.new-feature-detail {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-warning);
  color: var(--color-dark);
  border-radius: var(--radius-md);
}

.about-section {
  background-color: #f8f9fa;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.about-block.flex-reverse {
  flex-direction: column-reverse;
}

.about-text {
  padding: var(--space-6);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.added-about-info {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-info);
  color: white;
  border-radius: var(--radius-md);
}

.why-section {
  background-color: white;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.why-content.grid-altered {
  display: grid;
  grid-template-columns: 1fr;
}

.why-text {
  padding: var(--space-6);
  background-color: #f8f9fa;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.why-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.testimonials-section {
  background-color: #f8f9fa;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.testimonials-grid.row-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.testimonial-card {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-4);
}

.testimonial-author {
  text-align: right;
  font-weight: bold;
}

.extra-testimonial-note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
}

.important-message {
  padding: var(--space-12) 0;
  background-color: white;
}

.message-box {
  background-color: #f8f9fa;
  border: var(--border-regular);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.message-box h3 {
  color: var(--color-danger);
}

.message-box .last-line {
  font-weight: bold;
  color: var(--color-warning);
}

.footer-section {
  background-color: var(--color-dark);
  color: white;
  padding: var(--space-8) 0;
}

.footer-links {
  text-align: center;
}

.footer-links a {
  color: white;
  margin: 0 var(--space-2);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.sitename {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

@media (min-width: 992px) {
  .hero-grid {
    flex-direction: row;
  }

  .hero-grid.reversed {
    flex-direction: row-reverse;
  }

  .about-block {
    flex-direction: row;
  }

  .about-block.flex-reverse {
    flex-direction: row-reverse;
  }

  .why-content {
    flex-direction: row;
  }

  .why-content.grid-altered {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .nav {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  #menu-toggle:checked ~ .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
  }

  .nav ul {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .bookmakers-grid.flex-layout {
    flex-direction: column;
  }

  .testimonials-grid.row-layout {
    flex-direction: column;
  }
}
