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

:root {
  --bg: #E5E9F0;
  --surface: #ECEFF4;
  --text: #2E3440;
  --muted: #4C566A;
  --primary: #5E81AC;
  --secondary: #81A1C1;
  --accent: #BF616A;
  --border: rgba(46, 52, 64, 0.1);
  --nav-bg: rgba(15, 15, 25, 0.75);
  --max-w: 1200px;
  --nav-h: 56px;
  --shadow-sm: 2px 3px 8px rgba(46, 52, 64, 0.08);
  --shadow-md: 4px 6px 14px rgba(46, 52, 64, 0.12);
  --shadow-lg: 6px 10px 20px rgba(46, 52, 64, 0.16);
  --craft-cut-paper: cut paper;
  --craft-layered: layered;
  --craft-paper-craft: paper craft;
  --craft-tactile: tactile;
  --craft-handmade: handmade;
  --craft-collage: collage;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(94, 129, 172, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, #d8dee9 100%);
  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;
  background-image:
    repeating-linear-gradient(
      -3deg,
      transparent,
      transparent 48px,
      rgba(46, 52, 64, 0.02) 48px,
      rgba(46, 52, 64, 0.02) 49px
    );
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

.hidden {
  display: none !important;
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px 14px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  background: #f0f2f7;
  position: relative;
  z-index: 2;
}

.disclosure-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background-color: var(--nav-bg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,12 350,0 600,6 C850,12 1050,0 1200,8 L1200,12 L0,12 Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,12 350,0 600,6 C850,12 1050,0 1200,8 L1200,12 L0,12 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--nav-h);
}

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

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

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

.nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-desktop a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.mobile-drawer a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
}

.mobile-drawer a:hover {
  text-shadow: 0 0 8px var(--accent);
}

body.drawer-open {
  overflow: hidden;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 5%;
  right: 5%;
  height: 8px;
  background: var(--surface);
  border-radius: 4px 4px 0 0;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.5deg);
}

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

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

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.footer-disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--surface);
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.5deg);
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

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

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

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

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

.legal-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
  color: var(--text);
}

.legal-content h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 20px;
  color: var(--muted);
}

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

.page-hero {
  background: var(--surface);
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
}

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

.contact-info h2 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.contact-form {
  background: var(--surface);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: rotate(0.8deg);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

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

.form-error {
  display: none;
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 6px;
}

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

.form-success {
  display: none;
  background: var(--surface);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.form-success p {
  color: var(--muted);
}

.not-found-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.not-found-wrap h1 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.not-found-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}

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

  .burger-btn {
    display: flex;
  }

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