/* Nimble — periwinkle + soft-halo identity. One stylesheet, no framework, no JS build. */

/* ---- Onest (self-hosted, OFL — see fonts/OFL.txt). Headings only; body uses the system stack. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fafaff;
  --surface: #ffffff;
  --surface-2: #f3f4fe;
  --ink: #1b1d33;
  --muted: #6f7497;
  --border: #e8e9f6;
  --border-strong: #d9dbf0;

  --accent: #6b73f0;
  --accent-strong: #565ee0;
  --accent-ink: #4248c4;
  --accent-tint: #eef0fe;

  --halo-periwinkle: rgba(108, 115, 240, 0.24);
  --halo-lilac: rgba(180, 158, 246, 0.4);
  --halo-sky: rgba(160, 205, 255, 0.42);

  --font-display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1080px;
  --container-narrow: 760px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(27, 29, 51, 0.04), 0 10px 30px rgba(108, 115, 240, 0.08);
  --shadow-hover: 0 2px 6px rgba(27, 29, 51, 0.05), 0 18px 44px rgba(108, 115, 240, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a {
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  opacity: 0.65;
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 3;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-ring {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(108, 115, 240, 0.32);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(108, 115, 240, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 84px);
}

.hero-aura {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 32em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

/* Halo variants — only the hero aura differs, so the motif elsewhere stays constant. */
.halo-soft .hero-aura {
  background: radial-gradient(
    58% 52% at 50% 36%,
    var(--halo-periwinkle),
    transparent 70%
  );
}

.halo-whisper .hero-aura {
  background: radial-gradient(
    34% 30% at 50% 30%,
    rgba(108, 115, 240, 0.16),
    transparent 72%
  );
}

.halo-aurora .hero-aura {
  background:
    radial-gradient(38% 40% at 28% 30%, var(--halo-periwinkle), transparent 62%),
    radial-gradient(34% 38% at 74% 26%, var(--halo-sky), transparent 62%),
    radial-gradient(36% 36% at 56% 62%, var(--halo-lilac), transparent 62%);
  filter: blur(8px);
  animation: aura-drift 20s ease-in-out infinite alternate;
}

@keyframes aura-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 2%, 0) scale(1.06);
  }
}

/* ---- Sections -------------------------------------------------------- */
.section {
  padding: clamp(44px, 8vw, 92px) 0;
}

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

.section-head {
  max-width: 600px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

/* ---- Feature cards --------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.feature-ring {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.feature-text {
  margin: 0;
  color: var(--muted);
}

/* ---- Steps ----------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-ink);
  background: var(--accent-tint);
  box-shadow: 0 0 0 6px rgba(108, 115, 240, 0.07);
}

.step-title {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.step-text {
  margin: 0;
  color: var(--muted);
}

/* ---- Pricing --------------------------------------------------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.plan-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.plan-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.plan-title {
  font-size: 1.35rem;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}

.plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-price .plan-from {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
}

.plan-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 0.28em;
  flex: none;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  opacity: 0.7;
}

.plan-card .btn {
  margin-top: auto;
}

/* ---- FAQ ------------------------------------------------------------- */
.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.2rem 1.15rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  margin: 0;
  padding: 0 0 1.2rem;
  color: var(--muted);
}

/* ---- CTA band -------------------------------------------------------- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-tint), #fff 60%, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.cta-text {
  margin: 0;
  color: var(--muted);
}

/* ---- Status pages (success / fail) ----------------------------------- */
.status-page {
  text-align: center;
  padding: clamp(60px, 12vw, 120px) 0;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.status-mark {
  width: 64px;
  height: 64px;
}

/* ---- Legal (rendered markdown) --------------------------------------- */
.legal {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 80px);
  font-size: 1.02rem;
  color: var(--ink);
}

.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 1.4rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal a {
  word-break: break-word;
}

.legal code {
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.92em;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

.legal table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.96rem;
}

.legal th,
.legal td {
  border: 1px solid var(--border-strong);
  padding: 0.55rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 1rem;
}

.site-footer .container {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.requisites {
  color: var(--muted);
  font-size: 0.86rem;
}

.requisites p {
  margin: 0.15rem 0;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 860px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }
}

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

  .halo-aurora .hero-aura {
    animation: none;
  }

  .btn,
  .feature-card {
    transition: none;
  }
}
