@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --theme-color: #FF6B00;
  --primary-bg: #0A0A0A;
  --cta-start: #FF9500;
  --cta-end: #E85D00;
  --cta-shadow: 3px 3px 0 #FF6B00;
  --card-gap: 32px;
  --card-width: 384px;
  --container-max: 1280px;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: 16px;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html.age-gate-open,
html.age-gate-open body {
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--primary-bg) url('../images/bg-desktop.svg') center/cover no-repeat;
  z-index: -2;
}

@media (max-width: 900px) {
  body::before {
    background-image: url('../images/bg-mobile.svg');
  }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(40, 20, 0, 0.9) 100%);
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar {
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.top-bar__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 500px) {
  .logo img { height: 32px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 350;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 500px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 200;
  }
  .nav.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
  }
  .nav-overlay.open { display: block; }
}

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

.offers-section {
  padding: 24px 0 64px;
}

.offers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  justify-content: center;
}

@media (min-width: 1281px) {
  .offer-card {
    flex: 0 0 var(--card-width);
    width: var(--card-width);
  }
}

@media (max-width: 1280px) and (min-width: 901px) {
  .offer-card {
    flex: 0 1 calc((100% - var(--card-gap)) / 2);
    width: calc((100% - var(--card-gap)) / 2);
    max-width: var(--card-width);
  }
}

@media (max-width: 900px) {
  .offers-grid {
    max-width: var(--card-width);
    margin: 0 auto;
  }

  .offer-card {
    flex: 0 1 100%;
    width: 100%;
  }
}

.offer-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.offer-card__rank {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0A0A0A;
  box-shadow: var(--cta-shadow);
}

.offer-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.offer-card__logo {
  width: 140px;
  height: 48px;
  object-fit: contain;
}

.offer-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.offer-card__rating svg {
  width: 18px;
  height: 18px;
  color: var(--cta-start);
}

.offer-card__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.label-blue { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.label-red { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.label-green { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.label-orange { background: rgba(249, 115, 22, 0.25); color: #fdba74; }
.label-purple { background: rgba(168, 85, 247, 0.25); color: #d8b4fe; }

.offer-card__description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.offer-card__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #0A0A0A;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 0.15s, filter 0.15s;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-cta:active { transform: translateY(0); }

.offer-card__cta-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 32px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.3);
}

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__logos a {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer__logos a:hover { opacity: 1; }

.footer__logos img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

@media (max-width: 500px) {
  .footer__logos img {
    height: 44px;
  }
}

.footer__legal {
  max-width: 900px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__legal-block h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer__legal-block p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links a:hover { color: var(--text-primary); }

.footer__copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.age-gate.hidden { display: none; }

.age-gate__modal {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.age-gate__modal h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.age-gate__modal p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-confirm {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #0A0A0A;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--cta-shadow);
}

.btn-decline {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.age-gate__decline-screen {
  display: none;
  text-align: center;
}

.age-gate__decline-screen.active { display: block; }
.age-gate__main.hidden { display: none; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 20px 0;
  transform: translateY(0);
  transition: transform 0.3s;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #0A0A0A;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-cookie-customize {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
}

.page-content {
  padding: 48px 0 64px;
}

.page-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content a {
  color: var(--cta-start);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .content-card { padding: 24px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cta-start);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
