:root {
  --bg: #1E1B4B;
  --surface: #312E81;
  --text: #EEF2FF;
  --muted: #A5B4FC;
  --primary: #A855F7;
  --secondary: #4338CA;
  --accent: #D8B4FE;
  --border: rgba(255, 255, 255, 0.1);
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  --maxw: 1200px;
  --link: #0000EE;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.35;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: #551A8B;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.display-title {
  font-family: var(--font-display);
  font-stretch: expanded;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.disclosure-bar {
  width: 100%;
  background: var(--secondary);
  color: var(--text);
  font-size: 11px;
  text-align: center;
  padding: 10px 16px 18px;
  line-height: 1.5;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

.navbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar__links a {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  font-family: var(--font-sans);
  background: rgba(30, 27, 75, 0.75);
  padding: 5px 9px;
}

.navbar__links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.95);
  z-index: 980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(30, 27, 75, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  font-stretch: expanded;
}

.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 64px;
  overflow: hidden;
}

.hero .navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.hero__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  z-index: 0;
}

.hero__mosaic-cell {
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(100%);
}

.hero__mosaic-cell:nth-child(1) {
  grid-column: 1 / 3;
  background-image: url('/images/decorative/decor_1.jpg');
}

.hero__mosaic-cell:nth-child(2) {
  background-image: url('/images/decorative/decor_2.webp');
}

.hero__mosaic-cell:nth-child(3) {
  background-image: url('/images/decorative/decor_3.webp');
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.75) 0%, rgba(30, 27, 75, 0.92) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-display);
  font-stretch: ultra-expanded;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 6px 6px 0 var(--primary);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.marquee {
  overflow: hidden;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--accent);
  padding: 10px 0;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-stretch: expanded;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.offers {
  position: relative;
  padding: 72px 0;
  border-bottom: 3px solid var(--border);
}

.offers__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/offers_bg/offers_bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(60%);
}

.offers .wrap {
  position: relative;
  z-index: 1;
}

.offers h2 {
  font-family: var(--font-display);
  font-stretch: expanded;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0 0 8px;
  border-left: 6px solid var(--primary);
  padding-left: 16px;
}

.offers__sub {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 0.9rem;
}

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

.offer-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.25);
}

.offer-card__logo {
  background: #0e1b2c;
  width: 280px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  align-self: center;
  flex-shrink: 0;
}

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

.offer-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offer-card__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: #0b1f33;
  margin: 0;
}

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

.offer-card__bonus {
  font-size: 15px;
  font-weight: 600;
  color: #003566;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.offer-card__terms {
  font-size: 11px;
  color: #6b7a8d;
  margin: 0;
}

.offer-card__desc {
  font-size: 12px;
  color: #6b7a8d;
  margin: 0;
  line-height: 1.4;
}

.offer-card__cta {
  margin-top: auto;
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #38bdf8;
  color: #020617;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.info {
  padding: 64px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.info:nth-child(odd) {
  background: rgba(49, 46, 129, 0.35);
}

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

.layout-split--offset {
  grid-template-columns: 1.2fr 0.8fr;
  margin-left: -12px;
}

.layout-split__img-wrap {
  max-width: 500px;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 12px 12px 0 var(--secondary);
  transform: rotate(-1.5deg);
}

.layout-split__img-wrap img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.layout-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.layout-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: grayscale(80%);
  border: 2px dashed var(--border);
}

.layout-banner__inner {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 32px;
  border: 2px solid var(--border);
  max-width: 720px;
  margin-left: 8%;
  box-shadow: -8px 8px 0 var(--primary);
}

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

.layout-zigzag--reverse .layout-zigzag__visual {
  order: 2;
}

.layout-zigzag__visual {
  max-width: 500px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 8px -8px 0 var(--primary);
}

.layout-zigzag__visual img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.layout-float {
  position: relative;
  padding-left: 200px;
  min-height: 200px;
}

.layout-float--solo {
  padding-left: 32px;
  max-width: 720px;
  border-left: 6px solid var(--accent);
  margin-left: 8%;
}

.layout-float__img-wrap {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 180px;
  border: 3px solid var(--primary);
  box-shadow: 6px 6px 0 #000;
  transform: rotate(3deg);
}

.layout-float__img-wrap img {
  max-height: 280px;
  object-fit: cover;
}

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

.layout-cards__item {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 16px;
  font-size: 0.85rem;
  font-family: var(--font-serif);
  transform: translateY(0);
}

.layout-cards__item:nth-child(2) {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.layout-timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-left: 4px solid var(--primary);
}

.layout-timeline li {
  padding: 12px 0 12px 24px;
  position: relative;
  font-family: var(--font-sans);
}

