/* Секции лендинга — в порядке страницы. */

/* ═════════ Шапка ═════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 0;
}

.site-header__bar {
  position: relative;
  max-width: 1400px;
  width: calc(100% - 2 * clamp(10px, 2vw, 24px));
  height: 56px;
  margin: 12px auto 0;
  padding: 0 9px 0 18px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.5vw, 48px);
  background: rgba(247, 241, 230, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(38, 47, 78, .12);
  border-radius: 12px;
  box-shadow: 0 12px 32px -20px rgba(10, 12, 30, .5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
}

.logo__mark,
.demo__mark {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  border-radius: 5px;
  background: var(--navy);
}

.logo__mark > span,
.demo__mark > span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal-light);
}

.logo__word {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.nav {
  display: none;
  align-self: stretch;
}

.nav__list {
  display: flex;
  gap: 28px;
  height: 100%;
  font-size: 14.5px;
  white-space: nowrap;
}

.nav__list a {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}

.nav__list a:hover,
.nav__list a[aria-current="true"] {
  color: var(--navy);
}

.nav__list a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--navy);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__cta {
  font-weight: 400;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
}

.menu-btn:hover {
  background: rgba(38, 47, 78, .07);
}

.menu-btn__close,
.menu-btn[aria-expanded="true"] .menu-btn__open {
  display: none;
}

.menu-btn[aria-expanded="true"] .menu-btn__close {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 74px;
  left: clamp(10px, 2vw, 24px);
  right: clamp(10px, 2vw, 24px);
  padding: 8px 18px 18px;
  background: var(--paper);
  border: 1px solid rgba(38, 47, 78, .12);
  border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(10, 12, 30, .55);
  animation: drop-in .2s var(--ease);
}

.mobile-menu__list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-decoration: none;
}

.mobile-menu__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 420px) {
  .site-header__cta-tail {
    display: none;
  }
}

@media (min-width: 1080px) {
  .nav {
    display: block;
  }

  .menu-btn,
  .mobile-menu {
    display: none !important;
  }
}

/* ═════════ Первый экран ═════════ */

.hero {
  padding: 10px 10px 0;
}

.hero__frame {
  position: relative;
  isolation: isolate;
  height: max(640px, min(calc(100vh - 20px), 980px));
  height: max(640px, min(calc(100svh - 20px), 980px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-dark);
}

.hero__art {
  position: absolute;
  inset: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 11, 24, .88) 0%, rgba(8, 11, 24, .55) 28%, rgba(8, 11, 24, 0) 55%);
}

/* Узкий экран: слово стоит на горизонте, текст — под ним, на воде.
   Горизонт маяка совпадает с линией букв (main.js, measureHorizon). */
