/* =========================================================
   Aisha — korporativnyj.css
   Page-specific components for /корпоративный-английский.
   B2B corporate landing. Loads AFTER theme.css + content.css;
   consumes their tokens. Extends the content design system with:
   comparison table, concierge split, engagement row, 152-ФЗ trust
   panel, pilot call-out band, and the inline lead form.
   No new colours — amber accent + warm cream, in-system.
   Source: Claude Design "Aisha Portal" project (designer, 2026-07-11).
   ========================================================= */

/* ---------- shared: brand wordmark in body copy ---------- */
.brand { color: var(--color-amber); font-weight: 700; }

/* keep the corporate kicker pill on one line */
.page-hero .kicker { white-space: nowrap; }

/* ---------- hero: no-CTA corporate variant ---------- */
/* Reuses .page-hero / .page-hero-grid from content.css. The corporate hero
   carries no button (conversion lives in the intro panel + form), so the art
   column can lean a touch larger. */
.page-hero-art.corp img { max-width: 480px; }

/* ---------- pull-stat (S1 · Проблема) ---------- */
.pull-stat {
  max-width: var(--content-measure);
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--surface-card);
  border: 1px solid var(--surface-divider);
  border-left: 3px solid var(--color-amber);
  border-radius: 14px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.pull-stat-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--color-amber);
  letter-spacing: -1px;
}
.pull-stat-text { font-size: 16px; line-height: 1.55; color: var(--text-secondary); flex: 1; min-width: 220px; }
.pull-stat-text strong { color: var(--text-primary); font-weight: 700; }

/* emphasis callout — a filled amber statement block (distinct from the .pull-stat card) */
.problem-emphasis {
  max-width: var(--content-measure);
  margin: 20px 0 0;
  padding: 20px 26px;
  background: var(--color-primary-light);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-primary-dark);
}
@media (min-width: 768px) { .problem-emphasis { font-size: 23px; } }

/* ---------- S2 · comparison table (the money moment) ---------- */
.compare-wrap { max-width: 860px; margin: 8px 0 0; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-divider);
}
/* row-label column */
.compare-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
  width: 26%;
  white-space: nowrap;
}
/* head row */
.compare-table thead th { border-bottom: none; padding-bottom: 10px; }
.compare-table thead th span.col-cap {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.compare-table thead th.col-label { width: 26%; }
.compare-table td { color: var(--text-secondary); line-height: 1.5; }

/* highlighted Aisha column — amber tinted, capped, lifted */
.compare-table .aisha-col {
  background: var(--color-primary-light);
  position: relative;
}
.compare-table thead th.aisha-col {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding-top: 18px;
}
.compare-table tbody tr:last-child td.aisha-col {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.compare-table thead th.aisha-col span.col-cap { color: var(--color-primary-dark); }
.compare-table thead th.aisha-col .col-cap .brand { color: var(--color-primary-dark); }
.compare-table td.aisha-col { color: var(--text-primary); font-weight: 500; }
.compare-table .aisha-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-amber);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.compare-note { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }

/* Mobile: the 4-column table side-scrolls (Aisha column off-screen), so below
   640px flip it to stacked cards — one card per axis, each option row labeled,
   Aisha still highlighted. No horizontal scroll. thead is visually hidden but
   kept for screen readers (the scope-based structure still announces correctly). */
@media (max-width: 640px) {
  .compare-scroll { overflow-x: visible; border-radius: 0; }
  .compare-table { min-width: 0; display: block; }
  .compare-table tbody { display: block; }

  .compare-table thead {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  .compare-table tbody tr {
    display: block;
    margin: 0 0 14px;
    background: var(--surface-card);
    border: 1px solid var(--surface-divider);
    border-radius: 14px;
    overflow: hidden;
  }
  .compare-table tbody tr:last-child { margin-bottom: 0; }

  .compare-table tbody th[scope="row"] {
    display: block;
    width: auto;
    white-space: normal;
    background: var(--surface-warm);
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--surface-divider);
  }

  .compare-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    text-align: right;
    line-height: 1.4;
    border-bottom: 1px solid var(--surface-divider);
  }
  .compare-table tbody tr td:last-child { border-bottom: none; }

  /* column labels — columns are always Репетитор / Самостоятельно / Aisha */
  .compare-table tbody td::before {
    flex: 0 0 auto;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
  }
  .compare-table tbody td:nth-of-type(1)::before { content: "Репетитор"; }
  .compare-table tbody td:nth-of-type(2)::before { content: "Самостоятельно"; }
  .compare-table tbody td:nth-of-type(3)::before { content: "Aisha"; }

  .compare-table tbody td.aisha-col {
    background: var(--color-primary-light);
    color: var(--text-primary);
    font-weight: 600;
  }
  .compare-table tbody td.aisha-col::before { color: var(--color-primary-dark); }
  /* drop the desktop column-corner radius inside the card (same specificity, wins by order) */
  .compare-table tbody tr:last-child td.aisha-col {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .compare-note { text-align: center; }
}

/* ---------- S3 · concierge (мы всё делаем за вас) ---------- */
.concierge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 8px 0 0;
}
@media (min-width: 760px) { .concierge-grid { grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: stretch; } }
.concierge-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-divider);
  border-radius: var(--radius-card);
  padding: 28px 30px;
}
.concierge-card.you {
  background: var(--surface-warm);
  border-style: dashed;
}
.concierge-card.aisha { border-left: 4px solid var(--color-amber); }
.concierge-kicker {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin: 0 0 6px;
}
.concierge-card.aisha .concierge-kicker { color: var(--color-amber); }
.concierge-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2;
  color: var(--text-primary); margin: 0 0 18px; letter-spacing: -0.2px;
}
.concierge-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.concierge-steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-amber); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.concierge-steps .step-body { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.concierge-steps .step-body strong { display: block; color: var(--text-primary); font-weight: 700; margin-bottom: 2px; }
.concierge-nothing {
  font-family: var(--font-display); font-style: italic;
  font-size: 32px; color: var(--text-primary); margin: 4px 0 14px;
}
.concierge-card.you p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- S4 · engagement points row ---------- */
.points-row {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 860px; margin: 8px 0 0;
}
@media (min-width: 560px) { .points-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .points-row { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.point-item { display: flex; flex-direction: column; gap: 8px; }
.point-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.point-icon svg { width: 22px; height: 22px; stroke: var(--color-amber); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.point-item h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 4px 0 0; }
.point-item p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- S5 · 152-ФЗ trust panel ---------- */
.trust-panel {
  max-width: 860px; margin: 8px 0 0;
  background: var(--surface-card);
  border: 1px solid var(--surface-divider);
  border-radius: var(--radius-card);
  padding: 8px 32px;
}
.trust-panel .trust-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--surface-divider);
}
.trust-panel .trust-row:last-child { border-bottom: none; }
.trust-check {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
}
.trust-check svg { width: 18px; height: 18px; stroke: var(--color-accent); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trust-row .trust-body h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 3px; }
.trust-row .trust-body p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- S6 · pilot call-out band ---------- */
.pilot-band { background: var(--color-primary-dark); color: #fff; padding: 72px 0; }
@media (min-width: 768px) { .pilot-band { padding: 88px 0; } }
.pilot-inner { max-width: 860px; }
.pilot-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-primary-light); margin: 0 0 14px; }
.pilot-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; line-height: 1.18; letter-spacing: -0.3px; margin: 0 0 30px; color: #fff;
}
@media (min-width: 768px) { .pilot-band h2 { font-size: 42px; } }
.pilot-steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .pilot-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pilot-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px; padding: 24px 24px 26px;
}
.pilot-step .pn {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--color-primary-light); margin: 0 0 10px;
}
.pilot-step h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.pilot-step p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0; }
.pilot-foot { font-size: 15px; color: rgba(255,255,255,0.82); margin: 26px 0 0; line-height: 1.6; }
.pilot-foot .brand { color: var(--color-primary-light); }

