/* =========================================================
   EVA · Escola de aeromodels· Valencia
   Custom theme built on top of the Eduleb template.
   ========================================================= */

:root {
  --ink: #17233d;
  --ink-2: #223355;
  --ink-soft: #536176;
  --paper: #fbf8f2;
  --paper-2: #f3ede2;
  --white: #ffffff;
  --primary: #e4572e;
  --primary-dark: #c8441f;
  --teal: #1f7a8c;
  --teal-dark: #16606f;
  --yellow: #f2b134;
  --green: #5b8c5a;
  --plum: #7e4f6e;
  --line: rgba(23, 35, 61, 0.12);
  --line-strong: rgba(23, 35, 61, 0.2);
  --shadow-sm: 0 8px 24px rgba(23, 35, 61, 0.07);
  --shadow: 0 22px 55px rgba(23, 35, 61, 0.11);
  --radius: 24px;
  --radius-sm: 16px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --font-ui: "Jost", sans-serif;
}

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

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p {
  margin-bottom: 0;
}

a {
  color: var(--ink);
}

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

img {
  max-width: 100%;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.container {
  max-width: 1180px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.bg-cream {
  background: var(--paper-2);
}

.bg-white {
  background: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 2px;
  width: 26px;
}

.section-head {
  margin-bottom: 52px;
  max-width: 760px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 14px 0 18px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}

.accent {
  color: var(--primary);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn_one,
.btn-ghost {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  gap: 9px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 15px 26px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn_one {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.btn_one:hover,
.btn_one:focus {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 12px 26px rgba(23, 35, 61, 0.18);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn_one i,
.btn-ghost i {
  font-size: 13px;
  margin: 0;
}

.btn-block {
  width: 100%;
}

/* ---------- Navigation ---------- */
.site-navbar {
  background: rgba(251, 248, 242, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  height: 42px;
  width: 42px;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name small {
  color: var(--primary);
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1;
  margin-top: 5px;
  text-transform: uppercase;
}

.navbar-nav {
  align-items: center;
  gap: 4px;
}

.navbar-nav .nav-link {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 9px 14px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

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

.lang-switch {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 9px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  padding: 12px 20px;
}

.navbar-toggler {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(23, 35, 61, 0.12);
}

.navbar-toggler span {
  background: #fff;
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 17px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding: 12px 0;
  }

  .navbar-collapse {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-top: 14px;
    padding: 18px;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0;
  }

  .navbar-nav .nav-link {
    border-bottom: 1px solid var(--line);
    padding: 12px 6px !important;
  }

  .nav-actions {
    justify-content: space-between;
    margin-top: 18px;
  }

  .nav-cta {
    flex: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(242, 177, 52, 0.18), transparent 30%),
    radial-gradient(circle at 10% 80%, rgba(31, 122, 140, 0.1), transparent 34%),
    var(--paper);
  overflow: hidden;
  padding: 70px 0 88px;
  position: relative;
}

.hero::before,
.page-hero::before {
  background-image: url("../img/pattern-pieces.svg");
  background-size: 120px 120px;
  content: "";
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: 1.02fr 0.98fr;
}

.hero h1 {
  font-size: clamp(50px, 6.5vw, 88px);
  line-height: 0.96;
  margin: 20px 0 24px;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
}

.hero-points span {
  align-items: center;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 13.5px;
  gap: 8px;
}

.hero-points i {
  color: var(--teal);
  font-size: 12px;
}

.hero-art {
  position: relative;
}

.hero-collage {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  transform: rotate(-1.6deg);
}

.hero-collage figure {
  aspect-ratio: 4 / 3;
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hero-collage figure:nth-child(1) {
  transform: translateY(20px) rotate(1.6deg);
}

.hero-collage figure:nth-child(2) {
  transform: translateY(-6px) rotate(2.4deg);
}

.hero-collage figure:nth-child(3) {
  transform: translateY(2px) rotate(-1.4deg);
}

.hero-collage figure:nth-child(4) {
  transform: translateY(-18px) rotate(1.2deg);
}

.hero-collage img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-sticker {
  align-items: center;
  background: var(--ink);
  border-radius: 18px;
  bottom: -22px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 12px;
  left: 50%;
  padding: 14px 18px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-sticker strong {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.hero-sticker span {
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.hero-stat strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.hero-stat span {
  color: var(--ink-soft);
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ---------- Value strip ---------- */
.value-strip {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
}

.value-track {
  animation: marquee 30s linear infinite;
  display: flex;
  gap: 46px;
  width: max-content;
}

.value-track span {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  gap: 46px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.value-track span::after {
  color: var(--yellow);
  content: "✦";
  font-size: 15px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.benefit-icon {
  align-items: center;
  background: var(--paper-2);
  border-radius: 15px;
  color: var(--ink);
  display: flex;
  font-size: 21px;
  height: 52px;
  justify-content: center;
  margin-bottom: 22px;
  width: 52px;
}

.benefit-card:nth-child(2) .benefit-icon {
  background: rgba(31, 122, 140, 0.12);
  color: var(--teal);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: rgba(228, 87, 46, 0.12);
  color: var(--primary);
}

.benefit-card:nth-child(4) .benefit-icon {
  background: rgba(242, 177, 52, 0.18);
  color: #a86f00;
}

.benefit-card:nth-child(5) .benefit-icon {
  background: rgba(91, 140, 90, 0.14);
  color: var(--green);
}

.benefit-card:nth-child(6) .benefit-icon {
  background: rgba(126, 79, 110, 0.12);
  color: var(--plum);
}

.benefit-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Friends / community ---------- */
.friends-grid {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: 0.95fr 1.05fr;
}

.friends-art {
  position: relative;
}

.friends-art img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.friends-art::before {
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  content: "";
  inset: -14px 14px 14px -14px;
  pointer-events: none;
  position: absolute;
}

.friends-content h2 {
  font-size: clamp(34px, 4vw, 50px);
  margin: 14px 0 20px;
}

.friends-content > p {
  font-size: 16px;
  line-height: 1.75;
}

.friends-list {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 26px 0 28px;
  padding: 0;
}

.friends-list li {
  align-items: flex-start;
  display: flex;
  font-size: 15px;
  gap: 11px;
  line-height: 1.6;
}

.friends-list i {
  color: var(--teal);
  font-size: 13px;
  margin-top: 5px;
}

.friends-quote {
  background: var(--paper-2);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 28px;
  padding: 18px 22px;
}

/* ---------- Course ---------- */
.course-section {
  background: var(--paper-2);
}

.course-intro {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 52px;
}

.course-intro h2 {
  font-size: clamp(36px, 4.5vw, 58px);
  margin: 14px 0 18px;
}

.course-intro p {
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 620px;
}

.course-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.course-note strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.course-note p {
  font-size: 14.5px;
  line-height: 1.65;
}

.route {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.route-step {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.route-step span {
  color: var(--ink-soft);
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-step strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  margin-top: 3px;
}

.route-step:nth-child(1) { border-top: 3px solid var(--green); }
.route-step:nth-child(2) { border-top: 3px solid var(--yellow); }
.route-step:nth-child(3) { border-top: 3px solid var(--primary); }
.route-step:nth-child(4) { border-top: 3px solid var(--plum); }

.puzzle-list {
  border-top: 1px solid var(--line-strong);
}

.puzzle-row {
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: 58px;
  grid-template-columns: 1fr 1fr;
  padding: 62px 0;
}

.puzzle-row.reverse .puzzle-media {
  order: 2;
}

.puzzle-row.reverse .puzzle-content {
  order: 1;
}

.puzzle-media {
  position: relative;
}

.puzzle-media img {
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
  width: 100%;
}

.puzzle-number {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  display: flex;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  left: 20px;
  position: absolute;
  top: 20px;
  width: 56px;
}

.puzzle-badge {
  background: var(--ink);
  border-radius: 999px;
  bottom: 20px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  left: 20px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  position: absolute;
  text-transform: uppercase;
}

.puzzle-badge.level-1 { background: var(--green); }
.puzzle-badge.level-2 { background: #b7871d; }
.puzzle-badge.level-3 { background: var(--primary); }
.puzzle-badge.level-4 { background: var(--plum); }

.puzzle-content .puzzle-kicker {
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.puzzle-content h3 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin: 8px 0 10px;
}

.puzzle-content > p {
  font-size: 15.5px;
  line-height: 1.75;
}

.difficulty {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 18px 0 20px;
}

.difficulty-label {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.difficulty-bars {
  display: flex;
  gap: 4px;
}

.difficulty-bars i {
  background: rgba(23, 35, 61, 0.14);
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 18px;
}

.difficulty-bars i.on {
  background: var(--primary);
}

.puzzle-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0;
}

.puzzle-meta div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 14px;
}

.puzzle-meta span {
  color: var(--ink-soft);
  display: block;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.puzzle-meta strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

.chips-title {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 12px;
}

.includes {
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 18px;
}

.includes span {
  align-items: center;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
}

.includes i {
  color: var(--teal);
  font-size: 11px;
}

/* ---------- Logistics ---------- */
.logistics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.logistics-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}

.logistics-card .logistics-big {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.logistics-card h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.logistics-card p {
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 11px;
  margin: 0 auto;
  max-width: 860px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  transition: box-shadow 0.25s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  gap: 20px;
  justify-content: space-between;
  list-style: none;
  padding: 19px 0;
}

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

.faq-item summary::after {
  color: var(--primary);
  content: "+";
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  padding: 0 0 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  align-items: center;
  background: var(--ink);
  border-radius: 30px;
  color: #fff;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px 56px;
  position: relative;
}

.cta-band::before,
.cta-band::after {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  content: "";
  height: 160px;
  position: absolute;
  transform: rotate(18deg);
  width: 160px;
}

.cta-band::before {
  right: -50px;
  top: -60px;
}

.cta-band::after {
  bottom: -90px;
  left: 34%;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 590px;
}

.cta-band .btn_one {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  flex-shrink: 0;
}

.cta-band .btn_one:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 177, 52, 0.2), transparent 30%),
    var(--paper-2);
  overflow: hidden;
  padding: 74px 0 70px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(46px, 6vw, 76px);
  margin: 16px 0 18px;
  max-width: 850px;
}

.page-hero .lead {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
  max-width: 650px;
}

.breadcrumb-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  text-transform: uppercase;
}

.breadcrumb-nav li {
  color: var(--ink-soft);
}

.breadcrumb-nav li + li::before {
  color: var(--line-strong);
  content: "/";
  margin-right: 8px;
}

.breadcrumb-nav a {
  color: var(--primary);
}

/* ---------- School page ---------- */
.intro-grid {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: 1.05fr 0.95fr;
}

.intro-content h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin: 14px 0 20px;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.intro-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.intro-list li {
  align-items: flex-start;
  display: flex;
  font-size: 14.5px;
  gap: 10px;
}

.intro-list i {
  color: var(--teal);
  font-size: 12px;
  margin-top: 5px;
}

.intro-art {
  position: relative;
}

.intro-art img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.intro-art .art-tag {
  background: #fff;
  border-radius: 16px;
  bottom: 22px;
  box-shadow: var(--shadow);
  left: 22px;
  padding: 13px 17px;
  position: absolute;
}

.intro-art .art-tag strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
}

.intro-art .art-tag span {
  color: var(--ink-soft);
  display: block;
  font-size: 10px;
  letter-spacing: 0.09em;
  margin-top: 4px;
  text-transform: uppercase;
}

.mission-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.mission-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
}

.mission-card.vision {
  background: var(--ink);
  border-color: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.mission-card .mission-icon {
  align-items: center;
  background: var(--paper-2);
  border-radius: 14px;
  color: var(--primary);
  display: flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  margin-bottom: 22px;
  width: 48px;
}

.mission-card.vision .mission-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.mission-card h3 {
  font-size: 29px;
  margin-bottom: 12px;
}

.mission-card.vision h3 {
  color: #fff;
}

.mission-card p {
  font-size: 15.5px;
  line-height: 1.75;
}

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

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 26px;
}

.value-card .value-num {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
}

.value-card h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 7px;
}

.value-card p {
  font-size: 13.5px;
  line-height: 1.65;
}

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

.method-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  position: relative;
}

.method-step .method-num {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  margin-bottom: 20px;
  width: 32px;
}

.method-step h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.method-step p {
  font-size: 13.5px;
  line-height: 1.65;
}

.space-grid {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: 0.95fr 1.05fr;
}

.space-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.space-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  padding: 17px 19px;
}

.space-item i {
  color: var(--primary);
  font-size: 17px;
  margin-top: 2px;
}

.space-item h3 {
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.space-item p {
  font-size: 13px;
  line-height: 1.6;
}

.stats-band {
  background: var(--ink);
  border-radius: 26px;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 38px;
}

.stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 22px;
}

.stat-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-item strong {
  color: var(--yellow);
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 24px;
}

.info-card i {
  color: var(--primary);
  font-size: 19px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.info-card p,
.info-card a {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.info-card p,
.footer-contact span {
  white-space: pre-line;
}

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

.contact-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.08fr 0.92fr;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  padding: 38px;
}

.contact-form-wrap h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.contact-form-wrap > p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.form-label {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
}

.form-select {
  padding-right: 38px;
}

.form-control::placeholder {
  color: #98a0ad;
}

.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.12);
  color: var(--ink);
}

.form-control.is-invalid,
.form-select.is-invalid {
  background-image: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 6px 0 20px;
  padding-left: 0;
}

.form-check-input {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  flex-shrink: 0;
  height: 18px;
  margin: 3px 0 0;
  width: 18px;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.form-note {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
}

.form-note a {
  color: var(--primary);
  font-weight: 600;
}

.form-alert {
  border-radius: 12px;
  display: none;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 12px 15px;
}

.form-alert.is-visible {
  display: block;
}

.form-alert.error {
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #9d2c1f;
}

.form-alert.success {
  background: #e9f5ec;
  border: 1px solid #b9dfc2;
  color: #2f6b3c;
}

.contact-side {
  display: grid;
  gap: 16px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.contact-card h2,
.contact-card h3 {
  font-size: 25px;
  margin-bottom: 10px;
}

.contact-card > p {
  font-size: 14px;
  line-height: 1.7;
}

.contact-card .side-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contact-card .side-list li {
  align-items: flex-start;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.55;
}

.contact-card .side-list i {
  color: var(--teal);
  font-size: 12px;
  margin-top: 4px;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.map-wrap iframe {
  border: 0;
  display: block;
  height: 300px;
  width: 100%;
  filter: saturate(0.85);
}

.map-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  gap: 7px;
  margin-top: 12px;
  text-decoration: none;
}

.map-link i {
  color: var(--primary);
  font-size: 11px;
}

.map-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Thank you ---------- */
.thanks-section {
  align-items: center;
  display: flex;
  min-height: 62vh;
  padding: 90px 0;
  text-align: center;
}

.thanks-inner {
  margin: 0 auto;
  max-width: 620px;
}

.thanks-icon {
  align-items: center;
  background: rgba(91, 140, 90, 0.14);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  font-size: 34px;
  height: 92px;
  justify-content: center;
  margin-bottom: 26px;
  width: 92px;
}

.thanks-inner h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 16px;
}

.thanks-inner p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 66px 0 26px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.45fr 0.9fr 1fr 1.15fr;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 18px 0 20px;
  max-width: 300px;
}

.footer h4 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--ink-soft);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  display: grid;
  gap: 11px;
}

.footer-contact div {
  align-items: flex-start;
  color: var(--ink-soft);
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--primary);
  font-size: 13px;
  margin-top: 3px;
}

.footer-contact a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social_profile ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social_profile ul li a {
  align-items: center;
  background: var(--paper-2);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.social_profile ul li a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 22px;
}

.footer-bottom p {
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-bottom .lang-switch {
  background: var(--paper);
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }
.js .reveal.delay-3 { transition-delay: 0.24s; }
.js .reveal.delay-4 { transition-delay: 0.32s; }
.js .reveal.delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .value-track { animation: none; }
  .btn_one:hover, .btn-ghost:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid,
  .friends-grid,
  .intro-grid,
  .space-grid,
  .contact-grid {
    gap: 40px;
  }

  .benefits-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logistics-grid,
  .method-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 74px 0;
  }

  .hero {
    padding: 48px 0 70px;
  }

  .hero-grid,
  .friends-grid,
  .intro-grid,
  .space-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    margin-top: 18px;
    max-width: 640px;
  }

  .hero-collage {
    transform: none;
  }

  .hero-sticker {
    bottom: -18px;
  }

  .friends-art,
  .intro-art {
    max-width: 640px;
  }

  .course-intro {
    grid-template-columns: 1fr;
  }

  .puzzle-row,
  .puzzle-row.reverse {
    gap: 34px;
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .puzzle-row.reverse .puzzle-media,
  .puzzle-row.reverse .puzzle-content {
    order: initial;
  }

  .puzzle-media {
    max-width: 680px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    padding: 42px 36px;
  }

  .stats-band {
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
  }

  .stat-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

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

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .hero-lead {
    font-size: 16.5px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat:last-child {
    grid-column: 1 / -1;
  }

  .hero-sticker {
    left: auto;
    right: 14px;
    transform: none;
  }

  .benefits-grid,
  .values-grid,
  .logistics-grid,
  .method-grid,
  .info-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

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

  .puzzle-meta {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-wrap {
    padding: 26px 22px;
  }

  .cta-band {
    border-radius: 24px;
    padding: 34px 26px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-left: 0;
    padding-left: 0;
  }

  .stat-item + .stat-item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 18px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-collage {
    gap: 8px;
  }

  .hero-collage figure {
    border-width: 4px;
    border-radius: 14px;
  }

  .hero-sticker {
    display: none;
  }

  .puzzle-meta {
    gap: 8px;
  }

  .puzzle-meta div {
    padding: 10px 12px;
  }

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

  .btn_one,
  .btn-ghost {
    padding: 14px 20px;
    width: 100%;
  }

  .nav-actions .btn_one {
    width: auto;
  }
}
