@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
.liquid-theme {
  --ink:             #09090B;
  --ink-soft:        #3F3F46;
  --muted:           #71717A;
  --line:            #E4E4E7;
  --line-soft:       #F4F4F5;
  --paper:           #FFFFFF;
  --canvas:          #F9F8FF;
  --primary:         #4F46E5;
  --primary-light:   #818CF8;
  --primary-dark:    #3730A3;
  --primary-surface: #EEF2FF;
  --accent:          #F97316;
  --accent-dark:     #C2410C;
  --accent-surface:  #FFF7ED;
  --success:         #10B981;
  --success-surface: #ECFDF5;
  --gold:            #F59E0B;
  /* backward compat */
  --academy:         var(--primary);
  --academy-dark:    var(--primary-dark);
  --focus:           var(--primary);
  --rose:            #EF4444;

  color: var(--ink);
  background: var(--paper);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Container ─────────────────────────────────────────────── */
.theme-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* ─── Header ────────────────────────────────────────────────── */
.theme-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(228,228,231,0.8);
}

.theme-header__inner {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 70px;
}

.theme-brand,
.theme-nav,
.theme-actions,
.theme-footer__links,
.theme-stack {
  display: flex;
  align-items: center;
}

.theme-brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.theme-brand img {
  max-width: 148px;
  max-height: 40px;
  object-fit: contain;
}

.theme-brand__mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: #fff;
}

.theme-nav {
  justify-content: center;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
}

.theme-nav a,
.theme-nav__item > a {
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--ink-soft);
  padding: 8px 14px;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}

.theme-nav a:hover,
.theme-nav__item:hover > a,
.theme-nav__item:focus-within > a {
  background: var(--primary-surface);
  color: var(--primary);
}

.theme-nav__item {
  position: relative;
  flex: 0 0 auto;
}

.theme-nav__item--has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}

.theme-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(9,9,11,0.12), 0 4px 12px rgba(9,9,11,0.06);
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms, transform 150ms;
  white-space: normal;
}

.theme-nav__dropdown a {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
}

.theme-nav__item:hover .theme-nav__dropdown,
.theme-nav__item:focus-within .theme-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-header__action {
  display: flex;
  justify-content: flex-end;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.theme-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 20px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79,70,229,0.32);
  transition: background 160ms, transform 120ms, box-shadow 160ms;
}

.theme-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(79,70,229,0.44);
  transform: translateY(-1px);
}

.theme-button:active { transform: translateY(0); }

.theme-button--small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 0.875rem;
  box-shadow: none;
}

.theme-button--small:hover {
  box-shadow: 0 4px 12px rgba(79,70,229,0.28);
  transform: translateY(-1px);
}

.theme-button--ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  box-shadow: none;
}

.theme-button--ghost:hover {
  background: var(--line-soft);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ─── Eyebrow ───────────────────────────────────────────────── */
.theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 12px;
  text-transform: uppercase;
}

