@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-ext-400.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: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin-400.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;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-ext-600.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: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin-600.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;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-ext-700.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: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin-700.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-400.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-600.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 {
  --text: #1A1A1A;
  --paper: #F6F4EF;
  --cta: #2F6B52;
  --cta-hover: #255643;
  --line: #D9D4C8;
  --card: #FFFcf7;
  --muted: #4A4740;
  --link: #2F6B52;
  --link-hover: #255643;
  --field: #fff;
  --on-cta: #fff;
  --error: #7a2a2a;
  --menu-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --text: #ECE8E0;
  --paper: #1E1D1A;
  --cta: #2F6B52;
  --cta-hover: #3A8064;
  --line: #3C3933;
  --card: #2A2824;
  --muted: #B4AFA4;
  --link: #8FCBB0;
  --link-hover: #A8DCC4;
  --field: #161512;
  --on-cta: #fff;
  --error: #E8A0A0;
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--paper);
  font-family: "Golos Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

::selection {
  background: var(--line);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding-top: 22px;
  padding-bottom: 22px;
  transition: padding 180ms ease, min-height 180ms ease;
}
.site-header.is-compact .site-header__inner {
  min-height: 60px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  margin-right: auto;
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 12px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
}
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.nav a:hover { color: var(--cta); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 30px;
  background: var(--cta);
  color: var(--on-cta);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.btn:hover,
.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--on-cta);
}
.nav .btn-primary { color: var(--on-cta); }
.nav .btn-primary:hover { color: var(--on-cta); }

.theme-switch {
  position: relative;
  flex-shrink: 0;
}
.theme-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-switch__btn:hover {
  border-color: var(--link);
  color: var(--link);
}
.theme-switch__icon {
  display: block;
  width: 20px;
  height: 20px;
}
.theme-switch__icon--moon { display: none; }
html[data-theme="dark"] .theme-switch__icon--sun { display: none; }
html[data-theme="dark"] .theme-switch__icon--moon { display: block; }
.theme-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 8.5rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  box-shadow: var(--menu-shadow);
}
.theme-switch__menu[hidden] { display: none; }
.theme-switch__menu button {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.theme-switch__menu button:hover,
.theme-switch__menu button[aria-current="true"] {
  background: var(--paper);
}

@media (hover: hover) {
  .nav a:not(.btn):hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
    border-color: color-mix(in srgb, var(--text) 18%, transparent);
  }
}
.nav a:not(.btn):focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
}

@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: 0; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0 20px;
    gap: 16px;
    order: 5;
  }
  .nav.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
}

@media (min-width: 1921px) {
  .site-header .wrap {
    max-width: min(1360px, calc(1200px + (100vw - 1920px) * 0.25));
  }
  .site-header__inner {
    min-height: calc(80px + (100vw - 1920px) * 20 / 640);
  }
  .site-header.is-compact .site-header__inner {
    min-height: calc(60px + (100vw - 1920px) * 16 / 640);
  }
  .logo {
    font-size: calc(20px + (100vw - 1920px) * 5 / 640);
  }
  .logo img {
    width: calc(36px + (100vw - 1920px) * 10 / 640);
    height: calc(36px + (100vw - 1920px) * 10 / 640);
  }
  .nav {
    font-size: calc(16px + (100vw - 1920px) * 3 / 640);
    gap: 10px calc(30px + (100vw - 1920px) * 6 / 640);
  }
}
@media (min-width: 2560px) {
  .site-header .wrap { max-width: 1360px; }
  .site-header__inner { min-height: 100px; }
  .site-header.is-compact .site-header__inner { min-height: 76px; }
  .logo { font-size: 25px; }
  .logo img { width: 46px; height: 46px; }
  .nav { font-size: 19px; gap: 10px 36px; }
}

.section {
  padding: 72px 0;
  scroll-margin-top: 72px;
}
.section h1,
.section h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}
.lead {
  margin: 0 0 32px;
  max-width: 42rem;
  color: var(--muted);
}

