/* Public website (ADR-0021) — clean, minimal, RTL-first. Structure over polish. */
:root {
  --bg: #ffffff; --fg: #14213d; --muted: #5b6478; --line: #e6e8ee;
  --brand: #0b3d91; --brand-primary: #0b3d91; --brand-secondary: #c8a24a;
  --brand-ink: #ffffff; --soft: #f5f7fb; --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--fg); background: var(--bg); line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--fg); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--fg); font-weight: 500; }
.nav a.cta { background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 999px; }
.nav a.cta:hover { text-decoration: none; opacity: .92; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 64px 0; text-align: center; }
.hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 24px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: 1.6rem; margin: 0 0 20px; }
.muted { color: var(--muted); }

/* Course cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { color: var(--muted); flex: 1; margin: 0 0 14px; font-size: .95rem; }
.price { font-weight: 700; }
.tag { display: inline-block; font-size: .75rem; background: var(--soft); color: var(--muted); padding: 2px 10px; border-radius: 999px; }

/* Forms */
form.stack { display: grid; gap: 14px; max-width: 520px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
.notice { padding: 12px 14px; border-radius: 10px; }
.notice.ok { background: #e8f7ee; color: #10633a; }
.notice.err { background: #fdecec; color: #8a1f1f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 640px) { .hero h1 { font-size: 1.7rem; } .nav { gap: 12px; } }

/* ── Product-quality polish (Unity Academic) ─────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav a.active { color: var(--brand); font-weight: 700; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--soft); color: var(--fg);
  border-radius: 999px; width: 40px; height: 34px; font-weight: 700; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.contact-actions { margin: 1.2rem 0; }
.btn-telegram {
  background: #229ED9; color: #fff; display: inline-block; padding: 14px 26px;
  border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(34,158,217,.28);
}
.btn-telegram:hover { text-decoration: none; opacity: .94; }
/* Slightly richer cards + buttons across the site */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff;
  box-shadow: 0 2px 10px rgba(16,32,64,.04); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,32,64,.10); }
.btn { box-shadow: 0 6px 18px rgba(11,61,145,.22); }
.btn:hover { text-decoration: none; opacity: .95; }

/* ── Rich course page ─────────────────────────────────────────────────────── */
.lead { font-size: 1.15rem; color: var(--fg); margin: .6rem 0 1.2rem; }
.price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.price-now { font-size: 1.7rem; font-weight: 800; color: var(--brand-primary); }
.price-old { color: var(--muted); font-size: 1.05rem; }
.badge-off { background: #e8f7ee; color: #10633a; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: .9rem; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 1.2rem 0; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--soft); }
.fact-k { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.fact-v { font-weight: 700; }
.course-block { margin: 1.6rem 0; }
.course-block h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.objectives li { position: relative; padding-inline-start: 28px; }
.objectives li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-secondary); font-weight: 800; }
.lesson-list { padding-inline-start: 22px; display: grid; gap: 6px; }

/* ── Homepage: testimonials + FAQ ─────────────────────────────────────────── */
.testimonial .quote { font-size: 1.02rem; color: var(--fg); flex: 1; }
.testimonial .who { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { color: var(--muted); margin: 10px 0 0; }
.hero .btn { margin: 6px 6px 0 0; }

/* ── Instructor card ──────────────────────────────────────────────────────── */
.instructor-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--soft); }
.instructor-photo, .instructor-avatar { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.instructor-avatar { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.instructor-name { font-weight: 800; font-size: 1.1rem; }
.instructor-title { color: var(--brand-primary); font-weight: 600; margin-top: 2px; }
.instructor-bio { color: var(--muted); margin: 8px 0 0; }
