*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FAF5FF;
  --surface: #FFFFFF;
  --text: #2E1065;
  --muted: #7C3AED;
  --primary: #8B5CF6;
  --secondary: #DDD6FE;
  --accent: #C084FC;
  --border: rgba(46, 16, 101, 0.08);
  --nav-bg: #2E1065;
  --nav-text: #FAF5FF;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --rainbow: linear-gradient(90deg, #8B5CF6, #C084FC, #DDD6FE, #7C3AED, #8B5CF6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.offer-card__logo-wrap .offer-card__logo {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

a:hover {
  color: var(--accent);
}

.disclosure {
  width: 100%;
  padding: 8px 16px 14px;
  background: #EDE9FE;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  position: relative;
}

.disclosure::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 14' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C200,14 400,0 600,7 C800,14 1000,0 1200,7 L1200,14 L0,14 Z' fill='%232E1065'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.navbar-wrap {
  padding: 12px 0 0;
  position: sticky;
  top: 12px;
  z-index: 100;
}

.navbar {
  width: 85%;
  margin-left: 10%;
  margin-right: 5%;
  background: var(--nav-bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.navbar__inner {
  padding: 12px 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-links a {
  display: inline-block;
  color: var(--nav-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 255, 0.2);
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.navbar-links a:hover {
  background: rgba(139, 92, 246, 0.35);
  color: var(--nav-text);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nav-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.mobile-overlay a {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 255, 0.25);
  background: rgba(139, 92, 246, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.mobile-overlay a:hover {
  background: rgba(192, 132, 252, 0.3);
  color: var(--nav-text);
  transform: scale(1.05);
}

.site-footer {
  background: var(--nav-bg);
  border-top: 3px solid transparent;
  border-image: var(--rainbow) 1;
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--secondary);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  color: var(--secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid rgba(250, 245, 255, 0.12);
  border-bottom: 1px solid rgba(250, 245, 255, 0.12);
}

.footer-badges a,
.footer-badges span {
  display: block;
}

.footer-badges img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-badges a:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.footer-legal {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(221, 214, 254, 0.75);
  line-height: 1.7;
  max-width: 900px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--secondary);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 16, 101, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 2px solid transparent;
  border-image: var(--rainbow) 1;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(46, 16, 101, 0.4);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-top: 2px solid var(--accent);
  padding: 16px 24px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--secondary);
  flex: 1;
  min-width: 200px;
}

.cookie-inner a {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .navbar-wrap {
    top: 0;
    padding: 0;
  }

  .navbar {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .navbar-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-overlay {
    display: flex;
  }
}

.navbar-simple .navbar-links {
  display: none;
}

.page-hero {
  background: var(--nav-bg);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nav-text);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--secondary);
  font-size: 15px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  background: var(--surface);
  color: var(--text);
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-content ul {
  margin: 12px 0 16px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-content strong {
  color: var(--text);
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input.input-error {
  border-color: #DC2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-success {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg);
  border-radius: 16px;
  border: 2px solid var(--primary);
  text-align: center;
}

.form-success h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text);
}

.form-success p {
  color: var(--muted);
}

.error-page {
  text-align: center;
  padding: 80px 24px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 5rem;
  font-weight: 900;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.error-page .btn {
  background: var(--primary);
  color: #fff;
}