.hero__content {
  position: relative;
  padding: 0 clamp(20px, 3vw, 44px) clamp(22px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__word {
  min-width: 0;
  margin: 0 0 0 -0.045em;
  font-size: clamp(96px, 19vw, 300px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: .74;
  color: var(--on-dark);
  user-select: none;
}

.hero__baseline {
  display: inline-block;
  width: 0;
  height: 0;
}

.hero__text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 4px;
}

/* Широкий экран: слово слева на линии горизонта, маяк — в просвете
   между словом и текстом, текст — справа внизу, на воде. */
@media (min-width: 1100px) {
  .hero__content {
    position: absolute;
    inset: 0;
    padding: 0;
  }

  .hero__word {
    position: absolute;
    left: clamp(20px, 3vw, 44px);
    bottom: 42%;
    font-size: clamp(150px, 17vw, 300px);
  }

  .hero__text {
    position: absolute;
    right: clamp(20px, 3vw, 44px);
    bottom: clamp(22px, 2.6vw, 40px);
    width: min(360px, 28vw);
  }
}

.hero__title {
  font-weight: 500;
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lead {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: 6px;
  height: 48px;
  padding: 0 6px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: var(--on-dark);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease;
}

.hero__cta:hover {
  background: #fff;
}

.hero__cta-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--on-dark);
  transition: background-color .15s ease;
}

.hero__cta:hover .hero__cta-icon {
  background: var(--teal-2);
}

@media (max-width: 719px) {
  .hero__frame {
    height: auto;
    min-height: max(600px, calc(100svh - 20px));
  }

  .hero__content {
    gap: 22px;
  }
}

/* Полоса с волнами */
.band {
  position: relative;
}

.band > kronto-waves {
  position: absolute;
  inset: 0;
}

.band--hero {
  height: clamp(220px, 30vw, 480px);
  margin-top: 10px;
}

.band--how {
  height: clamp(200px, 26vw, 400px);
  margin: 0 calc(-1 * var(--gutter)) clamp(72px, 8vw, 112px);
}

/* ═════════ Подключения ═════════ */

.strip {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 4.5vw, 64px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  row-gap: 28px;
}

.strip__item {
  padding: 6px clamp(20px, 3.5vw, 56px) 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strip__item--rule {
  padding: 6px 0 6px clamp(20px, 3.5vw, 56px);
  border-left: 2px solid var(--navy);
}

.strip__text {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.strip__muted {
  color: var(--muted-2);
}

/* ═════════ Карточки ═════════ */

.cards {
  display: grid;
  gap: 16px;
}

.cards--2,
.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.cards--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card--tall {
  min-height: 300px;
  justify-content: space-between;
  gap: 40px;
}

.card__badge {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
}

.card__badge--teal {
  background: var(--teal);
}

.card__title {
  margin-bottom: 8px;
  font-size: var(--fs-card-title);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.card__text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.card--diff {
  min-height: 250px;
  justify-content: space-between;
  gap: 36px;
}

.card__num {
  font-size: 12px;
  color: var(--teal);
}

.card--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.card--dark .card__text {
  color: var(--on-dark-muted-2);
}

.card--dark .card__num {
  color: var(--teal-light);
}

.card--sec {
  min-height: 250px;
  padding: 24px;
  gap: 12px;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--on-dark);
}

.card__icon .icon {
  stroke-width: 1.3;
}

.card__subtitle {
  margin-top: auto;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.card__small {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 600px) {
  .card {
    padding: 22px;
  }

  .card--tall {
    min-height: 0;
    gap: 28px;
  }

  .card--diff {
    min-height: 0;
    gap: 22px;
  }

  .card--sec {
    min-height: 0;
  }

  .card--sec .card__subtitle {
    margin-top: 18px;
  }

  .step {
    min-height: 0;
  }
}

.center-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.head--action {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 64px;
}

.head--action .head__title {
  flex: 1 1 480px;
  max-width: 760px;
}

/* ═════════ Как работает ═════════ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
}

.step__art {
  position: relative;
  flex: none;
  height: clamp(170px, 15vw, 210px);
  color: var(--on-dark);
}

.step__art--ochre {
  background: var(--ochre-deep);
}

.step__art--teal {
  background: var(--teal);
}

.step__art--indigo {
  background: var(--navy-2);
}

.step__art > kronto-lines {
  position: absolute;
  inset: 0;
}

.step__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(12, 16, 32, .78) 0%, rgba(12, 16, 32, 0) 60%);
}

.step__num {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 18px;
  font-size: clamp(60px, 5.5vw, 88px);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -0.06em;
}

.step__icon {
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--cream);
  color: var(--navy);
}

.step__icon .icon {
  stroke-width: 1.3;
}

.step__body {
  padding: 24px 24px 28px;
}

.step__title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* ═════════ Демо ═════════ */

.demo-section {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
}

.demo-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px 64px;
}

.demo-section__head .head__title {
  flex: 1 1 480px;
  max-width: 760px;
}

.demo-section__head .lead {
  max-width: 620px;
}

.demo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow-window);
}

.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--line-2);
}

.demo__company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}

.demo__mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.demo__mark > span {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}

.demo__name {
  font-size: 16px;
  font-weight: 500;
}

.demo__meta {
  font-size: 12.5px;
  color: var(--muted-2);
}

.demo__reset {
  flex: none;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 15px;
  white-space: nowrap;
  transition: border-color .15s ease;
}

.demo__reset:hover {
  border-color: var(--navy);
}

.demo__body {
  display: flex;
  flex-wrap: wrap;
}

.demo__docs {
  flex: 1 1 250px;
  max-width: 320px;
  padding: 20px 14px;
  border-right: 1px solid var(--line-2);
  background: var(--sand);
}

