/* ===== RESET & BASE ===== */
  *, *::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; }
  img { max-width: 100%; height: auto; display: block; }

  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ===== NAV ===== */
  .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: 28px;
    list-style: none;
  }

  .nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
  }

  .nav-links a:hover { color: #111111; }

  .nav-phone {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
  }

  .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;}

  /* ===== HERO ===== */
  .hero {
    background: radial-gradient(1100px 720px at 30% 12%, #1e1e1e, #141414 68%);
    color: var(--white);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #2a2a2a;
    pointer-events: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f7f7f5;
    pointer-events: none;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .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: 20px;
    letter-spacing: 0.3px;
  }

  .hero-eyebrow::before {
    content: '★';
    color: #7c7c7c;
    font-size: 12px;
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
  }

  .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: 32px;
    max-width: 520px;
    line-height: 1.7;
  }

  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
  }

  .badge {
    background: #2f3b52;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    border: 1.5px solid #111111;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: none;
  }

  .btn-primary:hover { transform: translateY(-2px); box-shadow: none; }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111111;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid #e9e9e7;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  box-shadow:none;}

  .btn-secondary:hover { background: #f7f7f5; border-color: rgba(255,255,255,0.7); color:#111111;border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  /* Hero card */
  .hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    color: var(--text);
    box-shadow: var(--shadow-lg);
  }

  .hero-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }

  .hero-card .sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
  }

  .card-form-group {
    margin-bottom: 12px;
  }

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

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

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

  .card-form-btn {
    width: 100%;
    background: #111111;
    color: #ffffff;
    padding: 14px;
    border: 1.5px solid #111111;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
  box-shadow:none;}

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

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

  /* ===== STATS BAR ===== */
  .stats-bar {
    background: var(--text);
    padding: 28px 0;
  }

  .stats-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
  }

  .stat-item {}

  .stat-num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
  }

  .stat-num span { color: var(--accent); }

  .stat-label {
    font-size: 13px;
    color: #b8b8b6;
    line-height: 1.4;
  }

  /* ===== SECTIONS COMMON ===== */
  .section {
    padding: 80px 0;
  }

  .section-alt {
    background: var(--bg);
  }

  .section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
  }

  .section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111111;
    background: #f7f7f5;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
  }

  .section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  /* ===== SUBJECTS ===== */
  .subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .subject-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
  }

  .subject-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }

  .subject-icon {
    width: 52px;
    height: 52px;
    background: #f7f7f5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
  }

  .subject-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }

  .subject-grades {
    font-size: 12px;
    font-weight: 600;
    color: #111111;
    background: #eaf6c3;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
  }

  .subject-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .subject-max {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
  }

  .subject-max strong {
    color: var(--success);
    font-weight: 700;
  }

  /* ===== WHY BLOCKS ===== */
  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 22px;
    border: 1.5px solid var(--border);
  }

  .why-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f7f7f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .why-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
  }

  .why-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* ===== TEACHER ===== */
  .teacher-block {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1.5px solid var(--border);
    box-shadow: none;
  }

  .teacher-photo-area {
    position: relative;
  }

  .teacher-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    box-shadow: none;
  }

  .teacher-badge-big {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
  }

  .teacher-info { padding-top: 8px; }

  .teacher-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }

  .teacher-role {
    font-size: 14px;
    color: #111111;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .teacher-bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .teacher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
  }

  .t-stat {
    text-align: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
  }

  .t-stat-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin-bottom: 4px;
  }

  .t-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  .teacher-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .teacher-achievements li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .teacher-achievements li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    flex-shrink: 0;
  }

  .teacher-unis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .uni-tag {
    background: #eaf6c3;
    color: #111111;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
  }

  /* ===== PROCESS ===== */
  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--border);
    z-index: 0;
  }

  .step {
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .step-num {
    width: 56px;
    height: 56px;
    background: #111111;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: none;
  }

  .step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text);
  }

  .step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* ===== PRICING ===== */
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
  }

  .price-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .price-card.featured {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    position: relative;
  }

  .price-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
  }

  .price-type {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .price-amount {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
  }

  .price-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .price-features li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: flex-start;
  }

  .price-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
  }

  .price-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .price-btn-primary {
    background: #111111;
    color: #ffffff;
  border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}

  .price-btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}

  .price-btn-secondary {
    background: #fff;
    color: #111111;
    border: 1.5px solid #e9e9e7;
  border-radius:999px;font-weight:700;box-shadow:none;}

  .price-btn-secondary:hover { background: #f7f7f5; border-color: #e9e9e7; color:#111111;border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  .price-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .price-note a { color: #111111; font-weight: 600; }

  /* ===== REVIEWS ===== */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .review-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
  }

  .review-stars {
    color: #f7e39f;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
  }

  .review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .review-author {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
    background: #f7f7f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
  }

  .review-meta {
    font-size: 12px;
    color: var(--text-muted);
  }

  .review-result {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
  }

  .review-result strong { color: var(--success); }

  /* ===== RESULTS TABLE ===== */
  .results-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
  }

  .result-num-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
  }

  .result-score {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin-bottom: 4px;
  }

  .result-subject {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .result-year {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
  }

  /* ===== FAQ ===== */
  .faq-list { max-width: 760px; margin: 0 auto; }

  .faq-item {
    border-bottom: 1px solid var(--border);
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 16px;
    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, padding 0.3s;
  }

  .faq-item.open .faq-answer { max-height: 300px; }

  .faq-answer p {
    padding-bottom: 18px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  /* ===== LOCATION ===== */
  .locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .location-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
  }

  .location-num {
    width: 36px;
    height: 36px;
    background: #111111;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
  }

  .location-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }

  .location-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    background: radial-gradient(720px 460px at 30% 0%, #1f1f1f, #161616 72%);
    padding: 72px 0;
    text-align: center;
    color: var(--white);
  }

  .cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .cta-section p {
    font-size: 16px;
    color: #d8d8d6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-contacts {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    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); box-shadow: none; }

  .msg-btn svg { width: 20px; height: 20px; 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--vk   { background: #fff; color:#111111;border:1.5px solid #e9e9e7;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; box-shadow: none; border:none;border-radius:999px;font-weight:700;}

  /* Hero messenger row */
  .hero-messengers {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .hero-messengers .msg-btn {
    padding: 9px 16px;
    font-size: 13px;
    box-shadow: none;
  }

  .hero-messengers .msg-btn svg { width: 17px; height: 17px; }

  /* ===== MAP ===== */
  .map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
    height: 400px;
    margin-top: 24px;
  }

  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  .map-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .map-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111111;
    border: 1.5px solid #111111;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
  box-shadow:none;}

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

  /* ===== COSTUDYING ===== */
  .costudying-banner {
    background: #f7f7f5;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
  }

  .costudying-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #111111;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
  }

  .costudying-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
  }

  .costudying-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .costudying-text a {
    color: #111111;
    font-weight: 600;
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    .costudying-banner { flex-direction: column; text-align: center; }
  }

  .cta-section .small {
    font-size: 13px;
    color: #9d9d9d;
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--text);
    color: #b8b8b6;
    padding: 40px 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
  }

  .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: 16px;
  }

  footer h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
  }

  footer ul { list-style: none; }
  footer ul li { margin-bottom: 8px; }
  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: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
  }

  /* ===== PROFORIENTATION ===== */
  .pro-block {
    background: #f7f7f5;
    border-radius: var(--radius);
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: center;
    border: 1.5px solid rgba(26,86,214,0.15);
  }

  .pro-block h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
  }

  .pro-block p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .pro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .pro-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: flex-start;
  }

  .pro-list li::before {
    content: '→';
    color: #111111;
    font-weight: 700;
    flex-shrink: 0;
  }

  .pro-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
  }

  .pro-form-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }

  .pro-form-card .sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
  }

  /* ===== PRO SERVICES GRID ===== */
  .pro-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .pro-service-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .pro-service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }

  .pro-service-card--featured {
    background: #111111;
    border-color: #e9e9e7;
    color: var(--white);
  }

  .pro-service-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 50px;
    white-space: nowrap;
  }

  .pro-service-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .pro-service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f7f7f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .pro-service-card--featured .pro-service-icon {
    background: #2f3b52;
  }

  .pro-service-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #111111;
    margin-bottom: 4px;
  }

  .pro-service-card--featured .pro-service-tag {
    color: #d8d8d6;
  }

  .pro-service-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
  }

  .pro-service-card--featured .pro-service-title { color: #ffffff; }

  .pro-service-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .pro-service-card--featured .pro-service-desc { color: #d8d8d6; }

  .pro-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
    flex: 1;
  }

  .pro-service-list li {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    align-items: flex-start;
    line-height: 1.5;
  }

  .pro-service-list li::before {
    content: '→';
    color: #111111;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 1px;
  }

  .pro-service-card--featured .pro-service-list li { color: #d8d8d6; }
  .pro-service-card--featured .pro-service-list li::before { color: #d8d8d6; }

  .pro-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .pro-service-card--featured .pro-service-footer {
    border-color: rgba(255,255,255,0.2);
  }

  .pro-service-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
  }

  .pro-service-card--featured .pro-service-price { color: #ffffff; }

  .pro-old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
  }

  .pro-service-card--featured .pro-old-price { color: #d8d8d6; }

  .pro-price-note {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
    font-family: var(--font-body);
  }

  .pro-service-card--featured .pro-price-note { color: #d8d8d6; }

  .pro-service-btn {
    background: #111111;
    color: #ffffff;
    border: 1.5px solid #111111;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
  box-shadow:none;}

  .pro-service-btn:hover { background: #2a2a2a; transform: translateY(-1px); color:#ffffff;border:1.5px solid #111111;border-radius:999px;font-weight:700;box-shadow:none;}

  .pro-service-btn--white {
    background: #fff;
    color: #111111;
  border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  .pro-service-btn--white:hover { background: #f7f7f5; color:#111111;border:1.5px solid #e9e9e7;border-radius:999px;font-weight:700;box-shadow:none;}

  @media (max-width: 1000px) {
    .pro-services-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 600px) {
    .pro-services-grid { grid-template-columns: 1fr; }
  }

  /* ===== COMPARISON BLOCK ===== */
  .roles-strip {
    display: flex;
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .role-arrow {
    flex: 1;
    padding: 14px 8px 14px 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  }

  .role-arrow:first-child {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    padding-left: 16px;
  }

  .role-arrow--1 { background: var(--cta); }
  .role-arrow--2 { background: #f2abc4; }
  .role-arrow--3 { background: #eaf6c3; }
  .role-arrow--4 { background: #b4d6fb; }
  .role-arrow--5 { background: #bba6f2; }
  .role-arrow--6 { background: #f7d0b0; }

  .roles-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-style: italic;
  }

  .comp-table-wrap {
    overflow-x: auto;
    margin-bottom: 28px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
  }

  .comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  .comp-table thead tr {
    background: var(--text);
    color: var(--white);
  }

  .comp-table th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
  }

  .comp-table th.comp-activity,
  .comp-table td:first-child {
    text-align: left;
    width: 40%;
  }

  .comp-table th.comp-us { background: #111111; }

  .comp-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }

  .comp-table tbody tr:nth-child(even) td { background: var(--bg); }
  .comp-table tbody tr:hover td { background: #f7f7f5; }

  .comp-table td.comp-us-price {
    background: #f7f7f5;
    color: #111111;
    font-size: 16px;
  }

  .comp-price-row td {
    background: var(--bg) !important;
    padding: 16px;
    font-size: 15px;
    color: var(--text) !important;
    border-top: 2px solid var(--border);
  }

  .ci {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
  }

  .ci-yes { background: #D4F4E2; color: #1A8A4A; }
  .ci-no  { background: #f2abc4; color: #111111; }
  .ci-half { background: #FFF3CD; color: #111111; }

  .value-banner {
    background: #f7f7f5;
    border: 1.5px solid rgba(0,129,188,0.2);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .value-banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
  }

  .value-banner h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
  }

  .value-banner p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  @media (max-width: 700px) {
    .roles-strip { flex-wrap: wrap; }
    .role-arrow { clip-path: none !important; padding: 10px 12px; font-size: 12px; }
    .value-banner { flex-direction: column; }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .hero-card.show-mobile { display: block; margin-top: 24px; }
    .stats-list { grid-template-columns: repeat(2, 1fr); }
    .subjects-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .teacher-block { grid-template-columns: 1fr; }
    .teacher-photo-placeholder { aspect-ratio: 1/1; max-width: 220px; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .process-steps::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .results-highlight { grid-template-columns: 1fr 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .pro-block { grid-template-columns: 1fr; }
    .teacher-stats { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .subjects-grid { grid-template-columns: 1fr; }
    .stats-list { grid-template-columns: 1fr 1fr; }
    .results-highlight { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 52px; }
    .section { padding: 56px 0; }
  }

  /* ===== TOAST ===== */
  .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; }

  /* ===== 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; }
  }

  /* ===== ARTICLE / GUIDE PAGES (доп. стили, та же дизайн-система) ===== */

  /* Хлебные крошки */
  .breadcrumbs {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .breadcrumbs .container { padding-top: 12px; padding-bottom: 12px; }
  .breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .breadcrumbs a { color: var(--text-muted); }
  .breadcrumbs a:hover { color: #111111; }
  .breadcrumbs li:not(:last-child)::after { content: '›'; color: var(--border); margin-left: 6px; }
  .breadcrumbs li[aria-current] { color: var(--text); font-weight: 600; }

  /* Хедер статьи */
  .article-hero {
    background: radial-gradient(1100px 720px at 30% 12%, #1e1e1e, #141414 68%);
    color: var(--white);
    padding: 56px 0 52px;
    position: relative;
    overflow: hidden;
  }
  .article-hero::before {
    content: ''; position: absolute; top: -120px; right: -120px;
    width: 520px; height: 520px; border-radius: 50%;
    background: #2a2a2a; pointer-events: none;
  }
  .article-hero::after {
    content: ''; position: absolute; bottom: -80px; left: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: #f7f7f5; pointer-events: none;
  }
  .article-hero .container { position: relative; z-index: 1; max-width: 860px; }
  .article-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; letter-spacing: 0.3px;
  }
  .article-hero h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15;
    letter-spacing: -0.5px; margin-bottom: 16px;
  }
  .article-hero .lead { font-size: 18px; color: #e8e8e6; max-width: 680px; }
  .article-meta {
    margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px;
    font-size: 14px; color: #7c7c7c;
  }
  .article-meta span { display: inline-flex; align-items: center; gap: 7px; }

  /* Тело статьи */
  .article-wrap { padding: 48px 0 64px; background: var(--white); }
  .article-wrap .container { max-width: 860px; }
  .article-body { font-size: 17px; line-height: 1.7; color: var(--text); }
  .article-body > p { margin-bottom: 18px; }
  .article-body h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: #111111;
    margin: 44px 0 16px; letter-spacing: -0.4px; scroll-margin-top: 90px;
  }
  .article-body h3 {
    font-size: 21px; font-weight: 700; color: var(--text);
    margin: 30px 0 12px; scroll-margin-top: 90px;
  }
  .article-body ul, .article-body ol { margin: 0 0 20px 0; padding-left: 24px; }
  .article-body li { margin-bottom: 9px; }
  .article-body strong { font-weight: 700; color: #111111; }
  .article-body a:not(.btn-primary):not(.related-card) { color: #111111; text-decoration: underline; text-underline-offset: 2px; }
  .article-body a:not(.btn-primary):not(.related-card):hover { color: var(--accent); }
  .first-answer {
    background: #f7f7f5; border-left: 4px solid #e9e9e7;
    border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 28px;
    font-size: 17px;
  }
  .first-answer strong { color: #111111; }

  /* Оглавление */
  .toc {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px;
  }
  .toc h2 { font-family: var(--font-body); font-size: 15px !important; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted); margin: 0 0 12px !important; }
  .toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
  .toc li { counter-increment: toc; margin-bottom: 8px; break-inside: avoid; font-size: 15px; }
  .toc li::before { content: counter(toc) '. '; color: var(--accent); font-weight: 700; }
  .toc a { color: var(--text); }
  .toc a:hover { color: #111111; }

  /* Карточки-факты */
  .fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 28px; }
  .fact-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
  }
  .fact-card .num { font-family: var(--font-display); font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
  .fact-card .lbl { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

  /* Выноски (callouts) */
  .callout {
    border-radius: var(--radius); padding: 18px 20px 18px 56px; margin: 24px 0;
    position: relative; font-size: 16px; line-height: 1.6;
  }
  .callout::before {
    position: absolute; left: 18px; top: 17px; font-size: 22px; line-height: 1;
  }
  .callout strong { color: inherit; }
  .callout-info { background: #f7f7f5; border: 1px solid #BBD9F0; color: var(--text); }
  .callout-info::before { content: 'ℹ️'; }
  .callout-warning { background: #f7e39f; border: 1px solid #F4D2A8; color: var(--text); }
  .callout-warning::before { content: '⚠️'; }
  .callout-success { background: #EAF8F0; border: 1px solid #B7E4CC; color: var(--text); }
  .callout-success::before { content: '✅'; }
  .callout-tip { background: #bba6f2; border: 1px solid #D7C8F2; color: var(--text); }
  .callout-tip::before { content: '💡'; }
  .callout-local { background: #f7e39f; border: 1px solid var(--accent); color: var(--text); padding-left: 20px; }
  .callout-local::before { content: none; }
  .callout-local .tag {
    display: inline-block; background: var(--accent); color: #111111; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; letter-spacing: 0.3px;
  }

  /* Таблицы */
  .table-wrap { overflow-x: auto; margin: 24px 0 28px; border-radius: var(--radius); border: 1px solid var(--border); }
  table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); min-width: 480px; }
  table.data thead th { background: #111111; color: #fff; text-align: left; padding: 13px 16px; font-weight: 600; }
  table.data tbody td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
  table.data tbody tr:nth-child(even) td { background: var(--bg); }
  table.data .up { color: var(--accent); font-weight: 700; }
  table.data .same { color: var(--text-muted); }

  /* Шаги / таймлайн */
  .steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 28px; }
  .steps li {
    counter-increment: step; position: relative; padding: 0 0 22px 56px; margin: 0;
    border-left: 2px solid var(--border); margin-left: 18px;
  }
  .steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .steps li::before {
    content: counter(step); position: absolute; left: -18px; top: -4px;
    width: 36px; height: 36px; border-radius: 50%; background: #111111; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  }
  .steps li h3 { margin: 0 0 6px; font-size: 18px; }
  .steps li p { margin: 0; color: var(--text-muted); font-size: 15px; }

  /* CTA-блок */
  .cta-block {
    background: radial-gradient(720px 460px at 30% 0%, #1f1f1f, #161616 72%); color: #fff;
    border-radius: var(--radius); padding: 36px 32px; margin: 40px 0; text-align: center;
    box-shadow: none;
  }
  .cta-block h2 { font-family: var(--font-display); font-weight: 800; color: #fff !important;
    font-size: 26px !important; margin: 0 0 10px !important; }
  .cta-block p { color: #e8e8e6; max-width: 540px; margin: 0 auto 22px; font-size: 16px; }
  .cta-block .btn-primary { display: inline-flex; }

  /* FAQ-аккордеон */
  .faq-block { margin: 36px 0 8px; }
  .faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--white); }
  .faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 18px 50px 18px 20px; font-size: 16px; font-weight: 600; color: var(--text);
    position: relative; font-family: inherit;
  }
  .faq-q::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--accent); transition: transform 0.2s; }
  .faq-item.open .faq-q::after { content: '−'; }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
  .faq-item.open .faq-a { max-height: 600px; padding: 0 20px 18px; }
  .faq-a p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 15px; }

  /* Связанные страницы */
  .related { margin: 44px 0 0; }
  .related h2 { font-size: 22px !important; }
  .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
  .related-card {
    display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: transform 0.2s, box-shadow 0.2s;
  }
  .related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e9e9e7; }
  .related-card .rc-title { font-weight: 700; color: #111111; margin-bottom: 6px; font-size: 16px; }
  .related-card .rc-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

  .source-note { font-size: 13px; color: var(--text-muted); margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); line-height: 1.6; }

  @media (max-width: 720px) {
    .toc ol { columns: 1; }
    .article-body { font-size: 16px; }
    .cta-block { 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; } }

  /* ===== 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;}
