:root {
  --ink: #251b2d;
  --muted: #665d6d;
  --paper: #fffdfb;
  --soft: #faf7fc;
  --line: #e7dfea;
  --brand: #35135f;
  --brand-strong: #250b46;
  --brand-soft: #efe7f5;
  --accent: #d82761;
  --accent-strong: #b91c4c;
  --teal: #13999a;
  --yellow: #f4b72e;
  --shadow: 0 18px 48px rgba(50, 26, 65, .11);
  --radius: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

body.theme-education {
  --ink: #123f42;
  --muted: #4f6e70;
  --paper: #fbfefd;
  --soft: #eaf8f5;
  --line: #cfe8e4;
  --brand: #075b5d;
  --brand-strong: #06484a;
  --brand-soft: #d9f1ed;
  --accent: #f49a2f;
  --accent-strong: #9d4f00;
  --teal: #0a7778;
  --yellow: #f4b64c;
  --shadow: 0 18px 48px rgba(7, 91, 93, .11);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: var(--brand);
  border: 0;
  box-shadow: 0 6px 24px rgba(25, 8, 45, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand-logo { display: none; }
.brand small { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, .94);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 16px;
  color: #fff !important;
  background: var(--accent);
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  font-size: 22px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 56px;
  min-height: 660px;
  padding: 82px max(28px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(125deg, #fff 0 55%, #f7effb 55% 100%);
  overflow: hidden;
}

.theme-education .hero {
  background: linear-gradient(125deg, #f8fffd 0 54%, #dff6f2 54% 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 44px;
  right: 4%;
  width: 112px;
  height: 112px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotate(45deg);
}

.hero::after {
  right: 44%;
  bottom: 54px;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow,
.section-heading > span,
.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--brand);
  font-size: clamp(46px, 5.3vw, 72px);
  font-weight: 850;
  line-height: .99;
  letter-spacing: -.055em;
}

.hero h1 span { color: var(--accent-strong); }

.hero-content > p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { color: var(--brand); background: transparent; border-color: var(--brand); }
.theme-education .btn-primary,
.theme-education .nav-cta { color: #163d3e !important; }
.theme-education .btn-primary:hover { background: #f0a84e; }

.hero-stats { display: none; }

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-visual::before {
  position: absolute;
  top: -26px;
  left: -28px;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  opacity: .15;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px 140px 10px 10px;
  box-shadow: var(--shadow);
}

.theme-education .hero-visual {
  display: flex;
  justify-content: center;
}

.theme-education .hero-visual img {
  width: min(440px, 92%);
  height: 500px;
  object-position: center 27%;
  border-radius: 180px 12px 180px 12px;
}

.blob,
.floating-note { display: none; }

.feature-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--max);
  margin: -24px auto 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.theme-education .feature-strip { grid-template-columns: repeat(4, 1fr); }

.feature-strip div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 96px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.feature-strip div:last-child { border-right: 0; }

.feature-strip b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  font-size: 20px;
}

.feature-strip span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
}

/* Resetarea prezentării sticky vechi: toate secțiunile curg natural. */
.story-scroll,
.story-sticky,
.story-stage {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

.story-panel {
  position: relative !important;
  inset: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.story-progress,
.story-counter,
.story-dots,
.scroll-hint { display: none !important; }

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 28px;
}

.section-soft {
  max-width: none;
  padding-right: max(28px, calc((100vw - var(--max)) / 2));
  padding-left: max(28px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.institution-copy h2,
.contact-card h2 {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-heading p,
.institution-copy > p,
.contact-card > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-grid,
.tutoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card,
.tutoring-card,
.benefit-card,
.step,
.offer-card,
.profile-card,
.faq-item,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(38, 23, 48, .045);
}

.about-card,
.tutoring-card,
.benefit-card,
.step { padding: 28px; }

.about-card .icon,
.subject-icon,
.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
}

.about-card h3,
.tutoring-card h3,
.benefit-card h3,
.step h3,
.offer-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 20px;
  line-height: 1.2;
}

.about-card p,
.tutoring-card p,
.benefit-card p,
.step p { margin: 0; color: var(--muted); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.benefit-card { min-width: 0; }
.benefit-icon.pink { background: #fde1eb; color: #d82761; }
.benefit-icon.blue { background: #dff4f5; color: #087c7e; }
.benefit-icon.yellow { background: #fff0c8; color: #9b6800; }
.benefit-icon.purple { background: #eee4f5; color: #613080; }
.benefit-icon.mint { background: #dff6ea; color: #27845b; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: steps;
}

.step > span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
}

.institution-wrap,
.contact-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: stretch;
}

.institution-copy {
  padding: 48px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
}

.institution-copy h2,
.institution-copy > p,
.institution-copy .kicker { color: #fff; }
.institution-copy > p { opacity: .84; }

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { position: absolute; left: 0; color: var(--yellow); content: "✓"; font-weight: 900; }

.offer-card { padding: 42px; }
.offer-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.offer-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.offer-item strong { color: var(--accent); font-size: 26px; line-height: 1; }
.offer-item span { color: var(--muted); }

.profile-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
  max-width: 960px;
  padding: 26px;
}

.profile-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 9px 90px 9px 9px;
}

.profile-card h3 { margin: 0; color: var(--brand); font-size: 32px; line-height: 1.1; }
.profile-card .role { color: var(--accent-strong); font-weight: 700; }
.profile-card p:not(.role) { color: var(--muted); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span { padding: 7px 10px; color: var(--brand); background: var(--brand-soft); border-radius: 7px; font-size: 12px; font-weight: 750; }

.learning-note {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  padding: 20px 24px;
  color: var(--muted);
  background: var(--soft);
  border-left: 4px solid var(--accent);
}
.learning-note strong { color: var(--brand); white-space: nowrap; }

.faq { display: grid; gap: 12px; max-width: 920px; }
.faq-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 24px;
  color: var(--ink);
  text-align: left;
}
.faq-item summary {
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 18px; font-weight: 750; }
.faq-item b { color: var(--accent); font-size: 24px; font-weight: 500; transition: transform .2s ease; }
.faq-item p { margin: 15px 0 0; color: var(--muted); }
.faq-item[open] b { transform: rotate(45deg); }

.gallery-section {
  max-width: none;
  padding-right: max(28px, calc((100vw - var(--max)) / 2));
  padding-left: max(28px, calc((100vw - var(--max)) / 2));
  background: var(--brand-strong);
}

.gallery-section .section-heading h2,
.gallery-section .section-heading > span { color: #fff; }
.gallery-section .section-heading p { color: rgba(255, 255, 255, .72); }
.gallery-privacy { color: rgba(255, 255, 255, .8); }

.gallery-carousel {
  position: relative;
  max-width: 1080px;
  outline: none;
}

.gallery-carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #150b20;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  margin: 0;
}
.carousel-slide.is-active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 26px 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 6, 23, .8));
  font-weight: 650;
}
.gallery-carousel-counter {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 7px 10px;
  color: #fff;
  background: rgba(16, 8, 23, .7);
  border-radius: 6px;
  font-size: 13px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.05); }
.carousel-previous { left: 16px; }
.carousel-next { right: 16px; }
.gallery-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.carousel-previous,
.carousel-next,
.carousel-autoplay {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  cursor: pointer;
}
.carousel-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--accent); transform: scale(1.35); }
.carousel-help { color: rgba(255, 255, 255, .65); font-size: 13px; }