.demo__docs-title {
  display: block;
  padding: 0 8px 12px;
  font-size: 15.5px;
  font-weight: 500;
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.demo__docs-title::-webkit-details-marker {
  display: none;
}

.demo__docs-count {
  font-weight: 400;
  color: var(--muted-2);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 8px;
  border-radius: 10px;
  transition: background-color .3s ease;
}

.doc.is-cited {
  background: var(--sand-3);
}

.doc__type {
  width: 32px;
  height: 38px;
  padding-bottom: 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid var(--line-3);
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.doc__type--docx { color: var(--docx); }
.doc__type--pdf { color: var(--pdf); }

.doc__type--web {
  height: 32px;
  padding: 0;
  align-items: center;
  border-radius: 50%;
  color: var(--teal);
}

.doc__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.doc__title {
  font-size: 14.5px;
  line-height: 1.3;
}

.doc__meta {
  font-size: 11.5px;
  color: var(--muted-2);
}

.demo__chat {
  flex: 3 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo__thread {
  height: clamp(460px, 44vw, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px clamp(16px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}

.demo__thread:focus-visible {
  outline-offset: -2px;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg.is-new {
  animation: msg-in .35s var(--ease);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
}

.msg__q {
  align-self: flex-end;
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--sand-2);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.msg__answer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  animation: msg-in .3s var(--ease);
}

.msg__p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
}

.msg__ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg__ol li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  font-size: 16px;
  line-height: 1.6;
}

.msg__ol-n {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.cite {
  width: 19px;
  height: 19px;
  margin: 0 3px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: 2px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease;
}

.cite:hover {
  background: var(--teal-2);
  transform: scale(1.1);
}

.msg__file {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper);
}

.msg__file .doc__type {
  width: 30px;
  height: 36px;
  padding-bottom: 4px;
}

.msg__file-name {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.msg__file-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper);
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}

.chip:hover {
  border-color: var(--teal);
}

.chip[aria-expanded="true"] {
  border-color: var(--teal);
  background: var(--sand-2);
}

.chip__n {
  flex: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.chip__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip__title {
  font-size: 14.5px;
}

.chip__ref {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.frag {
  max-width: 720px;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--sand);
  animation: msg-in .25s var(--ease);
}

.frag__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.frag__title {
  font-size: 13.5px;
  font-weight: 500;
}

.frag__section {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.frag__line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.frag mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--ochre);
  color: var(--navy);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.refusal {
  max-width: 720px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px dashed var(--line-3);
  border-radius: var(--radius);
}

.refusal__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.refusal__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.refusal__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.refusal__cta {
  align-self: flex-start;
  margin-top: 4px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 8px 0;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal);
  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
  0%, 80%, 100% { opacity: .25; }
  40% { opacity: 1; }
}

.suggest {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggest__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.suggest__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest__btn {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.3;
  text-align: left;
  transition: border-color .15s ease;
}

.suggest__btn:hover {
  border-color: var(--navy);
}

.demo__compose {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-2);
}

.demo__ask {
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: var(--paper-3);
  transition: border-color .15s ease;
}

.demo__ask:focus-within {
  border-color: var(--navy);
}

.demo__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.demo__input::placeholder {
  color: var(--muted-2);
}

.demo__send {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  transition: background-color .15s ease;
}

.demo__send:hover {
  background: var(--navy-2);
}

.demo__send .icon {
  stroke-width: 1.7;
}

@media (max-width: 560px) {
  .demo__bar {
    padding: 10px 10px 10px 16px;
  }

  .demo__meta {
    display: none;
  }

  .demo__reset {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .demo__reset-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .demo__docs {
    flex-basis: 100%;
    max-width: none;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }

  .demo__docs-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    pointer-events: auto;
    cursor: pointer;
  }

  .demo__docs-title::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s var(--ease);
  }

  .demo__docs[open] .demo__docs-title::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .doc-list {
    padding: 0 12px 14px;
  }

  .demo__thread {
    height: 520px;
  }

  .demo__reset {
    padding: 0 12px;
  }
}

/* ═════════ Тарифы ═════════ */

.section--rule {
  border-bottom: 1px solid #c9c1b1;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.plan {
  perspective: 1600px;
  --plan-bg: var(--paper);
  --plan-fg: var(--navy);
  --plan-muted: var(--muted);
  --plan-line: var(--line);
  --plan-accent: var(--teal);
}

.plan--dark {
  --plan-bg: var(--navy);
  --plan-fg: var(--on-dark);
  --plan-muted: var(--on-dark-muted-2);
  --plan-line: var(--navy-4);
  --plan-accent: var(--teal-light);
}

.plan__inner {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, .7, .2, 1);
}

.plan.is-flipped .plan__inner {
  transform: rotateY(180deg);
}