.theme-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.theme-hero {
  position: relative;
  overflow: hidden;
  background: #FAFAFE;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.theme-hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(ellipse 80% 60% at 68% 35%, rgba(79,70,229,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 75%, rgba(249,115,22,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.theme-hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background-image: radial-gradient(circle, rgba(79,70,229,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 65% 75% at 50% 50%, #000 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.theme-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.theme-hero h1,
.theme-page h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.theme-hero p,
.theme-section-heading p,
.theme-card p,
.theme-list-item p,
.theme-footer p,
.theme-richtext {
  color: var(--muted);
}

.theme-hero__content > p:not(.theme-eyebrow) {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.76;
  color: var(--ink-soft);
}

.theme-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Hero SVG Decorations ──────────────────────────────────── */
.theme-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.theme-hero__deco-item {
  position: absolute;
  opacity: 0.22;
}

.theme-hero__deco-item--book {
  top: 8%;
  right: 5%;
  width: 78px;
  color: var(--primary);
  animation: hero-float 6.5s ease-in-out infinite;
}

.theme-hero__deco-item--chart {
  bottom: 16%;
  left: 3%;
  width: 64px;
  color: var(--success);
  animation: hero-float 7s ease-in-out infinite 0.8s;
}

.theme-hero__deco-item--pencil {
  top: 18%;
  left: 38%;
  width: 52px;
  color: var(--accent);
  animation: hero-float 5.5s ease-in-out infinite 1.4s;
}

.theme-hero__deco-item--cap {
  bottom: 10%;
  right: 40%;
  width: 60px;
  color: var(--primary-dark);
  animation: hero-float 6s ease-in-out infinite 2s;
}

.theme-hero__deco-item--bulb {
  top: 6%;
  left: 44%;
  width: 48px;
  color: var(--gold);
  animation: hero-float 5s ease-in-out infinite 0.3s;
}

.theme-hero__deco-item--brain {
  top: 42%;
  left: 1%;
  width: 60px;
  color: var(--primary);
  animation: hero-float 7s ease-in-out infinite 1.2s;
}

.theme-hero__deco-item--star {
  top: 5%;
  left: 18%;
  width: 44px;
  color: var(--gold);
  animation: hero-float 4.5s ease-in-out infinite 0.8s;
}

.theme-hero__deco-item--clock {
  bottom: 8%;
  left: 20%;
  width: 50px;
  color: var(--accent);
  animation: hero-float 6s ease-in-out infinite 2s;
}

.theme-hero__deco-item--atom {
  top: 10%;
  right: 18%;
  width: 64px;
  color: var(--primary);
  animation: hero-float 8s ease-in-out infinite 0.5s;
}

.theme-hero__deco-item--target {
  bottom: 20%;
  right: 6%;
  width: 54px;
  color: var(--accent);
  animation: hero-float 5.5s ease-in-out infinite 1.6s;
}

@keyframes hero-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}

/* ─── Study Board ────────────────────────────────────────────── */
.theme-study-board {
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(9,9,11,0.04),
    0 20px 48px rgba(79,70,229,0.1),
    0 40px 80px rgba(9,9,11,0.07);
  padding: 24px;
}

.theme-study-board__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.theme-study-board__top span,
.theme-study-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-study-board__top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.theme-study-board__top b {
  border-radius: 12px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  padding: 10px 14px;
}

.theme-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}

.theme-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.theme-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.theme-study-grid div {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  padding: 14px;
  transition: border-color 200ms;
}

.theme-study-grid div:hover {
  border-color: var(--primary-light);
}

.theme-study-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-task-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-task-list span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Sections ──────────────────────────────────────────────── */
.theme-section,
.theme-page {
  padding: 92px 0;
}

.theme-section--muted,
.theme-section--rich {
  background: var(--canvas);
}

.theme-section--full > .theme-container {
  width: 100%;
  margin-inline: 0;
}

.theme-section-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

.theme-section-heading h2,
.theme-split h2,
.theme-contact h2,
.theme-slide h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.theme-section-heading p {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.74;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.theme-card,
.theme-list-item,
.theme-form,
.theme-slide {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(9,9,11,0.06), 0 4px 12px rgba(9,9,11,0.04);
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 4px 6px rgba(9,9,11,0.06), 0 12px 32px rgba(79,70,229,0.1);
}

.theme-card::before,
.theme-card:nth-child(3n + 2)::before,
.theme-card:nth-child(3n + 3)::before {
  display: none;
}

.theme-card h3,
.theme-list-item h3 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.theme-card p,
.theme-list-item p {
  line-height: 1.68;
  font-size: 0.95rem;
}

.theme-card a,
.theme-footer a,
.theme-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.theme-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.theme-card a:hover { color: var(--primary-dark); }

.theme-footer a:hover,
.theme-breadcrumb a:hover { color: var(--primary-light); }

.theme-card__icon,
.theme-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 12px;
}

