@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:root {
  color-scheme: light;
  --ink: #251b39;
  --muted: #61576f;
  --paper: #fff;
  --canvas: #f8f6fb;
  --line: #e8e0ef;
  --accent: #61439a;
  --accent-hover: #4c327e;
  --tint: #f0ebf8;
  font-family: 'Inter','Segoe UI',sans-serif;
  color: var(--ink);
  background: var(--paper)
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-width: 280px;
  line-height: 1.55
}

a {
  color: inherit
}

button,input {
  font: inherit
}

button {
  cursor: pointer
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px
}

h1,h2,h3,p {
  margin: 0
}

h1,h2,h3 {
  line-height: 1.07;
  letter-spacing: -.045em
}

.wrap {
  width: min(1120px,calc(100% - 72px));
  margin-inline: auto
}

.header,.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.header {
  min-height: 76px
}

.header nav,.footer nav,.actions {
  display: flex;
  align-items: center;
  gap: 25px
}

.brand {
  font-weight: 760;
  font-size: 20px;
  letter-spacing: -.055em;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap
}

.brand>span:last-child {
  color: var(--accent);
  margin-left: 5px
}

.mark {
  flex: none;
  border-radius: 50%;
  margin-right: 9px
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted)
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 17px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  white-space: normal
}
.button[hidden] { display: none; }

.button.small {
  min-height: 39px;
  padding: 6px 14px
}

.primary {
  background: var(--accent);
  color: white
}

.primary:hover {
  background: var(--accent-hover)
}

.outline {
  border-color: #d8cbe9;
  background: #fff;
  color: var(--accent-hover)
}

.outline:hover {
  background: var(--tint)
}

.hero {
  background: linear-gradient(115deg, #f8f5fb, #f0eaf8);
  border-block: 1px solid var(--line)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 66px;
  min-height: 433px;
  align-items: center;
  padding-block: 55px
}

.hero h1 {
  font-size: clamp(42px,5.15vw,74px);
  max-width: 620px
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 462px;
  margin-top: 21px
}

.actions {
  margin-top: 29px;
  flex-wrap: wrap;
  gap: 18px
}

.text-link,.back {
  font-weight: 650;
  color: var(--accent);
  text-underline-offset: 4px
}

.workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 15px;
  border: 1px solid #e2d6ee;
  border-radius: 22px;
  background: #ffffff82;
  box-shadow: 0 14px 34px #47305b0c
}

.workflow li {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 13px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
  font-size: 13px;
  font-weight: 650
}

.workflow img {
  display: block;
  object-fit: contain;
  border-radius: 15px
}



.reminder-bot {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
}

.reminder-bell {
  position: absolute;
  right: -6px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #f1e9fb;
  font-size: 19px;
  line-height: 1;
}

.how {
  padding-block: 57px 64px
}

h2 {
  font-size: clamp(32px,3.5vw,47px)
}

.steps {
  list-style: none;
  padding: 0;
  margin: 27px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px
}

.steps li {
  border-top: 1px solid var(--line);
  padding-top: 18px
}

.step-icon {
  display: block;
  object-fit: contain;
  padding: 7px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--canvas);
  mix-blend-mode: multiply
}

.steps p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px
}

.pricing {
  padding: 58px 0 68px;
  background: var(--canvas);
  border-block: 1px solid var(--line)
}

.intro {
  margin-top: 11px;
  color: var(--muted)
}

.prices {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px
}

.price-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px
}

.price-card.featured {
  border: 2px solid var(--accent);
  padding: 23px;
  box-shadow: 0 8px 23px #61439a15
}

.price-card h3 {
  font-size: 22px
}

.price {
  font-weight: 760;
  font-size: clamp(35px,4vw,47px);
  letter-spacing: -.055em;
  margin-top: 12px
}

.use {
  font-size: 14px;
  color: var(--muted);
  margin: 1px 0 20px
}

.price-card .button {
  margin-top: auto;
  justify-content: space-between
}

.footer {
  min-height: 112px;
  padding-block: 23px
}

.footer p,.footer a:not(.brand) {
  font-size: 13px;
  color: var(--muted)
}

