.hero__img { display: none; }
@media screen and (max-width: 767.98px) {
  .hero { position: relative; }
  .hero__img--mobile {
    display: block;
    width: 100%;
    height: auto; /* use intrinsic image height */
    border-radius: 0; /* corners are handled by the hero container */
  }
}
/*
  Spin City Online — Light Theme Styles
  - Component-based CSS with variables
  - Responsive (mobile-first)
  - Accessibility: focus states, reduced motion, readable contrast
  - Header color: #0547bf
  - Tables: responsive stack on mobile
*/

:root {
  /* Color system */
  --color-primary: #0547bf; /* Header, primary buttons */
  --color-primary-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f7f9fc;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --color-overlay-hero: rgba(5, 71, 191, 0.75);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-300: 0.875rem; /* 14 */
  --fs-400: 1rem;     /* 16 */
  --fs-500: 1.125rem; /* 18 */
  --fs-600: 1.25rem;  /* 20 */
  --fs-700: 1.5rem;   /* 24 */
  --fs-800: 2rem;     /* 32 */
  --fs-900: 2.5rem;   /* 40 */

  /* Layout */
  --container-max: 1200px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);

  /* Controls */
  --focus-ring: 0 0 0 3px rgba(5, 71, 191, 0.35);
}

/* Base reset and defaults */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

/* Containers */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}
.btn--lg { padding: 0.85rem 1.25rem; font-size: var(--fs-500); }
.btn--solid { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--solid:hover { filter: brightness(0.95); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: rgba(5, 71, 191, 0.06); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}
.brand img { display: block; height: 40px; width: auto; }
.primary-nav .nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a.btn--ghost { color: var(--color-primary-contrast); border-color: rgba(255,255,255,0.6); }
.primary-nav a.btn--solid { background: #ffffff; color: var(--color-primary); }
/* Header success (green) login button */
.btn--success { background: #16a34a; color: #fff; border: 1px solid #16a34a; }
.btn--success:hover { filter: brightness(0.95); }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumbs__list {
  margin: 0;
  padding: var(--space-3) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none; /* remove OL numbering to avoid overlap */
  padding-left: 0;
}
.breadcrumbs__item { color: var(--color-text-muted); display: inline-flex; align-items: center; }
.breadcrumbs__item a { color: inherit; text-decoration: none; }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--color-border);
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px; /* fixed height to avoid unexpected cropping */
  display: grid;
  /* Constrain width so banner doesn't span edge-to-edge */
  width: min(100% - 2rem, 1200px);
  margin: var(--space-5) auto var(--space-7) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* Banner background */
  background-color: #0b1b3a; /* safe fallback */
  background-image: url('../../img/baner/baner-web.png');
  background-size: cover; /* fill area */
  background-position: right center; /* remove dark-left fragment by aligning artwork to the right */
  background-repeat: no-repeat;
}
.vh-100 { min-height: 100svh; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media source { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__cta {
  position: absolute; /* overlay on banner */
  z-index: 1;
  top: clamp(40px, 12vh, 140px); /* adjusted for smaller hero */
  left: clamp(16px, 5vw, 96px); /* desktop: left side */
  margin: 0;
  max-width: 560px;
  background: var(--color-overlay-hero);
  color: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  backdrop-filter: saturate(140%) blur(2px);
  box-shadow: var(--shadow-md);
}
.hero__title { margin: 0 0 var(--space-3) 0; font-size: var(--fs-900); line-height: 1.1; }
.hero__subtitle { margin: 0 0 var(--space-4) 0; font-size: var(--fs-500); opacity: 0.95; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Slots grid */
.slots { padding: var(--space-7) 0; }
.slots h2 { margin: 0 0 var(--space-4) 0; font-size: var(--fs-700); }
.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.slots__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-2); }
.slots__item img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

@media screen and (min-width: 480px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 768px) {
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (min-width: 1024px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile hero adjustments: center CTA and swap banner */
@media screen and (max-width: 767.98px) {
  .hero {
    background-image: none;
    border-radius: var(--radius-lg); /* rounded corners like desktop */
    box-shadow: var(--shadow-md);
    margin-left: auto;
    margin-right: auto;
    width: min(100% - 2rem, 1200px); /* center within page with same gutters */
    overflow: hidden;
  }
  .hero__cta {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* fully centered over banner */
    right: auto;
    width: calc(100% - 2rem);
    max-width: 560px;
  }
}

/* Payments section */
.payments { padding: var(--space-6) 0; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.payments h2 { margin: 0 0 var(--space-4) 0; font-size: var(--fs-700); }
.payments__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3) var(--space-4);
  align-items: center;
}
.payments__grid img { max-width: 100%; height: 24px; margin-inline: auto; display: block; filter: grayscale(10%); opacity: 0.95; }
@media screen and (min-width: 640px) {
  .payments__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .payments__grid img { height: 28px; }
}
@media screen and (min-width: 1024px) {
  /* Two rows on desktop: 6 columns (12 icons total) */
  .payments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .payments__grid img { height: 32px; }
}

/* Improve hero image cropping on desktop only: favor right focal point */
@media screen and (min-width: 768px) {
  .hero { background-position: right center; }
}

/* Mobile CTA and banner tuning */
@media screen and (max-width: 767.98px) {
  .hero__title { font-size: var(--fs-800); }
  .hero__subtitle { font-size: var(--fs-400); }
  .hero__cta { padding: var(--space-5); }
}

/* Breadcrumbs: smaller font and padding */
.breadcrumbs { font-size: var(--fs-300); }
.breadcrumbs__list { padding: var(--space-2) 0; }

/* CTA color override */
.btn--cta { background: #f45a1e; color: #fff; border-color: #f45a1e; }
.btn--cta:hover { filter: brightness(0.95); }

/* Content */
.content { padding: var(--space-7) 0; }
.content .lede { color: var(--color-text-muted); max-width: 70ch; }

/* Tables: responsive stack pattern */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); }
.table th, .table td { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table thead th { background: var(--color-surface); font-weight: 700; }
.table.table--striped tbody tr:nth-child(2n) td { background: #fafbfe; }

/* Stack rows as cards on small screens when [data-responsive="stack"] */
@media screen and (max-width: 640px) {
  .table[data-responsive="stack"] thead { display: none; }
  .table[data-responsive="stack"] tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-border); }
  .table[data-responsive="stack"] td { display: grid; grid-template-columns: 10ch 1fr; gap: 0.75rem; }
  .table[data-responsive="stack"] td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-weight: 600;
  }
}

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-6) 0; color: var(--color-text-muted); }
.footer__inner { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer__nav .nav__list { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.footer__nav a { color: inherit; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Mobile viewport fix: prevent layout jump due to browser UI address bar */
@supports (height: 100svh) {
  .vh-100 { min-height: 100svh; }
}