.theme-card--media img,
.theme-slide img,
.theme-split img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.theme-card--media img {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

/* ─── Slider ─────────────────────────────────────────────────── */
.theme-slider,
.theme-stack,
.theme-footer__links {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.theme-section--slider {
  background: var(--canvas);
}

.theme-slider {
  display: grid;
  gap: 20px;
}

.theme-slider__viewport {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(9,9,11,0.04), 0 16px 40px rgba(9,9,11,0.08);
}

.theme-slider__track {
  align-items: stretch;
}

.theme-slide {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 420px;
  padding: 0;
  box-shadow: none;
  border: none;
  border-radius: 0;
  opacity: 0.38;
  transition: opacity 320ms;
}

.theme-slide.is-active { opacity: 1; }
.theme-slide:hover { transform: none; border-color: transparent; box-shadow: none; }

.theme-slide__media {
  min-height: 100%;
  background: var(--primary-surface);
  border-radius: 0;
}

.theme-slide__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0;
  object-fit: cover;
}

.theme-slide__placeholder {
  display: grid;
  height: 100%;
  min-height: 420px;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: #fff;
}

.theme-slide__placeholder span {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
}

.theme-slide__placeholder strong {
  margin-top: -120px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.theme-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.theme-slide__subtitle {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.74;
}

.theme-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.theme-slide__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
}

.theme-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-slider__controls {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.theme-slider__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: width 220ms, background 220ms;
}

.theme-slider__dot::before { display: none; }
.theme-slider__dot span { font-size: 0; }

.theme-slider__dot.is-active,
.theme-slider__dot.is-active:hover {
  width: 26px;
  background: var(--primary);
  transform: none;
}

.theme-slider__dot:hover {
  background: var(--primary-light);
  transform: none;
}

/* ─── Products ───────────────────────────────────────────────── */
.theme-product-showcase { display: grid; gap: 60px; }

.theme-product {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(9,9,11,0.04), 0 12px 32px rgba(9,9,11,0.06);
  padding: clamp(24px, 4vw, 40px);
}

.theme-product__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.theme-product__copy h3 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.028em;
}

.theme-product__copy p { color: var(--muted); line-height: 1.74; }

.theme-product__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.theme-product__price strong { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.theme-product__price span { color: var(--muted); text-decoration: line-through; }

.theme-product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.theme-product__media { display: grid; gap: 12px; }

.theme-product__main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.theme-product__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.theme-product__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.theme-product-features { display: grid; gap: 44px; margin-top: 48px; }

.theme-product-features__heading { max-width: 660px; margin: 0 auto; text-align: center; }
.theme-product-features__heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: center;
}

.theme-product-feature--reverse .theme-product-feature__copy { order: 2; }
.theme-product-feature--reverse .theme-product-feature__visual { order: 1; }

.theme-feature-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 12px;
}

.theme-product-feature__copy h5 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-product-feature__visual {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

.theme-product-feature__visual img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.theme-product-feature__html { padding: 22px; }

.theme-feature-placeholder { display: grid; gap: 12px; min-height: 260px; padding: 24px; }
.theme-feature-placeholder div { border-radius: 10px; background: var(--line); }

/* ─── Richtext ───────────────────────────────────────────────── */
.theme-richtext { line-height: 1.8; }
.theme-richtext :where(h1,h2,h3) { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
.theme-narrow { max-width: 860px; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.theme-faq { display: grid; gap: 8px; }

.theme-faq details {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}

.theme-faq details[open] {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}

.theme-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-faq summary::-webkit-details-marker { display: none; }

.theme-faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 400;
  display: grid;
  place-items: center;
  transition: background 200ms, color 200ms;
}

.theme-faq details[open] summary::after {
  content: '−';
  background: var(--primary);
  color: #fff;
}

.theme-faq details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── About / Split ──────────────────────────────────────────── */
.theme-split,
.theme-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.theme-split img {
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(9,9,11,0.12);
}

/* ─── Contact Form ───────────────────────────────────────────── */
.theme-form {
  display: grid;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(9,9,11,0.04), 0 12px 32px rgba(9,9,11,0.06);
}

.theme-form input,
.theme-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}

.theme-form input:focus,
.theme-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.theme-form input::placeholder,
.theme-form textarea::placeholder { color: var(--muted); }

/* ─── Map ────────────────────────────────────────────────────── */
.theme-map iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(9,9,11,0.1);
}