.layout-timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--bg);
}

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

.layout-columns__aside {
  background: var(--surface);
  padding: 24px;
  border: 2px solid var(--primary);
  transform: translateX(16px);
}

.layout-stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.layout-stacked__block {
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: rgba(49, 46, 129, 0.5);
}

.layout-stacked__block:nth-child(even) {
  margin-left: 32px;
  border-color: var(--accent);
}

.layout-cta {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.layout-cta__bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: grayscale(100%);
  border: 3px solid var(--border);
}

.layout-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 60%;
  padding: 32px;
  background: var(--bg);
  border: 2px solid var(--primary);
}

.layout-quote {
  border-left: 8px solid var(--accent);
  padding: 24px 32px;
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 4px 4px 0 var(--secondary);
}

.footer {
  background: var(--surface);
  border-top: 3px solid var(--primary);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.footer__links h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  color: var(--accent);
}

.footer__links a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
}

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

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

.footer__badges img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer__badges a:hover img {
  opacity: 1;
}

.footer__legal {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 20px 0 0;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 16px 0 0;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(30, 27, 75, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal__box {
  background: var(--surface);
  border: 2px solid var(--primary);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 8px 8px 0 var(--secondary);
}

.modal__box h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-stretch: expanded;
}

.modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cookie {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 16px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie.active {
  display: flex;
}

.cookie p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border: 0;
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

body.no-scroll {
  overflow: hidden;
}

.page-main {
  padding: 120px 0 64px;
}

.prose {
  max-width: 760px;
}

.prose h1 {
  font-family: var(--font-display);
  font-stretch: expanded;
  text-transform: uppercase;
  border-bottom: 4px solid var(--primary);
  padding-bottom: 12px;
}

.prose h2 {
  margin-top: 32px;
  color: var(--accent);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 20px;
}

.contact-form {
  margin-top: 32px;
  max-width: 520px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

.form-error {
  display: none;
  color: #f87171;
  font-size: 0.85rem;
  margin: -12px 0 12px;
}

.form-error.active {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--primary);
  margin-top: 24px;
}

.form-success.active {
  display: block;
}

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

.redirect__box {
  text-align: center;
  max-width: 480px;
  background: var(--surface);
  padding: 40px;
  border: 2px solid var(--primary);
}

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

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

.ad-flag {
  display: inline-block;
  background: var(--primary);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.redirect__meta {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.redirect__meta p {
  margin: 6px 0;
}

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-stretch: ultra-expanded;
  font-size: 5rem;
  color: var(--primary);
  margin: 0;
}

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

  .nav-toggle {
    display: flex;
  }

  .nav-overlay,
  .nav-drawer {
    display: flex;
  }

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

  .layout-split--offset {
    margin-left: 0;
  }

  .layout-zigzag--reverse .layout-zigzag__visual {
    order: 0;
  }

  .layout-split__img-wrap,
  .layout-zigzag__visual {
    max-width: 100%;
  }

  .layout-float {
    padding-left: 0;
    padding-top: 0;
  }

  .layout-float--solo {
    margin-left: 0;
  }

  .layout-float__img-wrap {
    position: static;
    max-width: 100%;
    margin-bottom: 20px;
    transform: none;
  }

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

  .layout-cards__item:nth-child(2) {
    transform: none;
  }

  .layout-banner__inner {
    margin-left: 0;
  }

  .layout-cta__inner {
    max-width: 100%;
  }

  .layout-cta__bg {
    display: none;
  }

  .layout-columns__aside {
    transform: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 180px;
    padding: 88px 20px 48px;
  }

  .offer-card__logo {
    width: 240px;
    height: 103px;
  }

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

  .layout-stacked__block:nth-child(even) {
    margin-left: 0;
  }
}

@media (max-width: 375px) {
  .wrap {
    padding: 0 16px;
  }

  .layout-split__img-wrap,
  .layout-zigzag__visual {
    max-width: 100%;
    transform: none;
    box-shadow: none;
  }

  .layout-split__img-wrap img,
  .layout-zigzag__visual img {
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
  }

  .layout-banner__inner {
    max-width: 100%;
    margin-left: 0;
    padding: 20px;
    box-shadow: none;
  }

  .layout-banner__bg {
    opacity: 0.12;
  }

  .layout-stacked__block:nth-child(even) {
    margin-left: 0;
  }

  .layout-columns__aside {
    transform: none;
  }

  .layout-quote {
    padding: 16px 20px;
    box-shadow: none;
  }

  .hero__mosaic {
    gap: 2px;
  }

  .offer-card__logo {
    width: 220px;
    height: 94px;
  }

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

  .offer-card__bonus {
    font-size: 13px;
  }
}
