/* Yuval Amati – English lessons. White ground, navy type, green reserved for WhatsApp. */

:root {
  --bg: #FFFFFF;
  --tint: #F4F6F9;
  --ink: #111827;
  --ink-2: #4B5563;
  --ink-3: #667085;
  --line: #E3E7ED;
  --line-2: #CBD2DC;
  --navy: #0B2545;
  --navy-2: #163A66;
  --navy-ink: #D9E3F0;
  --wa: #0F7A40;
  --wa-hover: #0B6534;
  --wa-soft: #E6F3EB;
  --err: #B42318;
  --photo-well: #D5DBE4;
  --ok: #0B2545;

  --f: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-ctl: 10px;
  --r-card: 14px;
  --r-img: 16px;
  --gutter: 20px;
  --section: clamp(64px, 9vw, 112px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  accent-color: var(--navy);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; scrollbar-color: #B8C2D0 var(--tint); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--f);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--navy);
}
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-ctl); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- icons + buttons ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--r-ctl);
  font: 700 1rem/1.2 var(--f); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.textlink { font-weight: 500; color: var(--navy); }
.nw { white-space: nowrap; }

/* check list (hero credentials) */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; color: var(--ink-2); line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .12em;
  width: 22px; height: 22px; border-radius: 50%; background: #E8EEF6;
}
.checks li::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: calc(.12em + 6px);
  width: 10px; height: 10px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 5.2 3.8 8 9 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 5.2 3.8 8 9 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks b { color: var(--ink); font-weight: 700; }

