/* Калитка — minimal */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/plex-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/plex-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fafaf7;
  --paper-2: #f2f0e8;
  --ink: #0f0f0e;
  --ink-2: #3a3a36;
  --ink-3: #6d6a60;
  --forest: #1f3b24;
  --forest-hover: #12281a;
  --hair: #dcd8cc;
  --hair-soft: #ebe7db;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 0;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ================ Topbar ================ */
.topbar {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.1);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.topbar-nav {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  margin-right: 2rem;
  padding: 0;
}
.topbar-nav li { margin: 0; }
.topbar-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.topbar-nav a:hover { color: var(--forest); }

.topbar-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.topbar-cta:hover { color: var(--forest); }
.topbar-cta span { display: inline-block; margin-left: 0.2em; transition: transform 0.2s; }
.topbar-cta:hover span { transform: translateX(3px); }

/* ================ Buttons ================ */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.95rem 1.85rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--forest); }
.btn:active { transform: translateY(1px); transition: none; }
.btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.btn-lg {
  font-size: 1.12rem;
  padding: 1.1rem 2.4rem;
}

/* ================ Hero ================ */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--hair);
}
.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 2.2rem;
  max-width: 16ch;
}
.hero-title span { display: block; }
.hero-title .muted {
  color: var(--ink-2);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 0.8em;
  max-width: 22ch;
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40em;
  margin-bottom: 1.6rem;
}

.hero-pricetag {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}
.hero-pricetag strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.cta-helper {
  font-size: 0.88rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}
.hero-stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.hero-stats dd {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.015em;
  font-feature-settings: "lnum", "tnum";
}
.hero-stats > div:first-child dd { color: var(--forest); }
.hero-stats dd span {
  font-size: 0.92rem;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 0.15em;
}

/* ================ Sections ================ */
section { padding: 5rem 0; border-bottom: 1px solid var(--hair); }

.sec-title {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 3rem;
  max-width: 22ch;
}

/* ================ Steps ================ */
.steps {
  list-style: none;
  max-width: 760px;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--hair); }
.step-num {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
}
.step h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--forest);
}

/* ================ Features ================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}
.feature {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--hair);
}
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; border-right: none; }
.feature h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.feature p {
  font-size: 0.96rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ================ Compare ================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.compare-table thead th {
  font-weight: 500;
  color: var(--ink-3);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}
.compare-table thead th:first-child { padding-left: 0; }
.compare-table thead th:last-child { padding-right: 0; }
.compare-table thead th.col-us {
  color: var(--ink);
  font-weight: 500;
}
.compare-table tbody th {
  font-weight: 400;
  color: var(--ink-3);
  padding: 1rem 1.25rem 1rem 0;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
  width: 22%;
}
.compare-table tbody td {
  padding: 1rem 1.25rem;
  color: var(--ink-2);
  font-size: 0.98rem;
  vertical-align: top;
  line-height: 1.45;
}
.compare-table tbody td:last-child { padding-right: 0; }
.compare-table tbody td.col-us {
  color: var(--ink);
  font-weight: 500;
  background: rgba(31, 59, 36, 0.05);
}
.compare-table tbody tr { border-bottom: 1px solid var(--hair-soft); }
.compare-table tbody tr:last-child { border-bottom: none; }

/* ================ Trust ================ */
.trust { padding: 5rem 0; background: var(--paper-2); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.trust-item {
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
}
.trust-item strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.trust-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ================ CTA section ================ */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair);
}
.cta-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.cta-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 2.2rem;
}
.cta-section .cta-kicker,
.cta-section .cta-helper { color: var(--ink-2); }
.cta-section .cta-helper { margin-top: 1rem; }

/* ================ FAQ ================ */
.faq { padding: 5rem 0 4rem; border-bottom: none; }
.faq-list {
  list-style: none;
  max-width: 820px;
}
.faq-item { border-top: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item details { padding: 1.2rem 0; }

.faq-item summary {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  padding: 0.2rem 0;
  color: var(--ink);
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--forest); }
.faq-item summary:hover .q-num { color: var(--forest); }

.q-num {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-3);
  font-feature-settings: "tnum";
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.q-text {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--ink-3);
  font-weight: 400;
  justify-self: end;
  line-height: 1;
  transition: color 0.15s;
}
.faq-item details[open] summary::after {
  content: "−";
  color: var(--forest);
}

.faq-item details > p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 0.6rem;
  padding-left: 56px;
  padding-right: 24px;
  max-width: 64ch;
}

/* ================ Footer ================ */
.site-foot {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--hair);
  background: var(--paper);
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot-line {
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ================ Responsive ================ */
@media (max-width: 900px) {
  .topbar .wrap { padding: 0.9rem 0; }
  .topbar-nav { display: none; }
  .topbar-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 0.9rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
  }
  .topbar-cta:hover { background: var(--forest); color: var(--paper); }
  .topbar-cta span { display: none; }
  .hero { padding: 4rem 0 4rem; }
  .hero-title { margin-bottom: 1.8rem; }
  .hero-lede { font-size: 1.08rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-stats dd { font-size: 1.3rem; }
  .hero-stats dd span { font-size: 0.82rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 1.6rem 1rem; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
  .feature:nth-child(odd) { padding-left: 0; }
  .feature:nth-child(even) { padding-right: 0; border-right: none; }
  .feature:nth-last-child(-n+2) { border-bottom: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .step { grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.3rem 0; }
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td { font-size: 0.88rem; padding: 0.85rem 0.6rem; }
  .compare-table thead th:first-child,
  .compare-table tbody th { padding-left: 0; padding-right: 0.6rem; }
  .compare-table thead th:last-child,
  .compare-table tbody td:last-child { padding-right: 0; }
  .compare-table tbody th { width: 30%; }
  section { padding: 3.5rem 0; }
  .cta-section { padding: 4rem 0; }
  .faq-item summary { grid-template-columns: 40px 1fr 24px; }
  .faq-item details > p { padding-left: 40px; }
}

@media (max-width: 540px) {
  html { font-size: 16px; }
  .wrap { padding: 0 1.25rem; }
  .hero { padding: 3rem 0; }
  .hero-cta { gap: 0.9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: none; padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }
  .feature:last-child { border-bottom: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .btn { display: block; padding: 0.95rem 1.4rem; font-size: 1rem; width: 100%; text-align: center; }
  .btn-lg { font-size: 1.05rem; padding: 1rem 1.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .hero-stats dd { font-size: 1.2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-helper { text-align: center; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121210;
    --paper-2: #1b1b17;
    --ink: #f0ece0;
    --ink-2: #c9c6bb;
    --ink-3: #8a867c;
    --forest: #7fb890;
    --forest-hover: #9ac8a7;
    --hair: #2e2c26;
    --hair-soft: #25231e;
  }
  .compare-table tbody td.col-us {
    background: rgba(127, 184, 144, 0.08);
  }
  .btn { background: var(--ink); color: var(--paper); }
  .btn:hover { background: var(--forest); color: #0a0a08; }
  .topbar-cta[class] { color: var(--ink-2); }
  @media (max-width: 900px) {
    .topbar-cta[class] {
      background: var(--ink);
      color: var(--paper);
    }
  }
  .mono { color: var(--forest); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
