@font-face {
  font-family: Manrope; src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal; font-weight: 400 800; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope; src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal; font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --page: #f7f8f4;
  --ink: #152239;
  --muted: #4b596c;
  --accent: #1648be;
  --deep: #11264b;
  --line: #cdd4dc;
  --bright: #a6f0dc;
  --shell: 1160px;
  --gutter: clamp(16px, 4.8vw, 62px);
  color: var(--ink);
  background: var(--page);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
body:has(.registration[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #306cef; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(52px, 6.3vw, 86px); scroll-margin-top: 74px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { display: block; object-fit: contain; }
.nav-links { display: flex; gap: clamp(14px, 3.2vw, 38px); align-items: center; }
.nav-links a { font-size: 14px; font-weight: 750; text-decoration: none; }
.nav-links a:hover, .footer a:hover { color: var(--accent); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #123a96; }
.button-outline, .nav-action { background: transparent; color: var(--ink); border-color: #9ba9bd; }
.button-outline:hover, .nav-action:hover { background: #e6ecf8; border-color: var(--accent); }
.button-bright { background: var(--bright); color: var(--deep); }
.button-bright:hover { background: #ccfaee; }
.nav-action { min-height: 42px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--accent); text-underline-offset: 4px; font-weight: 800; font-size: 14px; }
.text-link span { display: inline-block; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  align-items: center;
  gap: clamp(24px,4.2vw,62px);
  padding-block: clamp(48px,6vw,82px);
}
.hero h1 { font-size: clamp(38px,4.4vw,64px); font-weight: 800; line-height: 1.01; letter-spacing: -.058em; text-wrap: balance; }
.hero-summary { max-width: 430px; margin-block: 20px 23px; color: var(--muted); font-size: clamp(16px,1.5vw,19px); }
.actions { display: flex; flex-wrap: wrap; gap: 6px 17px; align-items: center; }
.hero-note { margin-top: 9px; color: var(--muted); font-size: 13px; }
.product-preview { min-width: 0; padding: clamp(11px,1.8vw,24px) clamp(11px,1.8vw,24px) 10px; background: #2549a1; border: 1px solid #1c376f; border-radius: 12px; }
.product-window { display: grid; grid-template-columns: minmax(91px,21%) minmax(0,1fr); min-height: 316px; border: 1px solid #bacbef; border-radius: 8px; overflow: hidden; color: var(--ink); background: #f3f5fa; box-shadow: 0 6px 16px #1d35551a; }
.preview-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 13px 7px; background: var(--deep); color: #dfeaff; font-size: 11px; line-height: 1.25; }
.preview-sidebar img { margin: 0 0 10px 5px; }
.preview-sidebar span, .preview-sidebar strong { padding: 5px; }
.preview-sidebar strong { background: #294974; color: white; border-left: 2px solid #71efd1; border-radius: 3px; }
.preview-main { min-width: 0; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; min-height: 50px; background: white; border-bottom: 1px solid #d7dfe9; font-size: 15px; }
.preview-top span { padding: 5px 7px; border-radius: 5px; background: #007a72; color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.preview-list { padding: 12px; }
.preview-filters { display: flex; align-items: center; gap: 13px; padding-bottom: 9px; font-size: 10px; color: var(--muted); }
.preview-filters strong { color: #00675e; text-decoration: underline; text-underline-offset: 4px; }
.task-preview { width: 100%; border: 1px solid #d7dfe9; border-collapse: collapse; background: white; font-size: 12px; }
.task-preview th { text-align: left; color: var(--muted); font-size: 10px; font-weight: 750; background: #f8fafc; }
.task-preview th, .task-preview td { padding: 8px; border-bottom: 1px solid #d7dfe9; line-height: 1.25; }
.task-preview small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.task-status { display: inline-block; padding: 4px 5px; border-radius: 4px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-work { background: #e4efff; color: #244781; }
.status-review { background: #fff0cc; color: #714600; }
.status-done { background: #d8f5e5; color: #176044; }
.product-preview figcaption { margin-top: 8px; color: #f1f5ff; font-size: 12px; }

.section-heading { margin-bottom: clamp(20px,3vw,36px); }
.section-heading h2, .integration-heading h2, .questions h2, .finish h2 { font-size: clamp(32px,4.3vw,51px); font-weight: 800; line-height: 1.08; letter-spacing: -.044em; }
.section-heading p, .question-heading p { margin-top: 10px; color: var(--muted); font-size: clamp(15px,1.5vw,17px); max-width: 540px; }
.integration-band { background: var(--deep); color: #fff; padding-block: clamp(37px,4.4vw,60px); }
.integration-layout { display: grid; grid-template-columns: minmax(0,.86fr) repeat(2,minmax(0,1fr)); gap: clamp(14px,3vw,38px); align-items: start; }
.integration-heading h2 { font-size: clamp(29px,3vw,42px); }
.integration-heading p { margin-top: 9px; color: #d1dff7; font-size: 14px; }
.integration-heading a { color: var(--bright); font-weight: 800; text-underline-offset: 3px; }
.integration { border-left: 1px solid #546783; padding-left: clamp(13px,2.5vw,30px); }
.integration h3 { font-size: clamp(18px,1.7vw,23px); font-weight: 800; line-height: 1.25; letter-spacing: -.024em; }
.integration p { margin-top: 9px; color: #f0f4ff; font-size: 14px; }
.integration .integration-setup { color: #c4d3ee; font-size: 13px; }
.integration-band :focus-visible { outline-color: var(--bright); }

.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.feature { min-width: 0; border-top: 2px solid #24447a; padding-top: 14px; }
.feature:nth-child(2) { border-color: #138275; }
.feature:nth-child(3) { border-color: #6a76ac; }
.feature h3 { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.feature p { margin-top: 7px; font-size: 15px; color: var(--muted); }

.pricing { background: #edf1f6; border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #b0bdcd; border-radius: 10px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: clamp(16px,2.4vw,29px); background: #fff; color: var(--ink); min-width: 0; }
.plan[data-plan="start"] { background: #f8faff; border-left: 1px solid #b0bdcd; }
.plan-featured { background: #1b3b74; color: white; box-shadow: inset 0 4px var(--bright); }
.plan-featured .plan-price { color: var(--bright); }
.plan-title { font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.037em; }
.plan-purpose { color: var(--muted); font-size: 13px; margin-top: 6px; min-height: 40px; }
.plan-price { margin-top: 12px; font-weight: 800; font-size: clamp(33px,4vw,50px); letter-spacing: -.048em; line-height: 1.14; white-space: nowrap; }
.plan-period { color: var(--muted); font-size: 12px; margin-top: 5px; }
.plan-limit { border-block: 1px solid #d9e1eb; margin-block: 14px 12px; padding-block: 8px; font-size: 13px; font-weight: 800; }
.plan-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.plan-list li { display: flex; align-items: baseline; gap: 8px; }
.plan-list span { flex: none; color: #007267; font-weight: 800; }
.plan .button { width: 100%; margin-top: auto; }
.plan .button:focus-visible { outline-offset: 2px; }
.plan-featured :focus-visible { outline-color: var(--bright); }
.plan-featured .plan-purpose, .plan-featured .plan-period { color: #e3edff; }
.plan-featured .plan-limit { border-color: #8195b4; }
.plan-featured .plan-list span { color: var(--bright); }
.pricing-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.comparison { max-width: 100%; margin-top: clamp(32px,5vw,60px); }
.comparison h3 { font-size: clamp(23px,3.2vw,32px); letter-spacing: -.04em; margin-bottom: 10px; font-weight: 800; }
.comparison-frame { overflow: hidden; border: 1px solid #b0bdcd; border-radius: 8px; background: #fff; }
.comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.comparison-first { width: 44%; }
.comparison td, .comparison th { padding: 11px 8px; text-align: center; border-bottom: 1px solid #dae2ee; }
.comparison tr > :first-child { text-align: left; padding-left: clamp(8px,2vw,19px); }
.comparison :is(thead, tbody) tr > :last-child { background: #eef3fb; }
.comparison th[scope="row"] { font-weight: 700; line-height: 1.35; }
.comparison thead, .comparison tfoot { background: #f2f5fa; }
.comparison tfoot td { border-bottom: 0; }
.comparison tfoot a { display: inline-block; color: var(--accent); font-weight: 800; text-underline-offset: 3px; }
.comparison thead th { font-weight: 800; }
.comparison-yes { color: #007267; font-weight: 800; }
.comparison-no { color: #53638a; }
.comparison-short-name { display: none; }

.questions { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: start; gap: clamp(22px,6vw,84px); }
.question-heading p { max-width: 330px; }
.question-heading .button { margin-top: 15px; }
.question-heading p a, .question-list p a { color: var(--accent); font-weight: 800; }
.question-list { border-top: 1px solid var(--line); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { list-style: none; display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 54px; padding-block: 12px; cursor: pointer; font-weight: 800; font-size: 15px; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; color: var(--accent); font-size: 19px; font-weight: 700; line-height: 1; flex: none; padding: 0 5px; }
.question-list details[open] summary::after { content: "−"; }
.question-list details p { font-size: 14px; color: var(--muted); margin: 0 22px 14px 0; }
.last-section { padding-bottom: clamp(33px,5vw,62px); }
.finish { border-block: 1px solid var(--line); padding-block: clamp(14px,3vw,31px); display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.finish h2 { font-size: clamp(25px,3.3vw,39px); }
.finish p { color: var(--muted); margin-top: 5px; }
.finish .button { flex: none; background: var(--deep); color: #fff; }
.finish .button:hover { background: var(--accent); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 45px; color: var(--muted); font-size: 13px; }
.footer a { text-decoration: none; }

.registration { inset: 0; margin: auto; width: min(435px,calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(14px,4vw,30px); color: var(--ink); background: #fff; overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 65px #0b133a73; }
.registration::backdrop { background: #0a1239b8; }
.registration-header { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; margin-bottom: 11px; }
.registration-header h2 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.04em; padding-top: 4px; }
.close-button { flex: none; border: 1px solid var(--line); border-radius: 9px; background: #f3f5ff; width: 44px; height: 44px; color: var(--muted); }
.registration form { display: grid; gap: 4px; }
.registration label { font-size: 12px; font-weight: 800; }
.registration label span { font-weight: 600; color: var(--muted); }
.registration input { display: block; width: 100%; min-width: 0; border-radius: 9px; border: 1px solid #bdc9e8; min-height: 44px; padding: 7px 10px; margin-bottom: 6px; color: var(--ink); background: #f8faff; font-size: 16px; }
.subdomain { display: flex; align-items: center; min-width: 0; gap: 6px; margin-bottom: 6px; }
.subdomain input { flex: 1; margin: 0; }
.subdomain span { font-size: 13px; color: var(--muted); flex: none; }
.registration-submit { margin-top: 4px; }
.registration-submit:disabled { opacity: .68; cursor: wait; }
.registration-note { text-align: center; font-size: 12px; color: var(--muted); }
.registration-error, .registration-status { padding: 10px; border: 1px solid #d4dff9; border-radius: 10px; background: #edf2ff; font-size: 14px; }
.registration-error { margin-bottom: 7px; color: #983525; background: #fff1ed; border-color: #f1d8d2; }
.registration-status p { margin-block: 7px 10px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero { gap: 23px; }
  .product-window { grid-template-columns: 1fr; min-height: 275px; }
  .preview-sidebar { display: none; }
  .integration-layout { gap: 16px; }
}
@media (max-width: 730px) {
  .nav { min-height: 59px; gap: 10px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 36px; }
  .hero h1 { max-width: 580px; font-size: clamp(37px,8vw,57px); text-wrap: initial; }
  .hero-summary { margin-block: 13px 16px; }
  .product-window { grid-template-columns: minmax(87px,19%) minmax(0,1fr); }
  .preview-sidebar { display: flex; }
  .integration-layout, .feature-grid, .plans, .questions { grid-template-columns: 1fr; }
  .integration-layout { gap: 19px; }
  .integration + .integration { border-top: 1px solid #546783; }
  .integration { border-left: 0; padding-left: 0; padding-top: 12px; }
  .plan[data-plan="start"] { border-left: 0; border-top: 1px solid #b0bdcd; }
  .plan-purpose { min-height: 0; }
  .finish { align-items: flex-start; flex-direction: column; }
  .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  .section { scroll-margin-top: 96px; }
  .nav { display: grid; grid-template-columns: minmax(0,1fr) auto; padding-top: 5px; gap: 0 9px; }
  .brand img { max-height: 35px; width: auto; }
  .nav-action { grid-area: 1 / 2; }
  .nav-links { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; gap: 5px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 41px; font-size: 12px; }
  .hero h1 { font-size: clamp(33px,9.5vw,49px); }
  .product-window { grid-template-columns: 1fr; min-height: auto; }
  .preview-sidebar { display: none; }
  .comparison table { font-size: 12px; }
  .comparison-first { width: 37%; }
  .comparison td, .comparison th { padding-inline: 3px; }
  .comparison-short-name { display: inline; }
  .comparison-full-name:has(+ .comparison-short-name) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
