/* Исправления и доработки поверх styles-*.css */

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: #f5f6f8;
  color: #0d1117;
  margin: 0;
}
[id] {
  scroll-margin-top: 84px;
}
:focus-visible {
  outline: 2px solid var(--yt-accent, #1f4fd8);
  outline-offset: 3px;
}

/* Шрифты: в оригинале ссылались на файлы, которых нет в папке */
.yt {
  --yt-display: "Onest", "Segoe UI", system-ui, sans-serif;
  --yt-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
}

/* «Заявкиот»: у inline-flex пробелы между текстом и <b> схлопывались */
.yt-hero__note {
  display: inline-block;
}

/* ---------- Окно заявки ---------- */
.yt-modal[hidden] {
  display: none !important;
}
.yt-modal__panel {
  inline-size: min(640px, 100%);
  outline: none;
  overscroll-behavior: contain;
}
.yt-modal__eyebrow {
  display: inline-block;
  margin-block-end: 10px;
  font-family: var(--yt-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yt-accent);
}
.yt-modal__view[hidden] {
  display: none;
}
.yt-modal .yt-form {
  gap: 16px;
}
/* Скрытое поле-ловушка для спам-ботов */
.yt-hp {
  position: absolute;
  left: -9999px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}
.yt-req {
  color: var(--yt-accent);
}
.yt-field__error[hidden],
.yt-field__hint[hidden],
.yt-form__status[hidden] {
  display: none;
}

.yt-chips {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.yt-chips legend {
  padding: 0;
  margin-block-end: 8px;
}
.yt-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yt-chip {
  position: relative;
  cursor: pointer;
}
.yt-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.yt-chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--yt-line-strong);
  border-radius: 999px;
  background: var(--yt-ground);
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.yt-chip:hover span {
  border-color: var(--yt-accent);
}
.yt-chip input:checked + span {
  background: var(--yt-accent);
  border-color: var(--yt-accent);
  color: #fff;
}
.yt-chip input:focus-visible + span {
  outline: 2px solid var(--yt-accent);
  outline-offset: 2px;
}

.yt-done {
  text-align: center;
  padding-block: 12px 4px;
}
.yt-done .yt-modal__title {
  outline: none;
}
.yt-done .yt-modal__note {
  margin-inline: auto;
}
.yt-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 999px;
  background: var(--yt-wash);
  color: var(--yt-accent);
  margin-block-end: 18px;
}
.yt-done__summary {
  text-align: start;
  white-space: pre-wrap;
  font-family: var(--yt-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--yt-ground);
  border: 1px dashed var(--yt-line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  user-select: all;
}
.yt-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.yt-done__actions [hidden] {
  display: none;
}
.yt-done__close {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Блок «Оставить заявку» внизу страницы ---------- */
.yt-request__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}
.yt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.yt-steps__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: start;
  padding: 20px 22px;
  background: var(--yt-ground);
  border: 1px solid var(--yt-line);
  border-radius: calc(var(--yt-radius) + 4px);
}
.yt-steps__no {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: var(--yt-wash);
  color: var(--yt-accent);
  font-family: var(--yt-mono);
  font-size: 14px;
}
.yt-steps__title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.yt-steps__body {
  margin: 0;
  color: var(--yt-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Кнопка «Обсудить» у услуг ---------- */
.yt-service__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 14px;
  color: var(--yt-accent);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.yt-service__cta svg {
  transition: transform 0.3s var(--yt-ease);
}
.yt-service__cta:hover svg {
  transform: translateX(4px);
}

/* ---------- Липкая кнопка заявки на телефоне ---------- */
.yt-sticky-cta {
  display: none;
}
@media (width <= 760px) {
  .yt-sticky-cta {
    display: flex;
    position: fixed;
    z-index: 60;
    inset-inline: 12px;
    inset-block-end: calc(12px + env(safe-area-inset-bottom));
    justify-content: center;
    transform: translateY(140%);
    transition: transform 0.4s var(--yt-ease);
    box-shadow: 0 14px 34px #1f4fd84d;
  }
  .yt-sticky-cta.is-visible {
    transform: none;
  }
  .yt-sticky-cta.is-suppressed {
    transform: translateY(140%);
  }
  .yt-footer {
    padding-block-end: 88px;
  }
}

.yt-footer__bottom a {
  color: inherit;
}
