/* ==========================================================================
   Victor Surf Landing - stylesheet
   ========================================================================== */

:root {
  --ocean-950: #04141d;
  --ocean-900: #05202d;
  --ocean-800: #073346;
  --ocean-700: #0a4a63;
  --ocean-600: #0d6a8c;
  --surf-500: #1098bf;
  --surf-400: #22b4d6;
  --sky-300: #8fdcef;
  --sky-100: #e2f6fb;
  --sand-200: #efe2cb;
  --sand-100: #f7efe0;
  --coral-500: #ff6b4a;
  --coral-600: #ef4f2b;
  --sun-400: #ffb547;
  --ink: #0a1e28;
  --muted: #5c7280;
  --paper: #fbfdfe;
  --white: #ffffff;
  --ok: #1fa971;
  --danger: #e0463a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(5, 32, 45, 0.08);
  --shadow: 0 18px 45px rgba(5, 32, 45, 0.14);
  --shadow-lg: 0 30px 70px rgba(5, 32, 45, 0.22);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --main-header-h: 74px;
  --projects-h: 40px;
  --header-h: calc(var(--main-header-h) + var(--projects-h));
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--sand { background: linear-gradient(180deg, var(--sand-100), #fff); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surf-500);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.btn {
  --btn-bg: var(--coral-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.32);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 107, 74, 0.38); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-fg: #fff;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); box-shadow: none; }
.btn--dark { --btn-bg: var(--ocean-800); box-shadow: 0 10px 24px rgba(5, 32, 45, 0.28); }
.btn--dark:hover { box-shadow: 0 16px 32px rgba(5, 32, 45, 0.34); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------------------------------------------------------------- header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: block;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.header.is-scrolled {
  background: rgba(251, 253, 254, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(5, 32, 45, 0.08);
}
.header__inner { height: var(--main-header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: #fff; }
.header.is-scrolled .brand { color: var(--ocean-900); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  background: rgba(255,255,255,.94); display: grid; place-items: center;
}
.brand__mark img { width:32px; height:32px; }
.brand__name {font-weight:800;font-size:1.38rem;letter-spacing:-.03em;line-height:1;color:#fff;white-space:nowrap}
.header.is-scrolled .brand__name {color:var(--ocean-900)}
.project-links {height:var(--projects-h);background:#05202d;border-bottom:1px solid #ffffff15}
.project-links__inner {height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.project-links__label {font-size:11px;font-weight:500;color:#a8c7d1;white-space:nowrap}
.project-links__nav {display:flex;align-items:center;gap:8px}
.project-links__nav a {display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:3px 10px;border:1px solid #ffffff24;border-radius:5px;background:#ffffff06;color:#e1f1f6;font-size:11px;font-weight:500;line-height:1.7;white-space:nowrap;transition:background .18s,border-color .18s}
.project-links__nav a:hover {background:#ffffff16;border-color:#83c7d7}
.project-links__nav a:focus-visible {outline:2px solid #8fdcef;outline-offset:3px}
.project-links__nav a span {color:#8fdcef;font-size:13px}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92);
  transition: background 0.18s ease, color 0.18s ease;
}
.header.is-scrolled .nav a { color: var(--ocean-800); }
.nav a:hover { background: rgba(255, 255, 255, 0.18); }
.header.is-scrolled .nav a:hover { background: var(--sky-100); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
}
.header.is-scrolled .lang-toggle { background: var(--sky-100); border-color: transparent; }
.lang-toggle a {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  padding: 6px 12px; border-radius: 999px; color: rgba(255, 255, 255, 0.9);
  transition: all 0.18s ease;
}
.header.is-scrolled .lang-toggle a { color: var(--ocean-800); }
.lang-toggle a.is-active { background: #fff; color: var(--ocean-900); box-shadow: var(--shadow-sm); }
.header.is-scrolled .lang-toggle a.is-active { background: var(--ocean-800); color: #fff; }

.nav-toggle {
  place-items:center;
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 42px; height: 42px; border-radius: 12px; color: #fff;
}
.header.is-scrolled .nav-toggle { color: var(--ocean-900); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero__bg img.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 20, 29, 0.55) 0%, rgba(4, 20, 29, 0.25) 40%, rgba(4, 20, 29, 0.82) 100%),
    radial-gradient(1200px 500px at 15% 20%, rgba(16, 152, 191, 0.35), transparent 60%);
}
.hero__content { max-width: 760px; padding: calc(var(--header-h) + 40px) 0 90px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.28);
}
.hero__sub { font-size: clamp(1rem, 2.1vw, 1.22rem); max-width: 560px; color: rgba(255, 255, 255, 0.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 46px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.hero__stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: rgba(255, 255, 255, 0.6); animation: scrollpulse 1.8s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6);} 50% { opacity: 1; transform: scaleY(1);} }

/* -------------------------------------------------------------- services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(5, 32, 45, 0.06);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 20, 29, 0.55)); }
.card__icon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); font-size: 1.3rem; box-shadow: var(--shadow-sm);
}
.card__level {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(4, 20, 29, 0.6); color: #fff; backdrop-filter: blur(6px);
}
.card__price {
  position: absolute; bottom: 14px; left: 16px; z-index: 2; color: #fff;
}
.card__price b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.card__price small { font-size: 0.8rem; opacity: 0.85; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.14rem; margin-bottom: 2px; }
.card__tagline { color: var(--surf-500); font-weight: 600; font-size: 0.8rem; margin-bottom: 8px; }
.card__desc {
  color: var(--muted); font-size: 0.84rem; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card__chips span {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--sky-100); color: var(--ocean-700);
}
.card__sub {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin: 0 0 8px;
}
.card__meta { display: flex; gap: 18px; margin: 14px 0; padding: 12px 0; border-top: 1px dashed rgba(5,32,45,.12); border-bottom: 1px dashed rgba(5,32,45,.12); }
.card__meta div { font-size: 0.82rem; color: var(--muted); }
.card__meta b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.card__includes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.card__includes li { position: relative; padding-left: 24px; font-size: 0.9rem; color: #33474f; }
.card__includes li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
}

.card__prices { margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--sky-100); }
.card__prices-title {
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ocean-700); margin: 0 0 6px;
}
.price-sub { font-size: 0.68rem; font-weight: 700; color: var(--ocean-800); margin: 8px 0 4px; }
.price-note { font-size: 0.68rem; color: var(--muted); margin: -2px 0 4px; }
.card__prices ul + ul { margin-top: 2px; }
.card__prices ul, .card__course ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.card__prices li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #33474f; }
.card__prices li b { color: var(--coral-600); font-family: var(--font-display); white-space: nowrap; }

.card__course { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--sand-100); }
.card__course summary {
  cursor: pointer; list-style: none; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ocean-700); display: flex; align-items: center; justify-content: space-between;
}
.card__course summary::-webkit-details-marker { display: none; }
.card__course summary::after { content: "+"; font-size: 0.95rem; line-height: 1; }
.card__course[open] summary::after { content: "–"; }
.card__course ul { margin-top: 8px; }
.card__course li { position: relative; padding-left: 14px; font-size: 0.78rem; color: var(--muted); }
.card__course li::before { content: "•"; position: absolute; left: 2px; color: var(--surf-500); font-weight: 800; }

.card__note { font-size: 0.76rem; color: var(--muted); font-style: italic; margin: 6px 0 0; }

.card__includes { grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0 0 14px; }
.card__includes li { font-size: 0.8rem; padding-left: 18px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }
.card__actions .btn { flex: 1; padding: 11px 14px; font-size: 0.86rem; }

/* ----------------------------------------------------------------- about */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: center; }
.about__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.about__content h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.about__content p { color: var(--muted); }
.about__chips { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.about__chips li {
  padding: 9px 16px; border-radius: 999px; background: var(--sky-100); color: var(--ocean-800);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
}
.about__content .btn { margin-top: 4px; }

/* --------------------------------------------------------------- planner */
.planner { background: var(--ocean-900); color: #fff; position: relative; overflow: hidden; }
.planner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 85% 0%, rgba(34, 180, 214, 0.22), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(255, 107, 74, 0.14), transparent 60%);
  pointer-events: none;
}
.planner .section-head p { color: rgba(255, 255, 255, 0.72); }
.planner .kicker { color: var(--sky-300); }
.planner__grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start;
}
.panel {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.panel--glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; box-shadow: none;
  backdrop-filter: blur(4px);
}

.cal__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav button {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(5,32,45,.12);
  background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ocean-800);
  display: grid; place-items: center; transition: background 0.18s ease;
}
.cal__nav button:hover { background: var(--sky-100); }
.cal__nav button:disabled { opacity: 0.35; cursor: not-allowed; }

.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__weekdays { margin-bottom: 6px; }
.cal__weekdays span { text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

.cal__day {
  min-width: 0; padding: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--ocean-800);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; display: grid; place-items: center;
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.cal__day:hover:not(:disabled) { transform: translateY(-2px); background: #cdeef7; }
.cal__day::after {
  content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ok);
}
.cal__day.is-empty { background: transparent; cursor: default; }
.cal__day.is-empty::after { display: none; }
.cal__day.is-past, .cal__day.is-out { background: #f1f4f6; color: #a9b7bf; cursor: not-allowed; }
.cal__day.is-past::after, .cal__day.is-out::after { display: none; }
.cal__day.is-blocked { background: #fbe9e7; color: var(--danger); }
.cal__day.is-blocked::after { background: var(--danger); }
.cal__day.is-full { background: #f1f4f6; color: #a9b7bf; }
.cal__day.is-full::after { background: #a9b7bf; }
.cal__day.is-today { outline: 2px solid var(--surf-400); outline-offset: 1px; }
.cal__day.is-selected { background: var(--coral-500); color: #fff; box-shadow: 0 8px 20px rgba(255,107,74,.4); }
.cal__day.is-selected::after { background: #fff; }

.cal__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal__legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--sky-100); }
.cal__legend i.sel { background: var(--coral-500); }
.cal__legend i.full { background: #dfe5e9; }
.cal__legend i.blocked { background: #fbe9e7; border: 1px solid var(--danger); }

.slots h4 { margin: 22px 0 12px; font-size: 1rem; }
.slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.slot {
  border: 1.5px solid rgba(5,32,45,.12);
  background: #fff; border-radius: 13px; padding: 12px; cursor: pointer;
  text-align: left; font-family: var(--font-display); transition: all 0.16s ease;
}
.slot:hover:not(:disabled) { border-color: var(--surf-400); background: var(--sky-100); }
.slot b { display: block; font-size: 1.05rem; }
.slot small { color: var(--muted); font-size: 0.76rem; }
.slot.is-full { opacity: 0.55; cursor: not-allowed; }
.slot.is-selected { border-color: var(--coral-500); background: var(--coral-500); color: #fff; }
.slot.is-selected small { color: rgba(255,255,255,.85); }
.slots__empty { color: var(--muted); font-size: 0.92rem; padding: 10px 0; }

/* booking form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ocean-800); }
.field label .req { color: var(--coral-500); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(5,32,45,.14);
  background: #fff; transition: border-color 0.16s ease, box-shadow 0.16s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--surf-400); box-shadow: 0 0 0 4px rgba(34,180,214,.16);
}
.field input.is-invalid, .field select.is-invalid { border-color: var(--danger); }

.summary {
  margin: 20px 0; padding: 16px 18px; border-radius: 16px;
  background: var(--sand-100); border: 1px dashed rgba(5,32,45,.15);
}
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 3px 0; color: #43565e; }
.summary__row--total { border-top: 1px solid rgba(5,32,45,.12); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--ink); }
.summary__row--total b { font-family: var(--font-display); font-size: 1.25rem; color: var(--coral-600); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.form-alert { padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 14px; display: none; }
.form-alert.is-visible { display: block; }
.form-alert--error { background: #fdecea; color: var(--danger); }
.form-alert--ok { background: #e6f7ef; color: var(--ok); }
.form-alert--demo { background: #fff6e5; color: #a86a00; }

.form-success { display: none; text-align: center; padding: 22px 8px; }
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, #34c98a, #1fa971); color: #fff;
  display: grid; place-items: center; font-size: 2rem; box-shadow: 0 14px 30px rgba(31,169,113,.35);
}
.form-success__ref { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--sky-100); font-family: var(--font-display); font-weight: 700; }

/* --------------------------------------------------------------- gallery */
.gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gallery__item{display:block;position:relative;border-radius:var(--radius);overflow:hidden;background:#dce8ec;aspect-ratio:4/3}
.gallery__item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.gallery__item:hover img{transform:scale(1.035)}
.gallery__item:focus-visible{outline:3px solid #0d6a8c;outline-offset:4px}
.gallery__more{text-align:center;margin-top:28px}.gallery__more .btn{box-shadow:none;border-radius:10px}
.gallery__item .gallery-photo__expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:31px;height:31px;border-radius:7px;background:#05202db3;color:white;font-size:19px}
@media(max-width:640px){.gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery__item{border-radius:11px}.gallery__more .btn{font-size:14px;padding:13px 20px}}

/* ----------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 110; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 20, 29, 0.78); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal__panel {
  position: relative; width: 100%; max-width: 820px; max-height: 90vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(4, 20, 29, 0.55); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
}
.modal__close:hover { background: rgba(4, 20, 29, 0.85); }
.modal__media { overflow: hidden; background: #dce8ec; }
.modal__media img { width: 100%; height: auto; display: block; }
.modal__content { padding: 26px 30px 34px; }
.modal__content h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 4px; }
.modal__content .kicker { margin-bottom: 6px; }
.modal-tagline { color: var(--surf-500); font-weight: 600; margin-bottom: 14px; }
.modal-intro { color: #33474f; font-size: 1rem; }
.modal-callout {
  background: var(--sand-100); border-left: 4px solid var(--coral-500);
  padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; color: #43565e; margin: 14px 0;
}
.modal-sec { margin-top: 26px; }
.modal-sec h3 { font-size: 1.15rem; margin-bottom: 10px; }
.modal-sec h4 { font-size: 1rem; margin: 16px 0 4px; color: var(--ocean-700); }
.modal-sec p { color: #33474f; font-size: 0.94rem; }
.modal-price-list {
  list-style: none; margin: 0 0 6px; padding: 12px 14px; border-radius: 12px;
  background: var(--sky-100); display: grid; gap: 6px;
}
.modal-price-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; color: #33474f; }
.modal-price-list li b { color: var(--coral-600); font-family: var(--font-display); white-space: nowrap; }
.modal-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.modal-list li { position: relative; padding-left: 20px; font-size: 0.93rem; color: #33474f; }
.modal-list li::before { content: "•"; position: absolute; left: 4px; color: var(--surf-500); font-weight: 800; }
.modal-list--check li::before { content: "✓"; color: var(--ok); }
.modal-item { margin-bottom: 4px; }
.modal__content .btn { margin-top: 28px; }

/* --------------------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact__list { display: grid; gap: 14px; }
.contact__item {
  display: flex; gap: 16px; align-items: center; padding: 18px;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(5,32,45,.06); transition: transform .18s ease;
}
.contact__item:hover { transform: translateX(4px); }
.contact__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--sky-100); flex: none; }
.contact__item span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.contact__item b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact__socials a, .contact__socials button {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  background: var(--ocean-800); color: #fff; font-weight: 600; font-family: var(--font-display);
  border: 0; cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.contact__socials a:hover, .contact__socials button:hover { transform: translateY(-2px); background: var(--ocean-700); }
.map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 430px; height: 100%;
  box-shadow: var(--shadow); border: 6px solid #fff; background: var(--sky-100);
}
.map iframe { width: 100%; height: 100%; min-height: 418px; border: 0; display: block; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ocean-950); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer__tagline { max-width: 320px; font-size: 0.94rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.94rem; }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; transition: background .18s ease;
}
.footer__social a:hover { background: var(--surf-500); }
.footer__bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem;
}

/* --------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .planner__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { columns: 3; }
}

@media (max-width: 1200px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 18px 22px;
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform 0.3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { color: var(--ocean-800); padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .header__actions .btn { display: none; }
}

@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; }
}

@media (max-width: 520px) {
  .hero__stats { gap: 22px; }
  .hero__stat strong { font-size: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; }
  .card__includes { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100vh; border-radius: 0; }
  .modal__content { padding: 20px 18px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Static localized content stays visible when scripting is unavailable. */
html:not(.js) .reveal { opacity: 1; transform: none; }

.lesson-faq { max-width: 860px; margin: 0 auto 14px; padding: 20px; border: 1px solid var(--sky-100); border-radius: 14px; }
.lesson-faq summary { cursor: pointer; font-weight: 600; }
.lesson-faq p { margin: 14px 0 0; line-height: 1.7; }

@media(max-width:620px){
  .project-links__label{display:none}.project-links__inner{justify-content:center}
  .project-links__nav{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:6px;width:100%}
  .project-links__nav a{font-size:10.5px;padding:4px 6px;gap:5px}
}
@media(max-width:520px){
  :root{--main-header-h:68px}
  .header__inner{gap:8px}.header .brand{gap:8px}.header .brand__name{font-size:1.15rem}
  .header .brand__mark{width:32px;height:32px;border-radius:9px}.header .brand__mark img{width:27px;height:27px}
  .header__actions{gap:4px}.header .lang-toggle a{padding:6px 8px}.header .nav-toggle{width:36px;height:38px}
  .project-links__inner{padding-inline:14px}
}

@media(max-width:360px){.project-links__nav a{min-width:0;font-size:10px}.project-links__nav a span{display:none}}

.planner__grid > .panel,.field{min-width:0}.field input,.field select,.field textarea{min-width:0;max-width:100%}

.contact__grid > *,.contact__item > div{min-width:0}.contact__item b{overflow-wrap:anywhere}
@media(max-width:360px){.contact__item{padding:14px;gap:12px}.contact__ico{width:36px;height:40px}}

/* Teaching approach */
.teaching { background: linear-gradient(180deg, var(--paper), var(--sky-100)); }
.teaching__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.teaching__card { padding: 28px; border: 1px solid rgba(13,106,140,.12); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.teaching__number { display: block; color: var(--ocean-600); font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.teaching__card h3 { color: var(--ocean-800); font-size: 1.35rem; line-height: 1.25; margin-bottom: 14px; }
.teaching__card p { color: var(--muted); margin: 0; }
.teaching__details { margin-top: 26px; padding: 22px 28px; border: 1px solid rgba(13,106,140,.16); border-radius: var(--radius); background: rgba(255,255,255,.8); }
.teaching__details summary { cursor: pointer; color: var(--ocean-800); font-weight: 600; }
.teaching__details summary:focus-visible { outline: 2px solid var(--surf-500); outline-offset: 6px; border-radius: 4px; }
.teaching__explanation { max-width: 860px; padding-top: 20px; color: var(--muted); }
.teaching__explanation p:last-child { margin-bottom: 0; }
@media (max-width: 850px) { .teaching__grid { grid-template-columns: 1fr; } .teaching__card, .teaching__details { padding: 24px; } }

/* Personal history */
.history { background: var(--sand-100); }
.history__grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:48px; align-items:center; }
.history__copy h2 { font-size:clamp(1.8rem,4vw,2.7rem); margin:12px 0 24px; }
.history__copy p { color:var(--muted); }
.history__copy .btn { margin-top:12px; max-width:100%; white-space:normal; text-align:center; }
.history__preview { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:12px; }
.history__photo { display:block; border-radius:var(--radius); overflow:hidden; background:var(--sand-200); outline-offset:4px; }
.history__photo:first-child { grid-column:1 / -1; }
.history__photo img { display:block; width:100%; height:auto; object-fit:cover; }

@media(max-width:850px) { .history__grid { grid-template-columns:minmax(0,1fr); gap:28px; } .history__preview { max-width:650px; width:100%; margin:auto; } }

.history__photo:nth-child(2):last-child { grid-column:2; margin-top:-42px; border:7px solid var(--sand-100); position:relative; }

.history__preview .history__photo img { width:100%; height:auto; object-fit:contain; }
.history__preview .history__photo:nth-child(2):not(:last-child), .history__preview .history__photo:nth-child(3) { align-self:start; }