.plan__face {
  grid-area: 1 / 1;
  position: relative;
  min-height: 380px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--plan-line);
  border-radius: var(--radius);
  background: var(--plan-bg);
  color: var(--plan-fg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.plan--dark .plan__face {
  border-color: var(--navy);
}

.plan__back {
  transform: rotateY(180deg);
  gap: 14px;
}

.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan__name {
  font-size: 16px;
  font-weight: 500;
}

.plan__num {
  font-size: 11px;
  color: var(--plan-muted);
}

.plan__price {
  margin-top: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan__amount {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.plan__unit {
  font-size: 14.5px;
  color: var(--plan-muted);
}

.plan__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--plan-line);
}

.plan__summary {
  font-size: 16px;
  line-height: 1.4;
  text-wrap: pretty;
}

.plan__more,
.plan__cta,
.plan__close {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--plan-accent);
  font-size: 15px;
  text-decoration: none;
}

.plan__more .icon,
.plan__cta .icon {
  transition: transform .2s var(--ease);
}

.plan__more:hover .icon,
.plan__cta:hover .icon {
  transform: translateX(3px);
}

/* Вся карточка нажимается — переворачивается */
.plan__more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.plan__front:hover {
  border-color: var(--plan-accent);
}

.plan--dark .plan__front:hover {
  border-color: var(--navy-3);
}

.plan__close {
  color: var(--plan-muted);
  font-size: 14px;
}

.plan__close:hover {
  color: var(--plan-fg);
}

.plan__back-price {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--plan-muted);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--plan-line);
}

.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.38;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--plan-accent);
  border-bottom: 1.5px solid var(--plan-accent);
  transform: rotate(-45deg);
}

.plan__rule {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--plan-muted);
  text-wrap: pretty;
}

.plan__cta {
  margin-top: auto;
  min-height: 42px;
  padding: 0 18px;
  align-self: stretch;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--on-dark);
  font-weight: 500;
  transition: background-color .15s ease;
}

.plan__cta:hover {
  background: var(--teal-2);
}

.plan--dark .plan__cta {
  background: var(--on-dark);
  color: var(--navy);
}

.plan--dark .plan__cta:hover {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .plan__inner,
  .plan.is-flipped .plan__inner {
    transform: none;
  }

  .plan__back {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }

  .plan.is-flipped .plan__back {
    opacity: 1;
    visibility: visible;
  }

  .plan.is-flipped .plan__front {
    visibility: hidden;
  }
}

.pricing__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: -16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.pricing__notes li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pricing__notes strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--navy);
}

/* ═════════ Вопросы ═════════ */

.faq-section {
  overflow: visible;
  padding-top: clamp(80px, 9vw, 128px);
  padding-bottom: clamp(80px, 9vw, 128px);
}

.faq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(40px, 8vw, 120px);
  align-items: flex-start;
}

.faq-layout__head {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 900px) {
  .faq-layout__head {
    position: sticky;
    top: 96px;
  }
}

.faq-layout__title {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.faq {
  flex: 2 1 520px;
  min-width: 0;
  border-bottom: 1px solid var(--navy);
}

.faq__item {
  border-top: 1px solid var(--navy);
}

.faq__q {
  min-height: 64px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__n {
  font-size: 11.5px;
  color: var(--muted);
}

.faq__sign {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  transition: background-color .2s ease, border-color .2s ease;
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: currentColor;
  transition: transform .25s var(--ease);
}

.faq__sign::after {
  transform: rotate(90deg);
}

.faq__q:hover .faq__sign {
  background: rgba(38, 47, 78, .06);
}

.faq__item[open] .faq__sign {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-dark);
}

.faq__item[open] .faq__sign::after {
  transform: rotate(0deg);
}

.faq__a {
  padding: 0 56px 24px;
  max-width: 776px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.faq__a a,
.faq__a .link-btn {
  color: var(--navy);
}

@supports (interpolate-size: allow-keywords) {
  .faq__item {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height .3s var(--ease), content-visibility .3s allow-discrete;
  }

  .faq__item[open]::details-content {
    height: auto;
  }
}

@media (max-width: 560px) {
  .faq__q {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 10px;
    font-size: 16.5px;
  }

  .faq__a {
    padding: 0 0 22px 42px;
  }
}

/* ═════════ Созвон ═════════ */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 128px) var(--gutter) clamp(56px, 6vw, 80px);
  background: var(--navy);
  color: var(--on-dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.contact__intro,
.contact__card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--navy);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--on-dark);
}