/* ---------- header ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); z-index: 50; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand__sub { font-weight: 500; color: var(--ink-3); }
.topnav { display: none; gap: 28px; margin-inline-start: auto; }
.topnav a { color: var(--ink-2); font-weight: 500; font-size: .98rem; text-decoration: none; padding-block: 6px; }
.topnav a:hover { color: var(--navy); }
@media (min-width: 960px) {
  html { scroll-padding-top: 88px; }
  .topbar { position: sticky; top: 0; }
  .topnav { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding-top: 32px; }
.hero__grid { display: grid; gap: 32px; }
.hero h1 { font-size: clamp(2.15rem, 6.2vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); max-width: 34em; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 30px; }
.hero__trust { max-width: 34em; }
.hero__who { display: none; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%;
  border-radius: var(--r-img); background: var(--photo-well);
}
.strip {
  list-style: none; margin: 8px 0 0; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 16px;
}
.strip li { display: grid; gap: 2px; }
.strip b { color: var(--navy); font-size: 1.05rem; font-weight: 700; }
.strip span { color: var(--ink-2); font-size: .96rem; }

@media (max-width: 599px) {
  .hero { padding-top: 24px; }
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; order: 1; }
  .hero__who img { width: 64px; height: 80px; object-fit: cover; object-position: 50% 12%; border-radius: var(--r-ctl); background: var(--photo-well); }
  .hero__who p { margin: 0; display: grid; line-height: 1.4; }
  .hero__who b { color: var(--navy); font-weight: 700; }
  .hero__who span { color: var(--ink-2); font-size: .95rem; }
  .hero h1 { order: 2; }
  .hero .lead { order: 3; margin-bottom: 22px; }
  .cta-row { order: 4; margin-bottom: 24px; }
  .cta-row .btn { width: 100%; }
  .cta-row .textlink { margin-inline: auto; }
  .strip { order: 5; margin: 0 0 26px; }
  .hero__trust { order: 6; }
  .hero__trust li:nth-child(2) { display: none; }
  .hero__photo { display: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero__photo { max-width: 420px; }
}
@media (min-width: 600px) {
  .strip { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .strip li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 48px 64px; }
  .strip { grid-column: 1 / -1; margin-top: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section__intro { color: var(--ink-2); font-size: 1.1rem; max-width: 26em; }

/* who it's for */
.split { display: grid; gap: 12px; }
.rows { display: grid; }
.row { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row p { color: var(--ink-2); margin: 0; max-width: 38em; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .row { grid-template-columns: 200px 1fr; gap: 32px; padding-block: 28px; align-items: baseline; }
}

/* about: three chapters (mechina, service year, university) */
.story { display: grid; gap: 28px; }
.story__text p { color: var(--ink-2); max-width: 36em; }
.story__text p:last-child { margin-bottom: 0; }
.story__media { margin: 0; display: grid; gap: 14px; }
.story__media img { width: 100%; border-radius: var(--r-img); background: var(--photo-well); }
/* lecture pair: stacked on phones so the presenter stays recognisable, side by side from 600px */
@media (min-width: 600px) { .story__media--pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .story { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .story--wide { grid-template-columns: 1fr; gap: 40px; }
  /* photos uncropped, side by side at one shared height: flex-grow = aspect ratio */
  .story__media--row { display: flex; gap: 14px; align-items: flex-start; }
  .story__media--row img { min-width: 0; flex: calc(1599 / 899) 1 0; }
  .story__media--row img + img { flex: calc(768 / 1024) 1 0; }
}

/* steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.step { position: relative; display: grid; gap: 8px; }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.step p { color: var(--ink-2); margin: 0; max-width: 30em; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; height: 1px; background: var(--line-2);
    inset-inline-start: 60px; inset-inline-end: -24px;
  }
}

/* prices */
.prices { display: grid; gap: 16px; margin-top: 36px; }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; align-content: start; }
.price h3 { font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.price__num { font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--navy); margin: 18px 0 10px; font-variant-numeric: tabular-nums; }
.price__num small { font-size: .5em; font-weight: 700; }
.price__meta { color: var(--ink-2); margin: 0; }
.price--feature { background: var(--navy); border-color: var(--navy); }
.price--feature h3, .price--feature .price__num { color: #fff; }
.price--feature .price__meta { color: var(--navy-ink); }
.price__tag { font-size: .8rem; font-weight: 700; line-height: 1; color: var(--navy); background: #fff; border-radius: 999px; padding: 6px 10px; }
.prices__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; }
.prices__note { color: var(--ink-2); margin: 0; }
@media (max-width: 599px) { .prices__foot .btn { width: 100%; } }
@media (min-width: 820px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list { interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { color: var(--ink-2); margin: -4px 0 22px; max-width: 40em; }
@media (min-width: 900px) { .faq { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* contact */
.contact { display: grid; gap: 40px; }
.contact__intro p { color: var(--ink-2); max-width: 30em; font-size: 1.08rem; }
.contact__intro .btn { margin: 8px 0 18px; }
.contact__phone { display: flex; align-items: center; gap: 8px; font-size: 1rem !important; }
.contact__phone .ico { width: 18px; height: 18px; color: var(--ink-3); }
.contact__phone a { font-weight: 700; }
@media (max-width: 599px) { .contact__intro .btn { width: 100%; } }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* form */
.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 22px; display: grid; gap: 18px; }
@media (min-width: 600px) { .form { padding: 32px; } }
.form__title { font-size: 1.25rem; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .98rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-start: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230B2545' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: left 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA6B6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 37, 69, .15); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .96rem; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: #9AA6B6; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form__status:empty { display: none; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--err); }
.form__privacy { margin: 0; font-size: .88rem; color: var(--ink-3); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--navy-ink); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: .96rem; }
.footer p { margin: 0; }
.footer__inner { display: grid; gap: 20px; }
.footer__name { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 4px !important; }
.footer__links { display: flex; gap: 24px; }
.footer a { color: #fff; font-weight: 500; }
.footer :focus-visible { outline-color: #fff; }
.footer__copy { color: #9FB0C8; font-size: .88rem; }
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(217, 227, 240, .18); }
}
@media (max-width: 959px) { .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* ---------- sticky mobile WhatsApp ---------- */
.sticky-wa {
  position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: 12px; background: var(--wa); color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(11, 37, 69, .45), 0 2px 6px rgba(11, 37, 69, .12);
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out);
}
.sticky-wa:hover { background: var(--wa-hover); text-decoration: none; }
.sticky-wa.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .sticky-wa { display: none; } }
