:root {
  --bg: #05060A;
  --surface: #0E1020;
  --text: #EDE9FE;
  --muted: #A1A1AA;
  --primary: #22D3EE;
  --secondary: #A3E635;
  --accent: #F472B6;
  --border: rgba(237,233,254,0.12);
  --max-w: 1200px;
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Avenir, "Avenir Next", Candara, sans-serif;
  --nav-left: #12142A;
  --nav-right: #080910;
  --kw-university: university;
  --kw-history: history;
  --kw-library: library;
  --kw-classic: classic;
  --kw-intellectual: intellectual;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(244, 114, 182, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--surface) 48%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "university history library classic intellectual";
  position: fixed;
  inset: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(237, 233, 254, 0.015) 3px,
      rgba(237, 233, 254, 0.015) 4px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: auto, 180px 180px;
}

body::after {
  content: var(--kw-university) " " var(--kw-history) " " var(--kw-library) " " var(--kw-classic) " " var(--kw-intellectual);
  position: fixed;
  inset: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 78%, rgba(163, 230, 53, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 82% 55%, rgba(34, 211, 238, 0.07) 0%, transparent 42%);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

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

#offers .offer-logo {
  max-width: none;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.disclosure-banner {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(90deg, #05060A 0%, #0A3A44 100%);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  border: none;
  position: relative;
  z-index: 3;
  font-family: var(--font-sans);
}

.disclosure-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.disclosure-banner .aff-block {
  display: block;
  margin-top: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  height: 60px;
  width: 100%;
}

.nav-half {
  flex: 1 1 50%;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.nav-half-left {
  background: var(--nav-left);
  justify-content: flex-end;
}

.nav-half-right {
  background: var(--nav-right);
  justify-content: flex-start;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-half-inner {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
}

.nav-half-inner-left {
  justify-content: flex-start;
}

.nav-half-inner-right {
  justify-content: flex-end;
  gap: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-lockup:hover {
  color: var(--primary);
}

.brand-lockup img {
  width: 32px;
  height: 35px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1200;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  z-index: 1300;
  padding: 72px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

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

.mobile-nav a {
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

body.nav-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background:
    linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.45;
  pointer-events: none;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 32px;
  height: 35px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-requisites {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.ca-disclosure {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.55;
  color: rgba(161, 161, 170, 0.85);
  max-width: 920px;
}

.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.age-overlay.active {
  opacity: 1;
  visibility: visible;
}

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.55);
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  position: relative;
}

.age-dialog::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(237, 233, 254, 0.08);
  pointer-events: none;
}

.age-dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.age-dialog p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-confirm,
.btn-decline {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

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

.btn-confirm:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

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

.btn-decline:hover {
  color: var(--text);
  border-color: var(--muted);
}

.age-blocked {
  display: none;
  font-family: var(--font-sans);
  color: var(--accent);
  margin: 0;
}

.age-blocked.visible {
  display: block;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.cookie-actions button {
  flex: 1;
  min-width: 110px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 14px;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.cookie-actions .accept {
  background: var(--primary);
  color: var(--bg);
}

.cookie-actions .accept:hover {
  background: var(--secondary);
}

.cookie-actions .reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cookie-actions .reject:hover {
  color: var(--text);
}

.page-hero {
  padding: 28px 24px 0;
  border-bottom: none;
  background:
    linear-gradient(180deg, rgba(14, 16, 32, 0.9), rgba(5, 6, 10, 0.4));
  min-height: 24px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  font-family: var(--font-sans);
}

.legal-content h1 {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-content p,
.legal-content li {
  color: rgba(237, 233, 254, 0.88);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

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

.contact-form button {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.form-error {
  display: none;
  color: var(--accent);
  font-size: 0.8rem;
}

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

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.08);
}

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

.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

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

.cta-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--bg);
  background: var(--primary);
  padding: 12px 22px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-link:hover {
  background: var(--secondary);
  color: var(--bg);
  transform: translateY(-1px);
}

.go-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.go-page h1 {
  font-size: 1.6rem;
}

.go-page p {
  font-family: var(--font-sans);
  color: var(--muted);
  max-width: 420px;
}

#AD {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

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

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

.go-notes {
  margin-top: 12px;
  font-size: 0.8rem;
}

.go-notes a {
  color: var(--primary);
}

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

  .burger-btn {
    display: flex;
  }

  .nav-half-left,
  .nav-half-right {
    background: var(--nav-right);
  }

  .nav-half-right {
    border-left: none;
    flex: 0 0 auto;
  }

  .nav-half-left {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .nav-half-inner-left {
    max-width: none;
  }

  .nav-half-inner-right {
    padding-left: 0;
  }
}