.contact__title {
  font-weight: 500;
  font-size: clamp(40px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.contact__text {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

.contact__steps {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  border-top: 1px solid var(--navy-3);
}

.contact__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--navy-3);
  font-size: 15.5px;
  line-height: 1.4;
}

.contact__step-n {
  font-size: 12px;
  color: var(--teal-light);
}

.contact__links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 15px;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark);
  text-decoration-color: var(--navy-3);
}

.contact__links a:hover {
  text-decoration-color: currentColor;
}

.contact__noscript {
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.contact__noscript a {
  color: var(--on-dark);
}

/* ── Форма ── */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 22px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field__label {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark-muted-2);
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #6b6e7c;
  border-radius: 0;
  background: transparent;
  color: var(--on-dark);
  font-size: 18px;
  transition: border-color .15s ease;
}

.field__input::placeholder {
  color: #7e8196;
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--on-dark);
  box-shadow: 0 1px 0 0 var(--on-dark);
}

.field__input[aria-invalid="true"] {
  border-bottom-color: var(--error-on-dark);
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--on-dark);
  transition: background-color 9999s ease-in-out 0s;
}

.field__error {
  display: flex;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--error-on-dark);
}

.choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice > legend {
  margin-bottom: 10px;
}

.choice__hint {
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-dark-muted-2);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--navy-3);
  border-radius: 10px;
}

.segmented__opt {
  position: relative;
}

.segmented__opt input,
.day input,
.slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.segmented__opt span {
  min-height: 38px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.segmented__opt span:hover {
  color: var(--on-dark);
}

.segmented__opt input:checked + span {
  background: var(--on-dark);
  color: var(--navy);
}

.segmented__opt input:focus-visible + span,
.day input:focus-visible + .day__box,
.slot input:focus-visible + .slot__box {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}

/* Дни — горизонтальная лента */
.days {
  display: flex;
  gap: 6px;
  margin: 0 -2px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-3) transparent;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.days.is-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.day {
  flex: none;
  scroll-snap-align: start;
}

.day__box {
  width: 66px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--navy-3);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.day__wd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-dark-muted-2);
}

.day__d {
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.day__box:hover,
.slot__box:hover {
  border-color: var(--on-dark-muted-2);
}

.day input:checked + .day__box,
.slot input:checked + .slot__box {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--navy);
}

.day input:checked + .day__box .day__wd {
  color: var(--teal);
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.slot__box {
  min-height: 42px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-3);
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.slot__local {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-dark-muted-2);
}

.slot input:checked + .slot__box .slot__local {
  color: var(--muted);
}

@media (max-width: 480px) {
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented {
    display: flex;
  }

  .segmented__opt {
    flex: 1 1 auto;
  }

  .segmented__opt span {
    padding: 6px;
    font-size: 13px;
  }
}

.choice[aria-invalid="true"] .days .day__box,
.choice[aria-invalid="true"] .slot__box {
  border-color: rgba(243, 178, 166, .55);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
}

.consent__box {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  display: grid;
  place-content: center;
  border: 1px solid #8a8da0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.consent__box::before {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -3px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}

.consent__box:checked {
  border-color: var(--on-dark);
  background: var(--on-dark);
}

.consent__box:checked::before {
  transform: rotate(-45deg) scale(1);
}

.consent__box:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}

.consent__box[aria-invalid="true"] {
  border-color: var(--error-on-dark);
}

.consent__label {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--on-dark-muted);
  cursor: pointer;
}

.consent__label a {
  color: var(--on-dark);
}

.consent .field__error {
  grid-column: 2;
}

.lead-form__submit {
  margin-top: 4px;
  height: 54px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 500;
  transition: background-color .15s ease;
}

.lead-form__submit:hover {
  background: var(--teal-2);
}

.lead-form__submit[aria-busy="true"] {
  cursor: progress;
}

.lead-form__submit[aria-busy="true"] .icon {
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-alert {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(243, 178, 166, .5);
  border-radius: 10px;
  background: rgba(243, 178, 166, .08);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-dark);
}

.form-alert a:not(.btn) {
  color: var(--on-dark);
}

.form-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-alert__actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
}

.btn--light {
  background: var(--on-dark);
  color: var(--navy);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost-light {
  border-color: var(--navy-3);
  background: transparent;
  color: var(--on-dark);
}

.btn--ghost-light:hover {
  border-color: var(--on-dark);
}

.lead-done {
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  outline: none;
  animation: msg-in .4s var(--ease);
}

.lead-done__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--on-dark);
  color: var(--navy);
}

.lead-done__icon .icon {
  stroke-width: 1.8;
}