/* ---------- S8 · lead form ---------- */
.lead-section { background: var(--surface-warm); padding: 80px 0; }
@media (min-width: 768px) { .lead-section { padding: 104px 0; } }
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.lead-intro h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 34px; line-height: 1.15; letter-spacing: -0.3px; color: var(--text-primary); margin: 0 0 18px;
}
@media (min-width: 768px) { .lead-intro h2 { font-size: 44px; } }
.lead-intro p { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 24px; max-width: 440px; }
.lead-assurances { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lead-assurances li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.lead-assurances svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--color-amber); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.lead-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-divider);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 30px;
}
@media (min-width: 768px) { .lead-card { padding: 38px; } }
.lead-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lead-field { display: flex; flex-direction: column; gap: 7px; }
.lead-field.full { grid-column: 1 / -1; }
.lead-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }
.lead-field label .opt { color: var(--text-muted); font-weight: 500; }
.lead-input, .lead-select, .lead-textarea {
  width: 100%; padding: 0 15px; height: 50px;
  font-family: var(--font-sans); font-size: 15px; color: var(--text-primary);
  background: var(--surface-input);
  border: 1.5px solid var(--surface-divider);
  border-radius: 12px; outline: none;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.lead-textarea { height: auto; min-height: 96px; padding: 14px 15px; line-height: 1.5; resize: vertical; }
.lead-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.lead-input::placeholder, .lead-textarea::placeholder { color: var(--text-muted); }
.lead-input:focus, .lead-select:focus, .lead-textarea:focus { border-color: var(--color-amber); border-width: 2px; background: #fff; }

.lead-consent {
  grid-column: 1 / -1;
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 4px;
}
.lead-consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--color-amber); cursor: pointer;
}
.lead-consent label { font-size: 13px; line-height: 1.5; color: var(--text-secondary); cursor: pointer; }
.lead-consent a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }

.lead-submit {
  grid-column: 1 / -1;
  width: 100%; height: 54px; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  background: var(--cta-dark); color: #fff;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.lead-submit:hover:not(:disabled) { background: var(--cta-dark-hover); }
.lead-submit:active:not(:disabled) { transform: scale(0.99); }
.lead-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.lead-formnote { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; margin: 4px 0 0; }

/* success state */
.lead-success { display: none; text-align: center; padding: 20px 8px; }
.lead-success.visible { display: block; }
.lead-form.hidden { display: none; }
.lead-success-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
}
.lead-success-icon svg { width: 34px; height: 34px; stroke: var(--color-accent); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lead-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--text-primary); margin: 0 0 10px; }
.lead-success p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

@media (max-width: 520px) {
  .lead-form { grid-template-columns: 1fr; }
}
