/* TLE — shared styles for all pages. */

:root {
  --ink: #13233a;
  --muted: #4e6175;
  --sky: #008bdb;
  --sky-soft: #e5f3fc;
  --gold: #f2b705;
  --gold-soft: #fff4cc;
  --paper: #ffffff;
  --line: #d6e2e8;
  --danger: #b42318;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img { display: block; height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* Phones: logo + language on the first row, links on the second. */
@media (max-width: 560px) {
  .site-header .wrap { gap: 0 20px; padding-bottom: 14px; }
  .site-header .wrap::after { content: ""; order: 3; flex-basis: 100%; height: 6px; }
  .nav { display: contents; }
  .logo { order: 1; min-height: 60px; }
  .nav .lang { order: 2; margin-left: auto; }
  .nav a { order: 4; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: #0073b3; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */

.section { padding: 72px 0; }
.section-tint { background: var(--sky-soft); }
.section h2 { max-width: 24ch; }
.section-lead { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* Hero */

.hero { padding: 56px 0 72px; }

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 { max-width: 15ch; }
.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Hero illustration: the program funnel, read top to bottom. */
.funnel-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.funnel {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.funnel li {
  width: 100%;
  margin: 0 auto;
  background: var(--c);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.f-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  min-width: 2.2ch;
}
.f-num small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.9;
}
.f-text { display: grid; line-height: 1.3; font-size: 0.85rem; }
.f-text b { font-size: 0.95rem; }
.funnel .f-final { background: var(--gold); color: var(--ink); }
.funnel .f-final .f-num { font-size: 1.5rem; }

/* Features */

.features {
  display: grid;
  gap: 32px 48px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  border-top: 4px solid var(--sky);
  padding-top: 16px;
}
.feature p { color: var(--muted); margin-top: 8px; max-width: 44ch; }

/* Steps (a real sequence, so numbered) */

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}
.steps p { color: var(--muted); margin-top: 6px; }

/* Program stages */

.stages {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 880px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
}
.stage {
  border: 2px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: 12px;
  padding: 24px;
}
.stage-when {
  color: var(--sky);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stage h3 { margin-top: 8px; }
.stage p { margin-top: 10px; color: var(--muted); }
.stage .stage-when { margin-top: 0; color: var(--sky); }
.stage .stage-out { color: var(--ink); font-weight: 500; }

/* Experts */

.experts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 880px) {
  .experts { grid-template-columns: repeat(4, 1fr); }
}
.expert-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}
.expert h3 { margin-top: 14px; font-size: 1.05rem; }
.expert p { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }

/* FAQ */

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sky); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 62ch; }

/* CTA band */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band p { color: #c3d0dc; margin-top: 8px; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 0; }

.section-flush { padding-top: 24px; }
.prose h2 + p { margin-top: 16px; }

/* Page header (inner pages) */

.page-head { padding: 56px 0 32px; }
.page-head p { color: var(--muted); margin-top: 16px; max-width: 56ch; font-size: 1.15rem; }

/* About */

.prose { max-width: 62ch; }
.prose p + p { margin-top: 14px; }

.values {
  display: grid;
  gap: 32px 48px;
  margin-top: 32px;
}
@media (min-width: 880px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}
.values p { color: var(--muted); margin-top: 8px; }

.contacts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 24px 0 0;
}
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; font-weight: 500; }

/* Apply */

.apply-grid {
  display: grid;
  gap: 48px;
  padding-bottom: 80px;
}
@media (min-width: 880px) {
  .apply-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.form { display: grid; gap: 20px; }

.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px var(--sky-soft); }
.field input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]),
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.radios label, .check { font-weight: 400; display: inline-flex; gap: 10px; align-items: center; }
.check { align-items: flex-start; }
.check input { margin-top: 5px; flex: none; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sky); }

fieldset:has([aria-invalid="true"]) legend,
.check:has([aria-invalid="true"]) { color: var(--danger); }

.form-status { min-height: 1.6em; color: var(--danger); font-weight: 500; }

.form-done {
  border: 2px solid var(--sky);
  background: var(--sky-soft);
  border-radius: 16px;
  padding: 28px;
}
.form-done p { margin: 8px 0 20px; color: var(--muted); }

.aside {
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 28px;
}
.aside h2 { font-size: 1.3rem; }
.aside .steps { margin-top: 20px; grid-template-columns: 1fr; gap: 20px; }
.aside .steps p { color: var(--ink); margin: 0; }
.aside .steps li::before { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 8px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--muted); }

[hidden] { display: none !important; }
