/**
 * Theme-base shell: skip-link, header, footer, cookie, form, sticky CTA.
 * Tokens from AURADESIGN.md — no drift.
 */

:root {
  --color-primary: #6C3CE1;
  --color-primary-hover: #5A2FC4;
  --color-primary-soft: #EDE7FF;
  --color-on-primary: #FFFFFF;
  --color-secondary: #00C9B7;
  --color-secondary-hover: #00B3A3;
  --color-secondary-soft: #E6FBF8;
  --color-on-secondary: #0A2E2A;
  --color-accent: #FFB800;
  --color-accent-soft: #FFF4D6;
  --color-on-accent: #3D2E00;
  --color-background: #FAF8FF;
  --color-on-background: #1A1625;
  --color-surface-lowest: #FFFFFF;
  --color-surface-low: #F3F0FF;
  --color-surface-container: #E8E2FF;
  --color-surface-high: #D9D0FF;
  --color-outline: #B8AEE0;
  --color-outline-variant: #E5DFF5;
  --color-error: #E5484D;
  --color-success: #30A46C;
  --color-footer: #1A1625;
  --color-on-footer: #FFFFFF;
  --color-legal-sm: #C8C0D8;
  /* Aliases for site-pages.css (var(--on-primary) / var(--surface-mint)) — keep --color-* intact */
  --on-primary: #FFFFFF;
  --on-accent: #3D2E00;
  --on-background: #1A1625;
  --surface-mint: #E6FBF8;
  --surface-sun: #FFF8E6;
  --rounded-sm: 8px;
  --rounded: 12px;
  --rounded-md: 16px;
  --rounded-lg: 24px;
  --rounded-pill: 9999px;
  --shadow-float: 0 12px 32px rgba(26, 22, 37, 0.18);
  --z-header: 100;
  --z-sticky-cta: 90;
  --z-cookie: 200;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 12px 16px;
  background: #00C9B7;
  color: #0A2E2A;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #00C9B7;
  outline-offset: 2px;
}

/* Header — AURA sticky shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5DFF5;
  box-shadow: none;
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(26, 22, 37, 0.08);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 72px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.site-header__logo:hover {
  transform: translateY(-1px);
}

.site-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(108, 60, 225, 0.22);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header__logo:hover .site-header__logo-mark {
  box-shadow: 0 4px 14px rgba(108, 60, 225, 0.38);
  transform: scale(1.05) rotate(3deg);
}

.site-header__logo-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header__logo-text {
  font-family: var(--font-display, "Unbounded", sans-serif);
  font-weight: 800;
  font-size: 20px;
  color: #6C3CE1;
  text-decoration: none;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .site-header__logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .site-header__logo-text {
    font-size: 17px;
  }
}

.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1625;
  border-radius: 1px;
}

.site-header__nav {
  display: none;
}

.site-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-header__menu a {
  text-decoration: none;
  color: #1A1625;
  font-weight: 600;
  font-size: 15px;
}

.site-header__menu .current-menu-item > a,
.site-header__menu a[aria-current="page"] {
  color: #6C3CE1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header__cta {
  margin-left: auto;
}

.site-header__nav-cta {
  display: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E5DFF5;
}

.site-header__nav-cta .btn {
  width: 100%;
}

@media (max-width: 1023px) {
  .site-header__cta {
    display: none !important;
  }
  .site-header__nav-cta {
    display: block;
  }
  .site-header__toggle {
    margin-left: auto;
  }
}

.site-header.is-nav-open .site-header__nav {
  display: block;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #E5DFF5;
  width: 100%;
  order: 4;
  z-index: 110;
}

@media (min-width: 1024px) {
  .site-header__inner {
    flex-wrap: nowrap;
    height: 72px;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__nav {
    display: block;
    flex: 1;
  }

  .site-header__menu {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }

  .site-header__cta {
    margin-left: 0;
  }

  .site-header.is-nav-open .site-header__nav {
    position: static;
    padding: 0;
    border: 0;
    width: auto;
  }
}

/* Footer */
.site-footer {
  background: #1A1625;
  color: #fff;
  padding: 0 0 32px;
  margin-top: 48px;
}

.site-footer a {
  color: #b8aee0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__cta-band {
  background: #6C3CE1;
  padding: 28px 0;
  margin-bottom: 40px;
}

.site-footer__cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__cta-text {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.site-footer__cta-band .btn--primary {
  background: #FFB800;
  color: #3D2E00;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__heading {
  font-family: var(--font-display, "Unbounded", sans-serif);
  font-size: 16px;
  margin: 0 0 16px;
  color: #fff;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__menu li {
  margin-bottom: 12px;
}

.site-footer__legal-sm {
  border-top: 1px solid rgba(184, 174, 224, 0.24);
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #C8C0D8;
}

.site-footer__legal-sm p {
  margin: 0;
}

/* Cookie — one instance, above sticky CTA */
#teenai-cookie-banner.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: #1A1625;
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 -8px 32px rgba(26, 22, 37, 0.24);
}

#teenai-cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 14px;
}

.cookie-banner__text a {
  color: #00C9B7;
}

.cookie-banner__accept-short {
  display: none;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: var(--z-sticky-cta);
}

.mobile-sticky-cta .btn {
  width: 100%;
  box-shadow: var(--shadow-float);
}

@media (max-width: 767px) {
  .mobile-sticky-cta {
    display: block;
  }

  body:has(#teenai-cookie-banner:not([hidden])) .mobile-sticky-cta {
    bottom: 96px;
  }

  body:has(#teenai-cookie-banner:not([hidden])) main#primary {
    padding-bottom: 160px;
  }
}

/* Contact form */
.contact-form {
  position: relative;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(108, 60, 225, 0.08);
}

.contact-form__field {
  margin: 0 0 16px;
}

.contact-form__field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E5DFF5;
  border-radius: 12px;
  font: inherit;
}

.contact-form__hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form__consent {
  margin: 0 0 16px;
  font-size: 14px;
}

.contact-form__consent-note {
  display: block;
  margin-top: 6px;
  color: #6b6280;
}

.contact-form__status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
}

.contact-form__status--success {
  background: #E6FBF8;
  color: #0A2E2A;
}

.contact-form__status--error {
  background: #FFF4D6;
  color: #3D2E00;
}

.legal-page {
  padding: 48px 0 80px;
}

.legal-requisites {
  margin: 32px 0;
  padding: 24px;
  background: #F3F0FF;
  border-radius: 16px;
  max-width: 100%;
}

.legal-requisites__list {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}

.legal-requisites__list dt {
  font-weight: 700;
}

.legal-requisites__list dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .legal-requisites {
    padding: 16px;
  }

  .legal-requisites__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__cutout,
  .studio-hero__cutout,
  .safety__roman,
  .final-cta__cutout {
    transform: none !important;
  }
}

html[data-reduced-motion="true"] [data-motion="spark-drift"] {
  animation: none !important;
}