.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}
.hero .lead { margin-bottom: 24px; }
.hero-about {
  margin: 0 0 24px;
}
.hero-about details {
  background: none;
  border: 0;
  padding: 0;
}
.hero-about summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--link);
}
.hero-about summary::-webkit-details-marker,
.hero-about summary::marker {
  display: none;
  content: "";
}
.hero-about__cue {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.hero-about summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.hero-about details.is-open summary::after {
  transform: rotate(225deg);
}
.hero-about details.is-open .hero-about__cue {
  display: none;
}
.hero-about__panel {
  overflow: hidden;
  height: 0;
  transition: height 360ms cubic-bezier(0.2, 0, 0, 1);
}
.hero-about__body {
  overflow: hidden;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.2, 0, 0, 1);
}
.hero-about details.is-open .hero-about__body {
  opacity: 1;
}
.hero-about details p {
  margin: 10px 0 0;
  color: var(--muted);
}
.hero img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 480px;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1921px) {
  .hero h1 {
    font-size: calc(36px + (100vw - 1920px) * 10 / 640);
  }
  .hero-about {
    font-size: calc(16px + (100vw - 1920px) * 3 / 640);
  }
}
@media (min-width: 2560px) {
  .hero h1 { font-size: 46px; }
  .hero-about { font-size: 19px; }
}

.about .wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}
.about .lead { max-width: none; }
.about img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
@media (min-width: 900px) {
  .about .wrap { grid-template-columns: minmax(0, 42rem) 1fr; }
  .about .copy { max-width: 42rem; }
}