.footer p {
  margin-top: 6px
}

.flow {
  min-height: 65vh;
  padding-block: 38px 58px;
  max-width: 680px
}

.back {
  font-size: 14px
}

.panel {
  margin-top: 14px;
  padding: clamp(20px,5vw,38px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas)
}

.panel h1 {
  font-size: clamp(31px,5vw,46px);
  margin-bottom: 20px
}

.panel p {
  margin-bottom: 16px
}

.panel .button {
  margin-top: 5px
}

.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px;
  margin: 24px 0;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.trial-banner div { max-width: 640px; }
.trial-banner p { margin-top: 6px; color: var(--muted); }
.account-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 22px 0 12px; overflow-wrap: anywhere; }
.account-card p:last-child { margin-bottom: 0; }
.account-card .eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.account-balance { border-top: 1px solid var(--line); padding-top: 12px; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 20px; list-style: none; color: var(--muted); font-size: 13px; }
.checkout-steps [aria-current] { color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }

[data-generation-form] { display: grid; gap: 16px; margin-top: 24px; }
[data-generation-form] input[type=file] { width: 100%; min-width: 0; padding: 16px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--tint); }
[data-generation-form] [role=status] { white-space: pre-line; overflow-wrap: anywhere; }
[data-generation-form] .button { justify-self: start; max-width: 100%; }
.cabinet-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 18px 0 24px; padding-bottom: 2px; }
.cabinet-tabs a { display: block; flex: none; text-decoration: none; color: var(--muted); padding: 12px 10px; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cabinet-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.cabinet-identity { color: var(--muted); font-size: 14px; }
.cabinet-content h2, .cabinet-guide h2 { font-size: clamp(23px,3vw,30px); margin-bottom: 18px; }
.cabinet-content h3 { font-size: 20px; margin: 26px 0 14px; }
.cabinet-guide { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.balance-total { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 24px; }
.balance-total span { color: var(--muted); }
.balance-total strong { font-size: 52px; line-height: 1.1; letter-spacing: -.04em; }
.requisites-summary { margin: 0 0 18px; }
.requisites-summary div { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.requisites-summary dt { color: var(--muted); font-size: 13px; }
.requisites-summary dd { margin: 4px 0 0; }
.text-button { border: 0; background: none; padding: 0; text-decoration: underline; text-align: left; font: inherit; cursor: pointer; }
.reminder-switch { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.reminder-switch input { width: 19px; height: 19px; accent-color: var(--accent); }
.payment-row { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.payment-row p { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.payment-row>div:last-child { text-align: right; }
.payment-status { font-size: 13px; font-weight: 650; }
.empty-state { padding: 22px 0; color: var(--muted); }
@media(max-width:600px) { .cabinet-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; } .cabinet-tabs a { white-space: normal; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; } }

.profile-menu { position: relative; flex: none; }
.profile-trigger { display: flex; align-items: center; gap: 9px; padding: 4px; border: 1px solid transparent; background: transparent; border-radius: 30px; }
.profile-trigger:hover, .profile-menu[data-open="1"] .profile-trigger { background: var(--tint); }
.profile-avatar-wrap { display: block; position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--tint); }
.profile-fallback { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; }
.profile-avatar { position: absolute; inset: 0; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: white; }
.profile-avatar[hidden] { display: none; }
.profile-chevron { width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: -3px 8px 0 0; }
.profile-dropdown { display: none; position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); min-width: 205px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 35px #251b3924; }
.profile-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.profile-menu[data-open="1"] .profile-dropdown { display: block; }
.profile-dropdown a, .profile-dropdown button { display: block; width: 100%; padding: 11px 14px; text-align: left; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; }
.profile-dropdown a:hover, .profile-dropdown button:hover { background: var(--tint); }

dialog { width: min(440px,calc(100% - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 32px; color: var(--ink); background: white; box-shadow: 0 24px 100px #251b3940; }
dialog::backdrop { background: #251b3980; }
dialog h2 { font-size: 28px; margin: 8px 0 18px; }
dialog p { margin: 16px 0; }
.dialog-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; color: var(--muted); font-size: 28px; padding: 0 8px; }
.login-feedback { font-size: 14px; color: var(--muted); }
.auth-complete { max-width: 520px; margin: 60px auto; padding: 24px; }
.auth-complete h1 { font-size: 32px; }
.auth-complete p { margin: 20px 0; }
.cabinet-section, .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cabinet-section h2, .form-section h2 { font-size: 24px; margin-bottom: 14px; }
.form-section h3 { margin: 24px 0 16px; font-size: 19px; }
.client-steps { padding-left: 22px; }
.client-steps li { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0; }
.form-field { min-width: 0; margin-bottom: 10px; }
.form-field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; border: 1px solid #cfc2e0; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: white; font: inherit; }
.form-field textarea { resize: vertical; }
.form-field small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-field .field-error { color: #a02030; }
.form-field [aria-invalid] { border-color: #a02030; }
.field-wide { grid-column: 1 / -1; }
fieldset { padding: 0; margin: 16px 0; border: 0; min-width: 0; }
.form-conditional { margin: 0; }
.form-conditional[hidden], fieldset[hidden] { display: none; }
.form-section summary { cursor: pointer; font-weight: 650; color: var(--accent); font-size: 20px; }
.requisites-disclosure { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.requisites-disclosure summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.requisites-disclosure { interpolate-size: allow-keywords; }
.requisites-disclosure::details-content { block-size: 0; overflow: clip; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
.requisites-disclosure[open]::details-content { block-size: auto; }
.requisites-disclosure[open] .requisites-disclosure-body { animation: reveal-requisites .25s ease-out; }
@keyframes reveal-requisites { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.wizard-progress { margin-top: 24px; }
.wizard-progress p { color: var(--accent); font-weight: 650; margin-bottom: 8px; scroll-margin-top: 100px; }
.wizard-progress progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); }
[data-profile-step][hidden], .wizard-progress[hidden] { display: none; }
@media(prefers-reduced-motion:reduce) { .requisites-disclosure[open] .requisites-disclosure-body { animation: none; } .requisites-disclosure::details-content { transition: none; } }
.form-errors { border-left: 3px solid #a02030; padding-left: 14px; }
.notice.success { border-left: 3px solid #25865c; padding: 12px 16px; background: #e9f6ee; }
@media(max-width:600px) { .form-grid { grid-template-columns: 1fr; } .header nav { gap: 8px; } .header .button { font-size: 12px; padding-inline: 10px; } }

.consent {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 18px 0 13px;
  font-size: 14px
}

.consent input {
  accent-color: var(--accent)
}

.legal {
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.notice {
  color: var(--muted)
}

.number {
  font-family: ui-monospace,monospace;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted)
}

@media(max-width:800px) {
  .wrap {
    width: calc(100% - 44px)
  }
  .hero-grid {
    gap: 28px
  }
  .prices,.steps {
    gap: 12px
  }
  .price-card {
    padding: 16px
  }
  .price-card.featured {
    padding: 15px
  }
}

@media(max-width:640px) {
  .wrap {
    width: calc(100% - 36px)
  }
  .header {
    min-height: 62px
  }
  .header nav {
    gap: 8px
  }
  .nav-link {
    display: none
  }
  .hero-grid {
    display: block;
    padding-block: 39px 32px
  }
  .lead {
    font-size: 16px
  }
  .workflow {
    margin-top: 30px;
    padding: 11px;
    max-width: 420px
  }
  .how,.pricing {
    padding-block: 38px
  }
  .steps,.prices {
    grid-template-columns: 1fr;
    gap: 14px
  }
  .steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 11px
  }
  .step-icon {
    flex: none;
    margin-bottom: 0
  }
  .price-card {
    padding: 20px
  }
  .price-card.featured {
    padding: 19px
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px
  }
  .footer nav {
    flex-wrap: wrap;
    gap: 12px 18px
  }
}

.instruction-video {
  margin-top: 21px;
}

.instruction-video summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
}

.instruction-video video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 18px auto 0;
  border-radius: 14px;
  background: #17121f;
  aspect-ratio: 16 / 9;
}