.contact-section { max-width: none; padding-right: max(28px, calc((100vw - var(--max)) / 2)); padding-left: max(28px, calc((100vw - var(--max)) / 2)); }
.contact-card { max-width: var(--max); margin: 0 auto; padding: 46px; }
.contact-links { margin-top: 24px; }
.contact-links a { color: var(--brand); font-weight: 750; text-decoration: none; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form > label { grid-column: 1 / -1; display: grid; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 750; }
form > .privacy-check,
form > .form-status,
form > button { grid-column: 1 / -1; }
input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus,
select:focus,
textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.privacy-check { grid-template-columns: 20px 1fr; align-items: start; color: var(--muted); font-weight: 400; }
.privacy-check input { width: 18px; height: 18px; margin-top: 3px; }
.form-trap { position: absolute !important; left: -9999px !important; }
.form-status { padding: 14px 16px; border-radius: 8px; }
.form-status.success { color: #145b3c; background: #e1f5e9; }
.form-status.error { color: #8d2137; background: #fce6eb; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  padding: 52px max(28px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, .76);
  background: #19111e;
}
.theme-education footer { background: #073e40; }
footer > div:first-child { display: grid; }
footer strong { color: #fff; font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 14px; }
footer p { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .nav { gap: 18px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { margin-right: 28px; margin-left: 28px; }
  .feature-strip div { grid-template-columns: 1fr; text-align: center; }
  .feature-strip b { margin: 0 auto; }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; padding: 0 20px; }
  .brand { font-size: 24px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: var(--brand-strong);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  }
  .nav.open { display: grid; }
  .nav a { padding: 10px 2px; }
  .nav-cta { padding: 12px 14px !important; text-align: center; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 64px 22px 54px;
    background: linear-gradient(155deg, #fff 0 66%, #f7effb 66% 100%);
  }
  .theme-education .hero { background: linear-gradient(155deg, #f8fffd 0 66%, #dff6f2 66% 100%); }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-visual img { max-height: 410px; border-radius: 8px 80px 8px 8px; }
  .theme-education .hero-visual img { height: 440px; }
  .feature-strip,
  .theme-education .feature-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; border-radius: 0; }
  .feature-strip div { grid-template-columns: 38px 1fr; min-height: 78px; padding: 14px; text-align: left; }
  .feature-strip b { margin: 0; }
  .section { padding: 70px 22px; }
  .section-soft,
  .gallery-section,
  .contact-section { padding-right: 22px; padding-left: 22px; }
  .about-grid,
  .tutoring-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .institution-wrap,
  .contact-card { grid-template-columns: 1fr; }
  .institution-copy,
  .offer-card,
  .contact-card { padding: 30px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-card img { height: 420px; }
  .gallery-carousel-viewport { aspect-ratio: 4 / 3; }
  form { grid-template-columns: 1fr; }
  form > label,
  form > label:nth-of-type(3),
  form > label:nth-of-type(4),
  form > .privacy-check,
  form > .form-status,
  form > button { grid-column: 1; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .feature-strip,
  .theme-education .feature-strip { grid-template-columns: 1fr 1fr; margin-right: 14px; margin-left: 14px; border-radius: 10px; }
  .feature-strip div { grid-template-columns: 1fr; text-align: center; }
  .feature-strip div:nth-child(even) { border-right: 0; }
  .feature-strip b { margin: 0 auto; }
  .benefits-grid,
  .steps { grid-template-columns: 1fr; }
  .section-heading h2,
  .institution-copy h2,
  .contact-card h2 { font-size: 34px; }
  .institution-copy,
  .offer-card,
  .contact-card { padding: 24px; }
  .profile-card { padding: 16px; }
  .profile-card img { height: 360px; }
  .learning-note { display: grid; }
  .gallery-carousel-viewport { aspect-ratio: 3 / 4; }
  .carousel-slide img { object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
