*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --blue: #7890c0; --blue-dark: #5d74a6; --blue-light: #eef1f9;
    --accent: #b9c2f2;
    --cta: #111111;
    --action: #f2abc4; --text: #111111; --text-muted: #7c7c7c;
    --bg: #f7f7f5; --white: #FFFFFF; --border: #e9e9e7; --success: #27AE60;
    --font-display: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow: 0 18px 34px -22px rgba(0,0,0,.35);
    --shadow-lg: 0 34px 70px -28px rgba(0,0,0,.55);
    --radius: 28px; --radius-sm: 18px;
    --lime:#eaf6c3; --pink:#f2abc4; --purple:#bba6f2; --peach:#f7d0b0; --sun:#f7e39f; --sky:#b4d6fb; --peri:#b9c2f2;
    --ink2:#3d3d3d; --hair:#e9e9e7;
  }
  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; }
  a { color: inherit; text-decoration: none; }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

  .nav { position: sticky; top: 0; z-index: 100; background: #ffffff; border-bottom: 1px solid var(--border); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .nav-logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #111111; letter-spacing:-.4px;}
  .nav-logo span { color: #111111; }
  .nav-links { display: flex; gap: 24px; list-style: none; }
  .nav-links a { font-size: 14px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
  .nav-links a:hover { color: #111111; }
  .nav-cta { background: #111111; color: #ffffff; padding: 10px 20px; border-radius: 999px; font-size: 14px !important; font-weight: 700; transition: background 0.2s !important; border:1.5px solid #111111;box-shadow:none;}
  .nav-cta:hover { background: #2a2a2a; color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}

  .breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-muted); }
  .breadcrumb a { color: #111111; }
  .breadcrumb span { margin: 0 6px; }

  .hero { background: radial-gradient(1100px 720px at 30% 12%, #1e1e1e, #141414 68%); color: var(--white); padding: 64px 0 56px; }
  .hero-inner { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
  .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #2f3b52; border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
  .hero h1 { font-family: var(--font-display); font-size: clamp(28px,3.5vw,44px); line-height: 1.18; font-weight: 900; margin-bottom: 18px; }
  .hero h1 em { font-style: normal; color: #ffffff; font-weight:900;background:none;text-decoration:none;}
  .hero-desc { font-size: 17px; color: #e8e8e6; margin-bottom: 28px; line-height: 1.7; max-width: 520px; }
  .hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
  .badge { background: #2f3b52; border: 1px solid rgba(255,255,255,0.18); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 500; }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #111111; color: #ffffff; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid #111111; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: none; }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111111; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid #e9e9e7; cursor: pointer; transition: background 0.2s; box-shadow:none;}
  .btn-secondary:hover { background: #f7f7f5; color:#111111;border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  .hero-card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; color: var(--text); box-shadow: var(--shadow-lg); }
  .hero-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
  .hero-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
  .form-group { margin-bottom: 11px; }
  .form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
  .form-group input, .form-group select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: border-color 0.2s; font-family: var(--font-body); }
  .form-group input:focus, .form-group select:focus { border-color: var(--blue); }
  .form-btn { width: 100%; background: #111111; color: #ffffff; padding: 13px; border: 1.5px solid #111111; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 4px; box-shadow:none;}
  .form-btn:hover { background: #2a2a2a; color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}
  .form-privacy { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 9px; }

  .stats-bar { background: var(--text); padding: 24px 0; }
  .stats-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
  .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 4px; }
  .stat-num span { color: var(--accent); }
  .stat-label { font-size: 12px; color: #b8b8b6; line-height: 1.4; }

  .section { padding: 72px 0; }
  .section-alt { background: var(--bg); }
  .section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
  .section-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #111111; background: #f7f7f5; padding: 5px 12px; border-radius: 50px; margin-bottom: 12px; }
  .section-title { font-family: var(--font-display); font-size: clamp(24px,2.8vw,34px); line-height: 1.2; font-weight: 800; color: var(--text); margin-bottom: 12px; }
  .section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

  /* COMPARISON */
  .what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
  .what-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
  .what-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
  .what-icon { width: 36px; height: 36px; background: #f7f7f5; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .what-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
  .what-card ul { list-style: none; }
  .what-card ul li { font-size: 13px; color: var(--text-muted); padding: 4px 0 4px 16px; position: relative; line-height: 1.6; }
  .what-card ul li::before { content: '·'; position: absolute; left: 0; color: #111111; font-weight: 700; }

  /* GRADE STRIP */
  .grade-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
  .grade-pill { background: #f7f7f5; color: #111111; padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 700; }

  .program-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
  .program-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 18px; transition: border-color 0.2s, box-shadow 0.2s; }
  .program-card:hover { border-color: #e9e9e7; box-shadow: var(--shadow); }
  .program-icon { font-size: 28px; margin-bottom: 12px; }
  .program-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
  .program-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

  .who-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
  .who-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; }
  .who-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
  .who-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .who-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

  .format-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
  .format-card { border-radius: var(--radius); padding: 32px 28px; border: 2px solid var(--border); }
  .format-card.active { border-color: #e9e9e7; background: #f7f7f5; }
  .format-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #111111; margin-bottom: 10px; }
  .format-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .format-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #111111; line-height: 1; margin-bottom: 4px; }
  .format-old { font-size: 14px; text-decoration: line-through; color: var(--text-muted); margin-bottom: 16px; }
  .format-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .format-features li { display: flex; gap: 8px; font-size: 14px; color: var(--text-muted); align-items: flex-start; }
  .format-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
  .format-btn { width: 100%; padding: 13px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s; }
  .format-btn-primary { background: #111111; color: #ffffff; border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}
  .format-btn-primary:hover { background: #2a2a2a; color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}
  .format-btn-secondary { background: #fff; color: #111111; border: 1.5px solid #e9e9e7; border-radius:999px;font-weight:700;box-shadow:none;}
  .format-btn-secondary:hover { background: #f7f7f5; border-color: #e9e9e7; color:#111111;border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  .teacher-strip { display: flex; gap: 32px; align-items: center; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: none; }
  .teacher-avatar { width: 100px; height: 100px; min-width: 100px; background: #f7f7f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 44px; }
  .teacher-strip h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
  .teacher-strip .role { font-size: 13px; color: #111111; font-weight: 600; margin-bottom: 10px; }
  .teacher-strip p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 560px; }
  .teacher-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: #111111; font-size: 14px; font-weight: 600; }
  .teacher-link:hover { text-decoration: underline; }

  .reviews-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
  .review-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
  .review-stars { color: #f7e39f; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
  .review-text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
  .review-author { display: flex; gap: 10px; align-items: center; }
  .review-avatar { width: 36px; height: 36px; background: #f7f7f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .review-name { font-size: 13px; font-weight: 700; color: var(--text); }
  .review-meta { font-size: 11px; color: var(--text-muted); }

  .faq-list { max-width: 720px; margin: 0 auto; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); gap: 20px; user-select: none; }
  .faq-question:hover { color: #111111; }
  .faq-icon { width: 24px; height: 24px; background: #f7f7f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #111111; flex-shrink: 0; transition: transform 0.2s, background 0.2s; }
  .faq-item.open .faq-icon { transform: rotate(45deg); background: #111111; color: var(--white); }
  .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .faq-item.open .faq-answer { max-height: 320px; }
  .faq-answer p { padding-bottom: 16px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

  .seo-text { max-width: 800px; margin: 0 auto; }
  .seo-text h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 12px; margin-top: 28px; }
  .seo-text h2:first-child { margin-top: 0; }
  .seo-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
  .seo-text ul { list-style: none; margin-bottom: 14px; }
  .seo-text ul li { font-size: 15px; color: var(--text-muted); line-height: 1.7; padding-left: 18px; position: relative; margin-bottom: 6px; }
  .seo-text ul li::before { content: '→'; position: absolute; left: 0; color: #111111; font-weight: 700; font-size: 13px; }

  .related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
  .related-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.2s, transform 0.2s; }
  .related-card:hover { border-color: #e9e9e7; transform: translateY(-2px); }
  .related-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .related-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
  .related-link { font-size: 13px; color: #111111; font-weight: 600; }
  .related-link:hover { text-decoration: underline; }

  .cta-section { background: radial-gradient(720px 460px at 30% 0%, #1f1f1f, #161616 72%); padding: 64px 0; text-align: center; color: var(--white); }
  .cta-section h2 { font-family: var(--font-display); font-size: clamp(22px,2.8vw,34px); font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
  .cta-section p { font-size: 15px; color: #d8d8d6; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .cta-contacts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
  .msg-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; color: #fff; text-decoration: none; transition: transform 0.18s, box-shadow 0.18s; box-shadow: none; }
  .msg-btn:hover { transform: translateY(-2px); }
  .msg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .msg-btn--wa { background: #25D366; color:#ffffff;border:none;border-radius:999px;font-weight:700;box-shadow:none;}
  .msg-btn--tg { background: #229ED9; color:#ffffff;border:none;border-radius:999px;font-weight:700;box-shadow:none;}
  .msg-btn--max { background:#7C4DFF; color:#ffffff;border:none;border-radius:999px;font-weight:700;box-shadow:none;}
  .msg-btn--phone { background: #111111; color: #ffffff; border:none;border-radius:999px;font-weight:700;box-shadow:none;}
  .cta-note { font-size: 13px; color: #9d9d9d; }

  footer { background: var(--text); color: #b8b8b6; padding: 40px 0; }
  .footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
  .footer-logo { font-family: var(--font-display); font-size: 20px; color: #ffffff; margin-bottom: 10px; }
  .footer-logo span { color: #ffffff; }
  .footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
  footer h4 { color: var(--white); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
  footer ul { list-style: none; }
  footer ul li { margin-bottom: 7px; }
  footer ul li a { font-size: 13px; transition: color 0.2s; }
  footer ul li a:hover { color: var(--white); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

  .toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: var(--white); padding: 14px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; z-index: 9999; transform: translateY(80px); opacity: 0; transition: transform 0.3s, opacity 0.3s; max-width: 280px; }
  .toast.show { transform: translateY(0); opacity: 1; }

  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .stats-list { grid-template-columns: repeat(2,1fr); }
    .what-grid { grid-template-columns: 1fr; }
    .program-grid { grid-template-columns: 1fr 1fr; }
    .who-grid { grid-template-columns: 1fr; }
    .format-tabs { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .teacher-strip { flex-direction: column; text-align: center; }
  }
  @media (max-width: 600px) {
    .program-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
  }

  /* ===== Quick signup popup (единый, как на главной) ===== */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #141414;
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .popup-overlay.show { display: flex; }

  .popup-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: popupIn 0.25s ease;
  }

  @keyframes popupIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1.5px solid #e9e9e7;
    background: #fff;
    border-radius: 999px;
    font-size: 16px;
    color: #111;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  font-weight:700;box-shadow:none;}

  .popup-close:hover { background: #f7f7f5; color: #111; border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  .popup-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    padding-right: 20px;
  }

  .popup-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
  }

  .popup-form-group { margin-bottom: 16px; }

  .popup-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .popup-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 17px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-body);
  }

  .popup-form-group input:focus { border-color: var(--blue); }

  .popup-submit-btn {
    width: 100%;
    background: #111111;
    color: #ffffff;
    padding: 15px;
    border: 1.5px solid #111111;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  box-shadow:none;}

  .popup-submit-btn:hover { background: #2a2a2a; color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}

  .popup-privacy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
  }

  .popup-privacy a { color: #111111; }

  @media (max-width: 480px) {
    .popup-card { padding: 28px 22px; }
  }

  /* ===== Шаг 2: сквозной футер-каталог ===== */
  .footer-catalog { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; padding-bottom:36px; margin-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.1); }
  footer ul li a:hover { color:#fff; }
  @media (max-width:900px){ .footer-catalog{ grid-template-columns:1fr 1fr; } }
  @media (max-width:600px){ .footer-catalog{ grid-template-columns:1fr; } }
  .subj-switch { display:inline-flex; gap:8px; background:var(--bg); border:1px solid var(--border); border-radius:50px; padding:5px; margin-bottom:6px; }
  .subj-switch a { font-size:13px; font-weight:600; padding:7px 16px; border-radius:50px; color:var(--text-muted); text-decoration:none; }
  .subj-switch a.active { background:#111111; color:#fff; }

  /* ===== 152-FZ CONSENT CHECKBOX ===== */
  .consent-check { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; line-height:1.45; color:#7c7c7c; margin-top:12px; text-align:left; cursor:pointer; }
  .consent-check input { margin-top:2px; flex:0 0 auto; width:15px; height:15px; accent-color: #111111; cursor:pointer; }
  .consent-check a { color:inherit; text-decoration:underline; }

.btn-primary[onclick*="openSignupPopup"]{background:#111111;color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}
