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

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #64748b;
  --secondary: #38bdf8;
  --accent: #22c55e;
  --border: rgba(229, 231, 235, 0.12);
  --nav-bg: #0a0a0a;
  --amber: #f59e0b;
  --cream: #fef3c7;
  --wood: #3d2914;
  --max-w: 1200px;
  --content-w: 1100px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body.nav-lock {
  overflow: hidden;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

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

.hidden {
  display: none !important;
}

.disclosure {
  max-width: var(--content-w);
  margin: 8px auto;
  padding: 8px 20px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.05);
  border: 1px solid rgba(100, 116, 139, 0.1);
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px var(--primary);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--primary);
  text-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.nav-overlay {
  display: none;
}

.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  opacity: 0.15;
  filter: grayscale(100%);
  pointer-events: none;
}

.hero-mosaic span {
  background-size: cover;
  background-position: center;
}

.hero-mosaic .hm-1 {
  grid-row: 1 / 3;
  background-image: url("/images/decorative/decor_1.jpg");
}

.hero-mosaic .hm-2 {
  background-image: url("/images/decorative/decor_2.webp");
}

.hero-mosaic .hm-3 {
  background-image: url("/images/decorative/decor_3.webp");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 800px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero p {
  color: var(--cream);
  font-size: 1.05rem;
  opacity: 0.9;
}

.offers-section {
  position: relative;
  padding: 64px 24px;
  background-image: url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.offers-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--cream);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.offer-card {
  background: linear-gradient(145deg, #1a2744 0%, #0f172a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

.offer-logo-wrap {
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.offer-logo-wrap .offer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-bonus-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-bonus {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: var(--accent);
  word-break: break-word;
  line-height: 1.35;
}

.offer-terms {
  font-size: 11px;
  color: var(--muted);
}

.offer-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.offer-cta {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, box-shadow 0.2s;
}

.offer-cta:hover {
  background: #7c8ea3;
  color: #fff;
  box-shadow: 0 0 12px rgba(100, 116, 139, 0.5);
}

.info-section {
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}

.info-section:nth-child(odd) {
  background: var(--bg);
}

.info-section:nth-child(even) {
  background: var(--surface);
}

.info-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--cream);
}

.info-section p {
  color: var(--muted);
  max-width: 65ch;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.layout-split-reverse {
  direction: rtl;
}

.layout-split-reverse > * {
  direction: ltr;
}

.decor-frame {
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.decor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-gauge {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
}

.gauge-panel {
  background: linear-gradient(180deg, #2a1f0f 0%, #1a1208 100%);
  border: 3px solid #5c4033;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gauge-needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 3px;
  height: 70px;
  background: var(--amber);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-30deg);
  box-shadow: 0 0 8px var(--amber);
  border-radius: 2px;
}

.gauge-center {
  position: absolute;
  bottom: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: #888;
  border-radius: 50%;
  border: 2px solid #555;
}

.layout-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.mini-card h3 {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.mini-card p {
  font-size: 0.85rem;
}

.layout-tubes {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tube-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.vacuum-tube {
  width: 28px;
  height: 48px;
  background: linear-gradient(180deg, #444 0%, #222 40%, #f59e0b 60%, #ef4444 100%);
  border-radius: 14px 14px 6px 6px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  animation: tube-glow 2s ease-in-out infinite alternate;
}

.vacuum-tube:nth-child(2) {
  animation-delay: 0.3s;
}

.vacuum-tube:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes tube-glow {
  from {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  }
  to {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  }
}

.layout-grille {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(229, 231, 235, 0.04) 3px,
    rgba(229, 231, 235, 0.04) 4px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(229, 231, 235, 0.04) 3px,
    rgba(229, 231, 235, 0.04) 4px
  );
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.layout-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  border-left: 3px solid var(--amber);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  min-width: 32px;
  height: 32px;
  background: var(--wood);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.layout-columns {
  columns: 2;
  column-gap: 32px;
}

.layout-columns p {
  break-inside: avoid;
  margin-bottom: 12px;
}

.layout-highlight {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

.layout-band {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.band-stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(61, 41, 20, 0.4) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.band-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--amber);
  font-family: Georgia, serif;
}

.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 6px var(--primary);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-badges a {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges img:hover {
  opacity: 1;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.modal-box h2 {
  font-family: Georgia, serif;
  margin-bottom: 12px;
  color: var(--cream);
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #16a34a;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(100, 116, 139, 0.1);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.legal-page main {
  padding: 48px 24px 64px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--cream);
}

.legal-content h2 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--muted);
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

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

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin: -12px 0 12px;
}

.contact-success {
  margin-top: 32px;
  padding: 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  text-align: center;
}

.contact-success p {
  color: var(--accent);
  font-weight: 600;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.redirect-box {
  text-align: center;
  max-width: 480px;
}

.redirect-box h1 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--cream);
}

.redirect-box p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 14px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ad-label {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--amber);
  margin-bottom: 8px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

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

  .nav-toggle {
    display: block;
  }

  .nav-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    top: 58px;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .nav-overlay.nav-open {
    transform: translateX(0);
  }

  .nav-overlay a {
    color: var(--text);
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-overlay a:hover {
    color: var(--primary);
    text-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
  }

  .hero {
    min-height: 180px;
  }

  .layout-split,
  .layout-gauge,
  .layout-cards {
    grid-template-columns: 1fr;
  }

  .layout-columns {
    columns: 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .offer-logo-wrap {
    width: 100px;
    height: 48px;
  }

  .offer-logo-wrap .offer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .layout-split-reverse {
    direction: ltr;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .info-section {
    overflow-x: hidden;
  }

  .decor-frame {
    max-width: 100%;
    max-height: 220px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .offers-section {
    padding: 40px 16px;
  }
}
