/* ============================================================
   Kate Torzhkova — English lessons
   Design system: "Margin Notes"
   ============================================================ */

:root {
  --paper:      #F6F3EC;
  --paper-2:    #FCFAF5;
  --ink:        #24333B;
  --ink-soft:   #45535B;
  --muted:      #6E7A82;
  --line:       #E4DFD3;
  --accent:     #2F6F62;
  --accent-deep:#234f45;
  --highlight:  #FCD253;
  --danger:     #9A4A3C;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(36,51,59,.04), 0 12px 34px -18px rgba(36,51,59,.28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-line { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* highlighter signature */
.mark {
  background-image: linear-gradient(120deg, rgba(252,210,83,.62), rgba(252,210,83,.62));
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 82%;
  padding: 0 .06em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.brand-name { font-family: var(--font-display); font-weight: 560; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-sub { display:block; font-family: var(--font-body); font-weight:600; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }
.nav-cta { display: none; }

/* hamburger toggle — CSS-only (checkbox + label), no JS */
.nav-toggle-cb { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.nav-toggle {
  display: none; /* shown < 720px */
  width: 44px; height: 44px; margin-left: .75rem;
  align-items: center; justify-content: center; cursor: pointer;
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 10px;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle .bars::after  { position: absolute; left: 0; top:  6px; }
.nav-toggle-cb:checked ~ .nav-toggle .bars { background: transparent; }
.nav-toggle-cb:checked ~ .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle-cb:checked ~ .nav-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-cb:focus-visible ~ .nav-toggle { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (min-width: 920px) {
  .nav-cta { display: inline-flex; }
}
@media (max-width: 919px) {
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  /* menu becomes a dropdown panel under the sticky header */
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .25rem 1.5rem 1.25rem;
  }
  .nav-toggle-cb:checked ~ .nav-menu { display: block; }

  .nav-menu .nav-links { flex-direction: column; align-items: stretch; gap: 0; font-size: 1rem; }
  .nav-menu .nav-links li { border-top: 1px solid var(--line); }
  .nav-menu .nav-links li:first-child { border-top: none; }
  .nav-menu .nav-links li:not(.lang-switch) a:not(.btn) { display: block; padding: .9rem .1rem; }
  .nav-menu .nav-links .nav-cta { display: inline-flex; justify-content: center; margin: .9rem 0 .35rem; }
  .nav-menu .nav-links .lang-switch { padding: .9rem .1rem 0; justify-content: flex-start; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 500; }
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 42ch; margin: 1.25rem 0 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-fact { max-width: 15rem; }
.hero-fact b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; }
.hero-fact span { font-size: .92rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero-card { justify-self: end; }
}

.hero-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow); width: 100%; max-width: 360px;
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.hero-card ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.hero-card li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.hero-card li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 600;
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--accent); color: var(--accent-deep);
  display: grid; place-items: center; font-size: .95rem;
}
.hero-card li b { font-weight: 700; }
.hero-card li small { color: var(--muted); display: block; font-size: .88rem; line-height: 1.4; }

/* ---------- generic section heads ---------- */
.section-head { max-width: 46ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 520; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: .5rem 0 0; }

/* ---------- pricing ---------- */
.price-note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.price-table thead th { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: color-mix(in srgb, var(--accent) 7%, var(--paper-2)); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .lesson-name { font-weight: 700; }
.price-table .lesson-name small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }
.price-table .amt { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.price-table .amt small { font-family: var(--font-body); color: var(--muted); font-size: .82rem; font-weight: 600; }
.price-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.perks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .7rem; }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.perks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--highlight); box-shadow: inset 0 0 0 4px var(--paper); border: 1.5px solid var(--ink); }

/* ---------- cards / method ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-2 { grid-template-columns: repeat(2,1fr);} }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .tag { font-size: .75rem; letter-spacing:.12em; text-transform: uppercase; font-weight:700; color: var(--accent); }

/* ---------- split CTA ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.25rem); }
.cta-band h2 { color: var(--paper); font-size: clamp(1.7rem,4vw,2.4rem); }
.cta-band p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 48ch; }
.cta-band .btn-ghost { color: var(--paper); border-color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.15rem; max-width: 640px; }
@media (min-width: 620px) { .form-grid .two { grid-template-columns: 1fr 1fr; display: grid; gap: 1.15rem; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-hint { font-size: .9rem; color: var(--muted); }

/* ---------- legal / long-form ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem,5vw,2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; font-size: .96rem; }
.legal th { background: color-mix(in srgb, var(--accent) 7%, var(--paper-2)); font-family: var(--font-body); }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal .callout { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.25rem 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, transparent); margin-top: 2rem; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { color: var(--paper); font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.3rem; }
.legal-id { font-size: .9rem; line-height: 1.7; color: color-mix(in srgb, var(--paper) 70%, transparent); margin-top: .5rem; }
.legal-id b { color: var(--paper); font-weight: 700; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-block: 1.25rem; font-size: .85rem; color: color-mix(in srgb, var(--paper) 60%, transparent); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- misc ---------- */
.center { text-align: center; }
.lead-callout { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.success { max-width: 560px; }
.success .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1.25rem; }

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

/* ---------- language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-current { color: var(--accent-deep); pointer-events: none; }
.lang-switch .sep { color: var(--line); font-weight: 400; }

/* ---------- photos ---------- */
.portrait { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-side { display: grid; gap: 1.5rem; }
.hero-contact { align-items: stretch; }
@media (min-width: 720px) { .portrait-fill { height: 100%; object-fit: cover; } }

/* booking steps (above the contact form) */
.steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li b { display: block; font-family: var(--font-display); font-weight: 560; font-size: 1.08rem; margin-bottom: .15rem; }
.steps li b::before { content: counter(step) ". "; color: var(--accent-deep); }
.steps li small { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