.grid-3 {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.price-card .price-card__note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.price-card .price-card__sum {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.price-card p { margin: 0; }
.price-card .btn { margin-top: 12px; align-self: flex-start; }

#ceny {
  scroll-margin-top: 112px;
}

.price-pick__row {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .price-pick__row {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.price-pick__opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-pick__opt {
  min-height: 44px;
  padding: 12px 16px;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.price-pick__opt.is-on {
  background: var(--cta);
  color: var(--on-cta);
  border-color: var(--cta);
}
@media (hover: hover) {
  .price-pick__opt:hover:not(.is-on) {
    border-color: var(--cta);
  }
}
.price-pick__sum {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-pick__num {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.price-pick__note,
.price-pick__risk {
  margin: 0 0 12px;
  color: var(--muted);
}
.price-pick__sum .btn {
  margin-top: 8px;
  align-self: flex-start;
}

.steps {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 22px;
}
.step .step__n {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--link);
  font-weight: 700;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.step p { margin: 0; color: var(--muted); }

.faq {
  display: grid;
  gap: 12px;
  max-width: 42rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

#zayavka .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#zayavka h2,
#zayavka .lead {
  width: 100%;
  max-width: 760px;
  text-align: center;
}
#zayavka .form {
  width: 100%;
}

#voprosy .wrap,
#kontakty .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#voprosy h2,
#voprosy .lead,
#kontakty h2,
#kontakty .lead {
  width: 100%;
  max-width: 760px;
  text-align: center;
}
#voprosy .faq,
#kontakty p {
  width: 100%;
  max-width: 760px;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.form .t-form__inputsbox {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 641px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.form .check + .check {
  margin-top: 12px;
}
.form .check input {
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  flex: 0 0 18px;
  accent-color: var(--cta);
}
.form input[type="text"],
.form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}
.form .js-errorbox-all {
  display: none;
  color: var(--error);
}
.form .js-successbox {
  display: none;
  padding: 12px 14px;
  background: var(--cta);
  color: var(--on-cta);
  border-radius: 8px;
}
.contacts p { margin: 0 0 8px; }

.article-layout {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.article-layout .prose {
  margin: 0;
  min-width: 0;
}
.article-aside {
  min-width: 0;
}
.article-toc {
  margin: 0 0 28px;
}
.article-toc p {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 16px;
}
.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-toc li { margin: 0 0 8px; }
.article-toc a {
  color: var(--text);
  text-decoration: none;
}
.article-toc a:hover { color: var(--cta); }
.article-toc .is-h3 { padding-left: 0.9em; }
.article-firm p { margin: 0 0 8px; }
.article-firm p:last-child { margin-bottom: 0; }
.article-firm__mail { margin: 0 0 14px; }
.article-firm__mail-label {
  display: block;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.article-firm__email,
.article-firm__email:hover {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}
.article-mini-form {
  max-width: none;
  gap: 12px;
  margin-top: 4px;
}
.article-mini-form__title {
  margin: 0 0 4px;
  font-weight: 600;
}
.article-mini-form .t-form__inputsbox { gap: 12px; }
.article-mini-form .form-row,
.article-mini-form.form .form-row {
  grid-template-columns: 1fr;
}
.article-mini-form .check + .check { margin-top: 12px; }
.article-mini-form .t-submit { width: 100%; }
.prose h2,
.prose h3 {
  scroll-margin-top: 72px;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 42rem) minmax(13rem, 1fr);
    align-items: start;
    padding-left: 40px;
    padding-right: 40px;
  }
  .article-aside {
    position: sticky;
    top: 72px;
  }
}
@media (max-width: 899px) {
  .article-aside { display: none; }
  .article-layout .prose { max-width: none; }
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  font-family: "Source Serif 4", "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
}
.prose > p {
  margin: 0 0 12px;
  text-align: justify;
  text-indent: 1.75em;
  hyphens: auto;
}
.prose h1,
.prose h2,
.prose h3 {
  font-family: "Golos Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  text-indent: 0;
}
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose img { margin: 16px 0; border-radius: 8px; }
.prose a { color: var(--cta); }
.fx-table-wrap { overflow: visible; margin: 8px 0 18px; max-width: 100%; }
.fx-table-full {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cta);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.fx-table-wrap.is-wide { max-width: calc(100vw - 24px); }
.fx-table-wrap.is-scroll { overflow-x: auto; }
.fx-table-wrap.is-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
}
.fx-table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  background: var(--card);
}
.fx-table th,
.fx-table td,
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.kb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 24px;
}
.kb-filter button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--cta);
  color: var(--cta);
  background: var(--card);
  border-radius: 20px;
  padding: 8px 14px;
}
.kb-filter button.is-on,
.kb-filter button:hover {
  background: var(--cta);
  color: var(--on-cta);
}
.kb-list {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .kb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .kb-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kb-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 20px;
  background: var(--card);
}
.kb-card.is-off,
.kb-empty.is-off {
  display: none;
}
.kb-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}
.kb-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.kb-card h2 a:hover { color: var(--cta); }
.kb-card p {
  margin: 0;
  line-height: 1.45;
  height: 8.7em;
  overflow: hidden;
  mask-image: linear-gradient(#000 0%, #000 50%, transparent 100%);
}
.kb-card .btn { align-self: flex-start; margin-top: 20px; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--cta); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline__item {
  position: relative;
  margin: 0 0 40px;
  opacity: 0;
  transition: opacity 0.28s linear, transform 0.28s linear;
}
.timeline__item:nth-child(odd) { transform: translateX(-28px); }
.timeline__item:nth-child(even) { transform: translateX(28px); }
.timeline__item.is-in {
  opacity: 1;
  transform: none;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.timeline__body p { margin: 0; color: var(--muted); }

@media (min-width: 721px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.55em;
    bottom: 0.4em;
    width: 2px;
    margin-left: -1px;
    background: var(--link);
  }
  .timeline__item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--link);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--paper);
    z-index: 1;
  }
  .timeline__body {
    width: calc(50% - 36px);
  }
  .timeline__item:nth-child(odd) .timeline__body {
    margin-right: auto;
    text-align: right;
  }
  .timeline__item:nth-child(even) .timeline__body {
    margin-left: auto;
    text-align: left;
  }
}
@media (max-width: 720px) {
  .timeline {
    padding-left: 24px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    bottom: 0.4em;
    width: 2px;
    background: var(--link);
  }
  .timeline__item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--link);
    box-shadow: 0 0 0 4px var(--paper);
  }
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    transform: translateY(18px);
  }
  .timeline__item.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header__inner {
    transition: none;
  }
  .btn,
  .btn-primary,
  a,
  .nav a:not(.btn),
  button,
  .hero-about summary::after,
  .hero-about__panel,
  .hero-about__body {
    transition: none;
  }
}

