/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  font: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
textarea,
select {
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== CSS VARIABLES (Design Tokens) ===== */
:root {
  /* Colors */
  --surface: #faf8ff;
  --surface-dim: #dad9e0;
  --surface-bright: #faf8ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f3f9;
  --surface-container: #efedf3;
  --surface-container-high: #e9e7ee;
  --surface-container-highest: #e3e2e8;
  --surface-variant: #e3e2e8;
  --surface-tint: #435b9f;
  --on-surface: #1a1b20;
  --on-surface-variant: #444650;
  --inverse-surface: #2f3035;
  --inverse-on-surface: #f1f0f6;
  --outline: #757682;
  --outline-variant: #c5c6d2;
  --primary: #00113a;
  --on-primary: #ffffff;
  --primary-container: #002366;
  --on-primary-container: #758dd5;
  --inverse-primary: #b3c5ff;
  --primary-fixed: #dbe1ff;
  --primary-fixed-dim: #b3c5ff;
  --on-primary-fixed: #00174a;
  --on-primary-fixed-variant: #2a4386;
  --secondary: #50606f;
  --on-secondary: #ffffff;
  --secondary-container: #d1e1f4;
  --on-secondary-container: #556474;
  --secondary-fixed: #d4e4f6;
  --secondary-fixed-dim: #b8c8da;
  --on-secondary-fixed: #0d1d2a;
  --on-secondary-fixed-variant: #394857;
  --tertiary: #2d0700;
  --on-tertiary: #ffffff;
  --tertiary-container: #501300;
  --on-tertiary-container: #d37758;
  --tertiary-fixed: #ffdbd0;
  --tertiary-fixed-dim: #ffb59e;
  --on-tertiary-fixed: #390b00;
  --on-tertiary-fixed-variant: #783018;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --background: #faf8ff;
  --on-background: #1a1b20;
  --accent: #d37758;

  /* Spacing */
  --unit: 8px;
  --gutter: 32px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --section-gap: 120px;
  --container-max: 1280px;

  /* Border Radius */
  --radius: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 9999px;
}

/* ===== TYPOGRAPHY ===== */
.font-display-lg {
  font-family: 'EB Garamond', serif;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.font-headline-lg {
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 500;
}

.font-headline-lg-mobile {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
}

.font-headline-md {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.font-body-lg {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.font-body-md {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.font-nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.font-label-caps {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

#lastpadding-section {
  padding-bottom: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.section-gap {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== SCROLLBAR HIDE ===== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== SELECTION ===== */
::selection {
  background-color: var(--primary-container);
  color: var(--on-primary);
}

/* ===== DETAILS/SUMMARY ===== */
details>summary {
  list-style: none;
}

details>summary::-webkit-details-marker {
  display: none;
}

/* ===== MATERIAL SYMBOLS ===== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== TOP NAV BAR ===== */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
  background: rgba(250, 248, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-nav.nav-hidden {
  transform: translateY(-100%);
}

.top-nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px var(--margin-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .top-nav .nav-inner {
    padding: 14px var(--margin-desktop);
  }
}

.top-nav .brand {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav .brand .brand-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 10px;
  color: var(--on-surface-variant);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.top-nav .nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .top-nav .nav-links {
    display: flex;
  }
}

.top-nav .nav-links a {
  color: var(--on-surface-variant);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
}

.top-nav .nav-links a:hover {
  color: var(--primary-container);
}

.top-nav .nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.top-nav .nav-cta {
  display: none;
}

@media (min-width: 1280px) {
  .top-nav .nav-cta {
    display: block;
  }
}

.top-nav .nav-cta button,
.top-nav .nav-cta a {
  background: var(--primary-container);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}

.top-nav .nav-cta button:hover,
.top-nav .nav-cta a:hover {
  opacity: 0.9;
  border-color: var(--outline);
}

.top-nav .mobile-menu-btn {
  display: block;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
}

.burger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  left: 0;
}

.burger-icon span:nth-child(1) {
  top: 0px;
}

.burger-icon span:nth-child(2) {
  top: 8px;
}

.burger-icon span:nth-child(3) {
  top: 16px;
}

.mobile-menu-btn.active .burger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active .burger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

@media (min-width: 1024px) {
  .top-nav .mobile-menu-btn {
    display: none;
  }
}

/* ===== FLOATING CALLBACK WIDGET (from tel.html) ===== */
#popup__toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  z-index: 999;
  cursor: pointer;
}

/* Pulsing outer sharp outline (strictly sharp 0px per DESIGN.md) */
.circlephone {
  box-sizing: border-box;
  position: absolute;
  width: 104px;
  height: 104px;
  top: -20px;
  left: -20px;
  border: 1.5px solid var(--accent, #d37758);
  /* Highly visible terracotta accent */
  border-radius: 0 !important;
  animation: sharp-pulse-outer 2s infinite ease-in-out;
  opacity: 0.75;
  /* Higher opacity to be beautifully visible on white backgrounds */
  pointer-events: none;
}

/* Pulsing filled outer accent (strictly sharp 0px per DESIGN.md) */
.circle-fill {
  box-sizing: border-box;
  position: absolute;
  width: 84px;
  height: 84px;
  top: -10px;
  left: -10px;
  background-color: rgba(211, 119, 88, 0.15);
  /* Soft Terracotta glow */
  border-radius: 0 !important;
  animation: sharp-pulse-fill 2s infinite ease-in-out;
  pointer-events: none;
}

/* Main button square (strictly sharp 0px per DESIGN.md) */
.img-circle {
  box-sizing: border-box;
  position: absolute;
  width: 64px;
  height: 64px;
  background: #F7E7CE;
  /* Champagne Gold by default: pops brilliantly against dark Navy sections */
  color: var(--primary, #00113a);
  /* Deep Navy icon for crisp readability */
  border: 1.5px solid var(--primary, #00113a);
  /* Dark Navy border: ensures high-contrast shape on white */
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 17, 58, 0.16);
  /* Deep Navy shadow */
  transition: background-color 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}

#popup__toggle:hover .img-circle {
  background: var(--primary, #00113a);
  /* Invert on hover: Deep Navy background */
  color: #F7E7CE;
  /* Champagne Gold icon */
  border-color: #F7E7CE;
  /* Champagne Gold border to stand out on dark blocks */
  transform: scale(1.05);
}

.img-circleblock2 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.photo-1,
.photo-2 {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photo-1 svg path,
.photo-2 svg path {
  fill: currentColor !important;
}

/* Wiggle animations to make icons feel alive */
.photo-1 svg {
  animation: phone-wiggle 3s ease-in-out infinite;
  transform-origin: center;
}

.photo-2 svg {
  animation: chat-wobble 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes phone-wiggle {

  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }

  5%,
  15%,
  25%,
  35%,
  45% {
    transform: rotate(-12deg);
  }

  10%,
  20%,
  30%,
  40% {
    transform: rotate(12deg);
  }
}

@keyframes chat-wobble {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  25% {
    transform: scale(1.08, 0.92) translateY(-2px);
  }

  50% {
    transform: scale(0.92, 1.08) translateY(1px);
  }

  75% {
    transform: scale(1.04, 0.96) translateY(-1px);
  }
}


/* ========================================================
   PC / DESKTOP STYLING (Default)
   ======================================================== */

/* Only photo-2 (chat icon) is visible on PC/Desktop */
.photo-1 {
  display: none;
}

.photo-2 {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

#popup__toggle:hover .photo-2 {
  transform: scale(1.1) rotateY(0deg);
}

/* Hide "Позвонить" button inside the modal overlay for PC version */
.menu-chat__item.call-direct {
  display: none !important;
}

/* ========================================================
   MOBILE & TABLET RESPONSIVE STYLING (Screen <= 1024px)
   ======================================================== */
@media (max-width: 1024px) {

  /* Show both icons for 3D flip animation loop */
  .photo-1 {
    display: flex !important;
    animation: rotateY1 8s linear infinite;
  }

  .photo-2 {
    display: flex !important;
    animation: rotateY2 8s linear infinite;
  }

  /* Do not scale on hover for mobile touch */
  #popup__toggle:hover .photo-2 {
    transform: none !important;
  }

  /* Show "Позвонить" button inside the modal overlay */
  .menu-chat__item.call-direct {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  #popup__toggle {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }

  .circlephone {
    width: 96px;
    height: 96px;
    top: -20px;
    left: -20px;
  }

  .circle-fill {
    width: 76px;
    height: 76px;
    top: -10px;
    left: -10px;
  }

  .img-circle {
    width: 56px;
    height: 56px;
  }
}

/* Premium 3D Rotating flip (rotateY) keyframes like sochi.stop-zaim.ru */
@keyframes rotateY1 {

  0%,
  40% {
    transform: rotateY(-180deg);
  }

  48%,
  92% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(180deg);
  }
}

@keyframes rotateY2 {

  0%,
  40% {
    transform: rotateY(0deg);
  }

  48%,
  92% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* Elegant keyframe animations */
@keyframes sharp-pulse-outer {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes sharp-pulse-fill {
  0% {
    transform: scale(0.8);
    opacity: 0.15;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* ===== CHAT MENU OVERLAY (wrapper__menu-chat) ===== */
.wrapper__menu-chat {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 11, 38, 0.55);
  /* Deep navy tint overlay with blur */
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--margin-mobile, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wrapper__menu-chat.active {
  opacity: 1;
  visibility: visible;
}

/* Tonal menu box - STRICTLY SHARP 0px per DESIGN.md with top accent bar */
.menu-chat__box {
  position: relative;
  background: var(--surface-container-lowest, #ffffff);
  border: 1px solid var(--outline-variant, #c5c6d2);
  border-top: 4px solid var(--accent, #d37758);
  /* Beautiful terracotta top accent bar */
  border-radius: 0 !important;
  /* STRICTLY SHARP */
  width: 100%;
  max-width: 420px;
  padding: 40px 32px 32px 32px;
  box-shadow: 0 24px 64px rgba(0, 17, 58, 0.18);
  /* Rich premium shadow */
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.wrapper__menu-chat.active .menu-chat__box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modern Header Layout */
.menu-chat__header {
  text-align: center;
  margin-bottom: 28px;
}

/* Eyebrow Label */
.menu-chat-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent, #d37758);
  display: block;
  margin-bottom: 8px;
}

/* Classical Serif Title */
.menu-chat-title {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  color: var(--primary, #00113a);
  margin: 0;
}

/* Close button top right */
.menu-chat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  color: var(--outline, #757682);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
}

.menu-chat-close:hover {
  color: var(--primary, #00113a);
  transform: rotate(90deg);
}

.menu-chat-close svg {
  display: block;
}

/* Premium list items - strictly square */
.menu-chat__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-chat__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  width: 100%;
  padding: 16px 20px;
  border-radius: 0 !important;
  /* STRICTLY SHARP */
  border: 1px solid var(--outline-variant, #c5c6d2);
  background: var(--surface-container-lowest, #ffffff);
  color: var(--primary, #00113a);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Left Brand-colored accent border default */
.menu-chat__item.telegram {
  border-left: 3px solid #37AEE2;
}

.menu-chat__item.whatsapp {
  border-left: 3px solid #2CB742;
}

.menu-chat__item.max-app {
  border-left: 3px solid #5A31F4;
}

.menu-chat__item.call-direct {
  border-left: 3px solid var(--accent, #d37758);
}

/* Item Hover States: micro-animations & background highlight color transitions */
.menu-chat__item:hover {
  transform: translateY(-2px);
}

.menu-chat__item.telegram:hover {
  background: #f2f9fc;
  /* Extremely soft Telegram blue tint */
  border-color: #37AEE2;
  box-shadow: 0 4px 12px rgba(55, 174, 226, 0.08);
}

.menu-chat__item.whatsapp:hover {
  background: #f2faf3;
  /* Extremely soft WhatsApp green tint */
  border-color: #2CB742;
  box-shadow: 0 4px 12px rgba(44, 183, 66, 0.08);
}

.menu-chat__item.max-app:hover {
  background: #f4f2ff;
  /* Extremely soft MAX purple tint */
  border-color: #5A31F4;
  box-shadow: 0 4px 12px rgba(90, 49, 244, 0.08);
}

.menu-chat__item.call-direct:hover {
  background: #fff9f6;
  /* Extremely soft Terracotta tint */
  border-color: var(--accent, #d37758);
  box-shadow: 0 4px 12px rgba(211, 119, 88, 0.08);
}

/* Left content grouping */
.menu-chat-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Label styling */
.menu-chat-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #00113a);
  transition: color 0.25s;
}

/* Icon Alignment */
.menu-chat-icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.menu-chat__item:hover .menu-chat-icon {
  transform: scale(1.1);
}

/* Elegant right arrow chevron */
.menu-chat-arrow {
  color: var(--outline, #757682);
  transition: color 0.25s, transform 0.25s;
}

.menu-chat__item:hover .menu-chat-arrow {
  color: var(--primary, #00113a);
  transform: translateX(4px);
}

/* Cancel option link centered at bottom */
.menu-chat-cancel-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--outline, #757682);
  text-align: center;
  margin-top: 24px;
  cursor: pointer;
  transition: color 0.25s;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  width: 100%;
}

.menu-chat-cancel-link:hover {
  color: var(--primary, #00113a);
}

/* ===== FOOTER ===== */
.site-footer {
  width: 100%;
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
}

.footer-inner {
  padding: 64px var(--margin-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 64px var(--margin-desktop);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--outline-variant);
}

.footer-grid>div:first-child {
  order: 1;
}

.footer-grid>.footer-contacts {
  order: 2;
}

.footer-grid>.footer-nav {
  order: 3;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 4fr 4fr 4fr;
  }

  .footer-grid>div:first-child {
    order: initial;
  }

  .footer-grid>.footer-contacts {
    order: initial;
  }

  .footer-grid>.footer-nav {
    order: initial;
  }
}

.footer-brand {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
  padding-right: 32px;
}

.footer-nav-title {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-nav a {
  display: block;
  width: fit-content;
  color: var(--on-surface-variant);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  transition: color 0.3s;
  margin-bottom: 4px;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-surface-variant);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 12px;
}

.footer-contact-item .material-symbols-outlined {
  color: var(--accent);
  font-variation-settings: 'wght' 300;
}

.footer-contact-item a {
  transition: color 0.3s;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-start;
    gap: 32px;
  }
}

.footer-legal a {
  color: var(--outline);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--outline);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: right;
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--surface-container-high);
}

.btn-accent-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background 0.3s, color 0.3s;
}

.btn-accent-outline:hover {
  background: var(--accent);
  color: var(--on-primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background 0.3s;
}

.btn-dark:hover {
  background: var(--primary-container);
}

/* ===== FORM INPUTS ===== */
.input-underline {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  padding: 8px 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.3s;
}

.input-underline::placeholder {
  color: rgba(117, 118, 130, 0.45);
}

.input-underline:focus {
  border-color: var(--primary-container) !important;
  outline: none !important;
  box-shadow: none !important;
}

.input-boxed {
  width: 100%;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.3s;
}

.input-boxed::placeholder {
  color: rgba(117, 118, 130, 0.45);
}

.input-boxed:focus {
  border-color: var(--primary-container) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--outline-variant);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--accent);
}

.card-flat {
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card-flat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-on-primary {
  color: var(--on-primary);
}

.text-on-surface {
  color: var(--on-surface);
}

.text-on-surface-variant {
  color: var(--on-surface-variant);
}

.text-outline {
  color: var(--outline);
}

.text-secondary {
  color: var(--secondary);
}

.text-error {
  color: var(--error);
}

.text-inverse-primary {
  color: var(--inverse-primary);
}

.bg-background {
  background-color: var(--background);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-surface-low {
  background-color: var(--surface-container-low);
}

.bg-surface-lowest {
  background-color: var(--surface-container-lowest);
}

.bg-surface-high {
  background-color: var(--surface-container-high);
}

.bg-surface-highest {
  background-color: var(--surface-container-highest);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-accent {
  background-color: var(--accent);
}

.border-outline-variant {
  border-color: var(--outline-variant);
}

.border-top {
  border-top: 1px solid var(--outline-variant);
}

.border-bottom {
  border-bottom: 1px solid var(--outline-variant);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-12 {
  margin-bottom: 48px;
}

.mb-16 {
  margin-bottom: 64px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-12 {
  margin-top: 48px;
}

.mt-16 {
  margin-top: 64px;
}

.pt-4 {
  padding-top: 16px;
}

.pt-8 {
  padding-top: 32px;
}

.pb-4 {
  padding-bottom: 16px;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.gap-12 {
  gap: 48px;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md-show {
    display: flex !important;
  }

  .md-block {
    display: block !important;
  }

  .md-hide {
    display: none !important;
  }

  .md-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .md-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .md-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .lg-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .lg-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ===== PAGE-SPECIFIC: MAIN CONTENT OFFSET ===== */
.main-content {
  /* padding-top set dynamically in components.js */
}

/* ===== TRANSITION HELPERS ===== */
.transition-colors {
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.transition-all {
  transition: all 0.3s;
}

.transition-transform {
  transition: transform 0.3s;
}

.transition-opacity {
  transition: opacity 0.3s;
}

/* ===== LINE CLAMP ===== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 767px) {
  .font-display-lg {
    font-size: 40px;
    line-height: 48px;
  }

  .font-headline-lg {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px var(--margin-mobile);
  gap: 12px;
  border-top: 1px solid var(--outline-variant);
  background: var(--surface);
  transform-origin: top center;
}

.mobile-nav.open {
  display: flex;
  animation: mobileNavOpen 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mobileNavOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.mobile-nav a {
  color: var(--on-surface-variant);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--outline-variant);
  transition: color 0.3s;
}

.mobile-nav.open a {
  animation: mobileNavLinkFade 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.mobile-nav.open a:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-nav.open a:nth-child(2) {
  animation-delay: 0.1s;
}

.mobile-nav.open a:nth-child(3) {
  animation-delay: 0.15s;
}

.mobile-nav.open a:nth-child(4) {
  animation-delay: 0.2s;
}

.mobile-nav.open a:nth-child(5) {
  animation-delay: 0.25s;
}

.mobile-nav.open a:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes mobileNavLinkFade {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav .mobile-cta {
  background: var(--primary-container);
  color: var(--on-primary);
  text-align: center;
  padding: 14px;
  border: none;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ===== SERVICE POPUP ===== */

/* Overlay — deep navy tint with glassmorphism blur */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 17, 58, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--margin-mobile);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup card — sharp 0px corners, layered tonal surface */
.service-popup {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 0;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.service-modal-overlay.active .service-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Vertical accent sidebar — premium brand marker */
.service-popup__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary-container) 100%);
  z-index: 2;
}

/* Close button — refined, minimal, sharp */
.service-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-popup__close:hover {
  border-color: var(--outline-variant);
  background: var(--surface-container-high);
}

.service-popup__close svg {
  width: 14px;
  height: 14px;
  color: var(--outline);
  transition: color 0.25s ease;
}

.service-popup__close:hover svg {
  color: var(--primary);
}

/* Header area — tonal surface layer for visual separation */
.service-popup__title {
  font-family: 'EB Garamond', serif;
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  padding: 44px 48px 0 32px;
}

/* Description text — with refined spacing */
.service-popup__desc {
  margin: 0;
  padding: 16px 48px 28px 32px;
  border-bottom: 1px solid var(--outline-variant);
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface-container-low) 100%);
}

.service-popup__desc p {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
  margin: 0;
}

.service-popup__desc p+p {
  margin-top: 3px;
}

.service-popup__desc .popup-highlight {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

/* Form area — sits in its own tonal zone */
#service-popup-form {
  padding: 28px 32px 36px;
}

/* Form inputs — animated underline with accent transition */
.service-popup__inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.service-popup__field {
  position: relative;
}

.service-popup__field label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.service-popup__field:focus-within label {
  color: var(--accent);
}

.service-popup__field input {
  width: 100%;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 0;
  padding: 12px 16px 12px 40px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.3s ease;
}

.service-popup__field input::placeholder {
  color: rgba(117, 118, 130, 0.45);
  transition: color 0.25s ease;
}

.service-popup__field input:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

.service-popup__field input:focus::placeholder {
  color: transparent;
}

.service-popup__field .input-error {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  min-height: 0;
}

/* Animated underline accent bar under input on focus */
.service-popup__field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-popup__field:focus-within::after {
  width: 100%;
}

/* Footer — consent + submit */
.service-popup__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-popup__consent {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: var(--outline);
}

.service-popup__consent a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.service-popup__consent a:hover {
  text-decoration: underline;
}

/* Submit — accent bg with Navy hover, sharp, premium feel */
.service-popup__submit {
  width: 100%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 18px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.15s ease;
}

.service-popup__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.service-popup__submit:hover {
  background: var(--primary-container);
}

.service-popup__submit:hover::before {
  left: 100%;
}

.service-popup__submit:active {
  transform: scale(0.99);
}

.service-popup__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.service-popup__submit:disabled::before {
  display: none;
}

/* Hidden clue */
.service-popup__hidden {
  display: none;
}

/* Success state — refined with animation */
.service-popup__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px;
  min-height: 320px;
  animation: popupSuccessFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popupSuccessFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Custom scrollbar — thin, matches design system */
.service-popup::-webkit-scrollbar {
  width: 3px;
}

.service-popup::-webkit-scrollbar-track {
  background: transparent;
}

.service-popup::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
}

/* Staggered field entry animations */
.service-modal-overlay.active .service-popup__title {
  animation: popupFieldSlide 0.4s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-modal-overlay.active .service-popup__desc {
  animation: popupFieldSlide 0.4s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-modal-overlay.active .service-popup__field:nth-child(1) {
  animation: popupFieldSlide 0.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-modal-overlay.active .service-popup__field:nth-child(2) {
  animation: popupFieldSlide 0.4s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-modal-overlay.active .service-popup__footer {
  animation: popupFieldSlide 0.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes popupFieldSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .service-popup {
    max-width: 100%;
  }

  .service-popup__title {
    font-size: 26px;
    line-height: 34px;
    padding: 36px 44px 0 24px;
  }

  .service-popup__desc {
    padding: 14px 24px 24px;
  }

  #service-popup-form {
    padding: 24px 24px 28px;
  }

  .service-popup__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .service-popup__close svg {
    width: 13px;
    height: 13px;
  }

  .service-popup__accent {
    width: 3px;
  }
}

/* ===== PRICING / CALCULATOR SECTION ===== */
.calc-section {
  border-top: 1px solid var(--outline-variant);
}

.calc-top {
  background: var(--surface-container-low);
  padding: 80px 0;
}

.calc-top-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .calc-top-inner {
    padding: 0 var(--margin-desktop);
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Left: Price info */
.calc-price-info h3 {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
}

.calc-price-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}

.calc-price-badge .price-value {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
}

.calc-installment {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  margin-bottom: 24px;
}

.calc-installment-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.calc-installment .price-value {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
}

.calc-price-desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--on-surface-variant);
}

/* Right: Quiz calculator */
.quiz-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  padding: 40px;
  position: relative;
}

.quiz-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-container) 100%);
}

.quiz-title {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
}

/* Range slider */
.quiz-range-group {
  margin-bottom: 28px;
}

.quiz-label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.quiz-range-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.quiz-range-value {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
}

.quiz-range-unit {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  color: var(--on-surface-variant);
}

input[type="range"].quiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--outline-variant);
  outline: none;
  cursor: pointer;
}

input[type="range"].quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

input[type="range"].quiz-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border-radius: 0;
}

/* Quiz range slider in index.php */
input[type="range"].stape1__range-many {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(to right, var(--accent) 0%, var(--accent) 25%, var(--outline-variant) 25%, var(--outline-variant) 100%);
}

input[type="range"].stape1__range-many::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border-radius: 0;
}

input[type="range"].stape1__range-many::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border-radius: 0;
}

input[type="range"].stape1__range-many::-moz-range-track {
  height: 6px;
  border-radius: 0;
  background: var(--outline-variant);
}

/* Checkboxes & radios */
.quiz-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.quiz-chip {
  display: none !important;
}

.quiz-chip+label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.quiz-chip:checked+label {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(0, 17, 58, 0.15);
}

.quiz-chip+label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quiz-chip:checked+label:hover {
  color: var(--on-primary);
}

/* Quiz million checkbox */
.quiz-million-check {
  display: block;
  margin-bottom: 24px;
}

.quiz-million-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.quiz-chip:checked+.quiz-million-label {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(0, 17, 58, 0.15);
}

.quiz-million-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quiz-chip:checked+.quiz-million-label:hover {
  color: var(--on-primary);
}

/* Quiz steps navigation */
.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
}

.quiz-step-indicator {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.quiz-step-indicator .step-current {
  color: var(--accent);
  font-weight: 600;
}

.quiz-nav-btns {
  display: flex;
  gap: 12px;
}

.quiz-btn-next {
  background: var(--accent);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-btn-next:hover {
  opacity: 0.9;
}

.quiz-btn-back {
  background: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.quiz-btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Quiz step 3 inputs */
.quiz-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .quiz-input-row {
    grid-template-columns: 1fr 1fr;
  }
}

.quiz-input-group label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 6px;
}

.quiz-input-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  color: var(--on-surface);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.quiz-input-group input::placeholder {
  color: rgba(117, 118, 130, 0.45);
  font-weight: 400;
}

.quiz-input-group input:focus {
  border-color: var(--primary);
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 1px var(--primary);
}

.quiz-consent {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

/* ===== PROCESS STEPS SECTION ===== */
.process-section {
  background: var(--surface-container-lowest);
  padding: 80px 0;
  border-top: 1px solid var(--outline-variant);
}

.process-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
  .process-inner {
    padding: 0 var(--margin-desktop);
  }
}

.process-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .process-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.process-header h3 {
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  color: var(--primary);
}

.process-timing {
  display: flex;
  gap: 32px;
}

.process-timing-item {
  text-align: center;
}

.process-timing-value {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
}

.process-timing-unit {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  color: var(--primary);
}

.process-timing-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* Steps grid */
.process-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step-card {
  border: 1px solid var(--outline-variant);
  padding: 32px;
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.process-step-card:hover {
  border-color: var(--accent);
}

.process-step-card.process-step-final {
  border-color: var(--accent);
  background: var(--surface-container-low);
}

.process-step-num {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--outline-variant);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step-card:hover .process-step-num,
.process-step-final .process-step-num {
  color: var(--accent);
}

.process-step-title {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}

.process-step-desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
  flex-grow: 1;
}

.process-step-arrow {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  color: var(--outline-variant);
  z-index: 2;
  display: none;
}

@media (min-width: 768px) {
  .process-step-arrow {
    display: block;
  }
}

.process-step-cta {
  margin-top: 20px;
}

/* ═══ Review expand/collapse styles ═══ */

/* Card itself must be the positioning anchor */
.review-card {
  position: relative;
}

/* Collapsed state */
.review-text-container {
  position: relative;
  margin-bottom: 1rem;
}

.review-text {
  overflow: hidden;
  max-height: 150px;
  /* collapsed height, matches JS */
  transition: max-height 0.4s ease;
}

/* Gradient fade at the bottom of truncated text */
.review-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--surface-container-low, #f5f0ec));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review-toggle {
  background: none;
  border: none;
  color: var(--accent, #d37758);
  cursor: pointer;
  font-weight: 500;
  margin-top: 8px;
  padding: 0;
  font-size: 0.9rem;
}

.review-toggle:hover {
  text-decoration: underline;
}

.review-toggle.hidden {
  display: none;
}

/* ═══ EXPANDED state ═══
   With items-start on the flex carousel, each card keeps its own height.
   The expanded card simply grows taller without affecting neighbours. */
.review-text-container.expanded {
  z-index: 20;
}

.review-text-container.expanded .review-text {
  max-height: none;
}

.review-text-container.expanded .review-fade {
  opacity: 0;
  pointer-events: none;
}
}