.lead-done__title {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.lead-done__text {
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

/* ═════════ Подвал ═════════ */

.footer {
  overflow: hidden;
  padding: 0 var(--gutter);
  background: var(--navy);
  color: var(--on-dark);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid #4a5170;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
}

.footer__about {
  flex: 1 1 240px;
  max-width: 320px;
  font-size: 14px;
  color: var(--on-dark-muted-2);
}

.footer__cols {
  flex: 2 1 480px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__head {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark-muted-2);
}

.footer__col a,
.footer__link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14.5px;
  color: var(--on-dark);
  text-align: left;
  text-decoration: none;
}

.footer__col a:hover,
.footer__link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 11.5px;
  color: var(--on-dark-muted-2);
}

.footer__word {
  margin: 0 0 -0.06em -0.04em;
  font-size: clamp(120px, 27vw, 400px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: .74;
  color: var(--on-dark);
  user-select: none;
}

/* ═════════ Кнопка на телефоне ═════════ */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(38, 47, 78, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}

.mobile-cta.is-visible {
  transform: none;
}

.mobile-cta__btn {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .mobile-cta {
    display: none !important;
  }
}

/* ═════════ Окно ═════════ */

.dialog {
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: min(860px, calc(100% - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 40px 100px -30px rgba(8, 11, 24, .6);
}

.dialog[open] {
  display: flex;
  animation: dialog-in .3s var(--ease);
}

.dialog::backdrop {
  background: rgba(14, 19, 36, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in .3s ease;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.dialog__panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dialog__head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px) 18px;
  border-bottom: 1px solid var(--line);
}

.dialog__head .eyebrow {
  margin-bottom: 10px;
}

.dialog__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dialog__close {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: var(--paper-2);
  transition: border-color .15s ease;
}

.dialog__close:hover {
  border-color: var(--navy);
}

.dialog__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px);
}

.prose {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 10px;
}

.prose ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose ul > li {
  position: relative;
  padding-left: 20px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .7em;
  width: 8px;
  height: 1.5px;
  background: var(--teal);
}

.prose a {
  color: var(--navy);
}

.prose__lead {
  font-size: 16.5px;
  color: var(--navy);
}

.prose__dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  border-top: 1px solid var(--line);
}

.prose__dl dt,
.prose__dl dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.prose__dl dt {
  padding-right: 16px;
  color: var(--navy);
}

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

  .prose__dl dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ═════════ Простые страницы (политика, 404) ═════════ */

.page {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) var(--gutter) clamp(64px, 8vw, 112px);
}

.page__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page__title {
  margin: 18px 0 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}

.page .prose {
  font-size: 16.5px;
}

.page .prose h2 {
  margin-top: 36px;
  font-size: 22px;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 14.5px;
  line-height: 1.5;
}

.page-footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.page-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.page-footer a {
  color: var(--navy);
}

/* ═════════ Иллюстрации ═════════ */

kronto-waves,
kronto-beacon,
kronto-lines {
  display: block;
}

kronto-waves {
  overflow: hidden;
  background: var(--navy) radial-gradient(120% 90% at 30% 20%, #3a4470 0%, #1b2140 60%, #11162b 100%);
}

kronto-waves canvas,
kronto-beacon canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}

kronto-waves canvas.is-ready,
kronto-beacon canvas.is-ready {
  opacity: 1;
}

kronto-beacon {
  background: radial-gradient(60% 50% at 60% 38%, #2b3560 0%, #141a33 55%, var(--night) 100%);
}

kronto-lines {
  overflow: hidden;
  pointer-events: none;
}

kronto-lines svg {
  position: absolute;
  inset: 0;
}

/* ═════════ 404 ═════════ */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notfound__box {
  max-width: 640px;
  margin: auto 0;
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.notfound__title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}

.notfound__text {
  font-size: var(--fs-lead);
  color: var(--muted);
}

.notfound__word {
  margin: 0 0 -0.08em -0.04em;
  font-size: clamp(140px, 30vw, 420px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: .74;
  color: var(--navy);
  user-select: none;
}

/* ═════════ Текст поверх линейной графики ═════════ */

/* Кремовый ореол вокруг букв: линии фона не проходят сквозь заголовки */
.section:not(.section--dark) .eyebrow,
.section:not(.section--dark) .h2,
.strip__text {
  text-shadow:
    0 0 2px var(--cream),
    0 0 6px var(--cream),
    0 0 12px var(--cream),
    0 0 20px var(--cream);
}