@media (hover: none) {
  .nav a:hover { color: var(--text); }
  .btn:hover,
  .btn-primary:hover { background: var(--cta); }
}

.scroll-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.76;
  contain: strict;
}
.scroll-scene__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scroll-scene__route,
.scroll-scene__route-arrow {
  fill: none;
  stroke: color-mix(in srgb, var(--cta) 42%, transparent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 12;
}
.scroll-scene__route-arrow {
  stroke-dasharray: none;
}
.scroll-scene__document,
.scroll-scene__folder,
.scroll-scene__screen-docs {
  will-change: transform, opacity;
}
.scroll-scene__paper {
  fill: var(--card);
  stroke: color-mix(in srgb, var(--cta) 68%, var(--line));
  stroke-width: 3;
}
.scroll-scene__fold,
.scroll-scene__ink,
.scroll-scene__chart,
.scroll-scene__seal-mark {
  fill: none;
  stroke: var(--muted);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-scene__fold {
  stroke: color-mix(in srgb, var(--cta) 55%, var(--line));
}
.scroll-scene__seal {
  fill: color-mix(in srgb, var(--cta) 15%, var(--card));
  stroke: var(--cta);
  stroke-width: 2;
}
.scroll-scene__seal-mark {
  stroke: var(--cta);
  stroke-width: 2.5;
}
.scroll-scene__stamp {
  fill: color-mix(in srgb, var(--cta) 18%, var(--card));
  stroke: var(--cta);
  stroke-width: 2;
}
.scroll-scene__chart {
  stroke: var(--cta);
  stroke-width: 5;
}
.scroll-scene__folder-back {
  fill: color-mix(in srgb, var(--cta) 20%, var(--card));
  stroke: var(--cta);
  stroke-width: 3;
}
.scroll-scene__folder-front {
  fill: color-mix(in srgb, var(--cta) 28%, var(--paper));
  stroke: var(--cta);
  stroke-width: 3;
}
.scroll-scene__computer-shell {
  fill: var(--card);
  stroke: color-mix(in srgb, var(--text) 64%, var(--line));
  stroke-width: 4;
  stroke-linejoin: round;
}
.scroll-scene__screen {
  fill: color-mix(in srgb, var(--cta) 9%, var(--paper));
  stroke: var(--cta);
  stroke-width: 3;
}
.scroll-scene__computer-line {
  fill: none;
  stroke: color-mix(in srgb, var(--text) 64%, var(--line));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-scene__screen-docs {
  opacity: 0;
}
.scroll-scene__screen-docs rect {
  fill: var(--card);
  stroke: var(--cta);
  stroke-width: 2;
}
.scroll-scene__screen-docs path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.scroll-scene__screen-docs circle {
  fill: var(--cta);
}
.scroll-scene__screen-docs .scroll-scene__screen-check {
  stroke: var(--on-cta);
  stroke-width: 5;
  stroke-linejoin: round;
}

.scroll-scene + .page-main,
.scroll-scene ~ .site-footer {
  position: relative;
  z-index: 1;
}
.page-main { flex: 1 0 auto; }

@media (max-width: 700px) {
  .scroll-scene {
    opacity: 0.5;
  }
  .scroll-scene__route,
  .scroll-scene__route-arrow {
    stroke-width: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-scene__document,
  .scroll-scene__folder,
  .scroll-scene__screen-docs {
    will-change: auto;
  }
}

[data-theme="dark"] #fractal-cookie-banner {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--menu-shadow);
}
[data-theme="dark"] #fractal-cookie-banner a { color: var(--link); }
[data-theme="dark"] #fractal-cookie-accept {
  background: var(--cta);
  color: var(--on-cta);
}
[data-theme="dark"] #fractal-cookie-refuse {
  color: var(--text);
  border-color: var(--line);
}