/* ─── Page ───────────────────────────────────────────────────── */
.theme-page__inner { max-width: 860px; }

.theme-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.theme-footer {
  border-top: 1px solid #1E293B;
  background: #0F172A;
  color: #fff;
  padding: 64px 0 28px;
}

.theme-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.83fr));
  gap: 32px;
}

.theme-footer p,
.theme-footer a {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
}

.theme-footer a { transition: color 150ms; }
.theme-footer a:hover { color: rgba(255,255,255,0.95); }

.theme-footer__brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.theme-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.theme-footer__logo img {
  max-width: 140px;
  max-height: 40px;
  object-fit: contain;
}

.theme-footer__logo span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.theme-footer__brand p {
  max-width: 420px;
  margin: 14px 0 0;
  line-height: 1.72;
}

.theme-footer__badges,
.theme-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.theme-footer__badges span,
.theme-footer__social a {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
}

.theme-footer__social a.theme-footer__social-icon {
  align-items: center;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.theme-footer__social-icon svg {
  height: 18px;
  width: 18px;
}

.theme-footer__social a:hover {
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}

.theme-footer__links h2 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.theme-footer__links a { display: block; padding: 4px 0; }

.theme-footer__links span {
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  font-size: 0.9rem;
}

.theme-footer__cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,70,229,0.18) 0%, rgba(124,58,237,0.12) 100%);
  padding: 24px 28px;
}

.theme-footer__cta h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; }
.theme-footer__cta p { margin: 6px 0 0; color: rgba(255,255,255,0.62); }

.theme-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  padding-top: 20px;
}

/* ─── WhatsApp ───────────────────────────────────────────────── */
.theme-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 20px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 160ms, box-shadow 160ms;
}

.theme-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}

.theme-whatsapp--left { right: auto; left: 20px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  .theme-header__inner,
  .theme-hero__grid,
  .theme-split,
  .theme-contact,
  .theme-slide,
  .theme-footer__grid {
    grid-template-columns: 1fr;
  }

  .theme-header__inner { gap: 12px; padding: 12px 0; }

  .theme-nav {
    justify-content: flex-start;
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    padding: 10px 0 0;
  }

  .theme-nav__item { position: static; }

  .theme-nav__dropdown {
    position: static;
    display: none;
    min-width: 220px;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .theme-nav__item:hover .theme-nav__dropdown,
  .theme-nav__item:focus-within .theme-nav__dropdown { display: grid; }

  .theme-card-grid { grid-template-columns: 1fr; }
  .theme-hero { padding: 56px 0 44px; }
  .theme-hero__deco { display: none; }
  .theme-study-grid { grid-template-columns: 1fr; }

  .theme-slide__media img,
  .theme-slide__placeholder { min-height: 260px; }

  .theme-product__intro,
  .theme-product-feature { grid-template-columns: 1fr; }

  .theme-product-feature--reverse .theme-product-feature__copy,
  .theme-product-feature--reverse .theme-product-feature__visual { order: initial; }

  .theme-footer__cta,
  .theme-footer__bottom { align-items: flex-start; flex-direction: column; }

  .theme-form { padding: 24px; }

  .theme-section,
  .theme-page { padding: 68px 0; }
}

@media (max-width: 520px) {
  .theme-container { width: calc(100% - 32px); }
  .theme-actions { align-items: stretch; flex-direction: column; }
  .theme-button { width: 100%; }
  .theme-study-board { padding: 18px; }
  .theme-section, .theme-page { padding: 52px 0; }
}
