:root {
  --bg: #064E3B;
  --surface: #065F46;
  --text: #ECFDF5;
  --muted: #A7F3D0;
  --primary: #F59E0B;
  --secondary: #10B981;
  --accent: #FCD34D;
  --border: rgba(255,255,255,0.15);
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(16, 185, 129, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(245, 158, 11, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #043d2f 45%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: 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)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

.fashion,
.bespoke,
.craft,
.minimal,
.white {
  letter-spacing: 0.02em;
}

@supports (color: fashion) {
  .atelier-meta {
    --atelier-fashion: fashion;
    --atelier-bespoke: bespoke;
    --atelier-craft: craft;
    --atelier-minimal: minimal;
    --atelier-white: white;
  }
}

.disclosure {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.02) 1px,
    rgba(255, 255, 255, 0.02) 2px
  );
  border-bottom: 1px solid var(--border);
  height: 52px;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

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

.brand-lockup img {
  width: 32px;
  height: 34px;
  object-fit: contain;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
}

.nav-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 38px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

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

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

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

.footer-badges a,
.footer-badges span {
  display: inline-flex;
}

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

.footer-requisites {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-requisites p {
  margin-bottom: 4px;
}

.thread-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 0;
}

.age-overlay,
.cookie-banner {
  display: none;
  position: fixed;
  z-index: 1000;
}

.age-overlay.active {
  display: flex;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
}

.age-dialog h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

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

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

.age-actions button,
.cookie-actions button,
.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--bg);
  transition: background 0.2s ease, color 0.2s ease;
}

.age-actions button[data-age-gate="decline"],
.cookie-actions .cookie-reject {
  background: transparent;
  color: var(--text);
}

.age-actions button:hover,
.cookie-actions button:hover,
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 78, 59, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.cookie-banner.active {
  display: block;
}

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

.cookie-inner p {
  flex: 1 1 280px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
}

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

.legal-page,
.subpage-main,
.error-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-page h1,
.subpage-main h1,
.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.legal-page h2,
.subpage-main h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 28px 0 12px;
  color: var(--accent);
  font-weight: 600;
}

.legal-page h3,
.subpage-main h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-page p,
.subpage-main p,
.error-page p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.legal-page ul,
.subpage-main ul,
.legal-page ol,
.subpage-main ol {
  margin: 0 0 16px 1.25rem;
  color: var(--muted);
}

.legal-page li,
.subpage-main li {
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 32px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
}

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

.form-error {
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  display: none;
}

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

.form-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.15);
  color: var(--text);
  font-family: var(--font-serif);
}

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

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

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

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

.go-page #AD {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.go-notes {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 420px;
}

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

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

  .nav-links {
    display: none;
    position: fixed;
    inset: 52px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 18px;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--secondary);
  }

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

.page-hero-strip {
  background: linear-gradient(120deg, var(--surface), rgba(6, 78, 59, 0.4));
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  margin-bottom: 8px;
}

.page-hero-strip .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero-strip .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.decor-cap {
  max-width: min(500px, 100%);
  max-height: 320px;
  overflow: hidden;
  width: 100%;
}

.decor-cap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.bonuses-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.bonuses-rail {
  position: sticky;
  top: 72px;
  border: 1px solid var(--border);
  padding: 20px;
  background: rgba(6, 95, 70, 0.35);
}

.bonuses-rail h3 {
  margin-top: 0;
}

.bonuses-rail ul {
  list-style: none;
  margin-left: 0;
}

.bonuses-rail li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.security-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 32px 0;
}

.security-band .panel {
  min-height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.security-band .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 78, 59, 0.85), transparent 55%);
}

.security-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-stats div {
  flex: 1 1 140px;
}

.security-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
}

.security-stats span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banking-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.banking-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  margin: 24px 0;
}

.banking-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.banking-table th,
.banking-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.banking-table th {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0;
}

.mosaic .cell {
  min-height: 140px;
  background-size: cover;
  background-position: center;
  max-height: 200px;
}

@media (max-width: 800px) {
  .bonuses-layout,
  .security-band,
  .banking-split,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .bonuses-rail {
    position: static;
  }

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

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

  .security-band .panel {
    max-width: 100%;
    min-height: 160px;
    overflow: hidden;
  }

  .mosaic .cell {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .subpage-main,
  .page-hero-strip {
    padding-left: 12px;
    padding-right: 12px;
  }

  .decor-cap {
    max-height: 180px;
  }

  .decor-cap img {
    max-height: 180px;
  }
}
