:root {
  --ink: #e9f2ec;
  --body: #9db0a6;
  --soft: #121b17;
  --line: #24322b;
  --panel: #141e19;
  --green: #17c86b;
  --green-dark: #45d98d;
  --dark: #10161c;
  --dark-soft: #17212b;
  --amber: #f0a11a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #0d1512;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: #f7fff9;
  background: rgba(13, 19, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 26px;
  border: 2px solid #52605b;
  border-radius: 7px;
  position: relative;
  top: -2px;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 11px solid var(--green);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.main-nav a,
.nav-cta {
  text-decoration: none;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--green);
  color: #072312;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 16, 0.94) 0%, rgba(8, 13, 16, 0.78) 38%, rgba(8, 13, 16, 0.42) 76%, rgba(8, 13, 16, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 13, 16, 0.85), rgba(8, 13, 16, 0.08) 34%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #59ef9d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 860;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 24px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.downloads-section {
  background: var(--soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.platform-card-mac {
  color: #ffffff;
  background: var(--dark);
  border-color: var(--dark);
}

.platform-card p {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--body);
}

.platform-card-mac p {
  color: rgba(255, 255, 255, 0.72);
}

.platform-badge {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(23, 200, 107, 0.12);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-actions,
.account-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-card-mac .button.outline {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.platform-card-mac .button.outline:hover {
  color: #082212;
  background: var(--green);
  border-color: var(--green);
}

.platform-note {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.account-downloads {
  margin: 18px 0 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 780;
  border: 1px solid transparent;
}

.button.primary {
  color: #082212;
  background: var(--green);
}

.button.primary:hover,
.nav-cta:hover {
  background: #27db7a;
}

.button.secondary {
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.intro-band {
  padding: 34px clamp(18px, 5vw, 64px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid p {
  max-width: 760px;
  margin: 0;
  color: var(--body);
  font-size: 18px;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.intro-facts span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.section {
  padding: 86px clamp(18px, 5vw, 64px);
}

.section.muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.feature-layout,
.school-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.66fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.school-grid {
  grid-template-columns: minmax(310px, 0.7fr) minmax(0, 1.1fr);
}

.feature-copy,
.school-copy {
  color: var(--body);
  font-size: 18px;
}

.feature-copy h3,
.school-copy h3 {
  color: var(--ink);
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #cdd9d0;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-frame.large {
  aspect-ratio: 16 / 8.8;
}

.media-frame.large img {
  height: 100%;
  object-fit: cover;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 18px;
  border: 1px solid #d7e1da;
  border-radius: 6px;
}

.feature-card p,
.steps p,
.contact-panel p {
  color: var(--body);
}

.clean-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--body);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.two-shot {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.steps-section {
  background: var(--panel);
}

.pricing-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.pricing-section .section-heading p:last-child {
  color: var(--body);
  font-size: 18px;
}

.pricing-grid,
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-grid article,
.tariff-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.pricing-grid strong,
.tariff-grid strong {
  font-size: 27px;
}

.pricing-grid small {
  color: var(--body);
}

.pricing-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.account-page {
  min-height: 100vh;
  background: var(--soft);
}

.account-header {
  position: static;
}

.account-back {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.account-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.account-notice {
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid #86d9aa;
  border-radius: 9px;
  color: #7fe8ac;
  background: rgba(23, 200, 107, 0.12);
  font-weight: 700;
}

.account-notice.is-error,
.form-status.is-error {
  color: #a72b2b;
}

.account-notice.is-error {
  border-color: #efb4b4;
  background: rgba(239, 68, 68, 0.14);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.auth-intro {
  position: sticky;
  top: 30px;
}

.auth-intro h1,
.dashboard h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
}

.auth-intro p,
.dashboard-heading p,
.dashboard-card p {
  color: var(--body);
}

.auth-intro small {
  display: block;
  margin-top: 12px;
  color: var(--body);
}

.auth-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-card,
.resend-card,
.dashboard-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(16, 32, 26, 0.08);
}

.account-card h2,
.dashboard-card h2 {
  font-size: 27px;
}

.account-card label,
.resend-card label,
.quote-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 750;
}

.account-card input,
.resend-card input,
.quote-form input {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #c8d5cb;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

.account-card input:focus,
.resend-card input:focus,
.quote-form input:focus {
  outline: 3px solid rgba(23, 200, 107, 0.18);
  border-color: var(--green-dark);
}

.account-type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.account-type-picker legend {
  width: 100%;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}

.account-type-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.account-type-picker input {
  width: auto;
  min-height: 0;
}

.account-card .button,
.resend-card .button,
.dashboard-card .button {
  border: 0;
  cursor: pointer;
}

.button.outline {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #b9c8bc;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--green-dark);
  font-size: 14px;
}

.is-busy {
  opacity: 0.72;
}

.resend-card {
  grid-column: 2;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
}

.quote-form label {
  margin: 0;
}

.quote-result {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(23, 200, 107, 0.10);
}

.quote-result strong {
  font-size: 22px;
}

.tariff-reference {
  margin-top: 18px;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
}

.order-row:hover {
  border-color: var(--green-dark);
}

.order-row span {
  color: var(--body);
  text-align: right;
}

.order-row {
  flex-wrap: wrap;
  align-items: center;
}

/* Статус платежа: жёлтый — ждём деньги, зелёный — оплачено. */
.order-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.order-badge--warn {
  background: rgba(240, 161, 26, 0.16);
  border-color: #f5c451;
  color: #8a5a00;
}
.order-badge--ok {
  background: rgba(23, 200, 107, 0.14);
  border-color: #4ade80;
  color: #15803d;
}
.order-badge--muted {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  color: var(--body);
}

.corp-hint--warn { color: #8a5a00; }

.keys-main {
  max-width: 980px;
}

.keys-card h1 {
  margin-bottom: 12px;
}

.keys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 20px;
}

.keys-note {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(240, 161, 26, 0.16);
  color: #f5c451;
}

.keys-preview {
  max-height: 520px;
  margin-top: 24px;
  padding: 20px 20px 20px 52px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.keys-preview li {
  padding: 4px 8px;
}

.keys-more {
  color: var(--body);
  font-family: inherit;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.steps article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.steps span {
  display: block;
  margin-bottom: 34px;
  color: var(--green-dark);
  font-weight: 900;
}

.contact-section {
  padding: 92px clamp(18px, 5vw, 64px);
  background: var(--dark);
  color: #ffffff;
}

.contact-panel {
  max-width: 980px;
  margin: 0 auto;
}

.contact-panel .eyebrow {
  color: #59ef9d;
}

.contact-panel h2 {
  max-width: 800px;
}

.contact-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 16px;
  margin: 32px 0 0;
}

.contact-list div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-list dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.contact-list a {
  color: #ffffff;
}

.muted-text {
  color: rgba(255, 255, 255, 0.56);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--body);
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .intro-grid,
  .feature-layout,
  .school-grid,
  .feature-cards,
  .two-shot,
  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .tariff-grid,
  .auth-layout,
  .dashboard-grid,
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-intro,
  .resend-card,
  .tariff-reference {
    grid-column: 1 / -1;
  }

  .auth-intro {
    position: static;
  }

  .intro-facts {
    justify-content: flex-start;
  }

  .school-grid .media-frame {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-cta {
    margin-left: auto;
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 13, 16, 0.96) 0%, rgba(8, 13, 16, 0.88) 54%, rgba(8, 13, 16, 0.42) 100%);
  }

  .hero-content {
    margin: 0 auto;
    align-self: flex-end;
    padding-bottom: 56px;
  }

  .hero-actions,
  .contact-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .tariff-grid,
  .auth-layout,
  .auth-cards,
  .dashboard-grid,
  .platform-grid,
  .quote-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .platform-actions,
  .account-downloads {
    width: 100%;
    flex-direction: column;
  }

  .dashboard-heading,
  .quote-result,
  .order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .order-row span {
    text-align: left;
  }

  .keys-actions {
    flex-direction: column;
  }
}

/* ============================================================
   Корпоративный ЛК — компоненты в стиле shadcn (на бренде LinguaSeries)
   ============================================================ */
.muted { color: var(--body); }
.small { font-size: 13px; line-height: 1.5; }

.button.block { width: 100%; justify-content: center; margin-top: 6px; }
.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.button.ghost:hover { border-color: var(--green-dark); color: var(--green-dark); }
.button.icon-button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--body);
  white-space: nowrap;
}
.badge--ok { background: rgba(23, 200, 107, 0.14); border-color: #a9e4c4; color: #0b7f42; }
.badge--warn { background: rgba(239, 68, 68, 0.14); border-color: #f2b8b3; color: #b3261e; }

.corp-card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 32, 26, 0.06), 0 18px 48px rgba(16, 32, 26, 0.08);
}
.corp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.corp-card__head h2 { font-size: 24px; margin: 0; }

.key-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.key-field__value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.stat span { font-size: 12.5px; font-weight: 700; color: var(--body); }
.stat strong { font-size: 20px; color: var(--ink); }

.corp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.keys-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 16px;
  padding: 4px;
}
.key-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr auto auto auto;
  grid-template-areas:
    "label key status copy replace"
    "note note note note note";
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.key-row__label { grid-area: label; }
.key-row > code { grid-area: key; min-width: 0; }
.key-row__status { grid-area: status; }
.key-row > button:first-of-type { grid-area: copy; }
.key-row > button:last-of-type { grid-area: replace; }
/* Device fingerprint next to a bound key — visible but understated. */
.key-row__device {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #8fa39a;
}
/* Green when the key is currently bound to a student's device. */
.key-row--bound {
  border-color: rgba(34, 197, 94, 0.55);
  background: color-mix(in srgb, #22c55e 12%, var(--panel));
}
.key-row__status {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #8fa39a;
}
.key-row__status--bound { color: #16a34a; }
.key-row__label { font-size: 13px; font-weight: 700; color: var(--body); }
.key-row code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

.new-keys-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* Согласия, без которых кнопка оплаты остаётся заблокированной. */
.consents {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--body);
  cursor: pointer;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #22c55e;
  cursor: pointer;
}

.invoice-panel {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 12px;
  background: color-mix(in srgb, #22c55e 8%, var(--panel));
}
.invoice-panel .button { margin-top: 12px; }

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .key-row { grid-template-columns: 1fr; gap: 6px; }
  .key-row code { font-size: 14px; }
}

/* ============================================================
   Visual system refresh — scene → phrase → lesson
   ============================================================ */
:root {
  --ink: #e9f2ec;
  --body: #9db0a6;
  --soft: #121b17;
  --line: #24322b;
  --panel: #141e19;
  --green: #22d878;
  --green-bright: #55f29e;
  --green-dark: #45d98d;
  --dark: #0c1216;
  --dark-soft: #151e24;
  --amber: #f4ac36;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

html {
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  background: #0d1512;
  text-rendering: optimizeLegibility;
}

main {
  overflow: clip;
}

:where(section[id], main[id]) {
  scroll-margin-top: 96px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #062313;
  background: var(--green-bright);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(34, 216, 120, 0.42);
  outline-offset: 3px;
}

.site-header {
  min-height: 76px;
  padding-inline: clamp(20px, 4.5vw, 72px);
  background: rgba(10, 16, 20, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.main-nav a {
  position: relative;
  padding-block: 10px;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  touch-action: manipulation;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  box-shadow: 0 10px 28px rgba(34, 216, 120, 0.2);
}

.hero {
  min-height: 700px;
  padding: clamp(64px, 6vw, 88px) clamp(20px, 4.5vw, 72px);
  background:
    radial-gradient(circle at 78% 26%, rgba(31, 210, 114, 0.12), transparent 26%),
    linear-gradient(135deg, #0a1014 0%, #10191e 56%, #0c1417 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, transparent 66%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(400px, 0.95fr) minmax(520px, 1.05fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
  width: min(1380px, 100%);
  margin: 0 auto;
}

.hero-content {
  width: auto;
  margin: 0;
  padding: 0;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8ee9b7;
  letter-spacing: 0.07em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 5px rgba(85, 242, 158, 0.12);
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--green-bright);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  gap: 10px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 14px;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.hero-demo {
  position: relative;
  min-width: 0;
}

.demo-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #10171d;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.1deg);
}

.demo-window::after {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 9, 11, 0.62), transparent 45%);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.56);
  background: #151e24;
  font-size: 11px;
}

.demo-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.demo-window-bar span:first-child {
  background: var(--green);
}

.demo-window-bar strong {
  margin-left: 6px;
  font-weight: 650;
}

.demo-window > img {
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  object-position: center;
}

.scene-phrase {
  position: absolute;
  right: 5%;
  bottom: 8%;
  left: 8%;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(85, 242, 158, 0.28);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(8, 14, 17, 0.9);
  backdrop-filter: blur(12px);
}

.scene-time {
  color: #84eab1;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.scene-phrase div {
  display: grid;
  min-width: 0;
}

.scene-phrase strong {
  font-size: 17px;
}

.scene-phrase div span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.saved-label {
  color: #061d10;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lesson-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 86%;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-route span {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.lesson-route b {
  color: var(--green-bright);
}

.lesson-route i {
  height: 1px;
  background: linear-gradient(90deg, rgba(85, 242, 158, 0.5), rgba(255, 255, 255, 0.12));
}

.intro-band {
  padding-block: 48px;
  background: var(--panel);
}

.intro-grid {
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.intro-statement {
  color: var(--ink) !important;
  font-size: clamp(24px, 2.7vw, 38px) !important;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro-statement strong {
  color: var(--green-dark);
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.intro-facts div {
  padding: 4px 22px 4px 0;
}

.intro-facts div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.intro-facts dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 850;
}

.intro-facts dd {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding-block: clamp(76px, 9vw, 128px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-heading h2,
.contact-panel h2,
.pricing-intro h2 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading > p:last-child:not(.eyebrow) {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--body);
  font-size: 18px;
}

.feature-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.feature-copy h3,
.school-copy h3 {
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.025em;
}

.media-frame {
  border-radius: 12px;
}

.feature-cards {
  gap: 0;
}

.feature-card {
  position: relative;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.feature-card + .feature-card {
  border-left: 1px solid var(--line);
}

.feature-card img {
  margin-top: 14px;
  border-radius: 9px;
}

.feature-kicker,
.card-kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section.muted {
  background:
    radial-gradient(circle at 12% 30%, rgba(34, 216, 120, 0.08), transparent 24%),
    #edf3ee;
}

.school-grid {
  gap: clamp(34px, 6vw, 78px);
}

.school-copy {
  padding: 20px 0;
}

.two-shot {
  gap: 24px;
}

.steps {
  position: relative;
  gap: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: #b8d3c0;
}

.steps article {
  position: relative;
  padding: 24px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.steps article + article {
  border-left: 1px solid var(--line);
}

.steps span {
  position: relative;
  z-index: 1;
  width: 38px;
  margin-bottom: 54px;
  color: var(--green-dark);
  background: var(--panel);
}

.pricing-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 216, 120, 0.12), transparent 24%),
    var(--dark);
  border: 0;
}

.pricing-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-intro p:not(.eyebrow) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 18px;
}

.pricing-section .eyebrow {
  color: #7ae8ac;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.pricing-grid article {
  min-height: 150px;
  justify-content: center;
  padding: 26px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: #141d22;
}

.pricing-grid article:first-child {
  background: #193226;
}

.pricing-grid article span,
.pricing-grid article small {
  color: rgba(255, 255, 255, 0.58);
}

.pricing-grid strong {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  font-variant-numeric: tabular-nums;
}

.downloads-section {
  background: var(--soft);
}

.downloads-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.downloads-section .section-heading {
  margin-inline: 0;
  text-align: left;
}

.downloads-section .section-heading > p:last-child {
  margin-left: 0;
}

.platform-card {
  min-height: 300px;
  justify-content: space-between;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(11, 29, 22, 0.07);
}

.platform-card h3 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.platform-badge {
  border-radius: 6px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(82px, 10vw, 140px);
  background: #0d151a;
}

.contact-section::after {
  content: "A  B  C";
  position: absolute;
  right: -18px;
  bottom: -76px;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(140px, 25vw, 360px);
  font-weight: 950;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.contact-panel {
  position: relative;
  z-index: 1;
}

.contact-panel h2 {
  font-size: clamp(40px, 5.7vw, 78px);
}

.contact-list {
  grid-template-columns: repeat(2, minmax(0, 320px));
}

.contact-list dd {
  overflow-wrap: anywhere;
}

.site-footer {
  align-items: center;
  padding-block: 30px;
}

.footer-brand {
  color: var(--ink);
}

/* Account: make the choice between sign-in and registration explicit. */
.account-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 216, 120, 0.09), transparent 25%),
    var(--soft);
}

.account-header {
  position: sticky;
}

.account-main {
  padding-top: clamp(42px, 6vw, 76px);
}

.auth-layout {
  display: block;
}

.auth-intro {
  position: static;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.15fr);
  gap: 18px 70px;
  align-items: end;
  margin-bottom: 42px;
}

.auth-intro .eyebrow,
.auth-intro h1,
.auth-intro > p {
  grid-column: 1;
}

.auth-intro h1 {
  max-width: 650px;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.account-steps {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.account-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--body);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.account-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #07351b;
  background: #ccf5de;
  font-size: 12px;
  font-weight: 900;
}

.auth-intro .account-downloads,
.auth-intro > small {
  grid-column: 1 / -1;
}

.auth-intro .account-downloads {
  margin-top: 8px;
}

.auth-cards {
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  align-items: start;
  gap: 22px;
}

.account-card,
.resend-card,
.dashboard-card {
  border-radius: 14px;
  box-shadow: 0 20px 54px rgba(11, 29, 22, 0.08);
}

.account-card {
  padding: clamp(24px, 3vw, 36px);
}

.account-card h2 {
  margin-top: 5px;
  letter-spacing: -0.03em;
}

.login-card {
  border-top: 4px solid var(--green);
}

.register-card {
  border-top: 4px solid #1b2a22;
}

.account-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}

.account-type-picker legend {
  margin-bottom: 8px;
}

.account-type-picker label {
  position: relative;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d5cb;
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.account-type-picker label:has(input:checked) {
  color: var(--ink);
  border-color: var(--green-dark);
  background: rgba(23, 200, 107, 0.12);
}

.account-type-picker input {
  accent-color: var(--green-dark);
}

.account-card input,
.resend-card input,
.quote-form input {
  min-height: 50px;
  padding-inline: 14px;
  border-radius: 9px;
}

.field-hint {
  color: #78867f;
  font-size: 12px;
  font-weight: 500;
}

.resend-card {
  max-width: none;
  margin-top: 22px;
  padding: 20px 24px;
}

.auth-downloads {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.auth-downloads h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.auth-downloads p:last-child {
  margin: 0;
  color: var(--body);
}

.auth-downloads .account-downloads {
  flex-shrink: 0;
  margin: 0;
}

.form-status:not(:empty) {
  padding: 11px 13px;
  border-radius: 8px;
  background: rgba(23, 200, 107, 0.12);
}

.form-status.is-error:not(:empty) {
  background: rgba(239, 68, 68, 0.14);
}

@media (max-width: 1080px) {
  .hero-inner,
  .pricing-shell {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-demo {
    max-width: 900px;
  }

  .pricing-intro {
    max-width: 720px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    margin: 0;
    padding-top: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header:has(.main-nav) {
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-block: 10px;
  }

  .intro-grid,
  .intro-facts {
    grid-template-columns: 1fr;
  }

  .intro-facts div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .intro-facts div + div {
    padding-left: 0;
    border-left: 0;
  }

  .feature-card + .feature-card,
  .steps article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps::before {
    display: none;
  }

  .steps span {
    margin-bottom: 24px;
  }

  .auth-intro {
    grid-template-columns: 1fr;
  }

  .auth-intro .eyebrow,
  .auth-intro h1,
  .auth-intro > p,
  .account-steps,
  .auth-intro .account-downloads,
  .auth-intro > small {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 126px;
  }

  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-cta {
    padding-inline: 13px;
    font-size: 13px;
  }

  .main-nav {
    gap: 20px;
    font-size: 13px;
  }

  .hero {
    min-height: 0;
    padding: 48px 18px 52px;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(40px, 11.5vw, 54px);
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    display: none;
  }

  .demo-window {
    border-radius: 10px;
    transform: none;
  }

  .scene-phrase {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: auto 1fr;
    padding: 10px;
  }

  .scene-phrase strong {
    font-size: 13px;
  }

  .scene-phrase div span {
    font-size: 11px;
  }

  .saved-label {
    display: none;
  }

  .lesson-route {
    width: 100%;
    gap: 5px;
    font-size: 9px;
  }

  .intro-band {
    padding-block: 36px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading > p:last-child:not(.eyebrow) {
    margin-left: 0;
  }

  .feature-card,
  .steps article {
    padding-inline: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article {
    min-height: 118px;
  }

  .platform-grid,
  .auth-cards {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: 0;
    gap: 26px;
  }

  .contact-panel h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .auth-intro h1 {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .account-type-picker {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .auth-downloads {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-downloads .account-downloads {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* The product is the visual. Keep the landing page understated. */
h1,
h2,
h3 {
  font-family: "Segoe UI", Arial, sans-serif;
}

h2 {
  font-size: clamp(31px, 3.7vw, 50px);
  font-weight: 780;
  letter-spacing: -0.025em;
}

h3 {
  font-weight: 730;
}

.hero {
  min-height: 700px;
  padding: 0;
  background: var(--dark);
}

.hero::before {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 15, 0.94) 0%, rgba(7, 12, 15, 0.82) 42%, rgba(7, 12, 15, 0.35) 76%, rgba(7, 12, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 12, 15, 0.72), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 92px);
  padding: 80px 0;
}

.hero .eyebrow {
  display: block;
  color: #72dda2;
}

.hero h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-tagline {
  margin-bottom: 26px;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 650;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.58;
}

.intro-statement {
  font-size: clamp(23px, 2.3vw, 33px) !important;
  letter-spacing: -0.02em;
}

.section-heading h2,
.contact-panel h2,
.pricing-intro h2 {
  letter-spacing: -0.025em;
}

.feature-copy h3,
.school-copy h3 {
  font-size: clamp(24px, 2.2vw, 31px);
}

.pricing-section {
  color: var(--ink);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.pricing-section .eyebrow {
  color: var(--green-dark);
}

.pricing-intro p:not(.eyebrow) {
  color: var(--body);
}

.pricing-grid {
  border-color: var(--line);
  background: var(--line);
}

.pricing-grid article,
.pricing-grid article:first-child {
  color: var(--ink);
  background: var(--panel);
}

.pricing-grid article span,
.pricing-grid article small {
  color: var(--body);
}

.pricing-grid strong {
  color: var(--ink);
}

.contact-section::after {
  display: none;
}

.contact-panel h2 {
  font-size: clamp(38px, 4.7vw, 62px);
}

.auth-intro h1 {
  font-size: clamp(38px, 4.3vw, 56px);
  font-weight: 790;
  letter-spacing: -0.03em;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.media-frame img,
.feature-card img {
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.media-frame:hover img,
.feature-card:hover img {
  transform: scale(1.012);
}

@media (max-width: 720px) {
  .hero {
    min-height: 680px;
    padding: 0;
  }

  .hero-bg {
    object-position: 54% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7, 12, 15, 0.96) 0%, rgba(7, 12, 15, 0.88) 60%, rgba(7, 12, 15, 0.45) 100%);
  }

  .hero-content {
    align-self: flex-end;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 82px 0 46px;
  }

  .hero h1 {
    margin-bottom: 8px;
    font-size: clamp(50px, 16vw, 68px);
  }

  .hero-tagline {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .media-frame img,
  .feature-card img {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Юридические документы: публичная оферта и согласие на обработку ПД  */
/* ------------------------------------------------------------------ */
.legal-main {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 90px;
}

.legal-doc h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
}

.legal-meta {
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
}

.legal-toc {
  margin: 0 0 34px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
  font-size: 14px;
}

.legal-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--body);
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

.legal-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.legal-body h2 {
  margin: 38px 0 14px;
  scroll-margin-top: 96px;
  font-size: 21px;
  line-height: 1.3;
}

.legal-body p {
  margin: 0 0 12px;
}

.legal-list {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: none;
}

.legal-list li {
  position: relative;
  margin-bottom: 7px;
}

.legal-list li::before {
  content: "—";
  position: absolute;
  left: -22px;
  color: var(--green-dark);
}

.legal-fill {
  color: var(--body);
}

.legal-table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--soft);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--body);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

.consent a {
  color: var(--green-dark);
  font-weight: 750;
}

@media (max-width: 720px) {
  .legal-toc ol {
    columns: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .skip-link {
    display: none !important;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-body {
    font-size: 11pt;
  }
}

/* Закрывающие документы: список и загрузка из админского кабинета. */
.documents-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.document-row > div { flex: 1 1 240px; display: grid; gap: 2px; }
.document-row strong { font-size: 14px; color: var(--ink); }
.document-row span { font-size: 12px; color: var(--body); }

.admin-upload { display: grid; gap: 12px; margin-top: 14px; }
.admin-upload label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.admin-upload select,
.admin-upload input[type="text"],
.admin-upload input[type="file"] {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--panel);
}

/* Выбор количества взрослых и детских ключей. */
.key-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}
.key-picker label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.key-picker input {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.admin-divider {
  margin: 26px 0 18px;
  border: 0;
  border-top: 1px dashed var(--line);
}

/* Инструкция по установке: открывается после нажатия кнопки скачивания. */
.app-download-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.app-download-link__os-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
}

.app-download-link__os-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-download-link__label {
  min-width: 0;
}

.download-choices .app-download-link {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.download-choices .app-download-link__label {
  display: grid;
  gap: 4px;
}

.install-guide {
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 32px clamp(20px, 4vw, 40px) 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--body);
  box-shadow: var(--shadow);
  overflow: auto;
}

.install-guide::backdrop {
  background: rgba(11, 29, 22, 0.55);
}

.install-guide h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 28px);
}

.install-guide__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px;
}

.install-guide__heading .eyebrow {
  margin-bottom: 4px;
}

.install-guide__os-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
}

.install-guide__os-icon svg {
  width: 20px;
  height: 20px;
}

.install-guide__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--body);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.install-guide__close:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.install-guide__close:focus-visible {
  border-color: var(--green-dark);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.install-guide__status {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.install-steps > li {
  position: relative;
  margin-bottom: 28px;
  padding-left: 52px;
  counter-increment: install-step;
}

.install-steps > li::before {
  content: counter(install-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f5ef;
  color: #163126;
  font-size: 15px;
  font-weight: 750;
}

.install-steps h3 {
  margin: 1px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.install-steps p {
  margin: 0 0 8px;
  color: #c8d8d0;
  font-size: 16px;
  line-height: 1.65;
}

.install-steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.install-steps kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.mac-unlock {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.mac-unlock__title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.mac-unlock > p {
  color: #c8d8d0;
  font-size: 15px;
  line-height: 1.65;
}

.mac-unlock h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.mac-unlock__steps {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.mac-unlock__steps li + li {
  margin-top: 6px;
}

.mac-unlock__note {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
}

.mac-unlock kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.install-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1d16;
  color: #e8f5ef;
}

.install-command code {
  flex: 1 1 220px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}

.install-command__copy {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(232, 245, 239, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #e8f5ef;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.install-command__copy:hover,
.install-command__copy:focus-visible {
  border-color: #e8f5ef;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.install-steps__key::before {
  background: var(--green-dark);
}

.install-steps__do {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--soft);
  color: var(--ink);
}

.install-shot {
  margin: 12px 0 0;
}

.install-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.install-shot__placeholder {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--body);
  font-size: 13px;
  text-align: center;
}

.install-guide__why,
.install-guide__help {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.install-guide__why {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
}

.install-guide__help {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .install-guide {
    padding: 28px 18px 22px;
  }

  .install-steps > li {
    margin-bottom: 24px;
    padding-left: 46px;
  }

  .install-steps h3 {
    font-size: 17px;
  }

  .install-steps p {
    font-size: 15px;
  }

  .install-guide__heading {
    align-items: flex-start;
  }
}

/* Подпись ключа — второй строкой на всю ширину карточки, чтобы не ломать
   пятиколоночную сетку .key-row и не сжимать сам ключ. */
.cancel-keys {
  margin-top: 18px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cancel-keys__list {
  display: grid;
  gap: 2px;
  margin: 12px 0 14px;
  max-height: 320px;
  overflow-y: auto;
}
.cancel-keys__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.cancel-keys__row:hover {
  background: var(--panel);
}
.cancel-keys__title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cancel-keys__state {
  font-size: 12px;
  color: #7d8d85;
}

.key-row__note-block {
  grid-area: note;
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.key-row__note-toggle {
  justify-self: start;
  padding: 3px 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #7d8d85;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.key-row__note-toggle:hover,
.key-row__note-toggle:focus-visible {
  color: var(--ink);
}
.key-row__note-toggle.is-filled {
  color: var(--ink);
}
.key-row__note {
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-row__note-caption {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
}
.key-row__note-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 7px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.key-row__note-input::placeholder {
  color: #93a29a;
}
.key-row__note-input:hover:not(:disabled) {
  border-color: var(--line);
}
.key-row__note-input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  background: var(--panel);
  border-color: var(--green);
}
.key-row__note-input:disabled {
  opacity: 0.6;
}
.key-row__note-state {
  flex: none;
  min-width: 74px;
  font-size: 12px;
  color: var(--green-dark);
}
.key-row__note-state.is-error {
  color: #b42318;
}
@media (max-width: 980px) {
  .key-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "label status status"
      "key copy replace"
      "note note note";
  }
  .key-row__status {
    justify-self: end;
  }
}
@media (max-width: 640px) {
  .key-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "label label"
      "status status"
      "key key"
      "copy replace"
      "note note";
  }
  .key-row__status {
    justify-self: start;
  }
  .key-row > .button {
    width: 100%;
  }
  .key-row__note {
    flex-wrap: wrap;
  }
  .key-row__note-state {
    min-width: 0;
  }
}

/* ==================================================================
   Обновление оформления кабинета и правовых страниц.
   Слой намеренно идёт последним и меняет только внешний вид:
   разметка и классы, на которые опирается account.js, не трогаются.
   ================================================================== */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: "Geist Variable", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .hero-title, .panel-title {
  letter-spacing: -0.025em;
}

/* Шапка — та же, что на лендинге: тёмная, с размытием и без жёсткой границы. */
.site-header {
  min-height: 68px;
  background: rgba(13, 19, 22, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .button,
.site-header a.nav-cta {
  border-radius: 999px;
}

/* Карточки: мягче граница, крупнее радиус, тень вместо контраста. */
.panel,
.card,
.auth-card,
.account-card,
.surface {
  border-radius: 18px;
  border-color: var(--line);
  box-shadow: 0 24px 60px -42px rgba(16, 32, 26, 0.45);
}

/* Поля ввода: спокойный фон, зелёный фокус — как в форме подписи ключа. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--soft);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
input[type="number"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="url"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  background: var(--panel);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 200, 107, 0.16);
}

/* Кнопки — скруглённые, с лёгким откликом на нажатие. */
.button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.006em;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, color 0.18s ease;
}
.button:not(:disabled):hover {
  transform: translateY(-1px);
}
.button:not(:disabled):active {
  transform: translateY(0);
}
.button.primary {
  box-shadow: 0 12px 28px -16px rgba(11, 127, 66, 0.85);
}
.button.icon-button {
  border-radius: 10px;
}
.button.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

/* Строки ключей, документов и заказов — единый скруглённый список. */
.key-row,
.document-row,
.order-row {
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.key-row:hover,
.document-row:hover,
.order-row:hover {
  box-shadow: 0 14px 34px -26px rgba(16, 32, 26, 0.55);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Правовые страницы: комфортная строка и воздух между разделами. */
.legal-page,
.legal-content,
.document-body {
  font-size: 15.5px;
  line-height: 1.72;
}
.legal-content h2,
.document-body h2 {
  margin-top: 2.1em;
}

/* Плавное появление, как на лендинге, но без смещения — кабинет
   не должен «прыгать» при загрузке данных. */
@media (prefers-reduced-motion: no-preference) {
  main > section,
  .panel,
  .card {
    animation: ls-fade-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes ls-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* ==================================================================
   Единая форма входа и регистрации. Панели переключаются рядом, поэтому
   пользователь не сравнивает две формы разной высоты и не теряет контекст.
   ================================================================== */

.account-page {
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgba(23, 200, 107, 0.045), transparent 440px),
    #0d1512;
}

.account-main {
  width: min(1120px, calc(100% - 40px));
  padding-top: clamp(38px, 5vw, 64px);
}

.auth-intro {
  margin-bottom: 34px;
}

.auth-intro h1 {
  max-width: 700px;
  color: #f0f7f3;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.auth-intro > p,
.account-steps li,
.auth-downloads p:last-child {
  color: #b2c2ba;
}

.auth-cards {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto;
}

.account-card.auth-switcher {
  overflow: hidden;
  padding: 0;
  border: 1px solid #2d3c34;
  border-radius: 16px;
  background: #141e19;
  box-shadow: 0 28px 70px -48px rgba(0, 0, 0, 0.9);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #2d3c34;
  background: #101813;
}

.auth-tab {
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #a9bbb1;
  font: inherit;
  font-size: 16px;
  font-weight: 680;
  cursor: pointer;
}

.auth-tab + .auth-tab {
  border-left: 1px solid #2d3c34;
}

.auth-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.025);
}

.auth-tab.is-active {
  border-bottom-color: var(--green);
  color: #ffffff;
  background: rgba(23, 200, 107, 0.08);
}

.auth-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

.auth-form {
  padding: clamp(24px, 4vw, 40px);
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form.login-card,
.auth-form.register-card {
  border: 0;
}

.auth-form .card-kicker {
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form h2 {
  margin-bottom: 24px;
  color: #f0f7f3;
  font-size: clamp(25px, 4vw, 32px);
}

.account-card label,
.resend-card label {
  color: #dce8e1;
}

.account-card input,
.resend-card input,
.quote-form input,
.key-picker input,
.admin-upload select,
.admin-upload input[type="text"],
.admin-upload input[type="file"] {
  border-color: #34463c;
  color: #f0f7f3;
  background: #101813;
}

.account-card input:hover,
.resend-card input:hover {
  border-color: #4b6256;
}

.account-card input:focus-visible,
.resend-card input:focus-visible,
.quote-form input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: none;
}

.field-hint {
  color: #9fb1a7;
  line-height: 1.45;
}

.account-type-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-type-picker label {
  min-height: 50px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-color: #34463c;
  background: #101813;
  color: #dce8e1;
  line-height: 1.25;
}

.account-type-picker label:hover {
  border-color: #587164;
}

.account-type-picker label:has(input:checked) {
  border-color: var(--green);
  color: #ffffff;
  background: rgba(23, 200, 107, 0.1);
  box-shadow: inset 0 0 0 1px rgba(23, 200, 107, 0.22);
}

.account-type-picker input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  accent-color: var(--green);
}

.account-type-picker input:focus,
.account-type-picker input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.account-type-picker label:has(input:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

#company-fields {
  margin: 2px 0 18px;
  padding: 18px 18px 3px;
  border: 1px solid #2d3c34;
  border-radius: 12px;
  background: #111a15;
}

.consent {
  color: #b9cbc1;
}

.consent a {
  color: #66e8a2;
}

.form-status {
  min-height: 0;
  color: #79edac;
}

.form-status:empty {
  display: none;
}

.form-status.is-error,
.form-status.is-error:not(:empty),
.account-notice.is-error {
  color: #ffb4ab;
}

.resend-card,
.auth-downloads {
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
  border-color: #2d3c34;
  background: #141e19;
  color: #f0f7f3;
  box-shadow: none;
}

.auth-downloads {
  align-items: flex-start;
}

.auth-downloads h2 {
  color: #f0f7f3;
}

.button.outline {
  border-color: #465b50;
  color: #e6f0ea;
  background: #101813;
}

.button.outline:hover {
  border-color: var(--green);
  color: #ffffff;
  background: rgba(23, 200, 107, 0.08);
}

.button.primary {
  color: #04150c;
}

@media (max-width: 820px) {
  .account-main {
    width: min(100% - 32px, 720px);
  }

  .auth-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-intro .eyebrow,
  .auth-intro h1,
  .auth-intro > p,
  .account-steps {
    grid-column: 1;
    grid-row: auto;
  }

  .account-steps {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .account-header {
    padding-inline: 16px;
  }

  .account-header .brand {
    font-size: 15px;
  }

  .account-back {
    font-size: 13px;
  }

  .account-main {
    width: calc(100% - 28px);
    padding-top: 30px;
  }

  .auth-intro h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .auth-tab {
    min-height: 54px;
    padding-inline: 10px;
    font-size: 15px;
  }

  .auth-form {
    padding: 22px 18px 24px;
  }

  .account-type-picker {
    grid-template-columns: 1fr;
  }

  #company-fields {
    margin-inline: -4px;
    padding: 16px 14px 1px;
  }

  .resend-card,
  .auth-downloads {
    padding: 20px 18px;
  }
}

/* ==================================================================
   Личный кабинет: компактная навигация вместо одной длинной страницы.
   Таблица расчёта оформлена как спокойный финансовый реестр — она показывает
   бесплатный период и будущую сумму в одном месте, без рекламных украшений.
   ================================================================== */

.dashboard {
  width: 100%;
}

.dashboard-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.dashboard-heading h1 {
  color: #f3faf6;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dashboard-tabs {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin: 0 0 26px;
  padding: 6px;
  border: 1px solid #2c3b33;
  border-radius: 13px;
  background: rgba(16, 24, 19, 0.94);
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.dashboard-tab {
  min-width: max-content;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #aebfb6;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 690;
  cursor: pointer;
  touch-action: manipulation;
}

.dashboard-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-tab.is-active {
  border-color: rgba(23, 200, 107, 0.42);
  color: #f5fff8;
  background: rgba(23, 200, 107, 0.12);
}

.dashboard-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.dashboard-panel {
  min-width: 0;
  animation: dashboard-panel-in 180ms ease-out both;
}

@keyframes dashboard-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.dashboard-card {
  border-color: #2c3b33;
  color: #edf5f0;
  background: #141e19;
}

.dashboard-card h2,
.dashboard-card h3 {
  color: #f2faf5;
  text-wrap: balance;
}

.trial-card {
  position: relative;
  overflow: hidden;
  border-top-color: rgba(23, 200, 107, 0.62);
}

.trial-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 3px;
  background: var(--green);
  content: "";
}

/* Разовое сообщение над содержимым «Главного»: тот же материал, что и карточки,
   но во всю ширину и с кнопкой закрытия. */
.price-notice {
  margin-bottom: 20px;
  border-top-color: rgba(23, 200, 107, 0.62);
}

.price-notice .button {
  margin-top: 18px;
}

.trial-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.trial-form > label,
.trial-details-grid label {
  display: grid;
  gap: 7px;
  color: #dce8e1;
  font-size: 14px;
  font-weight: 650;
}

.trial-form input,
.trial-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #34463c;
  border-radius: 9px;
  color: #f2faf5;
  background: #101813;
  font: inherit;
}

.trial-form textarea {
  min-height: 92px;
  resize: vertical;
}

.trial-form input:focus-visible,
.trial-form textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
}

.trial-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trial-mail-note {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid var(--green);
  color: #bed0c6;
  background: #101813;
  font-size: 14px;
}

.trial-mail-note a,
.profile-card a {
  color: #6be7a2;
}

.trial-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid #314239;
  border-radius: 10px;
  background: #101813;
  font-variant-numeric: tabular-nums;
}

.trial-summary > * {
  min-width: 0;
  padding: 11px 13px;
  border-bottom: 1px solid #26372e;
}

.trial-summary > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.trial-summary span {
  color: #9fb1a7;
  font-size: 13px;
}

.trial-summary strong {
  color: #f4fff8;
  text-align: right;
  white-space: nowrap;
}

.trial-summary--free strong {
  color: #76efa9;
}

.trial-scale-note {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(23, 200, 107, 0.3);
  border-radius: 10px;
  color: #c8d8cf;
  background: rgba(23, 200, 107, 0.07);
  font-size: 14px;
  line-height: 1.55;
}

.account-snapshot {
  position: sticky;
  top: 154px;
}

.snapshot-list,
.profile-list {
  margin: 22px 0;
}

.snapshot-list > div,
.profile-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #2a3931;
}

.snapshot-list dt,
.profile-list dt {
  color: #94a89d;
  font-size: 13px;
}

.snapshot-list dd,
.profile-list dd {
  min-width: 0;
  margin: 0;
  color: #edf7f1;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.finance-grid {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.finance-grid > .dashboard-card {
  max-width: 820px;
}

.quote-result > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quote-result small {
  display: block;
  color: #9eb1a7;
  font-size: 12px;
  font-weight: 500;
}

.quote-result > strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.quote-result > strong small {
  margin-top: -3px;
}

.tariff-grid--formula {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tariff-grid--formula div {
  display: grid;
  align-content: start;
  gap: 4px;
}

.tariff-grid--formula small {
  color: #93a69b;
  font-size: 12px;
}

.tutor-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin: 22px 0 8px;
  padding: 18px;
  border: 1px solid #304139;
  border-radius: 10px;
  background: #101813;
}

.tutor-price-line strong {
  color: #f3fff7;
  font-size: 19px;
}

.tutor-price-line span {
  color: #a9bbb1;
}

.empty-panel {
  max-width: 700px;
  padding-block: 42px;
}

.download-card--wide {
  min-height: 340px;
}

.download-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.download-choices .button {
  display: grid;
  justify-items: start;
  min-height: 92px;
  padding: 18px;
  text-align: left;
}

.download-choices .button span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
}

.profile-card {
  max-width: 720px;
}

.trial-request-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.trial-request {
  padding: 17px;
  border: 1px solid #314239;
  border-radius: 11px;
  background: #101813;
}

.trial-request--warn {
  border-color: rgba(240, 161, 26, 0.55);
  background: rgba(240, 161, 26, 0.055);
}

.trial-request__head,
.trial-request__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trial-request__checks {
  color: #d9e6df;
  font-size: 13px;
}

.trial-request__actions {
  justify-content: flex-start;
  margin-top: 14px;
}

@media (max-width: 920px) {
  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .account-snapshot {
    position: static;
  }

  .tariff-grid--formula {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .dashboard-heading .button {
    min-height: 42px;
  }

  .dashboard-tabs {
    top: 62px;
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-inline: 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .dashboard-tab {
    padding-inline: 14px;
  }

  .dashboard-card {
    padding: 21px 18px;
  }

  .trial-details-grid,
  .key-picker,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .trial-summary > * {
    padding-inline: 10px;
  }

  .trial-summary strong {
    white-space: normal;
  }

  .snapshot-list > div,
  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .quote-result {
    align-items: start;
  }

  .quote-result > strong {
    text-align: left;
  }

  .tariff-grid--formula {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-panel {
    animation: none;
  }
}
