@charset "UTF-8";
/* Компоненты темы OnlySkoda.
   Все значения берутся из var(--os-*) — никаких сырых цветов и отступов. */

/* =========================================================
   БАЗА
   ========================================================= */

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

html {
  font-family: var(--os-font-text);
  font-size: 16px;
  color: var(--os-on-paper);
  background: var(--os-paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  line-height: var(--os-leading-normal);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: .005em;
}

/* =========================================================
   ДОСТУПНОСТЬ
   ========================================================= */

.visually-hidden {
  position: absolute !important; /* a11y overrides — намеренно */
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden.focusable:focus,
.visually-hidden.focusable:focus-within {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: var(--os-space-sm) var(--os-space-md) !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Спрайт иконок в подвале (os_icon_sprite). Без display: none:
   из скрытого спрайта не рисуются градиенты иконок. */
.os-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.os-skip-link {
  position: absolute;
  top: var(--os-space-sm);
  left: var(--os-space-sm);
  z-index: 9999;
  padding: var(--os-space-xs) var(--os-space-md);
  background: var(--os-gold);
  color: var(--os-ink);
  font-weight: 600;
  border-radius: var(--os-r-sm);
  text-decoration: none;
}

/* =========================================================
   КОНТЕЙНЕР
   ========================================================= */

.os-main {
  padding-bottom: var(--os-section);
}

/* Поле контейнера переменной: ленты карточек выходят в край экрана
   на ту же величину и берут ее отсюда, а не своим числом. */
.os-container {
  --os-pad: 20px;
  width: 100%;
  max-width: var(--os-shell);
  margin-inline: auto;
  padding-inline: var(--os-pad);
}

@media (max-width: 767px) {
  .os-container {
    --os-pad: var(--os-space-sm);
  }
}

/* =========================================================
   КНОПКИ
   ========================================================= */

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-sm) var(--os-space-lg);
  border: none;
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-size: var(--os-text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--os-duration-fast) var(--os-ease),
              transform  var(--os-duration-fast) var(--os-ease);
}

.os-btn:focus-visible {
  outline: 3px solid var(--os-green);
  outline-offset: 3px;
}

.os-btn--primary {
  background: var(--os-gold);
  color: var(--os-ink);
}

.os-btn--primary:hover {
  background: var(--os-gold-press);
}

.os-btn--primary:active {
  transform: scale(.98);
}

.os-btn--lift {
  height: 48px;
  padding: 0 var(--os-space-md);
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-size: 14.5px;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .15s, transform .12s, box-shadow .15s;
}

.os-btn--lift:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-btn--lift:active { transform: translateY(0); }
.os-btn--lift svg { width: 16px; height: 16px; transition: transform .14s; }
.os-btn--lift:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .os-btn--lift:hover { transform: none; }
  .os-btn--lift:hover svg { transform: none; }
}

.os-btn--secondary {
  background: transparent;
  color: var(--os-green);
  border: 1.5px solid var(--os-green);
}

.os-btn--secondary:hover {
  background: var(--os-green-soft);
}

.os-btn--white {
  background: var(--os-paper);
  color: var(--os-on-paper);
  border: 1px solid var(--os-line);
}

.os-btn--white:hover {
  background: var(--os-paper-2);
}

.os-btn--white svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--os-green);
}

/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */

.os-breadcrumbs-band {
  width: 100%;
  max-width: var(--os-shell);
  margin-inline: auto;
  background: #f3f4f1;
  border: 1px solid var(--os-line);
  border-top: none;
  border-radius: 0 0 var(--os-r-card) var(--os-r-card);
}

.os-breadcrumbs-band__inner {
  padding: 14px var(--os-space-sm) 18px var(--os-space-md);
}

.os-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
}

.os-breadcrumbs__item,
.os-breadcrumbs__ellipsis {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-breadcrumbs__link {
  color: var(--os-muted);
  text-decoration: none;
}

.os-breadcrumbs__link:hover {
  color: #16181C;
}

.os-breadcrumbs__current {
  color: #16181C;
  font-weight: 400;
}

.os-breadcrumbs__sep {
  display: inline-block;
  flex-shrink: 0;
  width: 1px;
  height: 10px;
  background: #686868;
  border-radius: 1px;
}

.os-breadcrumbs__expand {
  background: none;
  border: none;
  padding: 0;
  color: #8F959C;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.os-breadcrumbs__expand:hover {
  color: #16181C;
}

@media (max-width: 767px) {
  .os-breadcrumbs-band {
    border-radius: 0 0 20px 20px;
    margin-bottom: 28px;
  }

  .os-breadcrumbs-band__inner {
    padding: 14px var(--os-space-sm) 16px var(--os-space-sm);
  }

  .os-breadcrumbs__list {
    font-size: 14px;
    gap: 7px;
  }

  .os-breadcrumbs__item,
  .os-breadcrumbs__ellipsis {
    gap: 7px;
  }
}

/* =========================================================
   СТРАНИЦА 404
   ========================================================= */

.os-error404 {
  padding-block: var(--os-section) 0;
  text-align: center;
}

.os-error404__code {
  font-family: var(--os-font-num);
  font-size: clamp(4rem, 20vw, 10rem);
  color: var(--os-green);
  margin: 0;
  line-height: 1;
}

.os-error404__text {
  color: var(--os-muted);
  margin-block: var(--os-space-md) var(--os-space-xl);
}

/* =========================================================
   ТИПОВЫЕ СЕКЦИИ СТРАНИЦ
   ========================================================= */

.os-catalog__hero {
  padding-block: var(--os-space-lg) 0;
}

.os-catalog__title {
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
  margin: 0 0 var(--os-space-md);
}

.os-catalog__lead {
  font-size: var(--os-text-lg);
  color: var(--os-muted);
  margin: 0 0 var(--os-space-sm);
}

.os-catalog__body {
  padding-block: var(--os-space-md) 0;
}

/* =========================================================
   АРХИВ И ЗАПАСНОЙ ШАБЛОН
   ========================================================= */

.os-archive__hero {
  padding-block: var(--os-section) 0;
}

.os-archive__title {
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
  margin: 0 0 var(--os-space-md);
}

.os-archive__lead {
  font-size: var(--os-text-lg);
  color: var(--os-muted);
  margin: 0;
}

.os-archive__body {
  padding-block: var(--os-section) 0;
}

.os-archive__list {
  display: grid;
  gap: var(--os-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .os-archive__list { grid-template-columns: repeat(2, 1fr); }
}

.os-archive__link {
  display: block;
  padding: var(--os-space-md);
  background: var(--os-paper-2);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  color: var(--os-on-paper);
  text-decoration: none;
  transition: border-color var(--os-duration-fast) var(--os-ease);
}

.os-archive__link:hover {
  border-color: var(--os-green-line);
}

.os-archive__empty {
  color: var(--os-muted);
  padding-block: var(--os-space-xl);
}

/* =========================================================
   ПЕРВЫЙ ЭКРАН СТРАНИЦЫ КАТАЛОГА
   ========================================================= */

.os-phero {
  max-width: var(--os-shell);
  margin: 0 auto;
  /* Сбоку 19px и рамка 1px — те же 20px, что у .os-container: колонки
     первого экрана стоят на общей сетке с блоками ниже. */
  padding: var(--os-space-md) 19px var(--os-space-lg);
  background: var(--os-paper-2);
  border: 1px solid var(--os-line);
  border-top: none;
  border-radius: 0 0 var(--os-r-card) var(--os-r-card);
}

.os-phero__inner {
  display: grid;
  grid-template-columns: var(--os-span-4) minmax(0, 1fr);
  gap: var(--os-gutter);
  align-items: center;
}

.os-phero--photo .os-phero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Рамка справа: фото раздела, а нет фото — светлый градиент.
   Размер рамки от фото не зависит, поэтому первый экран не прыгает. */
.os-phero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.6;
  border-radius: var(--os-r-card);
  background: var(--os-tint-2);
}

.os-phero__frame--empty { background: var(--os-tint-grad); }

.os-phero__frame-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Карточка со списком услуг раздела лежит в рамке по всей ее ширине
   и ограничена ее высотой: раскрытый список прокручивается внутри.
   Ширина по рамке, а не числом: иначе справа остается полоса пустого фона. */
.os-phero__kids {
  position: absolute;
  left: var(--os-space-sm);
  bottom: var(--os-space-sm);
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: min(420px, calc(100% - 2 * var(--os-space-sm)));
  max-height: calc(100% - var(--os-space-lg));
  padding: var(--os-space-xs) var(--os-space-sm) var(--os-space-2xs);
  border-radius: var(--os-r-lg);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(4px);
  box-shadow: 0 16px 40px -24px rgba(20, 24, 30, .45), 0 0 0 1px rgba(20, 24, 30, .05);
}

.os-phero__kids-label {
  margin: 0 0 var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-muted);
}

.os-phero__kids-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.os-phero__kid {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  gap: 0 var(--os-space-xs);
  align-items: center;
  height: 40px;
  border-top: 1px dashed var(--os-line-dash);
  color: inherit;
  text-decoration: none;
}

.os-phero__kids-item:first-child .os-phero__kid { border-top: none; }

.os-phero__kid-name {
  overflow: hidden;
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .15s;
}

.os-phero__kid-price {
  font-family: var(--os-font-num);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--os-muted);
}

.os-phero__kid-go {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--os-green-press);
  transition: transform .15s;
}

.os-phero__kid-go svg { width: 15px; height: 15px; }

.os-phero__kid:hover .os-phero__kid-name { color: var(--os-green-press); }
.os-phero__kid:hover .os-phero__kid-go { transform: translateX(3px); }

.os-phero__kids-more {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0;
  border: none;
  border-top: 1px dashed var(--os-line-dash);
  background: none;
  font-family: var(--os-font-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--os-ink);
  cursor: pointer;
}

.os-phero__kids-more svg {
  width: 16px;
  height: 16px;
  color: var(--os-green-press);
  transition: transform .2s;
}

.os-phero__kids-more[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 700px) {
  /* Рамки на телефоне нет: фото отъедало бы экран до списка услуг,
     а пустой градиент показывать незачем. Карточка встает блоком. */
  .os-phero__frame {
    aspect-ratio: auto;
    border-radius: 0;
    background: none;
  }

  .os-phero__frame--empty { background: none; }
  .os-phero__frame-pic { display: none; }

  .os-phero__kids {
    position: static;
    width: 100%;
    max-height: none;
    border: 1px solid var(--os-line);
    box-shadow: none;
  }
}

.os-phero .os-breadcrumbs { margin-bottom: var(--os-space-md); }

.os-phero__title {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  font-weight: 800;
  line-height: 1.04;
  color: var(--os-ink);
}

.os-phero__title em {
  font-style: normal;
  color: var(--os-green);
}

.os-phero__gens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--os-space-2xs);
  margin: var(--os-space-sm) 0 0;
}

.os-phero__gens-label {
  margin-right: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-phero__gen {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 34px;
  padding: 0 5px;
  border: 1px dashed var(--os-line-dash);
  border-radius: 999px;
  font-family: var(--os-font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.os-phero__gen-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--os-paper);
  box-shadow: 0 0 0 1px var(--os-line);
  font-family: var(--os-font-num);
  font-size: 11px;
  font-weight: 700;
  color: var(--os-ink);
}

.os-phero__gen-y { padding-right: var(--os-space-2xs); color: var(--os-muted); }

a.os-phero__gen:hover {
  border-color: transparent;
  background: var(--os-green-press);
  color: var(--os-paper);
}

a.os-phero__gen:hover .os-phero__gen-y { color: rgba(255, 255, 255, .75); }

.os-phero__gen.is-on {
  border-style: solid;
  border-color: transparent;
  background: var(--os-green-press);
  color: var(--os-paper);
}

.os-phero__gen.is-on .os-phero__gen-y { color: rgba(255, 255, 255, .75); }

.os-phero__lead {
  margin: var(--os-space-sm) 0 0;
  font-family: var(--os-font-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--os-ink);
}

.os-phero__intro {
  margin: var(--os-space-xs) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-phero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-xs);
  margin-top: var(--os-space-md);
}

.os-phero__cta .os-btn {
  gap: var(--os-space-2xs);
  padding: var(--os-space-xs) var(--os-space-sm);
  font-size: 14px;
  font-weight: 400;
}

.os-phero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-sm) 0;
  margin-top: var(--os-space-lg);
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
}

.os-phero__navlink {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  padding: 0 var(--os-space-xs);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--os-ink);
  text-decoration: none;
}

.os-phero__navlink:first-child { padding-left: 0; }

.os-phero__navlink + .os-phero__navlink { border-left: 1px solid var(--os-line); }

.os-phero__navlink:hover { color: var(--os-green-press); }

.os-phero__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--os-paper-3);
  font-family: var(--os-font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--os-muted);
  transition: background .13s, color .13s;
}

.os-phero__navlink:hover .os-phero__num {
  background: var(--os-gold);
  color: var(--os-ink);
}

@media (max-width: 1000px) {
  .os-phero__inner,
  .os-phero--photo .os-phero__inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .os-phero {
    padding: var(--os-space-sm) var(--os-space-sm) var(--os-space-md);
    border-radius: 0 0 20px 20px;
  }

  .os-phero__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--os-space-md);
  }

  .os-phero__navlink { flex: none; }
}

/* =========================================================
   ОПИСАНИЕ УСЛУГИ
   ========================================================= */

.os-desc { padding-block: var(--os-section) 0; }

.os-desc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--os-rail);
  gap: var(--os-gutter);
  align-items: start;
}

.os-desc__text p {
  margin: 0 0 var(--os-space-sm);
  font-size: 15px;
  line-height: 1.7;
  color: var(--os-muted);
}

.os-desc__text p:last-child { margin-bottom: 0; }

.os-desc__text a,
.os-why__tx a,
.os-why__facts a,
.os-specs__text a,
.os-specs__note a,
.os-sched__intro a,
.os-sched__note a,
.os-sched__go-text a,
.os-sched__name a,
.os-sched__sub a,
.os-sched__when a,
.os-sched__check a,
.os-chk__tx a,
.os-chk__note a,
.os-phero__lead a,
.os-phero__intro a,
.os-sec-s a,
.os-adv__name a,
.os-adv__text a,
.os-adv__sub a,
.os-cf__sub a,
.os-cards__tag a,
.os-cards__text a,
.os-steps__name a,
.os-steps__text a,
.os-flow__text a,
.os-text-sec__sub a,
.os-faq__a a {
  color: var(--os-ink);
  text-decoration: underline dashed var(--os-green-press);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .15s;
}

.os-desc__text a:hover,
.os-why__tx a:hover,
.os-why__facts a:hover,
.os-specs__text a:hover,
.os-specs__note a:hover,
.os-sched__intro a:hover,
.os-sched__note a:hover,
.os-sched__go-text a:hover,
.os-sched__name a:hover,
.os-sched__sub a:hover,
.os-sched__when a:hover,
.os-sched__check a:hover,
.os-chk__tx a:hover,
.os-chk__note a:hover,
.os-phero__lead a:hover,
.os-phero__intro a:hover,
.os-sec-s a:hover,
.os-adv__name a:hover,
.os-adv__text a:hover,
.os-adv__sub a:hover,
.os-cf__sub a:hover,
.os-cards__tag a:hover,
.os-cards__text a:hover,
.os-steps__name a:hover,
.os-steps__text a:hover,
.os-flow__text a:hover,
.os-text-sec__sub a:hover,
.os-faq__a a:hover { color: var(--os-green-press); }

/* Темная карточка с телефоном: общая часть template-parts/global/ask.php,
   ее рисует и блок описания, и боковая колонка листинга работ. Отступы,
   кегль телефона и поля кнопки вынесены в переменные: в узкой колонке
   карточка плотнее, а разметка и правила у нее одни. */
.os-ask {
  --os-ask-pad: var(--os-space-lg);
  --os-ask-phone: 30px;
  --os-ask-btn-pad: var(--os-space-lg);
  padding: var(--os-ask-pad);
  border-radius: var(--os-r-card);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(52, 171, 114, .38), transparent 62%),
    var(--os-ink);
  color: var(--os-paper);
}

.os-ask__title {
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.os-ask__text {
  margin: var(--os-space-xs) 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.os-ask__btn {
  width: 100%;
  margin-top: var(--os-space-md);
  padding-inline: var(--os-ask-btn-pad);
  justify-content: center;
  font-size: 14px;
}

.os-ask__btn svg { width: 16px; height: 16px; }

.os-ask__phone {
  display: block;
  margin-top: var(--os-space-md);
  text-align: center;
  text-decoration: none;
}

.os-ask__phone .os-phone__num { font-size: var(--os-ask-phone); letter-spacing: -.02em; color: var(--os-paper); }

@media (max-width: 1060px) {
  .os-desc__grid { grid-template-columns: minmax(0, 1fr); gap: var(--os-space-lg); }
}

/* =========================================================
   МОДЕЛИ МАРКИ
   ========================================================= */

.os-specs { padding-block: var(--os-section) 0; }

.os-specs__head { margin-bottom: var(--os-space-lg); }

.os-specs__head .os-sec-h { max-width: none; }

.os-specs__text { margin-top: var(--os-space-sm); }

.os-specs__text p {
  margin: 0 0 var(--os-space-sm);
  font-size: 15px;
  line-height: 1.7;
  color: var(--os-muted);
}

.os-specs__text p:last-child { margin-bottom: 0; }

.os-specs__note {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-top: var(--os-space-md);
  padding: var(--os-space-sm);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
}

.os-specs__note-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  color: var(--os-green-press);
}

.os-specs__note-ic svg { width: 18px; height: 18px; }

.os-specs__note-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-specs__note-text b { color: var(--os-on-paper); }

/* Врезка в тексте статьи: кегль ближе к основному тексту, значок
   держится у первой строки, а не по центру длинного абзаца. */
.os-specs__note--art { align-items: flex-start; }
.os-specs__note--art .os-specs__note-text { font-size: 15px; line-height: 1.6; padding-top: 4px; }

.os-specs__rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--os-gutter);
  border-top: 1px solid var(--os-ink);
}

.os-specs__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--os-space-sm);
  align-items: center;
  padding: var(--os-space-sm) 0;
  border-bottom: 1px dashed var(--os-green-line);
}

.os-specs__model { margin: 0; }

.os-specs__model-nm {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-specs__model-sub {
  display: block;
  margin-top: var(--os-space-3xs);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--os-muted);
}

/* Таблица шире двух колонок: строки карточками. На телефоне колонки
   идут стопкой, у каждой значок вместо заголовка; шапка остается
   для экранного диктора. Число колонок приходит в --os-n. */
.os-specs__table {
  --os-specs-cols: minmax(0, 240px) repeat(var(--os-n), minmax(0, 1fr));
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.os-specs__table tbody { display: block; }

.os-specs__thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.os-specs__tr {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  box-shadow: var(--os-shadow-md);
  transition: transform var(--os-duration-base) var(--os-ease), box-shadow var(--os-duration-base) var(--os-ease);
}

.os-specs__tr--head {
  margin-top: 0;
  padding: 0 28px var(--os-space-3xs);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.os-specs__table tbody .os-specs__tr:hover {
  transform: translateY(-3px);
  box-shadow: var(--os-shadow-lg);
}

.os-specs__th {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 0 28px;
  font-family: var(--os-font-text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: var(--os-ink);
}

.os-specs__th:first-child { padding-left: 0; }

.os-specs__th-ic,
.os-specs__td-ic {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--os-green-press);
}

.os-specs__th-ic { width: 22px; height: 22px; }

.os-specs__name {
  padding: 0;
  font-weight: 400;
  text-align: left;
}

.os-specs__td {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--os-line);
  font-family: var(--os-font-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-specs__strong { font-weight: 700; color: var(--os-ink); }

/* Мотор: крупный объем, серия, коды плашками и подпись. */
.os-specs__en {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
}

.os-specs__en-vol {
  font-family: var(--os-font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: .9;
  color: var(--os-ink);
}

.os-specs__en-t {
  display: flex;
  flex-direction: column;
}

.os-specs__en-fam {
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--os-ink);
}

.os-specs__en-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-size: 12.5px;
  color: var(--os-dim);
}

.os-specs__en-code,
.os-cf__code {
  position: relative;
  isolation: isolate;
  padding: 2px var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--os-ink);
}

.os-specs__en-code::before,
.os-cf__code::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--os-paper-3);
  transform: skewX(-12deg);
}

/* Масло: число и литровые канистры с долей заливки в --os-fill. */
.os-specs__oil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--os-space-xs);
}

.os-specs__oil-n {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.os-specs__oil-num {
  font-family: var(--os-font-title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-ink);
}

.os-specs__oil-pre,
.os-specs__oil-unit { font-size: 12.5px; color: var(--os-dim); }

.os-specs__cans { display: flex; gap: var(--os-space-3xs); }

.os-specs__can {
  position: relative;
  overflow: hidden;
  width: 14px;
  height: 18px;
  border-radius: 3px 3px 4px 4px;
  background: var(--os-paper-3);
}

.os-specs__can::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--os-fill, 0%);
  background: var(--os-green);
  transition: background var(--os-duration-fast);
}

.os-specs__tr:hover .os-specs__can::after { background: var(--os-green-press); }

@media (prefers-reduced-motion: reduce) {
  .os-specs__table tbody .os-specs__tr:hover { transform: none; }
}

@media (min-width: 1024px) {
  .os-specs__thead {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .os-specs__tr {
    grid-template-columns: var(--os-specs-cols);
    align-items: center;
    padding: var(--os-space-xs) 28px;
  }

  .os-specs__tr--head { padding: 0 28px var(--os-space-3xs); }

  .os-specs__td {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    margin: 0;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px dashed var(--os-line);
  }

  .os-specs__td-ic { display: none; }

  .os-specs__oil { flex-direction: column; align-items: flex-start; }
}

.os-specs__accent { color: var(--os-green-press); font-weight: 600; }

.os-specs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-specs__chip {
  padding: 6px var(--os-space-xs);
  border-radius: 100px;
  border: 1px solid var(--os-line);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-specs__chip.is-on {
  background: var(--os-green-soft);
  border-color: transparent;
  color: var(--os-green-press);
}

@media (max-width: 900px) {
  .os-specs__rows { grid-template-columns: 1fr; column-gap: 0; }
}

@media (max-width: 560px) {
  .os-specs__row { grid-template-columns: 1fr; gap: var(--os-space-2xs); }
}

/* =========================================================
   СТРАНИЦА КАТАЛОГА (марка, модель, раздел, услуга)
   ========================================================= */

.os-catalog-page {
  padding-block: var(--os-section) 0;
}

.os-catalog-page__title {
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
  margin: 0 0 var(--os-space-md);
}

.os-catalog-page__lead {
  font-size: var(--os-text-lg);
  color: var(--os-muted);
  margin: 0 0 var(--os-space-xl);
}

.os-catalog-page__groups {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xl);
}

.os-catalog-page__body {
  margin-top: var(--os-space-xl);
}

.os-catalog-page__empty {
  color: var(--os-muted);
  padding-block: var(--os-space-xl);
}

/* =========================================================
   БЛОКИ ПЕРЕЛИНКОВКИ КАТАЛОГА
   ========================================================= */

/* --- Перелинковка внизу страницы каталога --- */

.os-crosslinks-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-sm);
  margin-top: var(--os-space-2xl);
}

.os-cl {
  padding: var(--os-space-sm) var(--os-space-md) var(--os-space-md);
  border-radius: 22px;
  background: var(--os-tint-grad);
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .05), 0 18px 40px -30px rgba(20, 24, 30, .35);
}

.os-cl__head {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding-bottom: var(--os-space-xs);
  border-bottom: 1.5px dashed var(--os-line-dash);
}

.os-cl__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--os-paper);
  box-shadow: 0 0 0 1px var(--os-line);
}

.os-cl__logo img { width: 20px; height: 20px; object-fit: contain; }

/* У станции логотипа нет, в кружке стоит пин — он рисуется, а не грузится. */
.os-cl__logo--pin { color: var(--os-green); }
.os-cl__logo--pin svg { width: 18px; height: 18px; }

.os-cl__title {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--os-ink);
}

.os-cl__cnt {
  display: grid;
  place-items: center;
  margin-left: auto;
  min-width: 30px;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--os-paper);
  box-shadow: 0 0 0 1px var(--os-line);
  font-family: var(--os-font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
}

.os-cl__list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: var(--os-space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.os-cl__item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
}

.os-cl__model {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--os-space-sm);
  border-radius: 999px;
  font-family: var(--os-font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}

a.os-cl__model:hover { background: var(--os-green-press); color: var(--os-paper); }

.os-cl__gen {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-right: 5px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--os-tint);
  font-family: var(--os-font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--os-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.os-cl__model + .os-cl__gen { margin-left: 4px; }
.os-cl__item:has(.os-cl__gen) .os-cl__model { padding-right: var(--os-space-xs); }

/* Модель с тремя поколениями шире телефона: поколения уходят второй строкой
   внутри пилюли. Отступ слева у обертки, чтобы перенесенные не липли к краю,
   модель гасит его отрицательным отступом и стоит вровень с краем. */
@media (max-width: 700px) {
  .os-cl__item:has(.os-cl__gen) {
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 0 5px 5px;
    border-radius: 18px;
  }

  .os-cl__item:has(.os-cl__gen) .os-cl__model { margin-left: -5px; }
}
.os-cl__gen:hover { background: var(--os-green-press); color: var(--os-paper); }

.os-cl__item--current { background: var(--os-green-press); box-shadow: none; }
.os-cl__item--current .os-cl__model,
.os-cl__item--current .os-cl__brand,
.os-cl__item--current .os-cl__svc { color: var(--os-paper); cursor: default; }
.os-cl__item--current .os-cl__gen { background: rgba(255, 255, 255, .18); color: var(--os-paper); }
.os-cl__item--current .os-cl__gen:hover { background: var(--os-paper); color: var(--os-green-press); }
.os-cl__item--current .os-cl__logo { background: var(--os-paper); }
.os-cl__item--current .os-cl__brand small { color: rgba(255, 255, 255, .75); }

.os-cl__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 var(--os-space-sm) 0 6px;
  border-radius: 999px;
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.os-cl__brand .os-cl__logo { background: var(--os-tint); box-shadow: none; }

/* Пилюля без логотипа («Все марки» в поиске): отступ слева как справа. */
.os-cl__brand--bare { padding-left: var(--os-space-sm); }

.os-cl__brand small {
  margin-left: 2px;
  font-family: var(--os-font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
  transition: color .15s;
}

a.os-cl__brand:hover { background: var(--os-green-press); color: var(--os-paper); }
a.os-cl__brand:hover small { color: rgba(255, 255, 255, .75); }
a.os-cl__brand:hover .os-cl__logo { background: var(--os-paper); }

/* Высота минимальная, а не жесткая: длинное название на телефоне уходит
   во вторую строку, и межстрочное у нее свое, а не абзацное. */
.os-cl__svc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 15px 7px 11px;
  border-radius: 19px;
  font-family: var(--os-font-title);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.os-cl__svc svg { width: 17px; height: 17px; color: var(--os-green-press); transition: color .15s; }
a.os-cl__svc:hover { background: var(--os-green-press); color: var(--os-paper); }
a.os-cl__svc:hover svg { color: var(--os-paper); }

.os-cl__all,
.os-cl__here {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 36px;
  padding: 0 var(--os-space-sm);
  border: 1.5px dashed var(--os-line-dash);
  border-radius: 999px;
  font-family: var(--os-font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.os-cl__all svg { width: 14px; height: 14px; }

.os-cl__all:hover {
  border-color: transparent;
  background: var(--os-paper);
  color: var(--os-green-press);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
}

@media (max-width: 560px) {
  .os-cl { padding: 18px var(--os-space-sm); border-radius: 18px; }
  .os-cl__model { height: 34px; padding: 0 var(--os-space-xs); font-size: 13.5px; }
}

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ ШАПКИ
   ========================================================= */

.os-topbar {
  position: relative;
  z-index: 50;
}

.os-topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  min-height: 52px;
  font-size: var(--os-text-sm);
  color: var(--os-muted);
}

.os-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  flex: none;
}

.os-topbar__sep {
  width: 0;
  height: 16px;
  border-left: 1px dashed var(--os-green-line);
  flex: none;
}

/* --- Карусель акций --- */

.os-promo {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: 1 1 auto;
  min-width: 220px;
}

.os-promo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.os-promo__item[hidden] { display: none; }

.os-promo__item {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  white-space: nowrap;
  min-width: 0;
}

.os-promo__link {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.os-promo__link:hover .os-promo__text {
  color: var(--os-on-paper);
}

.os-promo__badge {
  flex: none;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 7px;
  background: var(--os-gold);
  color: var(--os-black);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: var(--os-text-xs);
  line-height: 1;
}

.os-promo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--os-text-sm);
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-promo__next {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--os-dim);
  cursor: pointer;
  transition: color var(--os-duration-fast) var(--os-ease),
              background var(--os-duration-fast) var(--os-ease);
}

.os-promo__next svg { width: 10px; height: 10px; }

.os-promo__next:hover {
  color: var(--os-green);
  background: var(--os-green-soft);
}

.os-promo__next:focus-visible {
  outline: 2px solid var(--os-green);
  outline-offset: 2px;
}

/* --- Мессенджеры --- */

.os-messengers {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
}

.os-messengers__link {
  display: grid;
  place-items: center;
  opacity: .85;
  transition: opacity var(--os-duration-fast) var(--os-ease),
              transform var(--os-duration-fast) var(--os-ease);
}

.os-messengers__link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.os-messengers__icon {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
}

.os-messengers__fallback {
  font-size: var(--os-text-xs);
  color: var(--os-muted);
}

/* --- Рейтинг --- */

.os-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity var(--os-duration-fast) var(--os-ease);
}

.os-rating:hover { opacity: .72; }

.os-rating__star {
  width: 15px;
  height: 15px;
  flex: none;
  fill: var(--os-gold);
}

.os-rating--compact .os-rating__star { width: 20px; height: 20px; }

.os-rating__value {
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: var(--os-text-sm);
  color: var(--os-on-paper);
}

.os-rating__label {
  font-size: var(--os-text-sm);
  color: var(--os-muted);
}

/* --- Режим работы сети --- */

.os-hours {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Линза светофора: стекло с бликом, поверх кольца Френеля, ореол отдельным слоем.
   Открыто: при загрузке линза один раз мерцает, дальше дышит только ореол.
   Анимируется opacity, размер и яркость самой линзы не меняются. */
.os-hours__dot {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  margin-right: var(--os-space-xs);
  border-radius: 50%;
  background: var(--os-lens-on);
  box-shadow: var(--os-lens-on-sh);
  animation: os-lens-flash .55s ease-out;
}

.os-hours__dot::before,
.os-hours__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.os-hours__dot::before { background: var(--os-lens-rings); }

.os-hours__dot::after {
  box-shadow: var(--os-lens-glow);
  animation: os-lens-breath 1.6s ease-in-out .55s infinite alternate;
}

@keyframes os-lens-flash {
  0%, 100% { opacity: 1; }
  30% { opacity: .25; }
  60% { opacity: 1; }
  80% { opacity: .6; }
}

/* Полный вдох и выдох — 3,2 с: полуцикл туда и обратно. */
@keyframes os-lens-breath {
  to { opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
  .os-hours__dot,
  .os-hours__dot::after { animation: none; }
}

.os-hours__until {
  margin-left: var(--os-space-3xs);
  color: var(--os-on-paper);
  font-weight: 700;
}

.os-hours--closed .os-hours__dot {
  background: var(--os-lens-off);
  box-shadow: var(--os-lens-off-sh);
  animation: none;
}

.os-hours--closed .os-hours__dot::after { content: none; }

/* --- Результаты поиска (search.php) ---
   Шапка страницы и колонка взяты у архивов: группа заголовков и .os-lst ниже по файлу. */

.os-results__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  min-height: 60px;
  padding: 6px 6px 6px 52px;
  border: 2px solid var(--os-line);
  border-radius: var(--os-r-lg);
  background: var(--os-paper);
  transition: border-color .15s, box-shadow .15s;
}

/* Строка поиска прайса без скрипта скрыта: фильтр работает только в браузере. */
.os-results__form[hidden] { display: none; }

.os-results__form:hover { border-color: #D2D5CE; }

.os-results__form:focus-within {
  border-color: var(--os-green);
  box-shadow: 0 0 0 4px var(--os-green-soft);
}

.os-results__form-icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: var(--os-muted);
  pointer-events: none;
}

.os-results__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: var(--os-text-lg);
  color: var(--os-on-paper);
  appearance: none;
}

.os-results__input::placeholder { color: var(--os-dim); font-weight: 500; }
.os-results__input:focus { outline: none; }
.os-results__input::-webkit-search-cancel-button { appearance: none; }

.os-results__clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--os-paper-2);
  color: var(--os-muted);
  cursor: pointer;
  transition: background .14s, color .14s;
}

.os-results__clear[hidden] { display: none; }
.os-results__clear svg { width: 16px; height: 16px; }
.os-results__clear:hover { background: var(--os-paper-3); color: var(--os-on-paper); }

.os-results__submit {
  flex: none;
  height: 44px;
  padding: 0 var(--os-space-md);
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-green);
  color: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .14s;
}

.os-results__submit:hover { background: var(--os-green-press); }

.os-results__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
}

.os-results__brands-cap {
  margin: 0;
  font-size: 13px;
  color: var(--os-muted);
}

.os-results__brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-results__group {
  padding-top: var(--os-space-xl);
  /* Якоря прайса: заголовок не уходит под липкую шапку. */
  scroll-margin-top: var(--os-header-h);
}

.os-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--os-space-sm);
  margin-bottom: var(--os-space-sm);
}

.os-results__h {
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: var(--os-text-2xl);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.os-results__n {
  margin-left: 4px;
  font-family: var(--os-font-num);
  font-weight: 500;
  font-size: var(--os-text-base);
  letter-spacing: 0;
  color: var(--os-dim);
}

.os-results__all {
  flex: none;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--os-green-press);
  text-decoration: none;
}

.os-results__all:hover { text-decoration: underline; }

.os-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-lg);
  overflow: hidden;
}

.os-results__item + .os-results__item { border-top: 1px solid var(--os-line); }

.os-results__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 4px var(--os-space-sm);
  align-items: center;
  padding: 14px 20px;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: background .14s;
}

.os-results__link:hover { background: var(--os-paper-2); }

.os-results__name {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
}

/* Найденное в выдаче поиска и на странице «Прайс»: цвет плюс жирность. */
.os-results__mark {
  background: transparent;
  color: var(--os-green-press);
  font-weight: 700;
}

.os-results__meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--os-space-2xs);
  font-size: 13px;
  line-height: 1.3;
}

.os-results__brand {
  font-weight: 700;
  color: var(--os-muted);
}

/* Капсула модели та же, что в блоке марок на главной (.os-model-chip). */
.os-results__model {
  padding: 6px var(--os-space-xs);
  border: 1px solid rgba(20, 24, 30, .07);
  border-radius: 100px;
  background: rgba(255, 255, 255, .72);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-on-paper);
}

.os-results__node { color: var(--os-muted); }

.os-results__go {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--os-paper-2);
  color: var(--os-ink);
  transition: background .25s;
}

.os-results__go svg { width: 16px; height: 16px; }
.os-results__link:hover .os-results__go { background: var(--os-gold); }

.os-results__pages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-3xs);
  padding-top: var(--os-space-md);
}

.os-results__pages .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--os-space-xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  color: var(--os-on-paper);
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.os-results__pages .page-numbers.current { background: var(--os-ink); border-color: var(--os-ink); color: var(--os-paper); }

.os-results__empty-text {
  margin: var(--os-space-xs) 0 var(--os-space-md);
  color: var(--os-muted);
}

@media (max-width: 640px) {
  .os-results__form { padding-left: 44px; }
  .os-results__form-icon { left: 16px; }
  .os-results__submit { padding: 0 var(--os-space-sm); }
  .os-results__link { padding: 12px 16px; }
}

/* --- Поиск в шапке. Стили перенесены из согласованного макета --- */

.os-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  margin-left: var(--os-space-sm);
}

.os-search__form {
  position: relative;
  display: flex;
  align-items: center;
}

.os-search__icon {
  position: absolute;
  left: var(--os-space-xs);
  width: 16px;
  height: 16px;
  color: var(--os-dim);
  pointer-events: none;
  z-index: 2;
}

.os-search__input {
  width: 280px;
  max-width: 100%;
  height: 34px;
  padding: 0 var(--os-space-sm) 0 36px;
  border: 1px solid var(--os-line);
  border-radius: 100px;
  background: var(--os-paper-2);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--os-on-paper);
  transition: width .22s ease, background var(--os-duration-fast), border-color var(--os-duration-fast);
}

.os-search__input::placeholder { color: var(--os-dim); }
.os-search__input:hover { border-color: #D2D5CE; }

.os-search__input:focus {
  width: 380px;
  outline: none;
  background: var(--os-paper);
  border-color: var(--os-green-line);
}

.os-search__panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 70;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: var(--os-space-sm);
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: 16px;
  box-shadow: 0 28px 56px -26px rgba(20, 24, 30, .40),
              0 2px 6px rgba(20, 24, 30, .05);
}

.os-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.os-search__chip {
  display: inline-block;
  padding: var(--os-space-2xs) var(--os-space-xs);
  border: 1px solid var(--os-line);
  border-radius: 100px;
  background: var(--os-paper-2);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: color .14s, border-color .14s, background .14s;
}

.os-search__chip:hover {
  color: var(--os-green-press);
  border-color: var(--os-green-line);
  background: var(--os-green-soft);
}

.os-search__section + .os-search__section { margin-top: var(--os-space-md); }

@media (max-width: 1279px) {
  .os-search__input { width: 180px; font-size: 12px; }
}

/* --- Выпадайка точек сети. Стили перенесены из согласованного макета --- */

.os-sto { position: relative; }

.os-sto__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  padding: var(--os-space-3xs) 0;
  border: none;
  border-radius: var(--os-r-sm);
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.os-sto__map {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--os-green);
  transition: color .15s;
}

.os-sto__label {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--os-on-paper);
  white-space: nowrap;
  transition: color .15s;
}

.os-sto__label b { color: var(--os-green); font-weight: 800; }
.os-sto__btn:hover .os-sto__label { color: var(--os-green-press); }

.os-sto__caret {
  width: 11px;
  height: 11px;
  color: var(--os-dim);
  transition: transform .2s, color .15s;
}

.os-sto.is-open .os-sto__caret { transform: rotate(180deg); }

.os-sto__btn:focus-visible {
  outline: 2px solid var(--os-green);
  outline-offset: 2px;
}

.os-panel.os-sto__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 60;
  width: min(660px, calc(100vw - 32px));
  padding: var(--os-space-2xs);
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: 18px;
  box-shadow: 0 30px 64px -28px rgba(20, 24, 30, .42),
              0 2px 6px rgba(20, 24, 30, .05);
}

.os-sto__panel .os-panel__foot {
  margin: var(--os-space-2xs) calc(var(--os-space-2xs) * -1) calc(var(--os-space-2xs) * -1);
}

.os-sto__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--os-space-3xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 639px) {
  .os-sto__list { grid-template-columns: 1fr; }
}

.os-sto__item {
  padding: var(--os-space-xs);
  border-radius: var(--os-r-md);
  transition: background .14s;
}

.os-sto__item:hover { background: var(--os-paper-2); }

.os-sto__link {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-xs);
  text-decoration: none;
}

.os-sto__pin {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  color: var(--os-green);
}

.os-sto__pin svg { width: 18px; height: 18px; }

.os-sto__name {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.15;
  color: var(--os-on-paper);
}

.os-sto__address {
  display: block;
  margin-top: var(--os-space-3xs);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-sto__tel {
  display: inline-block;
  margin-top: var(--os-space-2xs);
  margin-left: calc(32px + var(--os-space-xs));
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums lining-nums;
  transition: color .14s;
}

.os-sto__tel:hover { color: var(--os-green-press); }

.os-sto__shop {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-top: var(--os-space-xs);
  padding: var(--os-space-xs) var(--os-space-sm);
  border: 1px solid var(--os-green-line);
  border-radius: 13px;
  background: transparent;
  text-decoration: none;
  transition: .14s;
}

.os-sto__shop:hover { background: var(--os-paper-2); }

.os-sto__shop-pin {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--os-paper);
  color: var(--os-green);
}

.os-sto__shop-pin svg { width: 34px; height: 34px; }

.os-sto__shop-text { min-width: 0; flex: 1; }

.os-sto__shop-name {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-sto__badge {
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--os-ink);
  background: var(--os-gold);
  border: 1px solid var(--os-gold);
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 100px;
}

.os-sto__shop-address {
  display: block;
  margin-top: var(--os-space-3xs);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-sto__shop-phone {
  flex: none;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--os-ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-sto__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-sm);
  margin: var(--os-space-2xs) calc(var(--os-space-2xs) * -1) calc(var(--os-space-2xs) * -1);
  padding: var(--os-space-xs) var(--os-space-md);
  background: var(--os-paper-2);
  border-top: 1px solid var(--os-line);
  border-radius: 0 0 18px 18px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-sto__foot a {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--os-green-press);
  white-space: nowrap;
  text-decoration: none;
}

.os-sto__foot a:hover { text-decoration: underline; }

/* =========================================================
   ШАПКА. Правила перенесены из согласованного макета,
   изменены только имена селекторов
   ========================================================= */

.os-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--os-paper);
  transition: box-shadow .2s;
}

.os-site-header.is-stuck { box-shadow: 0 6px 18px -6px rgba(20, 24, 30, .22); }

/* --- Логотип --- */

.os-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--os-space-3xs);
  flex: none;
  text-decoration: none;
}

.os-logo__mark {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--os-on-paper);
}

.os-logo__accent { color: var(--os-green); font-weight: 800; }

.os-logo__desc {
  display: block;
  margin-top: var(--os-space-3xs);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .012em;
  color: var(--os-muted);
  white-space: nowrap;
}

/* --- Основная строка --- */

.os-menubar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  height: 76px;
  padding: 0 var(--os-space-sm) 0 var(--os-space-md);
  max-width: var(--os-shell);
  margin: 0 auto;
  min-width: 0;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card) var(--os-r-card) 0 0;
  transition: height .2s, border-radius .2s;
}

.os-site-header.is-stuck .os-menubar {
  height: 60px;
  border-radius: 0;
  border-color: transparent;
}

/* --- Навигация --- */

.os-nav {
  display: flex;
  align-items: center;
  gap: var(--os-space-3xs);
  margin: 0 auto;
  min-width: 0;
}

.os-nav__item {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 38px;
  padding: 0 var(--os-space-2xs);
  border: none;
  border-radius: var(--os-r-sm);
  background: none;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--os-on-paper);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.os-nav__item:hover { background: var(--os-paper-2); }

.os-nav__mark {
  height: 16px;
  width: auto;
  flex: none;
  display: block;
  align-self: center;
  object-fit: contain;
}

.os-nav__label {
  display: flex;
  align-items: center;
  height: 16px;
  line-height: 1;
}

.os-nav__caret {
  width: 10px;
  height: 10px;
  color: var(--os-black);
  transition: transform .2s, color .15s;
}

.os-drop.is-open > .os-nav__item,
.os-nav__item.is-current {
  background: var(--os-paper-2);
}

.os-drop.is-open > .os-nav__item .os-nav__caret {
  transform: rotate(180deg);
}

.os-nav__div {
  width: 0;
  height: 22px;
  border-left: 1px dashed var(--os-green);
  margin: 0 var(--os-space-2xs);
  flex: none;
}

/* --- Телефон и кнопка записи --- */

.os-phone {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.os-phone__num {
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--os-on-paper);
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  transition: color .15s;
}

.os-phone--sm .os-phone__num { font-size: 16px; }
.os-phone--lg .os-phone__num { font-size: 30px; letter-spacing: -.02em; }

.os-phone__num i { font-style: normal; color: var(--os-green); transition: color .15s; }
.os-phone:hover .os-phone__num,
.os-phone:hover .os-phone__num i { color: var(--os-green-press); }

.os-book {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  margin-left: var(--os-space-2xs);
  border-radius: 11px;
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 8px 18px -12px rgba(52, 171, 114, .95);
  transition: background .15s, transform .12s;
}

.os-book svg { width: 21px; height: 21px; }
.os-book:hover { background: var(--os-green-press); transform: translateY(-1px); }
.os-book:active { transform: translateY(0); }

/* --- Общая выпадающая панель --- */

.os-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: 18px;
  box-shadow: 0 30px 64px -28px rgba(20, 24, 30, .42),
              0 2px 6px rgba(20, 24, 30, .05);
}

.os-drop { position: relative; }

.os-models__link:hover { background: var(--os-paper-2); }

.os-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-sm);
  margin: 0;
  padding: var(--os-space-xs) var(--os-space-md);
  background: var(--os-paper-2);
  border-top: 1px solid var(--os-line);
  border-radius: 0 0 18px 18px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-panel__foot a {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--os-green-press);
  white-space: nowrap;
  text-decoration: none;
}

.os-panel__foot a:hover { text-decoration: underline; }

@media (max-width: 1279px) {
  .os-menubar { height: 58px; padding: 0 var(--os-space-sm); gap: var(--os-space-2xs); }
  .os-logo__desc { display: none; }
  .os-phone__num { font-size: 16px; }
  .os-book { width: 40px; height: 40px; }
  .os-book svg { width: 19px; height: 19px; }
}

.os-sto__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* =========================================================
   ТЕЛЕФОН: ШАПКА, НИЖНЯЯ ПАНЕЛЬ, ШТОРКИ, ПОИСК
   По ТЗ «Мобильная шапка» и эталону onlyskoda-mobile-shapka-v2.
   До 1023px вместо топбара и строки меню: акция, строка связи,
   липкая строка меню; внизу панель со шторками. На десктопе скрыто.
   ========================================================= */

.os-mtop,
.os-mbar,
.os-mdock { display: none; }

@media (max-width: 1023px) {
  .os-topbar,
  .os-menubar { display: none; }

  .os-mtop { display: block; }

  /* Липнет шапка целиком, а в ней на телефоне только строка меню. */
  .os-site-header {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .os-mbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--os-space-xs) var(--os-space-sm);
    border-top: 1px solid var(--os-line);
  }

  /* Место под панель: последний экран страницы не уходит под нее. */
  body { padding-bottom: calc(var(--os-dock-h) + env(safe-area-inset-bottom)); }

  .os-mdock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Слои телефона: шапка 100, затемнение 101, шторки 102, меню 103, панель 105. */
    z-index: 105;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 2px;
    padding: 6px var(--os-space-2xs) calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--os-line);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* --- Акция и строка связи --- */

.os-mtop__promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--os-space-xs) var(--os-space-sm) 0;
  padding: var(--os-space-xs) 14px;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-mtop__promo[hidden] { display: none; }

/* Желтый ценник — исключение из правила цвета по ТЗ мобильной шапки. */
.os-mtop__price {
  flex: none;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--os-gold);
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-ink);
}

.os-mtop__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.os-mtop__go { flex: none; width: 16px; height: 16px; color: var(--os-dim); }

.os-mtop__line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--os-space-xs) var(--os-space-sm);
}

.os-mtop__ms { display: flex; gap: 6px; flex: none; }

.os-mtop__msg { display: block; width: 34px; height: 34px; }
.os-mtop__msg img { display: block; width: 100%; height: 100%; }

.os-mtop__rate {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-mtop__rate b { font-family: var(--os-font-num); font-weight: 800; font-size: 15.5px; line-height: 1; }

.os-mtop__star { width: 16px; height: 16px; fill: var(--os-gold); }

.os-mtop__tel {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
  text-decoration: none;
  white-space: nowrap;
}

.os-mtop__tel i { font-style: normal; color: var(--os-green); }

/* --- Строка меню --- */

/* Ширина логотипа равна ширине подписи: колонка тянет оба по большему. */
.os-mbar__logo {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}

.os-mbar__mark {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 21.5px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--os-on-paper);
}

.os-mbar__desc {
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-title);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-muted);
  white-space: nowrap;
}

.os-mbar__sto,
.os-mbar__btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  text-decoration: none;
  cursor: pointer;
}

.os-mbar__sto {
  gap: 5px;
  padding: 0 10px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
}

.os-mbar__sto b { font-family: var(--os-font-num); font-weight: 800; font-size: 15px; line-height: 1; }

.os-mbar__sto-ic { width: 17px; height: 17px; color: var(--os-green); }

.os-mbar__btn { width: 44px; }
.os-mbar__btn svg { width: 20px; height: 20px; }

.os-mbar__btn--menu { background: var(--os-green); color: var(--os-paper); }
.os-mbar__btn--menu svg { width: 22px; height: 22px; }

/* Уже 375px логотип с подписью не помещается рядом с тремя кнопками. */
@media (max-width: 374px) {
  .os-mbar { gap: var(--os-space-3xs); }
  .os-mbar__sto { padding: 0 var(--os-space-2xs); }
  .os-mbar__btn { width: 40px; }
}

/* --- Нижняя панель --- */

.os-mdock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: background .2s;
}

.os-mdock__ic { width: 22px; height: 22px; color: var(--os-green-press); }

.os-mdock__btn[aria-expanded="true"] { background: var(--os-green-soft); color: var(--os-green-press); }

/* --- Шторка --- */

.os-sheet-ov {
  position: fixed;
  inset: 0;
  z-index: 101;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(15, 18, 19, .45);
  cursor: default;
}

.os-sheet-ov[hidden] { display: none; }

/* Под панелью: панель остается поверх и закрывает шторку повторным нажатием. */
.os-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 102;
  width: 100%;
  max-width: none;
  max-height: 82vh;
  margin: 0;
  padding: 10px var(--os-space-sm) calc(var(--os-dock-h) + var(--os-space-sm) + env(safe-area-inset-bottom));
  overflow: auto;
  border: 0;
  border-radius: var(--os-r-card) var(--os-r-card) 0 0;
  background: var(--os-paper);
  color: var(--os-on-paper);
  overscroll-behavior: contain;
  animation: os-sheet-in .35s cubic-bezier(.2, .8, .2, 1);
}

/* Ручка-полоска рисуется самой шторкой: держаться за нее нечем, это знак. */
.os-sheet::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: var(--os-line);
}

/* Форма записи длиннее прочих шторок: поднимается до низа шапки,
   чтобы кнопка отправки влезала на 375 × 667 без прокрутки. */
.os-sheet--rec {
  max-height: calc(100dvh - var(--os-header-h));
  background: var(--os-paper-3);
}

/* На десктопе запись открывают кнопки «Записаться» по всему сайту:
   там она окном по центру, вид окна сметы (.os-prices__modal). */
@media (min-width: 1024px) {
  .os-sheet--rec {
    top: 0;
    width: min(560px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: var(--os-space-lg);
    border: 1px solid var(--os-line);
    border-radius: var(--os-r-card);
    animation: none;
  }

  .os-sheet--rec::before { display: none; }
}

@keyframes os-sheet-in {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

.os-sheet__hd { display: flex; align-items: center; justify-content: space-between; gap: var(--os-space-xs); }

.os-sheet__t {
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
}

.os-sheet__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  cursor: pointer;
}

.os-sheet--rec .os-sheet__x { background: var(--os-paper); }

.os-sheet__x svg { width: 16px; height: 16px; }

.os-sheet__s {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-sheet__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  height: 48px;
  margin-top: 14px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-sheet__call svg { width: 18px; height: 18px; color: var(--os-green-press); }

/* «Написать»: строка на мессенджер. */
.os-sheet-msg {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--os-r-lg);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-sheet__s + .os-sheet-msg { margin-top: var(--os-space-sm); }

.os-sheet-msg__ic { flex: none; width: 44px; height: 44px; }

.os-sheet-msg__b { flex: 1; min-width: 0; }

.os-sheet-msg__name { display: block; font-family: var(--os-font-title); font-weight: 700; font-size: 16px; }

.os-sheet-msg__hint { display: block; margin-top: 2px; font-size: 12.5px; color: var(--os-dim); }

.os-sheet-msg__go { flex: none; width: 18px; height: 18px; color: var(--os-dim); }

/* «Адреса» */
.os-sheet-adr__tabs {
  display: flex;
  gap: var(--os-space-3xs);
  margin-top: 14px;
  padding: var(--os-space-3xs);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
}

.os-sheet-adr__tab {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: var(--os-r-sm);
  background: none;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--os-muted);
  cursor: pointer;
}

.os-sheet-adr__tab.is-on { background: var(--os-paper); color: var(--os-on-paper); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .15); }

.os-sheet-adr__map {
  height: 52vh;
  margin-top: var(--os-space-xs);
  overflow: hidden;
  border-radius: var(--os-r-lg);
  background: var(--os-tint-grad);
}

.os-sheet-adr__map[hidden],
.os-sheet-adr__list[hidden] { display: none; }

.os-sheet-adr__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.os-sheet-adr { padding: 14px 0; border-bottom: 1px solid var(--os-line); }
.os-sheet-adr:last-child { border-bottom: 0; }

.os-sheet-adr__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.os-sheet-adr__name {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15.5px;
  color: inherit;
  text-decoration: none;
}

.os-sheet-adr__name:hover { color: var(--os-green-press); }

/* Плашка без кружка: в ТЗ точек и кружков нет. Пустая до скрипта не видна. */
.os-sheet-adr__state { flex: none; margin-left: 0; border-radius: var(--os-r-sm); }
.os-sheet-adr__state:has(> :empty) { display: none; }

.os-sheet-adr__where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--os-space-2xs);
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--os-muted);
}

.os-sheet-adr__tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--os-paper-2);
  font-weight: 700;
  font-size: 11.5px;
}

.os-sheet-adr__hours { margin: 3px 0 0; font-size: 13px; color: var(--os-dim); }

.os-sheet-adr__acts { display: flex; gap: 6px; margin-top: var(--os-space-xs); }

.os-sheet-adr__nav,
.os-sheet-adr__call {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: var(--os-r-md);
  text-decoration: none;
}

.os-sheet-adr__nav {
  flex: 1;
  min-width: 0;
  gap: 6px;
  padding: 0 var(--os-space-2xs);
  border: 1px solid var(--os-line);
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--os-on-paper);
  white-space: nowrap;
}

.os-sheet-adr__nav img { flex: none; width: 18px; height: 18px; }

.os-sheet-adr__call { flex: none; width: 42px; background: var(--os-green); color: var(--os-paper); }
.os-sheet-adr__call svg { width: 18px; height: 18px; }

/* «Записаться»: бонус как в калькуляторе, поля из группы калькулятора. */
.os-sheet-rec__bonus { margin-top: 14px; }

.os-mrec { margin-top: 18px; }

.os-mrec__label {
  margin: 14px 0 var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 13px;
  color: var(--os-muted);
}

/* Желтая кнопка, пока нет согласия — серая и неактивная (initMobile). */
.os-mrec__submit {
  width: 100%;
  height: 56px;
  margin-top: var(--os-space-xs);
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-gold);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--os-ink);
  cursor: pointer;
  transition: background .2s;
}

.os-mrec__submit:disabled { background: var(--os-line); color: var(--os-dim); cursor: not-allowed; }

/* --- Меню на весь экран ---
   По эталону onlyskoda-mobile-menu: уровни сдвигаются вбок, нижняя
   панель остается поверх (у нее z-index выше). */

.os-mnav {
  position: fixed;
  inset: 0;
  z-index: 103;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--os-paper);
  color: var(--os-on-paper);
  animation: os-mnav-in .25s ease;
}

@keyframes os-mnav-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.os-mnav__lv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--os-paper);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.os-mnav__lv[hidden] { display: none; }
.os-mnav__lv.is-on { transform: none; }
.os-mnav__lv.is-past { transform: translateX(-30%); }

.os-mnav__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--os-space-2xs) var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
}

.os-mnav__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  cursor: pointer;
}

.os-mnav__btn svg { width: 18px; height: 18px; }

.os-mnav__tt { flex: 1; min-width: 0; margin: 0; }

.os-mnav__title { display: block; font-family: var(--os-font-title); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }

.os-mnav__note { display: block; margin-top: 2px; font-size: 12px; color: var(--os-dim); }

/* Рейтинг и режим сети под шапкой меню: компоненты топбара, его кегль и цвет. */
.os-mnav__meta {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs) var(--os-space-sm);
  padding: var(--os-space-xs) var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
  font-size: var(--os-text-sm);
  color: var(--os-muted);
}

.os-mnav__bd {
  flex: 1;
  overflow: auto;
  padding: var(--os-space-3xs) var(--os-space-sm) calc(var(--os-dock-h) + var(--os-space-md) + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.os-mnav__cap {
  margin: 18px 0 10px;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-mnav__go { flex: none; width: 16px; height: 16px; color: var(--os-dim); }

.os-mnav__brands { display: grid; grid-template-columns: 1fr 1fr; gap: var(--os-space-2xs); margin-top: var(--os-space-sm); }

.os-mnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 var(--os-space-xs);
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--os-on-paper);
  text-decoration: none;
  cursor: pointer;
}

.os-mnav__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.os-mnav__logo img { width: 30px; height: 30px; object-fit: contain; }

.os-mnav__brand-t { flex: 1; text-align: left; }

.os-mnav__list {
  display: grid;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
}

.os-mnav__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: var(--os-space-xs) 14px var(--os-space-xs) var(--os-space-sm);
  border: 0;
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: var(--os-on-paper);
  text-decoration: none;
  cursor: pointer;
}

.os-mnav__row + .os-mnav__row { border-top: 1px solid var(--os-line); }

.os-mnav__row--svc { font-weight: 600; font-size: 15.5px; }

.os-mnav__row-t { flex: 1; }

.os-mnav__n {
  flex: none;
  min-width: 26px;
  padding: 3px 7px;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  color: var(--os-muted);
}

.os-mnav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--os-space-2xs); }

.os-mnav__cell {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-mnav__models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--os-space-2xs); margin-top: 14px; }

.os-mnav__model {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 6px;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-mnav__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  min-height: 50px;
  margin-top: var(--os-space-sm);
  padding: 0 var(--os-space-sm);
  border-radius: var(--os-r-md);
  background: var(--os-green);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  color: var(--os-paper);
  text-decoration: none;
}

.os-mnav__all svg { flex: none; width: 16px; height: 16px; }

.os-mnav__foot { margin: var(--os-space-xs) 0 0; font-size: 13px; text-align: center; color: var(--os-dim); }

/* --- Поиск на весь экран --- */

.os-msearch {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--os-paper);
  color: var(--os-on-paper);
}

.os-msearch[open] { display: flex; flex-direction: column; }

.os-msearch::backdrop { background: var(--os-paper); }

.os-msearch__hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--os-space-xs) var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
}

.os-msearch__back {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  cursor: pointer;
}

.os-msearch__back svg { width: 20px; height: 20px; }

.os-msearch__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 6px 0 var(--os-space-xs);
  border: 1.5px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
}

.os-msearch__field:focus-within { border-color: var(--os-green); }

/* 16px: меньший кегль iOS увеличивает при фокусе. */
.os-msearch__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--os-on-paper);
  -webkit-appearance: none;
  appearance: none;
}

.os-msearch__input::-webkit-search-cancel-button { display: none; }

.os-msearch__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  color: var(--os-muted);
  cursor: pointer;
}

.os-msearch__clear[hidden] { display: none; }
.os-msearch__clear svg { width: 14px; height: 14px; }

.os-msearch__go {
  flex: none;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-green);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--os-paper);
  cursor: pointer;
}

.os-msearch__body { flex: 1; overflow: auto; padding: var(--os-space-3xs) var(--os-space-sm) var(--os-space-md); }

.os-msearch__empty[hidden],
.os-msearch__res[hidden] { display: none; }

.os-msearch__cap {
  margin: 18px 0 10px;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-msearch__pop { display: flex; flex-wrap: wrap; gap: var(--os-space-2xs); margin: 0; padding: 0; list-style: none; }

.os-msearch__brands-l { display: block; margin-top: 14px; font-size: 13px; color: var(--os-muted); }

.os-msearch__brands { display: grid; grid-template-columns: repeat(5, auto); gap: 6px; margin-top: var(--os-space-2xs); }

.os-msearch__brand {
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--os-on-paper);
  cursor: pointer;
}

.os-msearch__brand.is-on { border-color: var(--os-green); background: var(--os-green); color: var(--os-paper); }

.os-msearch__hd2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }

.os-msearch__group { font-family: var(--os-font-title); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }

.os-msearch__group b,
.os-msearch__alt b { margin-left: 4px; font-family: var(--os-font-num); font-weight: 600; font-size: 15px; color: var(--os-dim); }

.os-msearch__alts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--os-space-2xs); }

.os-msearch__alt {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--os-muted);
  cursor: pointer;
}

.os-msearch__list { overflow: hidden; border: 1px solid var(--os-line); border-radius: var(--os-r-lg); }

.os-msearch__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--os-space-xs) 14px var(--os-space-sm);
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-msearch__row + .os-msearch__row { border-top: 1px solid var(--os-line); }

.os-msearch__row-b { flex: 1; min-width: 0; }

.os-msearch__row-t { display: block; font-family: var(--os-font-title); font-weight: 700; font-size: 16px; }

.os-msearch__row-t mark { background: none; color: var(--os-green); }

.os-msearch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-2xs); margin-top: 6px; font-size: 13px; color: var(--os-dim); }

.os-msearch__meta-brand { font-weight: 700; color: var(--os-muted); }

.os-msearch__meta-model {
  padding: 3px 9px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  font-weight: 700;
  color: var(--os-on-paper);
}

.os-msearch__go-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
}

.os-msearch__go-ic svg { width: 15px; height: 15px; }

/* Желтая стрелка активной строки — исключение из правила цвета по ТЗ мобильной шапки. */
.os-msearch__row:hover .os-msearch__go-ic,
.os-msearch__row:focus-visible .os-msearch__go-ic { background: var(--os-gold); }

.os-msearch__all {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: var(--os-space-sm);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-msearch__none { margin: var(--os-space-md) 0 0; font-size: 14px; color: var(--os-muted); }

/* --- Меню услуг. Правила перенесены из макета --- */

.os-panel.os-catalog-menu[hidden] { display: none; }

.os-panel.os-catalog-menu {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 1fr auto;
  width: min(880px, calc(100vw - 48px));
  padding: 0;
  left: 50%;
  right: auto;
  transform: translateX(calc(-50% + var(--os-panel-shift, 0px)));
  overflow: hidden;
  min-height: 0;
}

.os-catalog-menu__rail {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-3xs);
  padding: var(--os-space-sm) var(--os-space-xs);
  background: var(--os-paper-2);
  border-right: 1px solid var(--os-line);
  border-radius: 18px 0 0 18px;
  grid-row: 1 / 3;
}

.os-catalog-menu__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  width: 100%;
  padding: var(--os-space-2xs) var(--os-space-xs);
  border: none;
  border-radius: var(--os-r-md);
  background: none;
  color: var(--os-on-paper);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: .15s;
}

.os-catalog-menu__tab svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--os-dim);
  transition: color .15s;
}

.os-catalog-menu__tab-title {
  flex: 1;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.os-catalog-menu__tab-count {
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1;
  color: var(--os-dim);
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: 20px;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  font-variant-numeric: tabular-nums lining-nums;
  transition: .15s;
}

.os-catalog-menu__tab:hover { background: rgba(255, 255, 255, .7); }

.os-catalog-menu__tab.is-on {
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .06),
              0 10px 20px -16px rgba(20, 24, 30, .3);
}

.os-catalog-menu__tab.is-on svg { color: var(--os-green); }

.os-catalog-menu__tab.is-on .os-catalog-menu__tab-count {
  color: var(--os-ink);
  background: var(--os-gold);
  border-color: transparent;
}

.os-catalog-menu__body {
  padding: var(--os-space-md);
  min-width: 0;
}

.os-catalog-menu__head { margin: 0 0 20px; }

.os-catalog-menu__title {
  display: block;
  margin-bottom: var(--os-space-2xs);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  color: var(--os-ink);
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-catalog-menu__title:hover { color: var(--os-green-press); }

.os-catalog-menu__head span {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-catalog-menu__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--os-space-3xs) var(--os-space-md);
  min-width: 0;
}

.os-catalog-menu__list a {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-xs);
  padding: var(--os-space-2xs) var(--os-space-xs);
  border-radius: 10px;
  text-decoration: none;
  transition: background .14s;
}

.os-catalog-menu__list a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: var(--os-space-2xs);
  border-radius: 50%;
  background: var(--os-green-line);
  transition: background .14s, transform .14s;
}

.os-catalog-menu__list a::after {
  content: "→";
  margin-left: auto;
  margin-top: var(--os-space-3xs);
  flex: none;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-green);
  opacity: 0;
  transform: translateX(-5px);
  transition: .15s;
}

.os-catalog-menu__list a:hover { background: var(--os-paper-2); }
.os-catalog-menu__list a:hover::before { background: var(--os-green); transform: scale(1.15); }
.os-catalog-menu__list a:hover::after { opacity: 1; transform: none; }

.os-catalog-menu__name {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: var(--os-on-paper);
}

.os-catalog-menu__hit {
  flex: none;
  align-self: flex-start;
  margin-top: var(--os-space-3xs);
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 5px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.os-catalog-menu__foot {
  grid-column: 2;
  grid-row: 2;
  padding: var(--os-space-xs) var(--os-space-md);
  border-top: 1px solid var(--os-line);
}

.os-catalog-menu__all {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: var(--os-green-press);
  text-decoration: none;
}

.os-catalog-menu__all i { font-style: normal; transition: transform .15s; }
.os-catalog-menu__all:hover i { transform: translateX(3px); }

/* --- Панель моделей марки. Правила перенесены из макета --- */

.os-panel.os-panel--models {
  width: min(520px, calc(100vw - 32px));
  padding: var(--os-space-sm) var(--os-space-sm) 0;
}

.os-models__head {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-bottom: var(--os-space-sm);
}

.os-models__logo {
  height: 32px;
  width: auto;
  flex: none;
  display: block;
  object-fit: contain;
}

.os-models__brand {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-models__brand:hover { color: var(--os-green-press); }

.os-models__hint {
  display: block;
  margin-top: var(--os-space-3xs);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: var(--os-dim);
}

.os-models__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--os-space-2xs);
  max-height: min(50vh, 340px);
  overflow-y: auto;
}

.os-models__grid a {
  padding: var(--os-space-2xs);
  border: 1px solid transparent;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: var(--os-muted);
  text-align: center;
  text-decoration: none;
  transition: .14s;
}

.os-models__grid a:hover {
  color: var(--os-paper);
  background: var(--os-green);
  border-color: var(--os-green);
}

.os-panel--models .os-panel__foot {
  margin: var(--os-space-sm) calc(var(--os-space-sm) * -1) 0;
}

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

/* --- Панель списка ссылок у пункта меню с детьми. Правила перенесены из макета --- */

/* Ширина по самой длинной строке: не уже пункта меню, не шире 290px. */
.os-panel.os-panel--links {
  width: max-content;
  min-width: 100%;
  max-width: min(290px, calc(100vw - 32px));
  padding: var(--os-space-2xs);
}

.os-panel--links a {
  display: block;
  padding: var(--os-space-xs);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: .14s;
}

.os-panel--links a small {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: var(--os-dim);
}

.os-panel--links a:hover { background: var(--os-paper-2); }

/* =========================================================
   БЛОК «ВЫБЕРИТЕ СВОЮ МАШИНУ»
   Правила из макета. Два отступления: кнопка «Все модели»,
   при наведении желтая.
   ========================================================= */

.os-brands-pick {
  padding-block: var(--os-section) 0;
}

.os-sec-h {
  font-family: var(--os-font-title);
  font-size: clamp(26px, 6.6vw, 38px);
  line-height: 1.08;
  color: var(--os-on-paper);
  text-wrap: balance;
  max-width: 22ch;
  margin-block: 0 var(--os-space-xs);
}

.os-sec-h--sm { font-size: clamp(22px, 3.4vw, 28px); }

/* Страницы каталога и услуг: заголовки разделов одним кеглем и во всю
   ширину. Главная и прочие страницы по макету. Колонка «Почему в сервисе» в той же группе:
   рядом с самопроверкой она h3, отдельным блоком h2, вид у нее один. */
.single-os_catalog .os-sec-h,
.single-os_service .os-sec-h,
.single-os_catalog .os-faq__title,
.single-os_service .os-faq__title,
.single-os_catalog .os-calc__title,
.single-os_service .os-calc__title,
.single-os_catalog .os-fos__title,
.single-os_service .os-fos__title,
.single-os_catalog .os-why__t,
.single-os_service .os-why__t {
  max-width: none;
  font-size: 28px;
}

.os-sec-s {
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--os-muted);
  margin-top: var(--os-space-xs);
  max-width: 62ch;
}

.os-mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.os-mark::after {
  content: "";
  position: absolute;
  left: -.08em;
  right: -.14em;
  bottom: .02em;
  height: .42em;
  background: var(--os-green);
  opacity: .3;
  border-radius: 4px;
  transform: skewX(-12deg) rotate(-1deg);
  z-index: -1;
}

.os-brands-pick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--os-space-sm);
  margin-top: var(--os-space-md);
  min-width: 0;
}

.os-brands-pick__grid > * { min-width: 0; }

/* Поверхность общая с карточками причин (.os-reason). */
.os-brand-col,
.os-reason {
  border-radius: 22px;
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 52%),
    radial-gradient(120% 100% at 100% 100%, rgba(52,171,114,.07) 0%, rgba(52,171,114,0) 55%),
    linear-gradient(168deg, rgba(238,239,235,.82), rgba(226,228,222,.66));
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 0 0 1px rgba(20,24,30,.07),
    0 16px 36px -28px rgba(20,24,30,.4);
}

.os-brand-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--os-space-md) var(--os-space-md) var(--os-space-sm);
  transition: .2s;
}

.os-brand-col:hover {
  transform: translateY(-4px);
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(52,171,114,.09) 0%, rgba(52,171,114,0) 55%),
    linear-gradient(168deg, rgba(243,244,240,.88), rgba(231,233,227,.72));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 0 0 1px rgba(20,24,30,.08),
    0 34px 60px -30px rgba(20,24,30,.5);
}

.os-brand-col__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding-bottom: var(--os-space-sm);
  margin-bottom: var(--os-space-2xs);
  border-bottom: 1px dashed var(--os-green-line);
  text-decoration: none;
}

.os-brand-col__head img {
  height: 28px;
  width: auto;
  flex: none;
  object-fit: contain;
}

.os-brand-col__name {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
  transition: color .14s;
}

.os-brand-col__head:hover .os-brand-col__name { color: var(--os-green-press); }

.os-brand-col__count {
  margin-left: auto;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border: 1px solid var(--os-line);
  border-radius: 20px;
  background: var(--os-paper);
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  color: var(--os-dim);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-brand-col__models {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.os-model-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  padding: var(--os-space-3xs) var(--os-space-2xs) var(--os-space-3xs) var(--os-space-3xs);
  border: 1px solid rgba(20, 24, 30, .07);
  border-radius: 100px;
  background: rgba(255, 255, 255, .72);
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}

.os-model-chip:hover {
  background: var(--os-paper);
  border-color: var(--os-green-line);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(20, 24, 30, .4);
}

.os-model-chip a {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  min-width: 0;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 100px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: color .13s;
}

.os-model-chip a:hover { color: var(--os-green-press); }

.os-brand-col__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
  height: 44px;
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  box-shadow: 0 2px 6px -2px rgba(20, 24, 30, .18);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: .15s;
}

.os-brand-col__all svg {
  width: 14px;
  height: 14px;
  transition: transform .13s;
}

.os-brand-col__all:hover {
  background: var(--os-gold);
  color: var(--os-ink);
  box-shadow: none;
}

.os-brand-col__all:hover svg { transform: translateX(3px); }

@media (max-width: 1023px) {
  .os-brands-pick__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .os-brands-pick__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ПОДВАЛ. Правила перенесены из макета
   ========================================================= */

.os-footer { padding: 20px; }

.os-footer__inner {
  max-width: var(--os-shell);
  margin: 0 auto;
  padding: 52px 44px 32px;
  border-radius: 28px;
  color: rgba(255, 255, 255, .72);
  background:
    radial-gradient(80% 120% at 94% 0%, rgba(52,171,114,.22) 0%, rgba(14,16,19,0) 52%),
    linear-gradient(155deg, #14201a 0%, #101613 42%, #0d0f12 100%);
}

.os-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr;
  gap: 40px;
}

.os-footer__logo {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-paper);
}

.os-footer__logo b { color: var(--os-green); font-weight: 800; }

.os-footer__desc {
  margin: var(--os-space-sm) 0 0;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  max-width: 30ch;
}

.os-footer__desc + .os-footer__desc { margin-top: 14px; }

.os-footer__soc {
  display: flex;
  gap: var(--os-space-xs);
  margin-top: 20px;
}

.os-footer__soc a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--os-paper);
  transition: transform .15s, opacity .15s;
}

.os-footer__soc a:hover { transform: translateY(-2px); opacity: .85; }
.os-footer__soc img { width: 28px; height: 28px; display: block; }

.os-footer__tg {
  margin-top: 18px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .5);
}

.os-footer__tg b { color: var(--os-gold); font-weight: 700; }
.os-footer__tg a { color: rgba(255, 255, 255, .5); }
.os-footer__tg a:hover { color: var(--os-green); }

.os-footer__cap {
  margin-bottom: 18px;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.os-footer__nav a {
  display: block;
  padding: 6px 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: .13s;
}

.os-footer__nav a:hover { color: var(--os-green); }

.os-footer__addr {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-xs);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  text-decoration: none;
}

.os-footer__addr:last-child { border-bottom: 0; }

.os-footer__pin {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--os-green);
}

.os-footer__pin svg { width: 20px; height: 20px; }

.os-footer__addr-text { min-width: 0; }

.os-footer__addr-text b {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--os-paper);
}

.os-footer__addr-text span {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .5);
}

.os-footer__phone {
  display: block;
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-paper);
  text-decoration: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.os-footer__phone i { font-style: normal; color: var(--os-green); }

.os-footer__note {
  margin: var(--os-space-2xs) 0 0;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .5);
}

.os-footer__msgr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--os-space-xs);
}

.os-footer__msgr a {
  display: grid;
  place-items: center;
  opacity: .9;
  transition: transform .15s, opacity .15s;
}

.os-footer__msgr a:hover { transform: translateY(-2px); opacity: 1; }
.os-footer__msgr img { width: 35px; height: 35px; display: block; border-radius: 9px; }

.os-footer__work { margin-top: 22px; }

.os-footer__work b {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--os-paper);
}

.os-footer__work span {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .5);
}

.os-footer__bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr;
  gap: 40px;
  align-items: start;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.os-footer__legal { grid-column: 1 / 3; }

.os-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs) 0;
  margin-bottom: var(--os-space-sm);
}

.os-footer__legal-links a {
  margin-right: var(--os-space-md);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  color: var(--os-paper);
  text-decoration: none;
  transition: .13s;
}

.os-footer__legal-links a:hover { color: var(--os-green); }

.os-footer__legal p {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
  max-width: 60ch;
}

.os-footer__req .os-footer__cap { margin-bottom: var(--os-space-xs); color: var(--os-paper); }

.os-footer__req p {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
}

.os-footer__tm {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
  max-width: 34ch;
}

.os-footer__wide {
  margin: 22px 0 0;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
}

.os-footer__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .4);
}

.os-footer__hoog { color: rgba(255, 255, 255, .55); text-decoration: none; transition: .14s; }
.os-footer__hoog b { color: var(--os-green); font-weight: 700; }
.os-footer__hoog:hover { color: var(--os-green); }

@media (max-width: 1023px) {
  .os-footer__inner { padding: 36px 24px 24px; }
  .os-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .os-footer__bottom { grid-template-columns: 1fr; gap: 28px; }
  .os-footer__legal { grid-column: auto; }
}

@media (max-width: 600px) {
  .os-footer { padding: 12px; }
  .os-footer__top { grid-template-columns: 1fr; }
  .os-footer__end { flex-direction: column; align-items: flex-start; }
}

.os-model-chip__gens {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-3xs);
  flex: none;
}

.os-gen-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--os-space-2xs);
  border-radius: 7px;
  background: var(--os-paper-2);
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--os-dim);
  text-decoration: none;
  transition: .13s;
}

.os-gen-chip:hover { background: var(--os-green); color: var(--os-paper); }

.os-model-chip:has(.os-model-chip__gens) { padding-right: var(--os-space-3xs); }

/* =========================================================
   БАННЕР COOKIE. В макете его нет, собран из токенов темы.
   На телефоне плашка во всю ширину у нижнего края, от 768px — карточка
   в левом нижнем углу. Кнопка всегда справа от текста.
   ========================================================= */

.os-cookie {
  position: fixed;
  left: var(--os-space-2xs);
  right: var(--os-space-2xs);
  /* До 1023px внизу панель связи: плашка стоит над ней. */
  bottom: calc(var(--os-dock-h) + var(--os-space-2xs) + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-2xs) var(--os-space-xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  box-shadow: var(--os-shadow-pop);
  animation: os-cookie-in var(--os-duration-base) var(--os-ease);
}

.os-cookie[hidden] { display: none; }

.os-cookie__text {
  flex: 1;
  margin: 0;
  font-family: var(--os-font-text);
  font-size: 11px;
  line-height: 1.3;
}

.os-cookie__link {
  color: var(--os-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-cookie__link:hover { color: var(--os-green-press); }

.os-cookie__btn {
  flex: none;
  height: 32px;
  padding: 0 var(--os-space-sm);
  border-radius: var(--os-r-sm);
  font-size: var(--os-text-xs);
}

@keyframes os-cookie-in {
  from { opacity: 0; transform: translateY(var(--os-space-sm)); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
  .os-cookie {
    left: var(--os-space-md);
    right: auto;
    max-width: 560px;
    gap: var(--os-space-sm);
    padding: var(--os-space-xs) var(--os-space-sm);
    border-radius: var(--os-r-lg);
  }

  .os-cookie__text { font-size: var(--os-text-xs); }

  .os-cookie__btn { height: 36px; font-size: var(--os-text-sm); }
}

@media (min-width: 1024px) {
  .os-cookie { bottom: calc(var(--os-space-md) + env(safe-area-inset-bottom)); }
}

/* =========================================================
   ПЕРВЫЙ ЭКРАН. Правила перенесены из макета
   ========================================================= */

.os-card {
  position: relative;
  max-width: var(--os-shell);
  margin: 0 auto;
  border: 1px solid var(--os-line);
  border-top: none;
  border-radius: 0 0 var(--os-r-card) var(--os-r-card);
  background: var(--os-paper);
  box-shadow: 0 2px 4px rgba(20,24,30,.04), 0 30px 60px -34px rgba(20,24,30,.34);
}

.os-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 524px;
  gap: 44px;
  align-items: center;
  min-height: 600px;
  padding: 48px 44px;
  overflow: hidden;
}

.os-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--os-ink);
}

.os-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.os-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,16,20,.95) 0%, rgba(14,16,20,.86) 34%, rgba(14,16,20,.46) 58%, rgba(14,16,20,.78) 100%),
    linear-gradient(0deg, rgba(14,16,20,.55), transparent 55%);
}

.os-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: 30px;
}

.os-hero__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: .005em;
  font-family: var(--os-font-title);
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.06;
  color: var(--os-paper);
  text-wrap: balance;
  /* Ширина в em, не в ch: ch — ширина нуля текущего шрифта, и при подмене
     запасного на Onest заголовок перестроился бы и сдвинул первый экран. */
  max-width: 12.54em;
  overflow-wrap: anywhere;
}

.os-hero__title em { font-style: normal; color: var(--os-green); }

.os-hero__sub {
  margin: 32px 0 0;
  max-width: 31em;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: #B9BEC7;
  text-wrap: pretty;
}

.os-hero__row {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  margin-top: 48px;
  max-width: 700px;
}

.os-guarantee {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  /* Сжимается до ширины экрана: подпись под сроком переносится. */
  flex: 0 1 auto;
  min-width: 0;
  padding: var(--os-space-sm) var(--os-space-md);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.os-guarantee__chip {
  position: absolute;
  top: -9px;
  left: 20px;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 6px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.os-guarantee__icon { flex: none; display: grid; place-items: center; }
.os-guarantee__icon svg { width: 26px; height: 26px; color: var(--os-green); }

.os-guarantee__text {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xs);
  min-width: 0;
}

.os-guarantee__text b {
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--os-paper);
  white-space: nowrap;
}

.os-guarantee__text b i {
  font-style: normal;
  color: rgba(255, 255, 255, .42);
  margin: 0 var(--os-space-2xs);
}

.os-guarantee__text > span {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .6);
}

/* --- Правая карточка --- */

.os-glass {
  position: relative;
  z-index: 2;
  align-self: center;
  width: auto;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--os-r-card);
  background: linear-gradient(180deg, rgba(20, 23, 28, .62), rgba(14, 16, 20, .72));
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 44px 90px -46px rgba(0, 0, 0, .9),
              inset 0 1px 0 rgba(255, 255, 255, .08);
}

.os-glass__h {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--os-paper);
  overflow-wrap: anywhere;
}

.os-glass__s {
  margin-top: var(--os-space-2xs);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: #A7ADB6;
}

.os-btabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--os-space-3xs);
  margin-top: var(--os-space-sm);
  padding: var(--os-space-3xs);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
}

.os-btab {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--os-r-sm);
  background: none;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: #A7ADB6;
  cursor: pointer;
  transition: .15s;
}

.os-btab:hover { color: var(--os-paper); background: rgba(255, 255, 255, .07); }

.os-btab.is-on {
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 8px 18px -10px rgba(52, 171, 114, .9);
}

.os-rows-wrap {
  display: grid;
  margin-top: var(--os-space-xs);
  overflow: hidden;
}

.os-rows {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  visibility: hidden;
}

.os-rows.is-on {
  visibility: visible;
  animation: os-rows-in .3s cubic-bezier(.2,.7,.2,1) both;
}

.os-glass[data-dir="prev"] .os-rows.is-on {
  animation-name: os-rows-in-prev;
}

@keyframes os-rows-in {
  from { opacity: 0; transform: translate3d(32px, 0, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes os-rows-in-prev {
  from { opacity: 0; transform: translate3d(-32px, 0, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .os-rows.is-on { animation: none; }
}

.os-row {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: .15s;
}

.os-row:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
.os-row:nth-last-child(-n+2) { border-bottom: 0; }
.os-row:hover { background: rgba(255, 255, 255, .06); }

.os-row__icon { flex: none; color: var(--os-green); opacity: .9; transition: .15s; }
.os-row__icon svg { width: 21px; height: 21px; }
.os-row:hover .os-row__icon { opacity: 1; transform: translateY(-1px); }

.os-row__title {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--os-paper);
}

.os-row__note {
  display: block;
  margin-top: var(--os-space-3xs);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: #9298A1;
}

.os-row--all .os-row__icon svg { width: 17px; height: 17px; }
.os-row--all .os-row__title { color: var(--os-green); }
.os-row--all:hover .os-row__title { text-decoration: underline; text-underline-offset: 3px; }

.os-glass__book {
  display: grid;
  place-items: center;
  height: 52px;
  margin-top: var(--os-space-md);
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .15s, transform .12s;
}

.os-glass__book:hover {
  background: var(--os-gold-press);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

/* --- Зеленая полоса --- */

.os-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--os-green);
  border-radius: 0 0 var(--os-r-card) var(--os-r-card);
  min-width: 0;
}

.os-strip > * { min-width: 0; }

.os-strip__cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  text-decoration: none;
  transition: background .15s;
}

.os-strip__cell:first-child { border-left: 0; }
.os-strip__cell:hover { background: rgba(255, 255, 255, .08); }

.os-strip__title {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--os-paper);
}

.os-strip__line {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px var(--os-space-2xs);
}

.os-strip__price {
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  color: var(--os-paper);
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.os-strip__note {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 1240px) { .os-glass { max-width: 524px; } }
@media (max-width: 1000px) { .os-glass { max-width: 560px; } }

@media (max-width: 900px) {
  .os-hero { grid-template-columns: 1fr; min-height: 0; padding: 32px 24px; gap: 32px; }
  .os-hero__copy { padding-top: 24px; }
  .os-glass { max-width: none; width: 100%; padding: 24px 16px; }
  .os-strip { grid-template-columns: 1fr 1fr; }
  .os-strip__cell:nth-child(-n+2) { border-top: 0; }
  .os-strip__cell:nth-child(odd) { border-left: 0; }
}

@media (max-width: 600px) {
  .os-rows-wrap { grid-template-columns: 1fr; }
  .os-rows { grid-template-columns: 1fr; }
  .os-row:nth-child(odd) { border-right: 0; }
  .os-row:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .os-row:last-child { border-bottom: 0; }
  .os-strip { grid-template-columns: 1fr; }
  .os-strip__cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .os-strip__cell:first-child { border-top: 0; }
}

/* =========================================================
   ПОДБОР МАРКА, МОДЕЛЬ, ПОКОЛЕНИЕ. Правила из макета
   ========================================================= */

.os-picker { padding-block: var(--os-section) 0; }

.os-picker__wrap {
  position: relative;
  max-width: var(--os-shell);
  margin: 0 auto;
  padding: 32px 44px;
  border-radius: var(--os-r-card);
}

.os-picker__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--os-r-card);
  background:
    radial-gradient(120% 130% at 88% 0%, var(--os-green-line) 0%, rgba(22,24,29,0) 58%),
    linear-gradient(180deg, #1B1E24 0%, #131519 100%);
}

.os-picker__bg::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,171,114,.16), transparent 66%);
}

.os-picker__logo {
  position: absolute;
  height: 64px;
  width: auto;
  pointer-events: none;
  filter: grayscale(1) invert(1) brightness(1.7);
  opacity: .05;
}

.os-picker__logo--1 { right: 6%;  top: 14%;    transform: rotate(-8deg); }
.os-picker__logo--2 { right: 20%; bottom: 12%; transform: rotate(6deg);  height: 56px; }
.os-picker__logo--3 { right: 33%; top: 22%;    transform: rotate(5deg);  height: 58px; }
.os-picker__logo--4 { right: 12%; bottom: 44%; transform: rotate(-5deg); height: 62px; }
.os-picker__logo--5 { right: 27%; top: 58%;    transform: rotate(-7deg); height: 54px; }
.os-picker__logo--6 { right: 41%; bottom: 18%; transform: rotate(8deg);  height: 50px; }
.os-picker__logo--7 { right: 2%;  bottom: 8%;  transform: rotate(4deg);  height: 58px; }
.os-picker__logo--8 { right: 44%; top: 6%;     transform: rotate(-4deg); height: 48px; }

.os-picker__in { position: relative; z-index: 1; }

.os-picker__h {
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-title);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: var(--os-paper);
}

.os-flip {
  display: inline-grid;
  text-align: left;
  vertical-align: baseline;
  color: var(--os-green);
}

.os-flip u { grid-area: 1 / 1; text-decoration: none; visibility: hidden; }

.os-flip > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.os-flip > span.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.os-flip a { color: inherit; text-decoration: none; }
.os-flip a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .os-flip > span { transition: none; }
}

.os-picker__box {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.8fr auto;
  margin-top: var(--os-space-sm);
  background: var(--os-paper);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.os-sel { position: relative; border-left: 1px solid var(--os-line); }
.os-sel:first-child { border-left: 0; }

.os-sel__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-sm) var(--os-space-md);
  border: none;
  border-radius: 20px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .14s;
}

.os-sel:first-child .os-sel__btn { border-radius: 20px 0 0 20px; }
.os-sel__btn:hover { background: var(--os-paper-2); }
.os-sel__btn:disabled { cursor: not-allowed; opacity: .42; }
.os-sel__btn:disabled:hover { background: transparent; }

.os-sel__text { flex: 1; min-width: 0; }

.os-sel__label {
  display: block;
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-sel__value {
  display: block;
  margin-top: var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  color: var(--os-on-paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-sel__value.is-empty { color: var(--os-dim); font-weight: 500; }

.os-sel__caret {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--os-dim);
  transition: transform .16s;
}

.os-sel.is-open .os-sel__caret { transform: rotate(180deg); color: var(--os-green-press); }

.os-sel__list {
  position: absolute;
  top: calc(100% + 4px);
  left: -1px;
  right: -1px;
  z-index: 70;
  max-height: 262px;
  overflow-y: auto;
  padding: var(--os-space-2xs);
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: 16px;
  box-shadow: 0 30px 64px -28px rgba(0,0,0,.55), 0 2px 6px rgba(20,24,30,.06);
}

.os-sel__list::-webkit-scrollbar { width: 10px; }

.os-sel__list::-webkit-scrollbar-track {
  margin: 6px 0;
  border-radius: 3px;
  border: 3px solid transparent;
  background: var(--os-line);
  background-clip: content-box;
}

.os-sel__list::-webkit-scrollbar-thumb {
  border-radius: 3px;
  border: 3px solid transparent;
  background: var(--os-green);
  background-clip: content-box;
}

.os-sel__list[hidden] { display: none; }

.os-sel__list button {
  display: block;
  width: 100%;
  padding: var(--os-space-xs);
  border: none;
  border-radius: 10px;
  background: none;
  text-align: left;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--os-on-paper);
  cursor: pointer;
  transition: .13s;
}

.os-sel__list button:hover { background: var(--os-paper-2); color: var(--os-green-press); }
.os-sel__list button.is-on { background: var(--os-green-soft); color: var(--os-green-press); }

.os-sel__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  /* В одной колонке на телефоне высоту строки сетки задает сама кнопка. */
  min-height: 52px;
  margin: var(--os-space-2xs);
  padding: 0 32px;
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(255, 216, 79, .95);
  transition: background .18s, transform .14s, box-shadow .18s;
}

.os-sel__go:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-sel__go:active { transform: translateY(0); }

.os-sel__go svg { width: 17px; height: 17px; transition: transform .14s; }
.os-sel__go:hover svg { transform: translateX(3px); }

.os-sel__go[aria-disabled="true"] {
  background: var(--os-paper-2);
  color: var(--os-dim);
  box-shadow: none;
  pointer-events: none;
}

.os-picker__offer {
  margin-top: var(--os-space-lg);
  max-width: 56em;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--os-paper);
}

.os-picker__offer mark {
  position: relative;
  z-index: 0;
  padding: 0 .18em;
  background: none;
  color: var(--os-ink);
  font-weight: 700;
  white-space: nowrap;
}

.os-picker__offer mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -.06em;
  bottom: -.06em;
  border-radius: 5px;
  background: var(--os-gold);
  transform: skewX(-9deg) rotate(-.6deg);
}

.os-picker__offer-note {
  display: block;
  margin-top: var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #A7ADB6;
}

@media (max-width: 900px) {
  .os-picker__wrap { padding: 24px 20px; }
  .os-picker__box { grid-template-columns: 1fr 1fr; }
  .os-sel:nth-child(3),
  .os-sel:nth-child(4) { border-left: 0; border-top: 1px solid var(--os-line); }
  .os-sel__go { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .os-picker__box { grid-template-columns: 1fr; }
  .os-sel { border-left: 0; border-top: 1px solid var(--os-line); }
  .os-sel:first-child { border-top: 0; }
}

/* =========================================================
   ТОЧКИ СЕТИ НА КАРТЕ. Правила из макета
   ========================================================= */

.os-geo { padding-block: var(--os-section) 0; }

.os-geo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: var(--os-space-md);
}

.os-geo__num { flex: none; text-align: right; }

.os-geo__num b {
  display: block;
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--os-on-paper);
}

.os-geo__num span {
  display: block;
  margin: 6px 0 0 auto;
  max-width: 16ch;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-geo__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper);
  box-shadow: 0 30px 60px -38px rgba(20, 24, 30, .34);
}

.os-geo__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--os-line);
}

.os-geo__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--os-space-sm) 18px;
  border-bottom: 1px solid var(--os-line);
}

.os-geo__cap {
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-geo__list-body {
  padding: 0; /* заливка активного пункта идет во всю ширину и высоту списка, без зазоров */
  overflow-y: auto;
  max-height: 560px;
}

.os-geo__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-xs);
  width: 100%;
  padding: var(--os-space-xs);
  border: none;
  background: none;
  font-family: var(--os-font-text); /* у button шрифт не наследуется от body */
  text-align: left;
  cursor: pointer;
  transition: background .14s;
}

.os-geo__item:hover { background: var(--os-paper-2); }
.os-geo__item.is-on { background: var(--os-grey-soft); }

.os-geo__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--os-paper-2);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 12px;
  color: var(--os-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-geo__item.is-on .os-geo__n { background: var(--os-green); color: var(--os-paper); }

.os-geo__body { min-width: 0; flex: 1; }

.os-geo__name {
  display: block;
  padding-right: var(--os-space-md); /* место под стрелку */
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-geo__item.is-on .os-geo__name { color: var(--os-black); }

.os-geo__meta {
  display: flex;
  align-items: baseline;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-geo__address { min-width: 0; }

.os-geo__metro {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-left: auto; /* станция прижата к правому краю, адрес остается слева */
  flex: none;
}

.os-geo__live {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--os-green);
}

.os-geo__live--off { background: var(--os-dim); }

.os-geo__badge {
  display: inline-block;
  margin-top: var(--os-space-2xs);
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 6px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
}

.os-geo__go {
  position: absolute;
  top: var(--os-space-xs);
  right: var(--os-space-xs);
  color: var(--os-green);
  opacity: 0;
  transition: opacity .14s;
}

.os-geo__go svg { width: 16px; height: 16px; }
.os-geo__item.is-on .os-geo__go { opacity: 1; }

/* --- Карта --- */

.os-geo__map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--os-paper-2);
}

.os-geo__canvas { position: absolute; inset: 0; }
.os-geo__canvas iframe { width: 100%; height: 100%; border: 0; display: block; }

.os-geo__stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--os-space-xl);
  text-align: center;
  color: var(--os-muted);
}

.os-geo__pop {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  width: 320px;
  max-width: calc(100% - 44px);
  padding: 18px;
  border: 1px solid var(--os-line);
  border-radius: 18px;
  background: var(--os-paper);
  box-shadow: 0 30px 60px -26px rgba(20, 24, 30, .5);
}

.os-geo__pop-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.os-geo__pop-top b {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  color: var(--os-on-paper);
}

.os-geo__pop-badge {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--os-gold);
  color: var(--os-black);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}

.os-geo__pop-badge[hidden] { display: none; }

.os-geo__pop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-geo__pop-row[hidden] { display: none; }
.os-geo__pop-row svg { width: 15px; height: 15px; flex: none; color: var(--os-green); }
.os-geo__pop-ic--off { display: none; }

.os-geo__pop-row--hours { align-items: flex-start; }
.os-geo__pop-row--hours svg { margin-top: 1px; }

.os-geo__pop-hours {
  font-family: var(--os-font-num);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-geo__pop-hours-line { display: block; }

.os-geo__state {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-3xs);
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--os-green-line);
  border-radius: 999px;
  background: var(--os-green-soft);
  color: var(--os-green-press);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.os-geo__state[hidden] { display: none; }

.os-geo__state--closed {
  border-color: var(--os-line);
  background: var(--os-paper-2);
  color: var(--os-muted);
}

.os-geo__pop-phone {
  display: block;
  margin-top: 14px;
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
  text-decoration: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.os-geo__pop-btns {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--os-space-2xs);
  margin-top: 14px;
}

.os-geo__book,
.os-geo__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--os-space-xs);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: .14s;
}

.os-geo__book { background: var(--os-green); color: var(--os-paper); }
.os-geo__book:hover { background: var(--os-green-press); }

.os-geo__nav {
  border: 1px solid var(--os-line);
  background: var(--os-paper);
  color: var(--os-on-paper);
}

.os-geo__nav:hover { border-color: var(--os-green-line); color: var(--os-green-press); }
.os-geo__nav[hidden] { display: none; }

@media (max-width: 1023px) {
  .os-geo__grid { grid-template-columns: 1fr; }
  .os-geo__list { border-right: 0; border-bottom: 1px solid var(--os-line); }
  .os-geo__list-body { max-height: none; overflow-y: visible; }
  .os-geo__head { flex-direction: column; gap: var(--os-space-sm); }
  .os-geo__num { text-align: left; }
  .os-geo__num span { margin-left: 0; }
  .os-geo__map { min-height: 0; aspect-ratio: 1 / 1; }
  .os-geo__pop { position: static; width: auto; max-width: none; margin: var(--os-space-sm); }
}

.os-sec-h em { font-style: normal; color: var(--os-green); }

/* =========================================================
   О сервисе
   ========================================================= */

.os-about { padding-block: var(--os-section) 0; }

.os-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--os-gutter);
  align-items: start;
}

.os-about__claim {
  margin-top: 20px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-about__text { margin-top: var(--os-space-md); }

.os-about__text p {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--os-on-paper);
}

.os-about__text p:last-child { margin-bottom: 0; }
.os-about__text b { font-weight: 700; }

.os-about__link {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 48px;
  margin-top: var(--os-space-md);
  padding: 0 var(--os-space-md);
  border: 1.5px solid var(--os-line);
  border-radius: 100px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}

.os-about__link:hover { border-color: var(--os-green); color: var(--os-green-press); }
.os-about__link svg { width: 16px; height: 16px; transition: transform .14s; }
.os-about__link:hover svg { transform: translateX(3px); }

.os-about__rule {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: var(--os-space-md) 0;
}

.os-about__rule + .os-about__rule { border-top: 1px dashed var(--os-green-line); }

.os-about__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 12px 24px -12px rgba(52, 171, 114, .9);
}

.os-about__icon svg { width: 26px; height: 26px; }

.os-about__rule--dark .os-about__icon {
  background: var(--os-ink);
  box-shadow: 0 12px 24px -12px rgba(22, 24, 29, .7);
}

.os-about__rule-title {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-about__rule-title em { font-style: normal; font-weight: 800; color: var(--os-green-press); }

.os-about__rule--dark .os-about__rule-title em {
  color: var(--os-ink);
  border-bottom: 2px solid var(--os-ink);
}

.os-about__rule-text {
  display: block;
  max-width: 36em;
  margin-top: var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-about__rule-text em { font-style: normal; font-weight: 700; color: var(--os-on-paper); }

.os-about__rule-text a {
  color: var(--os-on-paper);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px dashed var(--os-green-line);
  text-decoration: none;
  transition: color .13s, border-color .13s;
}

.os-about__rule-text a:hover { color: var(--os-green-press); border-bottom-color: var(--os-green-press); }

.os-about__right--js .os-about__rule {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: var(--os-rule-delay, 0s);
}
.os-about__right--js .os-about__rule.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .os-about__right--js .os-about__rule { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1180px) {
  .os-about__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Мастера и директор
   ========================================================= */

.os-staff { padding-block: var(--os-section) 0; }

.os-staff__layout {
  display: grid;
  grid-template-columns: var(--os-span-3) minmax(0, 1fr);
  gap: var(--os-gutter);
  align-items: stretch;
  margin-top: var(--os-space-md);
}

/* На странице станции колонки директора нет: правила сети стоят на главной. */
.os-staff__layout--solo { grid-template-columns: minmax(0, 1fr); }

/* --- карточка директора --- */

.os-staff__dir {
  display: flex;
  flex-direction: column;
  padding: var(--os-space-md);
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: radial-gradient(110% 130% at 88% 8%, var(--os-green-line) 0%, rgba(22, 24, 29, 0) 62%) var(--os-ink);
}

/* У директора фото еще нет: пустая плитка стоит на подложке. */
.os-staff__dir-photo--stub { background: var(--os-paper-3); }

.os-staff__dir-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Портрет в рост: квадрат по центру срезал бы макушку. */
  object-position: center 15%;
  border-radius: var(--os-r-md);
}

.os-staff__dir-body { flex: 1; display: flex; flex-direction: column; }

.os-staff__dir-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-green);
}

.os-staff__dir-title {
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--os-paper);
}

.os-staff__dir-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.os-staff__dir-rules li {
  position: relative;
  padding-left: 22px;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

.os-staff__dir-rules li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--os-paper);
}

.os-staff__dir-sign {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--os-font-title);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, .6);
}

/* --- зона команды --- */

/* Колонка столбиком: у плашки «Написать директору» margin-top: auto,
   и ее низ совпадает с низом карточки директора. */
.os-staff__team {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Нижнее поле ленты гасится не до нуля: между карточками и плашкой 16px. */
.os-staff__team > .os-staff__wrap { margin-bottom: calc(-32px + var(--os-space-sm)); }

.os-staff__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--os-space-sm);
}

.os-staff__h {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: clamp(26px, 6.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-staff__sub {
  max-width: 46em;
  margin: var(--os-space-2xs) 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-staff__sub em { font-style: normal; font-weight: 700; color: var(--os-green); }

.os-staff__nav { display: flex; gap: var(--os-space-2xs); flex: none; }

.os-staff__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--os-line);
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-on-paper);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.os-staff__btn:hover:not(:disabled) {
  background: var(--os-paper-2);
  border-color: var(--os-green-line);
  color: var(--os-green-press);
}

.os-staff__btn:disabled { opacity: .4; cursor: not-allowed; }
.os-staff__btn svg { width: 18px; height: 18px; }
.os-staff__btn--prev svg { transform: rotate(180deg); }

/* Поля со всех сторон — место под подъем карточки и ее тень: контейнер
   скроллится, и без них у крайних карточек срезало бы рамку. Снизу 32px,
   ровно под тень. Отрицательные отступы гасят поля обратно, чтобы ряд
   стоял вровень с колонкой директора и не вылезал за ее края.
   Плавность прокрутки задает initStaff в scrollBy, не CSS: вместе с
   прищелкиванием scroll-behavior: smooth давал плавный доезд ленты
   при первой раскладке, Chrome считал его прокруткой и не отдавал LCP. */
.os-staff__wrap {
  margin: -8px -8px -32px;
  padding: 8px 8px 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.os-staff__wrap::-webkit-scrollbar { display: none; }

.os-staff__track { display: flex; gap: var(--os-space-sm); }

.os-staff__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

/* Без колонки директора ряд шире, и в него встает четвертая карточка. */
.os-staff__layout--solo .os-staff__card { flex-basis: calc((100% - 48px) / 4); }

.os-staff__card[hidden] { display: none; }

/* Наведение как у остальных карточек сети: подъем и нейтральная тень,
   зеленой обводки в проекте нет нигде. */
.os-staff__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4);
}

/* --- фото --- */

.os-staff__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--os-paper-3);
}

.os-staff__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.os-staff__card:hover .os-staff__photo { transform: scale(1.06); }

/* Фотографии еще нет: серая подложка и силуэт чуть темнее ее.
   Пустая плитка читалась бы как ошибка загрузки. */
.os-staff__photo--stub {
  display: grid;
  place-items: center;
  color: var(--os-dim);
}

.os-staff__photo--stub svg { width: 64px; height: 64px; }

/* Желтый здесь не кнопка записи, а метка ролика: так в макете клиента. */
.os-staff__vid {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--os-gold);
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: var(--os-ink);
}

.os-staff__vid-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-ink);
}

.os-staff__vid-icon svg { width: 11px; height: 11px; }

/* Стаж стоит слева: правый угол занят плашкой ролика. */
.os-staff__exp {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: var(--os-ink);
}

/* --- подпись --- */

.os-staff__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.os-staff__name {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--os-on-paper);
}

/* Ссылка растянута на карточку: кликается вся плитка, а в разметке
   переход один. Поэтому станция в подвале — текст, не ссылка. */
.os-staff__name-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-staff__name-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.os-staff__card:hover .os-staff__name-link { color: var(--os-green-press); }

/* Должности в базе строчными: это подпись под именем, а не заголовок.
   В карточке первая буква поднимается до прописной оформлением. */
.os-staff__role::first-letter { text-transform: uppercase; }

.os-staff__role {
  display: block;
  margin-top: 3px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--os-muted);
}

/* Метки идут одной строкой: лишние прячет initChips и ставит «+N».
   Без скрипта строка просто обрезана по ширине карточки. Строка стоит
   и у того, у кого меток нет: иначе подвалы соседних карточек в ряду
   расходятся по высоте. */
.os-staff__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  height: 24px;
  margin: 10px 0 12px;
  overflow: hidden;
  white-space: nowrap;
}

.os-staff__tag {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--os-paper-2);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.25;
  color: var(--os-muted);
}

.os-staff__tag--more {
  background: var(--os-green);
  font-weight: 600;
  color: var(--os-paper);
}

.os-staff__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-2xs);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--os-line);
}

.os-staff__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-staff__loc svg { width: 14px; height: 14px; flex: none; }
.os-staff__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.os-staff__go {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--os-paper-2);
  color: var(--os-ink);
  transition: background .25s;
}

.os-staff__go svg { width: 15px; height: 15px; }

.os-staff__card:hover .os-staff__go { background: var(--os-gold); }

/* --- плашка «написать директору» --- */

.os-staff__cta {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  margin-top: auto;
  padding: 12px 12px 12px 16px;
  border-radius: var(--os-r-lg);
  background: var(--os-paper-2);
}

.os-staff__cta-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--os-green);
  color: var(--os-paper);
}

.os-staff__cta-icon svg { width: 24px; height: 24px; }

.os-staff__cta-text {
  flex: 1;
  min-width: 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-staff__cta-btn {
  flex: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .os-staff__card:hover { transform: none; }
}

@media (max-width: 1100px) {
  .os-staff__layout { grid-template-columns: 1fr; gap: var(--os-space-lg); }
  .os-staff__dir { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--os-space-md); align-items: start; }
  .os-staff__dir-photo { align-self: start; }
  .os-staff__dir-tag { margin-top: 0; }
}

@media (max-width: 900px) {
  .os-staff__card,
  .os-staff__layout--solo .os-staff__card { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 680px) {
  .os-staff__dir { grid-template-columns: 1fr; gap: 20px; }
  .os-staff__dir-photo { max-width: 200px; }
  .os-staff__cta { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: var(--os-space-sm); }
  .os-staff__cta-icon { margin: 0 auto; }
  .os-staff__cta-text { white-space: normal; }
}

@media (max-width: 560px) {
  .os-staff__card,
  .os-staff__layout--solo .os-staff__card { flex-basis: 82%; }
  .os-staff__nav { display: none; }
}

/* =========================================================
   Видеоотзывы
   ========================================================= */

.os-video { padding-block: var(--os-section) 0; }

.os-video__wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--os-space-sm);
  margin-top: var(--os-space-md);
}

.os-video__card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(20, 24, 30, .5);
  transition: transform .22s, box-shadow .22s;
}

.os-video__card--blank { background: var(--os-paper-3); }

.os-video__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}

.os-video__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 20, .28) 0%, rgba(14, 16, 20, 0) 32%,
    rgba(14, 16, 20, 0) 46%, rgba(14, 16, 20, .86) 100%);
}

.os-video__card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -28px rgba(20, 24, 30, .6); }
.os-video__card:hover img { transform: scale(1.05); }

.os-video__play {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--os-paper);
  transform: translate(-50%, -50%);
  transition: background .2s, border-color .2s, transform .2s;
}

.os-video__play svg { width: 20px; height: 20px; margin-left: 4px; }

.os-video__card:hover .os-video__play {
  background: var(--os-green);
  border-color: var(--os-green);
  transform: translate(-50%, -50%) scale(1.08);
}

.os-video__time {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(14, 16, 20, .65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--os-paper);
}

.os-video__meta { position: absolute; left: var(--os-space-sm); right: var(--os-space-sm); bottom: var(--os-space-sm); z-index: 2; }

.os-video__name {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--os-paper);
}

.os-video__note {
  display: block;
  margin-top: 4px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .75);
}

.os-video__channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-sm);
  aspect-ratio: 9 / 16;
  padding: var(--os-space-md);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(52, 171, 114, .30) 0%, rgba(22, 24, 29, 0) 55%),
    linear-gradient(180deg, #1B1E24 0%, #131519 100%);
  transition: transform .22s;
}

.os-video__channel:hover { transform: translateY(-4px); }

.os-video__channel-logo {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 26px rgba(0, 119, 255, .45));
  transition: transform .2s;
}

.os-video__channel-logo svg { width: 64px; height: 64px; border-radius: 16px; }
.os-video__channel:hover .os-video__channel-logo { transform: scale(1.08); }

.os-video__channel b {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--os-paper);
}

.os-video__channel span {
  max-width: 15em;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: #A7ADB6;
}

/* --- окно с проигрывателем --- */

.os-video__modal {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: none;
  border-radius: var(--os-r-card);
  background: transparent;
  overflow: visible;
}

.os-video__modal::backdrop { background: rgba(12, 14, 18, .82); }

.os-video__frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: var(--os-ink);
}

.os-video__modal[data-tall] { width: min(92vw, 420px); }
.os-video__modal[data-tall] .os-video__frame { aspect-ratio: 9 / 16; }

.os-video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.os-video__close {
  position: absolute;
  top: -48px;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--os-paper);
  cursor: pointer;
  transition: background .15s;
}

.os-video__close:hover { background: rgba(255, 255, 255, .24); }
.os-video__close svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .os-video__card:hover,
  .os-video__channel:hover { transform: none; }
  .os-video__card:hover img { transform: none; }
}

@media (max-width: 1180px) {
  .os-video__wrap { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .os-video__wrap {
    display: flex;
    gap: var(--os-space-xs);
    margin: var(--os-space-md) calc(-1 * var(--os-pad)) 0;
    padding: 0 var(--os-pad) var(--os-space-2xs);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .os-video__card,
  .os-video__channel { flex: 0 0 62vw; scroll-snap-align: start; }

  .os-video__close { top: -44px; }
}

/* =========================================================
   Кейсы
   ========================================================= */

.os-cases { padding-block: var(--os-section) 0; }

.os-cases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--os-space-md);
}

.os-cases__all {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: none;
  height: 48px;
  padding: 0 var(--os-space-md);
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .15s, transform .12s, box-shadow .15s;
}

.os-cases__all:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-cases__all:active { transform: translateY(0); }
.os-cases__all svg { width: 15px; height: 15px; transition: transform .14s; }
.os-cases__all:hover svg { transform: translateX(3px); }

.os-cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--os-gutter); }

.os-cases__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: var(--os-ink);
  color: var(--os-paper);
  transition: transform .16s, box-shadow .18s;
}

/* Карточка, отсеянная фильтром листинга: display:flex выше перебил бы hidden. */
.os-cases__card[hidden] { display: none; }

.os-cases__card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(20, 24, 30, .55); }

/* Фото занимает карточку до черты с характеристиками, текст лежит поверх него.
   Высота тянется за самой длинной карточкой ряда, отсюда flex: 1. */
.os-cases__top {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 20px;
  background: var(--os-ink-2);
}

.os-cases__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Затемнение снизу вверх: на светлой фотографии текст иначе не читается. */
.os-cases__top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 24, 29, .15) 0%,
    rgba(22, 24, 29, .55) 42%,
    rgba(22, 24, 29, .94) 100%
  );
  pointer-events: none;
}

.os-cases__tag,
.os-cases__price {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-ink);
}

.os-cases__tag { left: 14px; background: var(--os-paper); }

.os-cases__price {
  right: 14px;
  background: var(--os-gold);
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
}

.os-cases__stub-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .22);
}

.os-cases__stub-icon svg { width: 30px; height: 30px; }

.os-cases__body { position: relative; z-index: 1; }

.os-cases__h {
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--os-paper);
}

.os-cases__h-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

/* Растягивается на блок с фото и текстом: подвал лежит ниже и кликается
   собственной ссылкой круга. */
.os-cases__h-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }

.os-cases__card:hover .os-cases__h-link { color: var(--os-gold); }

.os-cases__desc {
  margin: var(--os-space-2xs) 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.os-cases__desc b { font-weight: 700; color: var(--os-paper); }

.os-cases__foot {
  display: flex;
  align-items: center;
  /* Характеристик может не быть вовсе — тогда круг остается у правого края. */
  justify-content: flex-end;
  gap: var(--os-space-xs);
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.os-cases__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 auto 0 0;
  font-family: var(--os-font-text);
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .55);
}

.os-cases__spec b { font-weight: 700; color: var(--os-paper); }

.os-cases__go {
  display: grid;
  flex: none;
  position: relative;
  z-index: 3;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--os-gold);
  color: var(--os-ink);
  transition: background .14s;
}

.os-cases__go svg { width: 16px; height: 16px; transition: transform .14s; }
.os-cases__card:hover .os-cases__go { background: var(--os-gold-press); }
.os-cases__card:hover .os-cases__go svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .os-cases__card:hover { transform: none; }
}

@media (max-width: 960px) {
  .os-cases__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .os-cases__head { flex-direction: column; align-items: stretch; }
  .os-cases__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Так это выглядит вживую
   ========================================================= */

.os-gallery { padding-block: var(--os-section) 0; }

.os-gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: var(--os-space-lg);
}

.os-gallery__head-l { min-width: 0; }

.os-gallery__book {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: none;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .16s, transform .12s, box-shadow .16s;
}

.os-gallery__book:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-gallery__book:active { transform: translateY(0); }
.os-gallery__book svg { width: 17px; height: 17px; transition: transform .14s; }
.os-gallery__book:hover svg { transform: translateX(3px); }

.os-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 212px;
  gap: var(--os-space-sm);
}

.os-gallery__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 18px;
  border-radius: var(--os-r-card);
  background: var(--os-ink-2);
  transition: transform .2s, box-shadow .2s;
}

/* Первая карточка стоит в сетке напрямую, остальные в обертке __rest:
   нумерация в ней сдвинута на одну, 8n там — это 8n + 1 всего списка. */
.os-gallery__grid > .os-gallery__card,
.os-gallery__rest > .os-gallery__card:nth-child(8n) { grid-column: span 2; grid-row: span 2; }
.os-gallery__rest > .os-gallery__card:nth-child(8n + 5) { grid-column: span 2; }

/* На телефоне обертка становится лентой, на десктопе ее как будто нет. */
.os-gallery__rest { display: contents; }

.os-gallery__card--stub { background: linear-gradient(150deg, #2B2F37, #1B1E24); }

.os-gallery__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0) 38%, rgba(14, 16, 20, .86) 100%);
}

.os-gallery__card--stub::after {
  background: linear-gradient(180deg, rgba(36, 40, 47, .35), rgba(14, 16, 20, .9));
}

.os-gallery__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -28px rgba(20, 24, 30, .7);
}

.os-gallery__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-gallery__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .35);
  transform: translate(-50%, -50%);
}

.os-gallery__icon svg { width: 20px; height: 20px; }

.os-gallery__tag {
  position: absolute;
  top: var(--os-space-sm);
  left: var(--os-space-sm);
  z-index: 1;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(20, 24, 30, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.os-gallery__cap { position: relative; z-index: 1; }

.os-gallery__name {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--os-paper);
}

.os-gallery__note {
  display: block;
  margin-top: 5px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .74);
}

.os-gallery__grid > .os-gallery__card .os-gallery__name,
.os-gallery__rest > .os-gallery__card:nth-child(8n) .os-gallery__name { font-size: 22px; }
.os-gallery__grid > .os-gallery__card .os-gallery__note,
.os-gallery__rest > .os-gallery__card:nth-child(8n) .os-gallery__note { margin-top: 6px; font-size: 14px; }

@media (max-width: 900px) {
  .os-gallery__head { flex-direction: column; align-items: stretch; }
  .os-gallery__book { align-self: flex-start; }
  .os-gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}

@media (max-width: 700px) {
  .os-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .os-gallery__book { width: 100%; justify-content: center; }
  .os-gallery__grid > .os-gallery__card { grid-column: span 1; grid-row: span 1; min-height: 280px; }
  .os-gallery__rest > .os-gallery__card { height: 240px; }
}

/* =========================================================
   Ремонт по узлам: схема с вкладками марок
   ========================================================= */

.os-scheme { padding-block: var(--os-section) 0; }

.os-scheme--brand { padding-block: 0; }
.os-scheme--brand .os-scheme__pin { height: 32px; padding-right: var(--os-space-3xs); font-size: 12px; }
.os-scheme--brand .os-scheme__pin-ic { width: 20px; height: 20px; }
.os-scheme--brand .os-scheme__pin-ic svg { width: 15px; height: 15px; }
.os-scheme--brand .os-scheme__caret { width: 9px; height: 9px; }

.os-scheme--brand .os-scheme__list { gap: 0; }
.os-scheme--brand .os-scheme__list a { padding: var(--os-space-3xs) var(--os-space-2xs); font-size: 12px; }
.os-scheme--brand .os-scheme__hs.is-on .os-scheme__pin { font-size: 12.5px; }

.os-scheme--brand .os-scheme__car {
  max-width: 77%;
  margin-inline: auto var(--os-space-md);
  padding-block: var(--os-space-2xs);
}

.os-scheme__stage {
  position: relative;
  overflow: hidden;
  margin-top: var(--os-space-md);
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  box-shadow: 0 26px 56px -40px rgba(20, 24, 30, .5);
}

.os-scheme--brand .os-scheme__stage {
  margin-top: 0;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.os-scheme--brand .os-scheme__stage::before,
.os-scheme--brand .os-scheme__stage::after { content: none; }

.os-scheme__stage::before {
  content: "";
  position: absolute;
  inset: 66px 0 0;
  z-index: 0;
  background-image: url("../assets/img/scheme-bg.jpg");
  background-image: image-set(url("../assets/img/scheme-bg.webp") type("image/webp"), url("../assets/img/scheme-bg.jpg") type("image/jpeg"));
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(18px) saturate(.9) brightness(1.06);
  transform: scale(1.08);
}

.os-scheme__stage::after {
  content: "";
  position: absolute;
  inset: 66px 0 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .62) 45%, rgba(255, 255, 255, .85));
}

.os-scheme__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: var(--os-space-xs) var(--os-space-sm);
  background: var(--os-paper-2);
  border-bottom: 1px solid var(--os-line);
  border-radius: var(--os-r-card) var(--os-r-card) 0 0;
}

.os-scheme__tabs { display: inline-flex; flex: none; gap: var(--os-space-3xs); }

.os-scheme__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 42px;
  padding: 0 var(--os-space-sm);
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--os-muted);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}

.os-scheme__tab img {
  display: block;
  width: auto;
  height: 17px;
  opacity: .45;
  filter: grayscale(1);
  transition: opacity .16s, filter .16s;
}

.os-scheme__tab:hover { color: var(--os-on-paper); }
.os-scheme__tab:hover img { opacity: .8; }

.os-scheme__tab.is-on {
  background: var(--os-paper);
  color: var(--os-on-paper);
  box-shadow: 0 2px 6px rgba(20, 24, 30, .10), 0 0 0 1px rgba(20, 24, 30, .06);
}

.os-scheme__tab.is-on img { opacity: 1; filter: none; }

.os-scheme__all {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: none;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -14px rgba(255, 216, 79, .95);
  transition: background .18s, transform .14s, box-shadow .18s;
}

.os-scheme__all:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-scheme__all:active { transform: translateY(0); }
.os-scheme__all svg { width: 15px; height: 15px; transition: transform .14s; }
.os-scheme__all:hover svg { transform: translateX(3px); }

.os-scheme__car {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: var(--os-space-sm) 0 var(--os-space-md);
}

.os-scheme__img { display: block; width: 100%; height: auto; }

.os-scheme__hs {
  position: absolute;
  left: var(--os-x);
  top: var(--os-y);
  z-index: 2;
  width: 0;
  height: 0;
}

.os-scheme__hs.is-on { z-index: 9; }

.os-scheme__dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--os-gold);
  border: 2.5px solid var(--os-paper);
  box-shadow: 0 3px 9px rgba(20, 24, 30, .45);
  pointer-events: none;
  transition: transform .16s;
}

.os-scheme__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--os-gold);
  opacity: .75;
  animation: os-scheme-pulse 2.8s ease-out infinite;
}

.os-scheme__hs.is-on .os-scheme__dot { background: var(--os-gold-press); transform: scale(1.15); }
.os-scheme__hs.is-on .os-scheme__dot::after { animation: none; opacity: 0; }

@keyframes os-scheme-pulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .os-scheme__dot::after { animation: none; }
}

.os-scheme__body {
  position: absolute;
  top: 0;
  width: max-content;
  border-radius: 16px;
  transform: translateY(-50%);
  transition: box-shadow .16s, background .16s;
}

.os-scheme__hs--right .os-scheme__body { left: 16px; }
.os-scheme__hs--left .os-scheme__body { right: 16px; }

.os-scheme__body::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--os-gold);
  opacity: .75;
}

.os-scheme__hs--right .os-scheme__body::before { left: -16px; }
.os-scheme__hs--left .os-scheme__body::before { right: -16px; }

.os-scheme__pin {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 35px;
  padding: 0 var(--os-space-xs) 0 var(--os-space-3xs);
  border-radius: 100px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 24px -12px rgba(20, 24, 30, .6), 0 1px 2px rgba(20, 24, 30, .08);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s, transform .16s;
}

.os-scheme__pin:hover {
  background: var(--os-paper);
  color: var(--os-green-press);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(20, 24, 30, .6), 0 0 0 1px var(--os-green-line);
}

.os-scheme__pin-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .74);
  color: var(--os-green-press);
  transition: background .16s, color .16s;
}

.os-scheme__pin-ic svg { width: 16px; height: 16px; }
.os-scheme__pin:hover .os-scheme__pin-ic { background: var(--os-green); color: var(--os-paper); }

.os-scheme__pin-nm { min-width: 0; text-align: left; }

.os-scheme__pin-sub {
  display: none;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: var(--os-dim);
}

.os-scheme__caret {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--os-dim);
  transition: transform .18s, color .18s;
}

.os-scheme__pin:hover .os-scheme__caret { color: var(--os-green-press); }

.os-scheme__hs.is-on .os-scheme__body {
  max-width: min(232px, calc(100vw - 56px));
  padding: 0;
  overflow: hidden;
  background: var(--os-paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .06), 0 20px 44px -22px rgba(20, 24, 30, .45);
}

.os-scheme__hs.is-on .os-scheme__pin {
  width: 100%;
  height: auto;
  padding: 9px var(--os-space-xs) var(--os-space-2xs);
  gap: var(--os-space-2xs);
  border: 0;
  border-radius: 0;
  background: var(--os-paper-2);
  box-shadow: none;
  justify-content: flex-start;
  font-size: 13.5px;
  color: var(--os-on-paper);
  white-space: normal;
  transform: none;
}

.os-scheme__hs.is-on .os-scheme__pin-ic { width: 18px; height: 18px; background: none; color: var(--os-green-press); }
.os-scheme__hs.is-on .os-scheme__pin-ic svg { width: 18px; height: 18px; }
.os-scheme__hs.is-on .os-scheme__pin-sub { display: block; }
.os-scheme__hs.is-on .os-scheme__caret { width: 14px; height: 14px; margin-left: auto; transform: rotate(180deg); color: var(--os-muted); }

.os-scheme__pan { display: none; padding: var(--os-space-3xs) 0 0; }
.os-scheme__hs.is-on .os-scheme__pan { display: block; }

.os-scheme__list { display: flex; flex-direction: column; }

.os-scheme__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-2xs);
  min-height: 30px;
  padding: 0 var(--os-space-xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .13s, color .13s;
}

.os-scheme__list a:hover { background: var(--os-green-soft); color: var(--os-green-press); }

.os-scheme__work {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-scheme__price {
  flex: none;
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--os-ink);
  white-space: nowrap;
}

.os-scheme__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-2xs);
  margin: var(--os-space-3xs) var(--os-space-xs) 0;
  padding: var(--os-space-2xs) 0 10px;
  border-top: 1px solid var(--os-line);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-green-press);
  text-decoration: none;
}

.os-scheme--brand .os-scheme__more { font-size: 12px; }

.os-scheme__more svg { flex: none; width: 13px; height: 13px; transition: transform .13s; }
.os-scheme__more:hover svg { transform: translateX(3px); }

.os-scheme__units {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--os-space-2xs);
  padding: var(--os-space-sm);
}

.os-scheme__unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-xs);
  padding: var(--os-space-sm);
  border-radius: 14px;
  background: var(--os-paper-2);
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.os-scheme__unit:hover { background: var(--os-paper); border-color: var(--os-green-line); }

.os-scheme__unit-nm {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-scheme__unit-sub {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-scheme__unit svg { flex: none; width: 16px; height: 16px; color: var(--os-green-press); }

@media (max-width: 1180px) {
  .os-scheme__pin { height: 31px; padding: 0 var(--os-space-xs); font-size: 12px; }
}

@media (max-width: 1000px) {
  .os-scheme__car { display: none; }
  .os-scheme__stage::before,
  .os-scheme__stage::after { content: none; }
  .os-scheme__units { display: grid; }
  .os-scheme__bar { flex-direction: column; align-items: stretch; }
  .os-scheme__all { width: 100%; justify-content: center; }
  .os-scheme__tabs { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .os-scheme__units { grid-template-columns: 1fr; }

  .os-scheme--brand .os-scheme__units {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .os-scheme--brand .os-scheme__unit {
    padding: var(--os-space-xs) var(--os-space-xs) var(--os-space-xs) 0;
    border-radius: 0;
    background: none;
    border-bottom: 1px dashed var(--os-green-line);
  }

  .os-scheme--brand .os-scheme__unit:hover { background: none; }
  .os-scheme--brand .os-scheme__unit svg { display: none; }
  .os-scheme--brand .os-scheme__unit-nm { font-size: 14px; }
  .os-scheme--brand .os-scheme__unit-sub { font-size: 11px; }
}

/* =========================================================
   Наши документы и обучение мастеров
   ========================================================= */

.os-docs { padding-block: var(--os-section) 0; }

.os-docs__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--os-space-lg);
  margin-bottom: var(--os-space-lg);
}

.os-docs__title { max-width: 16ch; margin-bottom: 0; }

.os-docs__lead {
  margin: 6px 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-docs__lead b { font-weight: 700; color: var(--os-on-paper); }

.os-docs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.os-docs__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  transition: box-shadow .18s, transform .16s;
}

.os-docs__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4);
}

.os-docs__top {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 280px;
  padding: 20px;
  background: var(--os-paper-2);
  border-bottom: 1px solid var(--os-line);
}

.os-docs__scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-docs__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 100px;
  background: var(--os-green-soft);
  border: 1px solid var(--os-green-line);
  color: var(--os-green-press);
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .04em;
}

.os-docs__badge--muted {
  background: var(--os-paper-3);
  border-color: var(--os-line);
  color: var(--os-muted);
}

.os-docs__stub { max-width: 80%; text-align: center; }
.os-docs__icon { display: block; color: rgba(20, 24, 30, .14); }
.os-docs__icon svg { width: 30px; height: 30px; }

.os-docs__caption {
  display: block;
  margin-top: var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(20, 24, 30, .28);
}

.os-docs__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.os-docs__h {
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-docs__desc {
  flex: 1;
  margin: 10px 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-docs__foot {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
  padding-top: 14px;
  border-top: 1px dashed var(--os-green-line);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-docs__owner { font-weight: 700; color: var(--os-on-paper); }

.os-docs__sep {
  flex: none;
  width: 1px;
  height: 11px;
  background: var(--os-dim);
  opacity: .4;
}

@media (max-width: 960px) {
  .os-docs__head { grid-template-columns: 1fr; gap: var(--os-space-sm); }
  .os-docs__title { max-width: none; }
  .os-docs__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .os-docs__grid { grid-template-columns: 1fr; }
  .os-docs__top { min-height: 220px; }
}

/* =========================================================
   Скидки подписчикам, разборы читателям
   ========================================================= */

.os-channels { padding-block: var(--os-section) 0; }

.os-channels__title { max-width: none; }
.os-channels__lead { max-width: 64ch; margin-bottom: var(--os-space-md); }

.os-channels__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--os-gutter);
}

.os-channels__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 30px 26px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
}

.os-channels__card--tg {
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(52, 171, 114, .14) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, #F2F7F1 0%, #E7EFE7 100%);
}

.os-channels__card--zen { background: var(--os-paper); }

.os-channels__head {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-bottom: 22px;
}

.os-channels__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--os-paper);
}

.os-channels__icon svg { width: 24px; height: 24px; }
.os-channels__card--tg .os-channels__icon { background: var(--os-brand-tg); }
.os-channels__card--zen .os-channels__icon svg { width: 100%; height: 100%; }

.os-channels__id { min-width: 0; }

.os-channels__name {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: var(--os-on-paper);
}

.os-channels__handle {
  margin-top: 3px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-muted);
}

.os-channels__badge {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 100px;
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.os-channels__card--tg .os-channels__badge { background: var(--os-gold); color: var(--os-ink); }

.os-channels__card--zen .os-channels__badge {
  background: var(--os-green);
  border: 1px solid var(--os-green);
  color: var(--os-paper);
}

.os-channels__h {
  margin: 0;
  max-width: 30ch;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-channels__desc {
  margin: 14px 0 0;
  max-width: 40ch;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--os-muted);
}

.os-channels__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.os-channels__li {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 14px 0;
  border-top: 1px dashed rgba(20, 24, 30, .12);
}

.os-channels__li:first-child { border-top: 0; }

.os-channels__t {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--os-on-paper);
}

.os-channels__t b { font-weight: 700; color: var(--os-green-press); }

.os-channels__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--os-space-sm);
  margin-top: var(--os-space-md);
}

.os-channels__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background .16s, transform .12s;
}

.os-channels__btn svg { width: 18px; height: 18px; }

.os-channels__card--tg .os-channels__btn {
  background: var(--os-gold);
  color: var(--os-ink);
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
}

.os-channels__card--tg .os-channels__btn:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
}

.os-channels__card--zen .os-channels__btn {
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 14px 28px -16px rgba(52, 171, 114, .95);
}

.os-channels__card--zen .os-channels__btn:hover {
  background: var(--os-green-press);
  transform: translateY(-2px);
}

.os-channels__note {
  max-width: 16em;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--os-dim);
}

@media (max-width: 900px) {
  .os-channels__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .os-channels__card { padding: 24px 22px; }
  .os-channels__foot { flex-direction: column; align-items: stretch; }
  .os-channels__btn { justify-content: center; }
}

/* =========================================================
   Действующие акции
   ========================================================= */

.os-promos { padding-block: var(--os-section) 0; }

.os-promos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: var(--os-space-md);
}

.os-promos__all {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: none;
  height: 48px;
  padding: 0 var(--os-space-md);
  border-radius: 14px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .15s, transform .12s, box-shadow .15s;
}

.os-promos__all:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-promos__all:active { transform: translateY(0); }
.os-promos__all svg { width: 15px; height: 15px; transition: transform .14s; }
.os-promos__all:hover svg { transform: translateX(3px); }

/* --- широкая акция --- */

.os-promos__feat {
  position: relative;
  grid-column: span 2;
  display: flex;
  align-items: center;
  min-height: 340px;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: linear-gradient(90deg, #122419 0%, #0e1a13 100%);
}

/* Фильтр архива прячет карточку атрибутом, а display у нее свой. */
.os-promos__feat[hidden] { display: none; }

.os-promos__feat-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Затемнение слева направо: текст лежит на фотографии и должен читаться
   на любой, а правый край карточки остается картинкой. */
.os-promos__feat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 14, .95) 0%,
    rgba(10, 20, 14, .88) 34%,
    rgba(10, 20, 14, .45) 62%,
    rgba(10, 20, 14, .12) 100%
  );
  pointer-events: none;
}

.os-promos__feat-stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .14);
}

.os-promos__feat-stub svg { width: 44px; height: 44px; }

.os-promos__feat-body {
  position: relative;
  z-index: 1;
  max-width: 56%;
  padding: var(--os-space-lg) 34px;
}

.os-promos__feat-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 100px;
  background: var(--os-gold);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-ink);
}

.os-promos__feat-h {
  max-width: 18ch;
  margin: var(--os-space-sm) 0 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--os-paper);
}

.os-promos__feat-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-promos__feat-link:hover { color: var(--os-green); }

.os-promos__feat-desc {
  max-width: 44ch;
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.os-promos__feat-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: var(--os-space-md); }

.os-promos__feat-now {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-gold);
}

.os-promos__feat-old {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, .5);
}

.os-promos__feat-note {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, .6);
}

.os-promos__feat-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: var(--os-space-md); }

.os-promos__feat-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 50px;
  padding: 0 var(--os-space-md);
  border-radius: 14px;
  background: var(--os-green);
  color: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(52, 171, 114, .95);
  transition: background .16s, transform .12s;
}

.os-promos__feat-btn:hover { background: var(--os-green-press); transform: translateY(-2px); }
.os-promos__feat-btn:active { transform: translateY(0); }
.os-promos__feat-btn svg { width: 16px; height: 16px; }

.os-promos__feat-cond {
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(255, 255, 255, .4);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

/* --- сетка карточек --- */

.os-promos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--os-gutter); }

/* В боковой раскладке архива колонка уже: плитки идут по две в ряд,
   широкая карточка по-прежнему занимает строку целиком. */
.os-promos__grid--side { grid-template-columns: 1fr 1fr; }

/* Акции после второй: на телефоне лента, на десктопе обертки как будто нет. */
.os-promos__rest { display: contents; }

.os-promos__card {
  display: flex;
  flex-direction: column;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  overflow: hidden;
  transition: transform .16s, box-shadow .18s;
}

.os-promos__card[hidden] { display: none; }

.os-promos__card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4); }

.os-promos__card-top {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--os-paper-2);
  border-bottom: 1px solid var(--os-line);
}

.os-promos__card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-promos__card-top--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, .38);
}

.os-promos__card-mark {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px var(--os-space-xs);
  border-radius: 100px;
  background: var(--os-gold);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-ink);
}

.os-promos__card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }

.os-promos__card-place {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-text);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-promos__card-place svg { flex: none; width: 16px; height: 16px; color: var(--os-green-press); }

.os-promos__card-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 100px;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .12), 0 0 0 1px rgba(20, 24, 30, .05);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--os-on-paper);
}

.os-promos__card-h {
  margin: 14px 0 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-promos__card-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--os-duration-fast) var(--os-ease);
}

.os-promos__card-link:hover { color: var(--os-green); }

.os-promos__card-desc {
  flex: 1;
  margin: 10px 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-promos__card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: var(--os-space-sm); }

.os-promos__card-now {
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--os-black);
}

.os-promos__card-old {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--os-dim);
}

.os-promos__card-note {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
}

.os-promos__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-xs);
  margin-top: var(--os-space-sm);
  padding-top: 14px;
  border-top: 1px dashed var(--os-green-line);
}

.os-promos__card-date {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-dim);
}

.os-promos__card-date svg { width: 14px; height: 14px; }

.os-promos__card-cond {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-promos__card-cond svg { width: 14px; height: 14px; color: var(--os-green); transition: transform .14s; }
.os-promos__card-cond:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .os-promos__card:hover { transform: none; }
}

@media (max-width: 900px) {
  .os-promos__head { flex-direction: column; align-items: stretch; }
  .os-promos__all { align-self: flex-start; }
  .os-promos__feat-body { max-width: none; }
  /* Текст занимает карточку целиком, поэтому затемнение идет до правого края. */
  .os-promos__feat::after {
    background: linear-gradient(90deg, rgba(10, 20, 14, .95) 0%, rgba(10, 20, 14, .82) 100%);
  }
  .os-promos__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .os-promos__grid { grid-template-columns: 1fr; }
  .os-promos__feat { grid-column: span 1; }
  .os-promos__all { width: 100%; justify-content: center; }
}

/* =========================================================
   ФОС — оценка ремонта по фото. Правила перенесены из макета
   ========================================================= */

.os-fos { padding-block: var(--os-section) 0; }

.os-fos__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: var(--os-space-xl);
  padding: 44px;
  border-radius: var(--os-r-card);
  overflow: hidden;
}

.os-fos__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/img/fos-bg.jpg");
  background-image: image-set(url("../assets/img/fos-bg.webp") type("image/webp"), url("../assets/img/fos-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 55%;
  background-color: var(--os-ink);
}

.os-fos__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(14,16,20,.90) 0%, rgba(14,16,20,.78) 46%, rgba(14,16,20,.55) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
}

.os-fos__left {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 560px;
}

/* --- Плашка «бесплатно»: заливка маркером, как в форме подбора --- */

.os-fos__badge { margin: 0; }

.os-fos__badge-mark {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: var(--os-space-3xs) .3em;
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.os-fos__badge-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 5px;
  background: var(--os-gold);
  transform: skewX(-9deg) rotate(-.6deg);
}

.os-fos__title {
  margin-block: var(--os-space-md) 0;
  max-width: 20ch;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--os-paper);
  overflow-wrap: anywhere;
}

.os-fos__title em { font-style: normal; color: var(--os-green); }

.os-fos__text {
  margin: var(--os-space-sm) 0 0;
  max-width: 58ch;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  color: #B9BEC7;
}

.os-fos__list {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-xs);
  margin: var(--os-space-md) 0 0;
  padding: 0;
  list-style: none;
}

.os-fos__item {
  position: relative;
  padding-left: var(--os-space-md);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
}

.os-fos__item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--os-green);
  animation: os-fos-dot 2.4s ease-out infinite;
}

@keyframes os-fos-dot {
  0%   { box-shadow: 0 0 0 0 rgba(52,171,114,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,171,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,171,114,0); }
}

@media (prefers-reduced-motion: reduce) {
  .os-fos__item::before { animation: none; }
}

/* --- Форма. Разметку строит Contact Form 7, классы плагина неизбежны --- */

.os-fos__form {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: var(--os-space-md);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.os-fos__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xs);
}

.os-fos__form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.os-fos__form .hidden-fields-container,
.os-fos__form .wpcf7_hp_field {
  display: none;
}

.os-fos__form .hidden-fields-container,
.os-calc__main .hidden-fields-container,
.os-mrec .hidden-fields-container {
  display: none;
}

.os-fos__form .wpcf7-response-output[aria-hidden="true"] {
  display: none;
}

.os-fos__form .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Зона загрузки фото --- */

.os-fos__drop {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xs);
}

.os-fos__drop .codedropz-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xs);
}

.os-fos__drop .codedropz-upload-handler {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-xs);
  border: 1.5px dashed rgba(255,255,255,.42);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  transition: background .16s, border-color .16s;
}

.os-fos__drop .codedropz-upload-handler::before {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.12);
}

.os-fos__drop .codedropz-upload-handler::after {
  content: "";
  position: absolute;
  left: calc(var(--os-space-xs) + 8.5px);
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  background: var(--os-paper);
  -webkit-mask: url("../assets/icons/fos-cam.svg") no-repeat center / contain;
  mask: url("../assets/icons/fos-cam.svg") no-repeat center / contain;
}

.os-fos__drop .codedropz-upload-inner {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-3xs);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--os-paper);
}

.os-fos__drop .codedropz-upload-inner span {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.2;
  color: rgba(255,255,255,.6);
}

.os-fos__drop .cd-upload-btn {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  font-size: 0;
  text-decoration: none;
}

.os-fos__drop .codedropz-upload-handler:hover {
  background: rgba(255,255,255,.13);
  border-color: var(--os-gold);
}

.os-fos__drop .codedropz-dragover {
  background: rgba(255,216,79,.12);
  border-color: var(--os-gold);
}

.os-fos__drop .dnd-upload-counter { display: none; }

/* --- Загруженные файлы. Стили плагина отключены, эти заменяют их целиком --- */

.os-fos__drop .d-none { display: none; }

.os-fos__drop .dnd-upload-status {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--os-space-2xs) 34px var(--os-space-2xs) var(--os-space-xs);
  border-radius: var(--os-r-md);
  background: rgba(255,255,255,.07);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--os-paper);
}

.os-fos__drop .dnd-upload-image { display: none; }

.os-fos__drop .dnd-upload-details {
  flex: 1;
  min-width: 0;
}

.os-fos__drop .name {
  display: flex;
  gap: var(--os-space-2xs);
  min-width: 0;
  color: var(--os-paper);
}

.os-fos__drop .name em {
  flex: none;
  font-style: normal;
  color: rgba(255,255,255,.55);
}

.os-fos__drop .dnd-progress-bar {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
}

.os-fos__drop .dnd-progress-bar span {
  display: block;
  height: 100%;
  background: var(--os-green);
}

.os-fos__drop .has-error,
.os-fos__drop .has-error-msg {
  display: block;
  margin-top: var(--os-space-3xs);
  color: var(--os-error);
}

.os-fos__drop .remove-file {
  position: absolute;
  right: var(--os-space-xs);
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.os-fos__drop .remove-file:hover { color: var(--os-paper); }

.os-fos__drop .dnd-icon-remove {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  cursor: pointer;
  -webkit-mask: url("../assets/icons/fos-remove.svg") no-repeat center / contain;
  mask: url("../assets/icons/fos-remove.svg") no-repeat center / contain;
}

/* --- Поля --- */

.os-fos__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--os-space-2xs);
}

.os-fos__input {
  width: 100%;
  height: 44px;
  padding: 0 var(--os-space-sm);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--os-r-md);
  background: rgba(255,255,255,.07);
  color: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  transition: border-color .16s, background .16s;
}

.os-fos__input::placeholder { color: rgba(255,255,255,.5); }

.os-fos__input:focus {
  outline: none;
  border-color: var(--os-green);
  background: rgba(255,255,255,.12);
}

.os-fos__area {
  height: auto;
  min-height: 66px;
  padding: var(--os-space-xs) var(--os-space-sm);
  line-height: 1.45;
  resize: none;
}

/* --- Способ связи --- */

.os-fos__way {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--os-space-xs);
}

.os-fos__way-label {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  color: rgba(255,255,255,.6);
}

.os-fos__chips {
  display: flex;
  gap: var(--os-space-2xs);
}

.os-fos__chips .wpcf7-list-item { margin: 0; }

.os-fos__chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-fos__chips .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--os-space-xs);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.os-fos__chips .wpcf7-list-item-label:hover { background: rgba(255,255,255,.13); }

.os-fos__chips input:checked + .wpcf7-list-item-label {
  border-color: var(--os-green);
  background: var(--os-green);
  color: var(--os-paper);
}

.os-fos__chips input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--os-gold);
  outline-offset: 2px;
}

/* --- Кнопка и согласие --- */

.os-fos__submit {
  height: 48px;
  border: none;
  border-radius: 13px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
  transition: background .18s ease, transform .14s ease, box-shadow .18s ease;
}

.os-fos__submit:hover {
  background: var(--os-gold-press);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(255, 216, 79, 1);
}

.os-fos__submit:active { transform: translateY(0); }

.os-fos__agree {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.6);
}

.os-fos__agree label {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-2xs);
  cursor: pointer;
}

.os-fos__agree input {
  margin: var(--os-space-3xs) 0 0;
  accent-color: var(--os-green);
}

.os-fos__agree a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Служебные сообщения плагина --- */

.os-fos__form .wpcf7-response-output {
  margin: 0;
  padding: 10px 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-text);
  font-size: 13px;
  line-height: 1.4;
  color: var(--os-paper);
}

.os-fos__form .invalid .wpcf7-response-output,
.os-fos__form .failed .wpcf7-response-output,
.os-fos__form .spam .wpcf7-response-output,
.os-fos__form .aborted .wpcf7-response-output {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
  color: var(--os-error);
}

.os-fos__form .sent > *:not(.wpcf7-response-output) { display: none; }

.os-fos__form:has(.sent) {
  padding: 0;
  border-color: transparent;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.os-fos__form .sent .wpcf7-response-output {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-md);
  border-color: var(--os-green-line);
  background: var(--os-green-soft);
  font-size: 15px;
  line-height: 1.45;
}

.os-fos__form .sent .wpcf7-response-output::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--os-green);
  -webkit-mask: url("../assets/icons/fos-check.svg") no-repeat center / contain;
  mask: url("../assets/icons/fos-check.svg") no-repeat center / contain;
}

.os-fos__form .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--os-error);
}

.os-fos__form .wpcf7-not-valid {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
}

.os-fos__submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.os-fos__form .wpcf7-spinner { margin: 0 auto; }

/* --- Адаптив --- */

@media (max-width: 1200px) {
  .os-fos__card { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--os-space-lg); }
}

@media (max-width: 1100px) {
  .os-fos__card { grid-template-columns: 1fr; gap: var(--os-space-lg); padding: 36px 28px; }
  .os-fos__title { font-size: 32px; }
}

@media (max-width: 1000px) {
  .os-fos__card { padding: var(--os-space-lg) var(--os-space-md); }
}

@media (max-width: 900px) {
  .os-fos__card { padding: 28px var(--os-space-sm); }
}

@media (max-width: 680px) {
  .os-fos__two { grid-template-columns: 1fr; }
  .os-fos__way { flex-direction: column; align-items: flex-start; gap: var(--os-space-2xs); }
}

/* =========================================================
   ЭТАПЫ РАБОТЫ
   Темная плита с сеткой шагов: номер шага рисуется контуром
   через ::after, последняя ячейка — зеленый призыв к записи.
   ========================================================= */

.os-steps { padding-block: var(--os-section) 0; }

.os-steps__head { margin-bottom: var(--os-space-md); }

.os-steps__wrap {
  position: relative;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 88% 8%, var(--os-green-line) 0%, rgba(22, 24, 29, 0) 62%)
    var(--os-ink);
}

.os-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--os-space-3xs);
  background: rgba(255, 255, 255, .09);
}

.os-steps__card {
  position: relative;
  overflow: hidden;
  padding: var(--os-space-lg) var(--os-space-md) 28px;
  background: rgba(19, 22, 27, .66);
  transition: background .2s;
}

.os-steps__card:hover { background: rgba(30, 35, 42, .72); }

.os-steps__card::after {
  content: attr(data-n);
  position: absolute;
  right: var(--os-space-sm);
  bottom: -14px;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 82px;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums lining-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08);
  pointer-events: none;
  transition: .28s ease;
}

.os-steps__card:hover::after {
  -webkit-text-stroke: 1.5px rgba(52, 171, 114, .45);
  bottom: -8px;
  transform: translateY(-4px);
}

.os-steps__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--os-green), rgba(52, 171, 114, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.os-steps__card:hover::before { transform: scaleX(1); }

.os-steps__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
}

.os-steps__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--os-green);
  transition: color .2s ease, transform .2s ease;
}

.os-steps__icon svg { width: 38px; height: 38px; }

.os-steps__card:hover .os-steps__icon { transform: translateY(-2px); }

.os-steps__name {
  position: relative;
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--os-paper);
}

.os-steps__text {
  position: relative;
  margin: var(--os-space-sm) 0 0;
  max-width: 26em;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.os-steps__msg {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: 20px;
}

.os-steps__msg-link {
  display: grid;
  place-items: center;
  opacity: .9;
  transition: transform .14s, opacity .14s;
}

.os-steps__msg-link:hover { opacity: 1; transform: translateY(-2px); }

.os-steps__msg-icon {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: var(--os-r-sm);
}

.os-steps__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: var(--os-space-lg) 28px;
  background: var(--os-green);
  text-decoration: none;
  transition: background .22s;
}

.os-steps__cta::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  transition: .3s;
}

.os-steps__cta:hover { background: var(--os-gold); }
.os-steps__cta:hover::after { background: rgba(255, 255, 255, .4); transform: scale(1.12); }

.os-steps__kick {
  position: relative;
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  transition: color .22s;
}

.os-steps__cta-title {
  position: relative;
  margin-top: var(--os-space-xs);
  max-width: 10ch;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--os-paper);
  transition: color .22s;
}

.os-steps__cta-icon {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-green-press);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6);
  transition: .22s;
}

.os-steps__cta-icon svg { width: 24px; height: 24px; }

.os-steps__cta:hover .os-steps__kick { color: rgba(22, 24, 29, .62); }
.os-steps__cta:hover .os-steps__cta-title { color: var(--os-ink); }

.os-steps__cta:hover .os-steps__cta-icon {
  background: var(--os-ink);
  color: var(--os-gold);
  transform: scale(1.07);
}

/* --- Адаптив --- */

@media (max-width: 1180px) {
  .os-steps__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .os-steps__card { padding: var(--os-space-md) 20px; }
  .os-steps__card::after { font-size: 62px; right: var(--os-space-xs); }
}

@media (max-width: 640px) {
  .os-steps__wrap { padding: var(--os-space-md) var(--os-space-sm); }
  .os-steps__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   КАЛЬКУЛЯТОР РЕМОНТА И ЧАСТЫЕ ВОПРОСЫ
   Две колонки одной секции: слева карточка калькулятора
   на матовом стекле, справа аккордеон вопросов.
   ========================================================= */

.os-calc-sec { padding-block: var(--os-section) 0; }

.os-calc-sec__layout {
  display: grid;
  grid-template-columns: var(--os-span-4) minmax(0, 1fr);
  gap: var(--os-gutter);
  align-items: start;
}

/* --- Карточка калькулятора --- */

.os-calc {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--os-r-card);
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(168deg, rgba(238, 239, 235, .92), rgba(223, 226, 219, .80));
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 0 0 1px rgba(20, 24, 30, .07),
    0 26px 54px -34px rgba(20, 24, 30, .42);
}

.os-calc__head { padding: var(--os-space-md) 22px 2px; }

.os-calc__kick {
  display: inline-block;
  margin: 0;
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-green-press);
}

.os-calc__title {
  margin: 10px 0 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-calc__sub {
  margin: var(--os-space-2xs) 0 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-calc__bonus {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--os-space-sm) 0 0;
}

.os-calc__bonus-mark {
  position: relative;
  isolation: isolate;
  flex: none;
  display: inline-block;
  padding: 5px 9px;
  font-family: var(--os-font-text);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--os-ink);
}

.os-calc__bonus-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 5px;
  background: var(--os-gold);
  transform: skewX(-9deg) rotate(-.6deg);
}

.os-calc__bonus-text {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-calc__bonus-text b { font-weight: 700; color: var(--os-on-paper); }

.os-calc__main { padding: var(--os-space-sm) 22px var(--os-space-md); }

/* --- Прогресс --- */

.os-calc__prog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-xs);
  margin-bottom: 6px;
}

.os-calc__prog-label {
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-calc__prog-count {
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--os-green-press);
}

.os-calc__bar {
  height: 5px;
  margin-bottom: 20px;
  border-radius: 100px;
  background: rgba(20, 24, 30, .08);
  overflow: hidden;
}

.os-calc__bar-fill {
  display: block;
  height: 100%;
  width: var(--os-calc-progress, 20%);
  border-radius: 100px;
  background: var(--os-green);
  transition: width .28s ease;
}

/* --- Шаг --- */

.os-calc__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.os-calc__step:focus-visible { outline: none; }

.os-calc__legend {
  padding: 0;
  margin-bottom: var(--os-space-3xs);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-calc__note {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-calc__hint {
  margin: 6px 0 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-calc__hint b { font-weight: 700; color: var(--os-green-press); }

/* --- Поля --- */

.os-calc__field,
.os-mrec__field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(20, 24, 30, .10);
  border-radius: var(--os-r-md);
  background: rgba(255, 255, 255, .78);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: var(--os-on-paper);
  transition: border-color .14s, background .14s;
}

.os-calc__area {
  height: auto;
  min-height: 84px;
  padding: var(--os-space-xs) 14px;
  line-height: 1.45;
  resize: none;
}

.os-calc__field:focus,
.os-mrec__field:focus { outline: none; border-color: var(--os-green); background-color: var(--os-paper); }
.os-calc__field::placeholder,
.os-mrec__field::placeholder { color: var(--os-dim); }

.os-calc__select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6E76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.os-calc__two,
.os-mrec__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.os-calc__two + .os-calc__two { margin-top: 10px; }
.os-calc__two .os-calc__field,
.os-mrec__two .os-mrec__field { margin-bottom: 0; }
.os-calc__two .wpcf7-form-control-wrap,
.os-mrec__two .wpcf7-form-control-wrap { display: block; }

/* --- Чипы: направления работ и способ связи --- */

.os-calc__chips { margin-bottom: 14px; }

.os-calc__two + .os-calc__chips { margin-top: var(--os-space-xs); }

.os-calc__chips .wpcf7-form-control,
.os-mrec__chips .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
}

.os-calc__chips .wpcf7-list-item,
.os-mrec__chips .wpcf7-list-item { margin: 0; }

.os-calc__chips input,
.os-mrec__chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-calc__chips .wpcf7-list-item-label,
.os-mrec__chips .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: 100px;
  background: rgba(255, 255, 255, .7);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
  cursor: pointer;
  user-select: none;
  transition: background .14s, border-color .14s, color .14s;
}

.os-calc__chips .wpcf7-list-item-label:hover,
.os-mrec__chips .wpcf7-list-item-label:hover { border-color: var(--os-green-line); }

.os-calc__chips input:checked + .wpcf7-list-item-label,
.os-mrec__chips input:checked + .wpcf7-list-item-label {
  border-color: var(--os-green);
  background: var(--os-green);
  color: var(--os-paper);
}

/* Запись с телефона: четыре способа в одну строку. */
.os-mrec__chips .wpcf7-form-control { flex-wrap: nowrap; gap: 6px; }
.os-mrec__chips .wpcf7-list-item { flex: 1 1 auto; }
.os-mrec__chips .wpcf7-list-item-label { justify-content: center; width: 100%; padding: 10px 6px; background: var(--os-paper); }

.os-calc__chips input:focus-visible + .wpcf7-list-item-label,
.os-mrec__chips input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--os-gold);
  outline-offset: 2px;
}

/* --- Варианты по запчастям: карточки с кружком --- */

.os-calc__opts .wpcf7-form-control {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-2xs);
}

.os-calc__opts .wpcf7-list-item { margin: 0; }

.os-calc__opts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-calc__opts .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: var(--os-r-md);
  background: rgba(255, 255, 255, .55);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--os-on-paper);
  cursor: pointer;
  transition: background .14s, border-color .14s;
}

.os-calc__opts .wpcf7-list-item-label::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--os-line);
  border-radius: 50%;
  transition: border-color .14s, background .14s;
}

.os-calc__opts .wpcf7-list-item-label:hover { border-color: var(--os-green-line); }

.os-calc__opts input:checked + .wpcf7-list-item-label {
  border-color: var(--os-green);
  background: var(--os-green-soft);
}

.os-calc__opts input:checked + .wpcf7-list-item-label::before {
  border-color: var(--os-green);
  background: radial-gradient(circle at center, var(--os-green) 0 5px, transparent 6px);
}

.os-calc__opts input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--os-gold);
  outline-offset: 2px;
}

/* --- Согласие и кнопки --- */

.os-calc__agree,
.os-mrec__agree {
  margin-top: var(--os-space-xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-calc__agree label,
.os-mrec__agree label {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-2xs);
  cursor: pointer;
}

.os-calc__agree input,
.os-mrec__agree input {
  margin: 1px 0 0;
  accent-color: var(--os-green);
}

.os-mrec__agree { font-size: 13.5px; }
.os-mrec__agree label { align-items: center; gap: var(--os-space-xs); }

/* Согласие в записи с телефона: квадрат 24px по эталону вместо мелкого системного. */
.os-mrec__agree input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 7px;
  background: var(--os-paper) no-repeat center / 16px;
  box-shadow: inset 0 0 0 1.5px var(--os-line-grey);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}

.os-mrec__agree input:checked {
  background-color: var(--os-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10-10'/%3E%3C/svg%3E");
  box-shadow: none;
}

.os-mrec__agree input:focus-visible { outline: 2px solid var(--os-green-press); outline-offset: 2px; }

.os-calc__agree a,
.os-mrec__agree a {
  color: var(--os-green-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-calc__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.os-calc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  height: 48px;
  padding: 0 var(--os-space-md);
  border: 0;
  border-radius: var(--os-r-md);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, transform .16s;
}

.os-calc__btn svg { width: 16px; height: 16px; }

.os-calc__btn[hidden] { display: none; }

.os-calc__btn--next {
  flex: 1;
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 14px 28px -16px rgba(52, 171, 114, .95);
}

.os-calc__btn--next:hover { background: var(--os-green-press); transform: translateY(-1px); }

.os-calc__btn--send {
  flex: 1;
  background: var(--os-gold);
  color: var(--os-ink);
  box-shadow: 0 14px 28px -16px rgba(255, 216, 79, .95);
}

.os-calc__btn--send:hover { background: var(--os-gold-press); transform: translateY(-1px); }

.os-calc__btn--back {
  flex: none;
  padding: 0 18px;
  border: 1px solid rgba(20, 24, 30, .1);
  background: rgba(255, 255, 255, .7);
  color: var(--os-on-paper);
}

.os-calc__btn--back:hover { background: var(--os-paper); }

/* --- Служебная разметка плагина --- */

.os-calc__main .wpcf7_hp_field,
.os-mrec .wpcf7_hp_field { display: none; }

.os-calc__main .screen-reader-response,
.os-mrec .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.os-calc__main .wpcf7-response-output,
.os-mrec .wpcf7-response-output {
  margin: var(--os-space-xs) 0 0;
  padding: var(--os-space-xs) 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--os-on-paper);
}

.os-calc__main .wpcf7-response-output[aria-hidden="true"],
.os-mrec .wpcf7-response-output[aria-hidden="true"] { display: none; }

.os-calc__main .invalid .wpcf7-response-output,
.os-calc__main .failed .wpcf7-response-output,
.os-calc__main .spam .wpcf7-response-output,
.os-calc__main .aborted .wpcf7-response-output,
.os-mrec .invalid .wpcf7-response-output,
.os-mrec .failed .wpcf7-response-output,
.os-mrec .spam .wpcf7-response-output,
.os-mrec .aborted .wpcf7-response-output {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
  color: var(--os-error);
}

.os-calc__main .sent > *:not(.wpcf7-response-output),
.os-mrec .sent > *:not(.wpcf7-response-output) { display: none; }

.os-calc__main .sent .wpcf7-response-output,
.os-mrec .sent .wpcf7-response-output {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin: 0;
  padding: var(--os-space-md);
  border-color: var(--os-green-line);
  background: var(--os-green-soft);
  font-size: 15px;
  line-height: 1.45;
  color: var(--os-on-paper);
}

.os-calc__main .sent .wpcf7-response-output::before,
.os-mrec .sent .wpcf7-response-output::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--os-green);
  -webkit-mask: url("../assets/icons/calc-check.svg") no-repeat center / contain;
  mask: url("../assets/icons/calc-check.svg") no-repeat center / contain;
}

.os-calc__main .wpcf7-not-valid,
.os-mrec .wpcf7-not-valid {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
}

.os-calc__main .wpcf7-not-valid-tip,
.os-mrec .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--os-error);
}

.os-calc__main .wpcf7-spinner { margin: 0 auto; }

/* --- Частые вопросы --- */

.os-faq__title {
  margin: 0 0 var(--os-space-xs);
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-faq__sub {
  margin: 0 0 20px;
  max-width: 52ch;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--os-muted);
}

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

.os-faq__item {
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: 16px;
  background: var(--os-paper);
  transition: border-color .16s, box-shadow .16s;
}

.os-faq__item[open] {
  border-color: var(--os-green-line);
  box-shadow: 0 18px 40px -30px rgba(20, 24, 30, .35);
}

.os-faq__q {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  padding: var(--os-space-xs) 20px;
  list-style: none;
  cursor: pointer;
}

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

.os-faq__q-text {
  flex: 1;
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--os-on-paper);
}

.os-faq__item[open] .os-faq__q-text { color: var(--os-green-press); }

.os-faq__q-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  transition: background .16s, color .16s;
}

.os-faq__item[open] .os-faq__q-icon { background: var(--os-green); color: var(--os-paper); }

.os-faq__q-icon::before,
.os-faq__q-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
}

.os-faq__q-icon::before { width: 12px; height: 2px; }
.os-faq__q-icon::after { width: 2px; height: 12px; transition: transform .18s; }
.os-faq__item[open] .os-faq__q-icon::after { transform: scaleY(0); }

.os-faq__a { padding: 0 20px 18px; }

.os-faq__a p {
  margin: 0 0 10px;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-faq__a p:last-child { margin-bottom: 0; }
.os-faq__a b { font-weight: 700; color: var(--os-on-paper); }

.os-faq__more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--os-space-sm);
  margin: var(--os-space-sm) 0 0;
  padding: var(--os-space-sm) var(--os-space-md);
  border-radius: 16px;
  background: var(--os-paper-2);
}

.os-faq__more-text {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-faq__more-text b { font-weight: 700; color: var(--os-on-paper); }

.os-faq__more-phone {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-faq__more-phone:hover { color: var(--os-green-press); }

/* --- Адаптив --- */

@media (max-width: 1060px) {
  .os-calc-sec__layout { grid-template-columns: 1fr; gap: var(--os-space-md); }
  .os-calc { position: static; }
}

/* =========================================================
   ЦЕНЫ И СМЕТА
   Слева таблица работ с отметками, справа липкая карточка
   с подсчетом. Отмеченные работы уходят в форму записи.
   ========================================================= */

.os-prices { padding-block: var(--os-section) 0; }

.os-prices__head { margin-bottom: var(--os-space-lg); }

.os-prices__intro {
  max-width: 58ch;
  margin-bottom: var(--os-space-md);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-prices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--os-rail);
  gap: var(--os-gutter);
  align-items: start;
}

/* --- Таблица --- */

.os-prices__table-wrap {
  padding: var(--os-space-md);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper-2);
}

/* Таблиц на странице каталога несколько, идут одна под другой. */
.os-prices__tables {
  display: grid;
  gap: var(--os-space-md);
  min-width: 0;
}

.os-prices__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 var(--os-space-2xs);
  table-layout: fixed;
}

.os-prices__th {
  padding: 0 var(--os-space-md) var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--os-dim);
}

.os-prices__th--old { width: 146px; text-align: right; }
.os-prices__th--now { width: 152px; text-align: right; }

/* Шапка таблицы на странице каталога: название прайс-листа и подводка. */
.os-prices__cap {
  padding: 0 var(--os-space-md) var(--os-space-sm);
  text-align: left;
}

/* Под названием таблицы пунктир, как под заголовком блока перелинковки:
   он отделяет название от подводки и всего, что идет ниже. */
.os-prices__cap-name {
  display: block;
  margin: 0;
  padding-bottom: var(--os-space-xs);
  border-bottom: 1.5px dashed var(--os-line-dash);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-prices__cap-sub {
  display: block;
  max-width: 76ch;
  margin-top: var(--os-space-2xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-prices__group-cell {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-sm) var(--os-space-md) var(--os-space-2xs);
  text-align: left;
}

.os-prices__group-name {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-prices__group-count {
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1;
  color: var(--os-dim);
}

.os-prices__group-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--os-line) 0 5px, transparent 5px 10px);
}

/* Поля в строке небольшие: строк в таблице много, и с крупными отступами
   она растягивается на несколько экранов. */
.os-prices__cell {
  padding: var(--os-space-xs) var(--os-space-md);
  vertical-align: middle;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 26, .06), 0 6px 16px -10px rgba(20, 24, 26, .25);
  transition: background .16s, box-shadow .16s, transform .16s;
}

/* Скругление на ступень меньше карточных: строка невысокая, и с большим
   радиусом она смотрится таблеткой. */
.os-prices__cell:first-child {
  border-start-start-radius: var(--os-r-md);
  border-end-start-radius: var(--os-r-md);
}

.os-prices__cell:last-child {
  border-start-end-radius: var(--os-r-md);
  border-end-end-radius: var(--os-r-md);
}

/* Поиск страницы «Прайс» прячет строки, на телефоне у строки свой display. */
.os-prices__row[hidden] { display: none; }

.os-prices__row:hover .os-prices__cell {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(20, 24, 26, .06), 0 16px 28px -14px rgba(20, 24, 26, .35);
}

/* Отмеченная работа: зеленая заливка и обводка. Обводку собираем
   из внутренних теней ячеек: рамки у строки таблицы быть не может. */
.os-prices__row--on .os-prices__cell {
  background: var(--os-green-soft);
  box-shadow:
    inset 0 1.5px 0 var(--os-green),
    inset 0 -1.5px 0 var(--os-green),
    0 10px 22px -14px rgba(35, 138, 90, .6);
}

.os-prices__row--on .os-prices__cell:first-child {
  box-shadow:
    inset 0 1.5px 0 var(--os-green),
    inset 0 -1.5px 0 var(--os-green),
    inset 1.5px 0 0 var(--os-green),
    0 10px 22px -14px rgba(35, 138, 90, .6);
}

.os-prices__row--on .os-prices__cell:last-child {
  box-shadow:
    inset 0 1.5px 0 var(--os-green),
    inset 0 -1.5px 0 var(--os-green),
    inset -1.5px 0 0 var(--os-green),
    0 10px 22px -14px rgba(35, 138, 90, .6);
}

.os-prices__pick {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  min-width: 0;
  cursor: pointer;
}

.os-prices__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-prices__box {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.7px solid var(--os-line);
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  transition: background .14s, border-color .14s;
}

.os-prices__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--os-paper);
  border-bottom: 2px solid var(--os-paper);
  opacity: 0;
  transform: rotate(-45deg) scale(.6);
  transition: opacity .14s, transform .14s;
}

.os-prices__row:hover .os-prices__box { border-color: var(--os-green-line); }

.os-prices__check:checked + .os-prices__box {
  border-color: var(--os-green);
  background: var(--os-green);
}

.os-prices__check:checked + .os-prices__box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.os-prices__check:focus-visible + .os-prices__box {
  outline: 2px solid var(--os-gold);
  outline-offset: 2px;
}

.os-prices__name {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  color: var(--os-on-paper);
  text-wrap: pretty;
}

.os-prices__check:checked ~ .os-prices__name { font-weight: 600; }

.os-prices__work-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-prices__old {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  text-align: right;
  text-decoration: line-through;
  color: var(--os-dim);
}

.os-prices__now { text-align: right; }

/* Цена стоит плашкой: так цифра не теряется рядом с длинным названием,
   а у отмеченной работы плашка заливается зеленым. */
.os-prices__amount {
  display: inline-flex;
  align-items: baseline;
  gap: var(--os-space-3xs);
  padding: var(--os-space-2xs) var(--os-space-xs);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--os-on-paper);
  transition: background .14s, color .14s;
}

.os-prices__from {
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  color: var(--os-muted);
  transition: color .14s;
}

.os-prices__row--on .os-prices__amount {
  background: var(--os-green);
  color: var(--os-paper);
}

.os-prices__row--on .os-prices__from { color: rgba(255, 255, 255, .78); }

.os-prices__amount--free {
  background: var(--os-gold);
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 12px;
  color: var(--os-ink);
}

.os-prices__row--on .os-prices__amount--free { color: var(--os-paper); }

/* --- Карточка сметы --- */

.os-prices__sum {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper-2);
}

.os-prices__sum-head {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin: 0;
  padding: var(--os-space-md) var(--os-space-md) var(--os-space-sm);
}

.os-prices__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--os-green);
  box-shadow: 0 0 0 4px var(--os-green-soft);
}

.os-prices__sum-title {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--os-on-paper);
}

.os-prices__sum-count {
  margin-left: auto;
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 100px;
  background: var(--os-paper);
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  color: var(--os-muted);
}

.os-prices__sum-empty {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin: 0 var(--os-space-md) var(--os-space-md);
  padding: var(--os-space-sm);
  border: 1.5px dashed var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-prices__sum-empty svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--os-dim);
}

.os-prices__sum-list {
  margin: 0;
  padding: 0 var(--os-space-md);
  max-height: 288px;
  overflow: auto;
  list-style: none;
}

.os-prices__sum-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-2xs);
  padding: var(--os-space-xs) 0;
  border-top: 1px dashed var(--os-line);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--os-on-paper);
}

.os-prices__sum-list li:first-child { border-top: 0; }

.os-prices__sum-name { min-width: 0; }

.os-prices__sum-price {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* Крестик убирает одну работу из сметы, не снимая остальные. */
.os-prices__drop {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border: 0;
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .14s, color .14s;
}

.os-prices__drop:hover,
.os-prices__drop:focus-visible {
  background: var(--os-green);
  color: var(--os-paper);
}

.os-prices__sum-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-prices__sum--has .os-prices__sum-empty { display: none; }
.os-prices__sum:not(.os-prices__sum--has) .os-prices__sum-list { display: none; }

.os-prices__total {
  margin: var(--os-space-xs) var(--os-space-md) 0;
  padding: var(--os-space-sm) 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--os-green-press), #101C16 78%);
  color: var(--os-paper);
}

.os-prices__total-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, .62);
}

.os-prices__total-row + .os-prices__total-row { margin-top: var(--os-space-2xs); }
.os-prices__total-row[hidden] { display: none; }

/* Без строк скидки черта над итогом не нужна: он в блоке один. */
.os-prices__total--plain .os-prices__total-sum {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.os-prices__total-row s {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 13px;
}

.os-prices__total-row b {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 13px;
  color: var(--os-gold);
}

.os-prices__total-sum {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--os-space-xs) 0 0;
  padding-top: var(--os-space-xs);
  border-top: 1px dashed rgba(255, 255, 255, .2);
}

.os-prices__total-sum span {
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: rgba(255, 255, 255, .75);
}

.os-prices__total-sum strong {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
}

.os-prices__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - var(--os-space-xl));
  height: 52px;
  margin: var(--os-space-sm) var(--os-space-md) 0;
  border: 0;
  border-radius: 100px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(190, 150, 0, .9);
  transition: gap .15s, background .15s;
}

.os-prices__cta:hover { background: var(--os-gold-press); gap: 14px; }

.os-prices__cta:disabled {
  background: var(--os-paper-2);
  color: var(--os-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.os-prices__cta svg { width: 16px; height: 16px; }

.os-prices__reset {
  display: block;
  width: 100%;
  margin: var(--os-space-xs) 0 0;
  padding: var(--os-space-xs) var(--os-space-md) var(--os-space-md);
  border: 0;
  background: none;
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
  cursor: pointer;
}

.os-prices__reset:hover { color: var(--os-on-paper); }

/* --- Примечание под таблицей --- */

.os-prices__note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 0 0;
  padding: var(--os-space-sm) var(--os-space-md);
  border: 1px solid var(--os-line);
  border-radius: 18px;
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-prices__note .os-prices__dot { margin-top: 5px; }
.os-prices__note b { font-weight: 700; color: var(--os-on-paper); }

/* --- Адаптив --- */

@media (max-width: 1060px) {
  .os-prices__grid { grid-template-columns: 1fr; }
  .os-prices__sum { position: static; }
}

/* На телефоне строка — карточка в одну колонку: название с описанием
   во всю ширину, под ними цена, чекбокс слева от цены. Квадрат чекбокса
   декоративный (aria-hidden) и снят с потока абсолютом, в DOM строка
   идет в прежнем порядке. Шапка колонок в карточках не нужна. */
@media (max-width: 640px) {
  .os-prices__old { display: none; }

  .os-prices__table { display: block; }
  .os-prices__thead { display: none; }

  .os-prices__tbody {
    display: flex;
    flex-direction: column;
    gap: var(--os-space-2xs);
  }

  .os-prices__group { display: block; }

  .os-prices__row {
    position: relative;
    display: block;
    border-radius: var(--os-r-md);
    box-shadow: 0 1px 2px rgba(20, 24, 26, .06), 0 6px 16px -10px rgba(20, 24, 26, .25);
  }

  .os-prices__row--on {
    outline: 1.5px solid var(--os-green);
    outline-offset: -1.5px;
  }

  .os-prices__cell,
  .os-prices__row:hover .os-prices__cell,
  .os-prices__row--on .os-prices__cell,
  .os-prices__row--on .os-prices__cell:first-child,
  .os-prices__row--on .os-prices__cell:last-child {
    display: block;
    padding: var(--os-space-sm) var(--os-space-sm) 0;
    border-radius: var(--os-r-md) var(--os-r-md) 0 0;
    box-shadow: none;
    /* Без подъема по наведению: transform сделал бы ячейку точкой отсчета
       для квадрата чекбокса, и тот уезжал бы к названию. */
    transform: none;
  }

  .os-prices__cell:last-child,
  .os-prices__row:hover .os-prices__cell:last-child,
  .os-prices__row--on .os-prices__cell:last-child {
    padding: var(--os-space-xs) var(--os-space-sm) var(--os-space-sm) calc(var(--os-space-sm) + 24px + var(--os-space-xs));
    border-radius: 0 0 var(--os-r-md) var(--os-r-md);
    text-align: left;
  }

  /* Квадрат по центру плашки цены: плашка 32px, квадрат 24px. */
  .os-prices__box {
    position: absolute;
    left: var(--os-space-sm);
    bottom: calc(var(--os-space-sm) + 4px);
  }

  .os-prices__group-cell { padding-inline: var(--os-space-sm); }
  /* Таблица здесь блок, и caption со своим table-caption оборачивался
     в анонимную таблицу, сжатую по самому длинному слову. */
  .os-prices__cap {
    display: block;
    padding-inline: var(--os-space-sm);
  }
}

/* --- Окно записи по смете --- */

.os-prices__modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: var(--os-space-lg);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper);
  color: var(--os-on-paper);
  overflow: auto;
}

.os-prices__modal::backdrop { background: rgba(16, 20, 26, .62); }

.os-prices__close {
  position: absolute;
  top: var(--os-space-sm);
  right: var(--os-space-sm);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  cursor: pointer;
  transition: background .14s;
}

.os-prices__close:hover { background: var(--os-line); }
.os-prices__close svg { width: 18px; height: 18px; }

.os-prices__modal-kick {
  margin: 0;
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--os-green-press);
}

.os-prices__modal-title {
  margin: 10px 0 var(--os-space-md);
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-prices__modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-prices__modal-list li {
  display: flex;
  align-items: baseline;
  gap: var(--os-space-xs);
  padding: 10px 0;
  border-top: 1px dashed var(--os-line);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
}

.os-prices__modal-list li:first-child { border-top: 0; }

.os-prices__modal-price {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 700;
  white-space: nowrap;
}

.os-prices__modal-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--os-space-xs) 0 var(--os-space-md);
  padding-top: var(--os-space-xs);
  border-top: 1px solid var(--os-line);
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--os-muted);
}

.os-prices__modal-total strong {
  margin-left: auto;
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--os-on-paper);
}

/* --- Форма в окне --- */

.os-estimate__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.os-estimate__two .wpcf7-form-control-wrap { display: block; }

.os-estimate__field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: var(--os-on-paper);
  transition: border-color .14s, background .14s;
}

.os-estimate__field:focus { outline: none; border-color: var(--os-green); background-color: var(--os-paper); }
.os-estimate__field::placeholder { color: var(--os-dim); }

.os-estimate__chips { margin-bottom: var(--os-space-xs); }

.os-estimate__chips .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
}

.os-estimate__chips .wpcf7-list-item { margin: 0; }

.os-estimate__chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.os-estimate__chips .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: 100px;
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--os-muted);
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}

.os-estimate__chips .wpcf7-list-item-label:hover { border-color: var(--os-green-line); }

.os-estimate__chips input:checked + .wpcf7-list-item-label {
  border-color: var(--os-green);
  background: var(--os-green);
  color: var(--os-paper);
}

.os-estimate__chips input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--os-gold);
  outline-offset: 2px;
}

.os-estimate__agree {
  margin-bottom: var(--os-space-sm);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--os-muted);
}

.os-estimate__agree label {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-2xs);
  cursor: pointer;
}

.os-estimate__agree input { margin: 1px 0 0; accent-color: var(--os-green); }

.os-estimate__agree a {
  color: var(--os-green-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-estimate__submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 100px;
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(190, 150, 0, .9);
  transition: background .15s;
}

.os-estimate__submit:hover { background: var(--os-gold-press); }

.os-estimate__submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Служебная разметка плагина --- */

.os-prices__form .hidden-fields-container,
.os-prices__form .wpcf7_hp_field { display: none; }

.os-prices__form .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.os-prices__form .wpcf7-response-output {
  margin: var(--os-space-xs) 0 0;
  padding: var(--os-space-xs) 14px;
  border: 1px solid rgba(20, 24, 30, .12);
  border-radius: var(--os-r-md);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--os-on-paper);
}

.os-prices__form .wpcf7-response-output[aria-hidden="true"] { display: none; }

.os-prices__form .invalid .wpcf7-response-output,
.os-prices__form .failed .wpcf7-response-output,
.os-prices__form .spam .wpcf7-response-output,
.os-prices__form .aborted .wpcf7-response-output {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
  color: var(--os-error);
}

.os-prices__form .sent > *:not(.wpcf7-response-output) { display: none; }

.os-prices__form .sent .wpcf7-response-output {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin: 0;
  padding: var(--os-space-md);
  border-color: var(--os-green-line);
  background: var(--os-green-soft);
  font-size: 15px;
  line-height: 1.45;
}

.os-prices__form .sent .wpcf7-response-output::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--os-green);
  -webkit-mask: url("../assets/icons/prices-check.svg") no-repeat center / contain;
  mask: url("../assets/icons/prices-check.svg") no-repeat center / contain;
}

.os-prices__form .wpcf7-not-valid {
  border-color: var(--os-error-line);
  background: var(--os-error-soft);
}

.os-prices__form .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--os-error);
}

.os-prices__form .wpcf7-spinner { margin: 0 auto; }

/* =========================================================
   ОТЗЫВЫ
   Правила перенесены из макета. Отступление одно: плита сводки
   собрана на градиентах поверх --os-ink, а не на фото ремзоны —
   своего снимка у блока пока нет, чужой брать нельзя.
   ========================================================= */

.os-reviews { padding-block: var(--os-section) 0; }

/* На архиве заголовок блока скрыт, отступ раздела оставлял бы пустую полосу
   между лидом страницы и вкладками. */
.os-reviews--archive { padding-block: 0; }

.os-reviews__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.os-reviews__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-sm);
  flex-wrap: wrap;
  margin-top: var(--os-space-md);
  padding: var(--os-space-3xs);
  border-radius: 15px;
  background: var(--os-paper-2);
  border: 1px solid var(--os-line);
}

.os-reviews__tabs { display: flex; flex-wrap: wrap; gap: var(--os-space-3xs); }

.os-reviews__tab {
  height: 40px;
  padding: 0 var(--os-space-sm);
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  background: transparent;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  color: var(--os-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.os-reviews__tab:hover { color: var(--os-on-paper); }

.os-reviews__tab.is-on {
  background: var(--os-green);
  color: var(--os-paper);
  box-shadow: 0 10px 22px -14px rgba(52, 171, 114, .95);
}

.os-reviews__tab-num {
  padding: var(--os-space-3xs) var(--os-space-2xs);
  border-radius: 20px;
  background: var(--os-paper);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1;
  color: var(--os-dim);
}

.os-reviews__book { height: 42px; padding: 0 20px; white-space: nowrap; }
.os-reviews__book svg { width: 15px; height: 15px; transition: transform .14s; }
.os-reviews__book:hover svg { transform: translateX(3px); }

.os-reviews__grid {
  display: grid;
  grid-template-columns: var(--os-span-4) minmax(0, 1fr);
  gap: var(--os-gutter);
  margin-top: var(--os-space-md);
  align-items: start;
}

/* Станция без заведенных отзывов показывает одну сводку с оценками площадок:
   второй колонке нечем заполниться, и сводка занимает ряд целиком. */
.os-reviews__grid--sum { grid-template-columns: minmax(0, 1fr); }

.os-reviews__sum {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
  padding: var(--os-space-lg) 28px var(--os-space-md);
  border-radius: var(--os-r-card);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(52, 171, 114, .30) 0%, rgba(22, 24, 29, 0) 55%),
    linear-gradient(180deg, var(--os-ink-2) 0%, var(--os-ink) 62%, #0D0F13 100%);
}

.os-reviews__score {
  display: flex;
  align-items: baseline;
  gap: var(--os-space-sm);
  margin: 0;
}

.os-reviews__score-num {
  font-family: var(--os-font-num);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--os-paper);
}

.os-reviews__stars { display: inline-flex; gap: var(--os-space-3xs); color: #F5A623; }
.os-reviews__stars svg { width: 14px; height: 14px; fill: currentColor; }
.os-reviews__star--off { color: #C9CCC7; }
.os-reviews__score .os-reviews__stars svg { width: 19px; height: 19px; }

.os-reviews__sum-sub {
  margin-top: 18px;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: #A7ADB6;
}

.os-reviews__sum-addr {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: #A7ADB6;
}

.os-reviews__sum-addr svg { width: 14px; height: 14px; flex: none; color: var(--os-green); }

.os-reviews__plat {
  margin: var(--os-space-md) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.os-reviews__plat-row {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding: var(--os-space-xs) var(--os-space-3xs);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: padding .13s;
}

.os-reviews__plat li:last-child .os-reviews__plat-row { border-bottom: 0; }
a.os-reviews__plat-row:hover { padding-left: var(--os-space-2xs); }

.os-reviews__plat-logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--os-r-sm);
  display: block;
}

.os-reviews__plat-name {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: var(--os-text-sm);
  line-height: 1.2;
  color: var(--os-paper);
  transition: color .13s;
}

a.os-reviews__plat-row:hover .os-reviews__plat-name { color: var(--os-green); }

.os-reviews__plat-val {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--os-paper);
}

.os-reviews__plat-val .os-reviews__stars svg { width: 13px; height: 13px; }

.os-reviews__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
  height: 50px;
  border-radius: 14px;
  background: var(--os-green);
  color: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(52, 171, 114, .95);
  transition: background .15s;
}

.os-reviews__all:hover { background: var(--os-green-press); }
.os-reviews__all svg { width: 16px; height: 16px; transition: transform .14s; }
.os-reviews__all:hover svg { transform: translateX(3px); }

.os-reviews__note {
  margin-top: var(--os-space-xs);
  text-align: center;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: #868C95;
}

.os-reviews__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--os-space-sm); }

/* Набор карточек вкладки и лента после первой карточки: на десктопе
   карточки стоят прямо в сетке, обертки ее не трогают. */
.os-reviews__set,
.os-reviews__rest { display: contents; }

.os-reviews__set[hidden] { display: none; }

.os-reviews__card {
  display: flex;
  flex-direction: column;
  padding: var(--os-space-md) var(--os-space-md) var(--os-space-sm);
  border-radius: 22px;
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(168deg, rgba(238, 239, 235, .82), rgba(226, 228, 222, .66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 0 0 1px rgba(20, 24, 30, .07),
    0 16px 36px -28px rgba(20, 24, 30, .4);
  transition: transform .2s, box-shadow .2s;
}

.os-reviews__card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(20, 24, 30, .08),
    0 30px 56px -30px rgba(20, 24, 30, .45);
}

.os-reviews__card-top { display: flex; align-items: center; gap: var(--os-space-xs); }

.os-reviews__card-name {
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--os-on-paper);
}

.os-reviews__card-date {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  color: var(--os-dim);
}

.os-reviews__card-stars { margin-left: auto; display: inline-flex; gap: var(--os-space-3xs); color: #F5A623; }
.os-reviews__card-stars svg { width: 14px; height: 14px; fill: currentColor; }

.os-reviews__card-text {
  flex: 1;
  margin-top: var(--os-space-sm);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--os-on-paper);
}

.os-reviews__card-text p { margin: 0 0 var(--os-space-2xs); }
.os-reviews__card-text p:last-child { margin-bottom: 0; }
.os-reviews__card-text b { font-weight: 700; }

.os-reviews__card-foot {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
  padding-top: var(--os-space-sm);
  border-top: 1px dashed var(--os-green-line);
}

.os-reviews__card-place {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  min-width: 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--os-muted);
}

.os-reviews__card-place svg { width: 14px; height: 14px; flex: none; color: var(--os-green-press); }
.os-reviews__card-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.os-reviews__src {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  flex: none;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  color: var(--os-on-paper);
  text-decoration: none;
  cursor: pointer;
  transition: color .13s;
}

.os-reviews__src:hover { color: var(--os-green); }

.os-reviews__src svg { width: 13px; height: 13px; color: var(--os-green); transition: transform .13s; }

.os-reviews__src:hover svg { transform: translateY(-2px); }

@media (max-width: 1060px) {
  .os-reviews__grid { grid-template-columns: 1fr; }
  .os-reviews__sum { position: static; }
}

@media (max-width: 900px) {
  .os-reviews__cards { grid-template-columns: 1fr; }
  .os-reviews__bar { flex-direction: column; align-items: stretch; }
  .os-reviews__tab { height: 34px; padding: 0 var(--os-space-xs); font-size: 12px; }
  .os-reviews__book { justify-content: center; }
}

/* ============================================================
   БЛОК «ТЕКСТ» (SEO-текст)
   ============================================================ */

.os-text-sec {
  max-width: var(--os-shell);
  margin: 0 auto;
  padding: 64px 20px 88px;
}

.os-text-sec__h {
  font: 800 var(--os-h1)/1.08 var(--os-font-title);
  letter-spacing: -.02em;
  color: var(--os-on-paper);
  margin: 0 0 12px;
}

.os-text-sec__sub {
  font: 400 17px/1.6 var(--os-font-text);
  color: var(--os-muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.os-text-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--os-rail);
  gap: var(--os-gutter);
  margin-top: 28px;
  align-items: start;
}

/* Тем же оформлением набрано содержимое обычной страницы (page.php):
   политики, гарантии и другие тексты из редактора. Классов у тегов там нет,
   поэтому правила привязаны к тегам внутри обертки. */
.os-text-sec__body,
.os-page__body {
  background: #fff;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  padding: 34px 40px 30px;
}

/* Без бокового меню карточка не делит ряд с колонкой, но ширину держит ту же,
   что у текста в блоке: иначе строка уходит за сотню знаков. */
.os-page__body { max-width: calc(var(--os-shell) - var(--os-aside)); }

.os-text-sec__body h3,
.os-page__body h2 {
  font: 700 22px/1.25 var(--os-font-title);
  letter-spacing: -.02em;
  color: var(--os-on-paper);
  margin: 34px 0 0;
}

/* На странице текст бывает разбит редактором на обертки (section),
   и заголовок там первый в каждой. Отступ снимается только у самого
   первого элемента карточки, с оберткой или без. */
.os-text-sec__body h3:first-child,
.os-page__body > :first-child,
.os-page__body > :first-child > :first-child { margin-top: 0; }

.os-page__body h3 {
  font: 700 18px/1.3 var(--os-font-title);
  letter-spacing: -.01em;
  color: var(--os-on-paper);
  margin: 26px 0 0;
}

.os-text-sec__body p,
.os-page__body p {
  font: 400 15.5px/1.4 var(--os-font-text);
  color: var(--os-muted);
  margin: 12px 0 0;
  text-wrap: pretty;
}

.os-text-sec__body a,
.os-page__body a,
.os-art__text a {
  color: var(--os-on-paper);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--os-green-line);
  transition: box-shadow .15s, color .15s;
}

.os-text-sec__body a:hover,
.os-page__body a:hover,
.os-art__text a:hover {
  color: var(--os-green-press);
  box-shadow: inset 0 -2px 0 var(--os-green);
}

.os-text-sec__body ul,
.os-page__body ul,
.os-page__body ol,
.os-art__text ul,
.os-art__text ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.os-text-sec__body li,
.os-page__body li,
.os-art__text li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px dashed var(--os-line);
  font: 400 15px/1.6 var(--os-font-text);
  color: var(--os-muted);
}

.os-text-sec__body li:first-child,
.os-page__body li:first-child,
.os-art__text li:first-child { border-top: 0; }

.os-text-sec__body li::before,
.os-page__body li::before,
.os-art__text li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--os-green);
  font-weight: 700;
  font-style: normal;
  line-height: 1.6;
}

/* Нумерованный список: вместо тире номер пункта тем же зеленым. */
.os-page__body ol,
.os-art__text ol { counter-reset: os-page-ol; }
.os-page__body ol > li,
.os-art__text ol > li { counter-increment: os-page-ol; padding-left: 28px; }
.os-page__body ol > li::before,
.os-art__text ol > li::before { content: counter(os-page-ol) "."; }

/* Таблица в тексте — по образцу прайса: серая подложка, строки белыми
   плашками, заголовки колонок мелкой капителью. */
.os-page__body table,
.os-art__text table {
  width: 100%;
  margin: var(--os-space-md) 0 0;
  padding: 0 var(--os-space-sm) var(--os-space-2xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-lg);
  background: var(--os-paper-2);
  border-collapse: separate;
  border-spacing: 0 var(--os-space-2xs);
}

.os-page__body th,
.os-art__text th {
  padding: var(--os-space-sm) var(--os-space-sm) 0;
  font: 700 11px/1.3 var(--os-font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  color: var(--os-dim);
}

.os-page__body td,
.os-art__text td {
  padding: var(--os-space-xs) var(--os-space-sm);
  vertical-align: top;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 26, .06), 0 6px 16px -10px rgba(20, 24, 26, .25);
  font: 400 14px/1.5 var(--os-font-text);
  color: var(--os-muted);
}

.os-page__body td:first-child,
.os-art__text td:first-child {
  border-start-start-radius: var(--os-r-md);
  border-end-start-radius: var(--os-r-md);
  font-weight: 600;
  color: var(--os-on-paper);
}

.os-page__body td:last-child,
.os-art__text td:last-child {
  border-start-end-radius: var(--os-r-md);
  border-end-end-radius: var(--os-r-md);
}

.os-text-sec__body li b,
.os-page__body li b,
.os-page__body li strong,
.os-art__text li b,
.os-art__text li strong {
  color: var(--os-on-paper);
  font-weight: 700;
}

.os-text-sec__body li i { display: none; }

.os-text-sec__body li p { display: inline; }
.os-text-sec__body li br { display: none; }

.os-text-sec__body .cut {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--os-paper-2);
  border: 1px solid var(--os-line);
  font: 500 14.5px/1.6 var(--os-font-text);
  color: var(--os-muted);
}

.os-text-sec__body .cut b { color: var(--os-on-paper); }

.os-text-sec__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
}

.os-text-sec__box {
  background: #fff;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  padding: 20px 22px;
}

.os-text-sec__box--parts {
  background: var(--os-paper-2);
  border-color: transparent;
}

.os-text-sec__box-h {
  font: 700 17px/1.25 var(--os-font-title);
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-text-sec__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.os-text-sec__links a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 100px;
  border: 1px solid var(--os-line);
  font: 600 13px/1 var(--os-font-title);
  color: var(--os-on-paper);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}

.os-text-sec__links a:hover {
  border-color: var(--os-green-line);
  background: var(--os-green-soft);
  color: var(--os-green-press);
}

.os-text-sec__brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.os-text-sec__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--os-paper);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-sm);
  padding: 10px 12px;
  min-height: 48px;
}

.os-text-sec__brand-logo {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.os-text-sec__brand-name {
  font: 700 13px/1 var(--os-font-title);
  color: var(--os-on-paper);
  text-align: center;
}

.os-text-sec__box--cta {
  background: linear-gradient(150deg, var(--os-green-press), #101C16 78%);
  border-color: transparent;
  color: #fff;
}

.os-text-sec__box--cta .os-text-sec__box-h { color: #fff; }

.os-text-sec__box--cta p {
  font: 400 13.5px/1.55 var(--os-font-text);
  color: rgba(255, 255, 255, .68);
  margin: 10px 0 0;
}

.os-text-sec__cta {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 1060px) {
  .os-text-sec__grid { grid-template-columns: 1fr; }
  .os-text-sec__side { position: static; }
  .os-text-sec__h { font-size: clamp(28px, 7vw, 36px); }
  .os-text-sec__body,
  .os-page__body { padding: 28px 24px; }
}

/* Четыре колонки на телефоне не помещаются: таблица листается вбок,
   колонки не сжимаются в столбик по слову. */
@media (max-width: 767px) {
  .os-page__body { padding: 22px 16px; }
  .os-page__body table,
  .os-art__text table { display: block; overflow-x: auto; }
  .os-page__body th,
  .os-page__body td,
  .os-art__text th,
  .os-art__text td { min-width: 200px; }
}

@media (max-width: 600px) {
  .os-text-sec { padding: 44px 20px 56px; }
}

/* =========================================================
   Архивы акций, кейсов, отзывов и сотрудников, обычная страница
   (archive-os_promo, archive-os_case, archive-os_review, archive-os_staff, page.php)
   ========================================================= */

.os-promo-archive__hero,
.os-art-archive__hero,
.os-cases-page__hero,
.os-reviews-page__hero,
.os-staff-page__hero,
.os-results__hero,
.os-page__hero { padding-block: var(--os-space-md) 0; }

.os-promo-archive__title,
.os-art-archive__title,
.os-cases-page__title,
.os-reviews-page__title,
.os-staff-page__title,
.os-results__title,
.os-page__title {
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
  margin: 0;
}

.os-promo-archive__lead,
.os-art-archive__lead,
.os-cases-page__lead,
.os-reviews-page__lead,
.os-staff-page__lead,
.os-results__lead {
  margin: var(--os-space-xs) 0 0;
  font-size: var(--os-text-lg);
  line-height: var(--os-leading-normal);
  color: var(--os-muted);
}

/* Ширина боковой колонки общая со страницей кейса: токен --os-aside. */
.os-lst {
  display: grid;
  grid-template-columns: var(--os-aside) minmax(0, 1fr);
  gap: 0 var(--os-space-lg);
  align-items: start;
  padding-block: var(--os-space-lg) 0;
}

/* Обычная страница не из бокового меню: колонка одна. */
.os-lst--solo { grid-template-columns: minmax(0, 1fr); }

.os-lst__aside {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
  display: flex;
  flex-direction: column;
  gap: var(--os-space-sm);
}

.os-lst__ask {
  --os-ask-pad: 20px;
  --os-ask-phone: 22px;
  --os-ask-btn-pad: var(--os-space-sm);
}

.os-lst__h {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: var(--os-text-2xl);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.os-cases-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Карточка общая с блоком «Мастера и директор», ширину там держит flex-basis.
   В сетке он не работает, колонку задает сама сетка. */
.os-staff-page__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.os-lst__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--os-muted);
  padding-block: var(--os-section);
}

.os-lst__more { display: flex; justify-content: center; padding-block: var(--os-space-lg) 0; }

.os-lst__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--os-space-lg);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .14s, color .14s;
}

.os-lst__more-btn[hidden] { display: none; }

.os-lst__more-btn:hover { border-color: var(--os-green-line); color: var(--os-green-press); }

/* --- Разделы листинга: список в боковой колонке --- */

.os-cfl {
  padding: var(--os-space-2xs);
  border-radius: var(--os-r-lg);
  background: var(--os-tint-grad);
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .05);
}

.os-cfl__nodes { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }

.os-cfl__node {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--os-r-md);
  background: transparent;
  box-shadow: none;
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}

.os-cfl__node svg { flex: none; width: 18px; height: 18px; color: var(--os-muted); transition: color .15s; }
.os-cfl__node:hover { background: var(--os-green-soft); }
.os-cfl__node:hover svg { color: var(--os-green-press); }

.os-cfl__node.is-on {
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
}

.os-cfl__node.is-on svg { color: var(--os-green-press); }

.os-cfl__label { flex: 1 1 auto; min-width: 0; }

.os-cfl__n {
  flex: none;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 12px;
  color: var(--os-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-cfl__node--off { color: var(--os-dim); cursor: default; }
.os-cfl__node--off svg { color: var(--os-dim); }
.os-cfl__node--off:hover { background: transparent; }
.os-cfl__node--off:hover svg { color: var(--os-dim); }
.os-cfl__node--off .os-cfl__n { color: var(--os-dim); }

/* Пункт оглавления статьи: неактивные тоньше и серые, текущий — белая
   плашка жирным, как у выбранного раздела. */
.os-cfl__node--toc { min-height: 40px; padding-block: 8px; font-weight: 500; color: var(--os-muted); }
.os-cfl__node--toc.is-on { font-weight: 700; color: var(--os-on-paper); }

.os-cfl__node.is-on .os-cfl__n {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--os-green-press);
  color: var(--os-paper);
  font-size: 12.5px;
  line-height: 1;
}

@media (max-width: 1023px) {
  .os-lst { grid-template-columns: minmax(0, 1fr); gap: var(--os-space-lg); }
  .os-lst__aside { position: static; }
  /* Колонка уходит над контентом, и карточка с телефоном загораживала бы
     его. Телефон и запись на мобиле и так в шапке. */
  .os-lst__ask { display: none; }
  .os-cfl__nodes { flex-direction: row; flex-wrap: wrap; gap: var(--os-space-3xs); }
  .os-cfl__node { width: auto; }
}

@media (max-width: 640px) {
  .os-cfl__nodes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .os-cfl__nodes::-webkit-scrollbar { display: none; }
  .os-cfl__node { flex: none; }
  .os-cases-page__grid { grid-template-columns: 1fr; }
  .os-staff-page__grid { grid-template-columns: 1fr 1fr; }
  .os-lst__more-btn { width: 100%; }
}

/* =========================================================
   Страница акции (single-os_promo)
   ========================================================= */

/* Заголовок с лидом, карточка и текст берут классы кейса и сотрудника,
   здесь только то, чего у них нет. Первый экран — карточка условий
   и обложка, колонка карточки из общего токена --os-aside. */
.os-promo-single__grid {
  display: grid;
  grid-template-columns: var(--os-aside) minmax(0, 1fr);
  gap: var(--os-space-sm);
  align-items: stretch;
  margin-top: var(--os-space-md);
}

/* --- цена в шапке карточки --- */

.os-promo-single__price {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-3xs);
  margin-bottom: var(--os-space-sm);
  padding-bottom: var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
}

.os-promo-single__price-label {
  font-size: 13px;
  line-height: 1.2;
  color: var(--os-muted);
}

.os-promo-single__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.os-promo-single__price-now {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: var(--os-text-4xl);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-green-press);
}

.os-promo-single__price-old {
  font-family: var(--os-font-num);
  font-size: var(--os-text-lg);
  color: var(--os-dim);
}

.os-promo-single__price-note { font-size: 12.5px; line-height: 1.35; color: var(--os-muted); }

/* «Осталось N дней» стоит под датой, а не справа от нее:
   в колонке карточки строке с плашкой не хватит ширины. */
.os-promo-single__left {
  align-self: flex-start;
  margin-top: var(--os-space-3xs);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--os-green-soft);
  color: var(--os-green-press);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

/* --- обложка --- */

/* Высоту ряда задает карточка, обложка тянется под нее; фото лежит
   слоем и обрезается по рамке, поэтому его пропорции ряд не раздувают. */
.os-promo-single__stage {
  position: relative;
  min-height: 360px;
  margin: 0;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: var(--os-ink-2);
}

.os-promo-single__stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Водяной знак — цена или слово из поля «Водяной знак», как на плитке акции. */
.os-promo-single__mark {
  position: absolute;
  top: var(--os-space-md);
  left: var(--os-space-lg);
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--os-paper);
  opacity: .14;
  white-space: nowrap;
}

.os-promo-single__chips {
  position: absolute;
  left: var(--os-space-md);
  right: var(--os-space-md);
  bottom: var(--os-space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
}

.os-promo-single__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--os-paper-3);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.os-promo-single__chip svg { flex: none; width: 16px; height: 16px; }

.os-promo-single__chip--date { background: var(--os-green); color: var(--os-paper); }

/* --- об акции --- */

/* Заголовок стоит в колонке карточки, текст — в колонке обложки. */
.os-promo-single__about {
  display: grid;
  grid-template-columns: var(--os-aside) minmax(0, 1fr);
  gap: var(--os-space-sm);
  align-items: start;
  padding-block: var(--os-section) 0;
}

.os-promo-single__about .os-case__prose { max-width: 70ch; }

@media (max-width: 1023px) {
  .os-promo-single__grid,
  .os-promo-single__about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .os-promo-single__stage { min-height: 240px; }
  .os-promo-single__chips { left: var(--os-space-sm); right: var(--os-space-sm); bottom: var(--os-space-sm); }
}

/* ===== КОНТАКТЫ ===== */

.os-cts__hero { padding-block: var(--os-space-lg) 0; }

.os-cts__title {
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
  margin: 0 0 var(--os-space-md);
}

.os-cts__lead {
  margin: 0;
  font-size: var(--os-text-lg);
  line-height: var(--os-leading-normal);
  color: var(--os-muted);
}

.os-cts__grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--os-space-md);
  align-items: start;
  padding-block: var(--os-space-lg) 0;
}

.os-cts__side { position: sticky; top: calc(var(--os-header-h) + var(--os-space-sm)); }

.os-cts__main { min-width: 0; }

/* --- Карточка связи --- */

.os-cts__card {
  display: flex;
  flex-direction: column;
  padding: var(--os-space-md);
  border-radius: var(--os-r-card);
  background: var(--os-paper-2);
  transition: transform .16s, box-shadow .18s;
}

.os-cts__card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4); }

.os-cts__cap {
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-cts__phone { margin-top: var(--os-space-2xs); }

.os-cts__note {
  margin: var(--os-space-2xs) 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-cts__act {
  display: flex;
  align-items: center;
  gap: var(--os-space-3xs);
  margin-top: var(--os-space-sm);
}

.os-cts__book {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: var(--os-r-md);
  background: var(--os-green);
  color: var(--os-paper);
  font-family: var(--os-font-title);
  font-size: 15px;
  text-decoration: none;
  transition: background .14s;
}

.os-cts__book:hover { background: var(--os-green-press); }

.os-cts__msg {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  text-decoration: none;
  transition: transform .14s;
}

.os-cts__msg:hover { transform: translateY(-1px); }
.os-cts__msg-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; }

.os-cts__rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px var(--os-space-sm);
  margin: var(--os-space-md) 0 0;
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
  font-size: 13px;
}

.os-cts__rows--legal {
  margin-top: var(--os-space-2xs);
  padding-top: 0;
  border-top: 0;
}

.os-cts__rows dt { color: var(--os-muted); }

.os-cts__rows dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--os-on-paper);
}

.os-cts__rows a { color: inherit; text-decoration: none; transition: color .14s; }
.os-cts__rows a:hover { color: var(--os-green-press); }

.os-cts__week span {
  display: block;
  font-family: var(--os-font-num);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-cts__legal {
  margin-top: var(--os-space-md);
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
}

.os-cts__file {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--os-space-md);
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: color .14s;
}

.os-cts__file:hover { color: var(--os-green-press); }
.os-cts__file i { margin-left: auto; font-style: normal; font-weight: 500; color: var(--os-dim); }

/* --- Карта --- */

.os-cts__map-sec { position: relative; }

.os-cts__lead-card {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 320px;
  max-width: calc(100% - 44px);
  padding: var(--os-space-sm);
  border: 1px solid var(--os-line);
  border-radius: 18px;
  background: var(--os-paper);
  box-shadow: 0 30px 60px -26px rgba(20, 24, 30, .5);
}

.os-cts__lead-title {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: var(--os-text-lg);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--os-on-paper);
}

.os-cts__counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-xs);
}

.os-cts__count {
  padding: var(--os-space-2xs);
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
}

.os-cts__count--shop { background: var(--os-gold-soft); }

.os-cts__count-num {
  display: block;
  font-family: var(--os-font-num);
  font-size: var(--os-text-xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--os-on-paper);
}

.os-cts__count-cap {
  display: block;
  margin-top: var(--os-space-3xs);
  font-size: var(--os-text-xs);
  line-height: 1.35;
  color: var(--os-muted);
}

.os-cts__jump {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin-top: var(--os-space-xs);
  padding-top: var(--os-space-xs);
  border-top: 1px solid var(--os-line);
}

.os-cts__jump-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--os-gold);
  color: var(--os-on-paper);
  animation: os-cts-nudge 1.8s ease-in-out infinite;
}

.os-cts__jump-icon svg { width: 16px; height: 16px; }

.os-cts__jump-link {
  font-family: var(--os-font-title);
  font-size: var(--os-text-sm);
  font-weight: 600;
  color: var(--os-on-paper);
  text-decoration: none;
}

.os-cts__jump-link:hover { color: var(--os-green); }

.os-cts__jump-note {
  margin: 2px 0 0;
  font-size: var(--os-text-xs);
  line-height: 1.35;
  color: var(--os-muted);
}

@keyframes os-cts-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .os-cts__jump-icon { animation: none; }
}

.os-cts__map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper-2);
}

.os-cts__canvas { position: absolute; inset: 0; }

.os-cts__stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--os-space-xl);
  text-align: center;
  color: var(--os-muted);
}

/* --- Станции --- */

.os-cts__all { padding-block: var(--os-space-lg) 0; scroll-margin-top: var(--os-space-3xl); }
.os-cts__empty { margin-top: var(--os-space-md); color: var(--os-muted); }

.os-cts__sto {
  display: flex;
  gap: var(--os-space-md);
  margin-top: var(--os-space-md);
  padding: var(--os-space-md);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-card);
  background: var(--os-paper);
  transition: transform .16s, box-shadow .18s;
}

.os-cts__sto:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4); }

.os-cts__shots {
  flex: 0 0 300px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--os-space-2xs);
  align-content: start;
}

.os-cts__shot {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-3);
}

.os-cts__shot:first-child { grid-column: span 2; grid-row: span 2; }

.os-cts__shot-link {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  text-decoration: none;
}

.os-cts__shot-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-cts__shot-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 29, .72);
  transition: background .14s;
}

.os-cts__shot-link:hover::after { background: rgba(22, 24, 29, .84); }

.os-cts__shot-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  color: var(--os-paper);
}

.os-cts__shot-label svg { width: 34px; height: 34px; }

.os-cts__info { flex: 1 1 auto; min-width: 0; }

.os-cts__head { display: flex; align-items: center; gap: var(--os-space-2xs); }

.os-cts__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: var(--os-text-xl);
  line-height: 1.15;
  color: var(--os-on-paper);
}

.os-cts__name-link { color: inherit; text-decoration: none; transition: color .14s; }
.os-cts__name-link:hover { color: var(--os-green-press); }

.os-cts__n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--os-line);
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-on-paper);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 12px;
}

.os-cts__state { margin-left: auto; }

.os-cts__badge {
  display: inline-block;
  margin-top: var(--os-space-2xs);
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--os-gold);
  color: var(--os-black);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .03em;
}

.os-cts__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--os-space-md);
  margin: var(--os-space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.os-cts__fact {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-2xs);
  font-size: 13px;
  line-height: 1.35;
  color: var(--os-muted);
}

.os-cts__fact img { width: 18px; height: 18px; flex: none; }

.os-cts__fact--phone { align-items: center; }

.os-cts__tel .os-phone__num i { color: inherit; }

.os-cts__hours span {
  display: block;
  font-family: var(--os-font-num);
  font-variant-numeric: tabular-nums lining-nums;
}

.os-cts__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-top: var(--os-space-sm);
}

.os-cts__nav { gap: 6px; padding: 0 var(--os-space-sm); }
.os-cts__nav img { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  .os-cts__grid { grid-template-columns: minmax(0, 1fr); }
  .os-cts__side { position: static; }
  .os-cts__map { min-height: 420px; }
  .os-cts__sto { flex-direction: column; }
  .os-cts__shots { flex: none; width: 100%; }
}

@media (max-width: 700px) {
  .os-cts__lead-card {
    position: static;
    width: auto;
    max-width: none;
    margin-bottom: var(--os-space-sm);
    box-shadow: none;
  }

  .os-cts__facts { grid-template-columns: 1fr; }
  .os-cts__state { margin-left: 0; }
  .os-cts__head { flex-wrap: wrap; }
}

/* ===== СТРАНИЦА СТАНЦИИ =====

   Раскладка первого экрана, карточка связи и строки фактов берутся у контактов:
   это один компонент, вторая копия тех же правил разошлась бы с оригиналом
   на первой же правке. Своего у станции расписание по дням, кнопки навигаторов
   под карточкой и галерея. */

.os-loc__hero { padding-block: var(--os-space-lg) 0; }

/* Колонка не липкая, в отличие от контактов: с расписанием на семь дней
   карточка выше экрана, и прилипание обрезало бы ей низ. */
.os-loc__side { min-width: 0; }

.os-loc__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: var(--os-space-2xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .14s, color .14s;
}

.os-loc__link:hover { border-color: var(--os-green-line); color: var(--os-green-press); }

.os-loc__facts {
  display: grid;
  gap: var(--os-space-2xs);
  margin: var(--os-space-md) 0 0;
  padding: 0;
  list-style: none;
}

.os-loc__week {
  margin-top: var(--os-space-md);
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
}

.os-loc__week-head {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  margin-bottom: var(--os-space-2xs);
}

.os-loc__week-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px var(--os-space-sm);
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.os-loc__week-rows dt { color: var(--os-muted); }

.os-loc__week-rows dd {
  margin: 0;
  text-align: right;
  font-family: var(--os-font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

.os-loc__week-off { font-weight: 400; color: var(--os-dim); }

.os-loc__nav {
  display: grid;
  gap: var(--os-space-3xs);
  margin-top: var(--os-space-md);
}

.os-loc__links { padding-block: var(--os-section) 0; }

/* --- Как выглядит станция --- */

.os-media { padding-block: var(--os-section) 0; }

/* Плитки внутри текста статьи: без своей шапки, отступ как у абзаца. */
.os-media--prose { padding-block: 0; margin-top: var(--os-space-md); }

.os-media__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--os-space-md);
}

.os-media__head-l { min-width: 0; }

.os-media__all {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 44px;
  padding: 0 var(--os-space-md);
  border: 1px solid var(--os-line);
  border-radius: 999px;
  background: var(--os-paper);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .14s, color .14s;
}

.os-media__all:hover { border-color: var(--os-green-line); color: var(--os-green-press); }
.os-media__all svg { width: 16px; height: 16px; transition: transform .14s; }
.os-media__all:hover svg { transform: translateX(3px); }

.os-media__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 10px;
  margin-top: var(--os-space-md);
}

/* Колонка статьи уже сетки во всю ширину: две плитки в ряд, одиночная
   и первая при нечетном числе встают на всю ширину (lead). */
.os-media__grid--prose { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; margin-top: 0; }

.os-media__card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--os-r-lg);
  background: var(--os-tint-grad);
  cursor: pointer;
  text-align: left;
}

/* Размер плитки считает плагин (inc/media.php): крупная, широкая
   и вертикальная на две строки. */
.os-media__card--lead { grid-column: span 2; grid-row: span 2; }
.os-media__card--wide { grid-column: span 2; }
.os-media__card--tall { grid-row: span 2; }
.os-media__card--blank { background: linear-gradient(150deg, #2B2F37, #1B1E24); }
.os-media__card[hidden] { display: none; }

/* Плитки после первой: на телефоне лента, на десктопе обертки как будто нет. */
.os-media__rest { display: contents; }

/* Последняя плитка ряда ведет в просмотрщик и картинки не несет. */
.os-media__card--more {
  display: grid;
  place-content: center;
  gap: 4px;
  padding: var(--os-space-sm);
  background: var(--os-paper-2);
  text-align: center;
  transition: background .14s;
}

.os-media__card--more:hover { background: var(--os-tint-2); }

.os-media__more-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: var(--os-green-soft);
  color: var(--os-green);
}

.os-media__more-icon svg { width: 22px; height: 22px; }

.os-media__card--more b {
  font-family: var(--os-font-title);
  font-size: 15px;
  color: var(--os-on-paper);
}

.os-media__card--more span { font-size: 13px; color: var(--os-muted); }

.os-media__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--os-ease);
}

.os-media__card:hover .os-media__photo { transform: scale(1.04); }

.os-media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--os-paper);
}

.os-media__play svg {
  width: 64px;
  height: 64px;
  padding: 18px;
  border-radius: 50%;
  background: rgba(22, 24, 29, .55);
  transition: background .16s;
}

.os-media__card--video:hover .os-media__play svg { background: var(--os-green); }

.os-media__tag {
  position: absolute;
  left: var(--os-space-xs);
  bottom: var(--os-space-xs);
  max-width: calc(100% - var(--os-space-md));
  padding: 5px 10px;
  border-radius: var(--os-r-sm);
  background: rgba(22, 24, 29, .72);
  color: var(--os-paper);
  font-family: var(--os-font-title);
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .os-media__head { flex-direction: column; align-items: stretch; }
  .os-media__all { align-self: flex-start; }
  .os-media__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  /* Модификатор повторен: правило выше перебило бы ему высоту строки. */
  .os-media__grid--prose { grid-auto-rows: 200px; }
}

@media (max-width: 700px) {
  .os-media__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .os-media__grid > .os-media__card { grid-column: span 1; grid-row: span 1; height: 240px; }
  .os-media__grid > .os-media__card--tall { height: 420px; }
  .os-media__rest > .os-media__card { height: 240px; }
}

/* --- Ленты на телефоне ---
   Кейсы целиком, у акций, отзывов, галереи и фото — все после первой
   карточки (у акций после второй). Карточка на 85% ширины, справа виден
   край следующей. Лента выходит в край экрана, как у видеоотзывов. */
@media (max-width: 700px) {
  .os-cases__grid,
  .os-cases-page__grid,
  .os-promos__rest,
  .os-reviews__rest,
  .os-gallery__rest,
  .os-media__rest {
    /* Блок отсчета для скрытых подписей внутри карточек (оценка в отзыве):
       без него они отсчитываются от секции, прокрутка ленты их не режет,
       и они растягивают страницу вбок. */
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    gap: var(--os-space-xs);
    margin-inline: calc(-1 * var(--os-pad));
    padding: 0 var(--os-pad) var(--os-space-2xs);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--os-pad);
    scrollbar-width: none;
  }

  .os-cases__grid::-webkit-scrollbar,
  .os-cases-page__grid::-webkit-scrollbar,
  .os-promos__rest::-webkit-scrollbar,
  .os-reviews__rest::-webkit-scrollbar,
  .os-gallery__rest::-webkit-scrollbar,
  .os-media__rest::-webkit-scrollbar { display: none; }

  .os-cases__card,
  .os-promos__rest > .os-promos__card,
  .os-reviews__rest > .os-reviews__card,
  .os-gallery__rest > .os-gallery__card,
  .os-media__rest > .os-media__card { flex: 0 0 85%; scroll-snap-align: start; }

  /* Вертикальный кадр уже: при той же высоте ленты он не растягивается. */
  .os-media__rest > .os-media__card--tall { flex-basis: 55%; }
}

/* --- Просмотрщик снимков --- */

.os-media-box {
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-lg);
  background: var(--os-ink);
  color: var(--os-paper);
  overflow: visible;
}

.os-media-box::backdrop { background: rgba(12, 14, 18, .82); }

.os-media-box__fig {
  display: grid;
  gap: var(--os-space-2xs);
  margin: 0;
}

.os-media-box__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--os-r-lg) var(--os-r-lg) 0 0;
  background: var(--os-ink-2);
}

.os-media-box__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--os-space-sm);
  padding: var(--os-space-xs) var(--os-space-sm) var(--os-space-sm);
  font-size: 14px;
}

.os-media-box__num {
  flex: none;
  font-family: var(--os-font-num);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--os-dim);
}

.os-media-box__close,
.os-media-box__arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--os-paper);
  cursor: pointer;
  transition: background .14s;
}

.os-media-box__close:hover,
.os-media-box__arrow:hover { background: var(--os-green); }

.os-media-box__close { top: -56px; right: 0; }
.os-media-box__close svg,
.os-media-box__arrow svg { width: 22px; height: 22px; }

.os-media-box__arrow { top: 50%; transform: translateY(-50%); }
.os-media-box__arrow--prev { left: -56px; }
.os-media-box__arrow--next { right: -56px; }

@media (max-width: 1340px) {
  .os-media-box { width: min(86vw, 1200px); }
}

@media (max-width: 700px) {
  .os-media-box__arrow--prev { left: var(--os-space-2xs); }
  .os-media-box__arrow--next { right: var(--os-space-2xs); }
  .os-media-box__close { top: var(--os-space-2xs); right: var(--os-space-2xs); }
}

@media (prefers-reduced-motion: reduce) {
  .os-media__card:hover .os-media__photo { transform: none; }
}

/* ===== Модели и услуги марки ===== */

.os-bmodels { padding-block: var(--os-section) 0; }

.os-bmodels__head { margin-bottom: var(--os-space-md); }

.os-bmodels__head .os-sec-h,
.os-bmodels__head .os-sec-s { max-width: none; }

.os-bmodels__stage {
  overflow: hidden;
  border-radius: 22px;
  background: var(--os-tint-grad);
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .05), 0 18px 40px -30px rgba(20, 24, 30, .35);
}

.os-bmodels__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
  padding: var(--os-space-sm) var(--os-space-md);
  border-bottom: 1.5px dashed var(--os-line-dash);
}

.os-bmodels__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
  font-family: var(--os-font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--os-ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.os-bmodels__tab-img {
  width: 26px;
  height: 18px;
  object-fit: contain;
}

.os-bmodels__tab-tx {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.os-bmodels__tab-gens {
  font-family: var(--os-font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
  transition: color .15s;
}

.os-bmodels__tab:hover { background: var(--os-green-soft); }

.os-bmodels__tab.is-on {
  background: var(--os-green-press);
  color: var(--os-paper);
  box-shadow: none;
}

.os-bmodels__tab.is-on .os-bmodels__tab-gens { color: rgba(255, 255, 255, .75); }

.os-bmodels__pane { padding: 18px var(--os-space-md) var(--os-space-md); }

.os-bmodels__mhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--os-space-xs);
  margin-bottom: var(--os-space-sm);
}

.os-bmodels__mname {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--os-ink);
}

.os-bmodels__mgens {
  margin-left: var(--os-space-2xs);
  font-family: var(--os-font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--os-muted);
}

.os-bmodels__all {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 36px;
  margin-left: auto;
  padding: 0 15px;
  border: 1.5px dashed var(--os-line-dash);
  border-radius: 999px;
  font-family: var(--os-font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--os-ink);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.os-bmodels__all svg { width: 14px; height: 14px; }

.os-bmodels__all:hover {
  border-color: transparent;
  background: var(--os-paper);
  color: var(--os-green-press);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
}

.os-bmodels__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
}

.os-bmodels__cat { display: contents; }

.os-bmodels__chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 var(--os-space-xs) 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--os-paper);
  box-shadow: 0 1px 2px rgba(20, 24, 30, .08), 0 0 0 1px rgba(20, 24, 30, .04);
  font-family: var(--os-font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--os-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.os-bmodels__chip-ic { display: inline-flex; color: var(--os-green-press); transition: color .15s; }
.os-bmodels__chip-ic svg { width: 17px; height: 17px; }

.os-bmodels__caret {
  width: 11px;
  height: 11px;
  opacity: .55;
  transition: transform .18s;
}

.os-bmodels__chip:hover { background: var(--os-green-soft); }

.os-bmodels__cat.is-on .os-bmodels__chip {
  background: var(--os-green-press);
  color: var(--os-paper);
  box-shadow: none;
}

.os-bmodels__cat.is-on .os-bmodels__chip-ic { color: var(--os-paper); }
.os-bmodels__cat.is-on .os-bmodels__caret { transform: rotate(180deg); opacity: .9; }

.os-bmodels__pan {
  display: none;
  flex-basis: 100%;
  margin: 2px 0 6px;
  padding: var(--os-space-xs) var(--os-space-sm);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .04);
}

.os-bmodels__cat.is-on .os-bmodels__pan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.os-bmodels__list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-bmodels__item { display: contents; }

.os-bmodels__link {
  font-family: var(--os-font-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--os-ink);
  text-decoration: underline dashed var(--os-green-press);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .15s;
}

.os-bmodels__link:hover { color: var(--os-green-press); }

.os-bmodels__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-family: var(--os-font-text);
  font-size: 12px;
  font-weight: 600;
  color: var(--os-green-press);
  text-decoration: none;
}

.os-bmodels__more svg { width: 14px; height: 14px; }

.os-bmodels__note {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin: var(--os-space-sm) 0 0;
  padding: var(--os-space-sm) 18px;
  border-radius: var(--os-r-md);
  background: var(--os-tint);
  font-family: var(--os-font-text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--os-on-paper);
}

.os-bmodels__note b { font-weight: 700; }

.os-bmodels__note-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  color: var(--os-green-press);
}

.os-bmodels__note-ic svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .os-bmodels__bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: var(--os-space-sm) var(--os-space-sm) var(--os-space-md);
  }

  .os-bmodels__tab { flex: none; }
  .os-bmodels__pane { padding: var(--os-space-sm); }
  .os-bmodels__all { margin-left: 0; }
  .os-bmodels__more { margin-left: 0; flex-basis: 100%; }
}

/* ===== Когда обслуживать ===== */

/* Позиции на шкале приходят из шаблона в --os-x (проценты ширины дорожки),
   колонка графика ТО — в --os-col. Скрипта у блока нет. */

.os-sched { padding-block: var(--os-section) 0; }

.os-sched__intro {
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-text);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-sched__card {
  --os-sched-cols: minmax(0, 240px) minmax(0, 260px) minmax(0, 1fr);
  overflow: hidden;
  margin-top: var(--os-space-md);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
}

.os-sched__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs) var(--os-space-sm);
  padding: var(--os-space-xs) 18px;
  border-bottom: 1px solid var(--os-line);
  background: var(--os-tint);
}

.os-sched__legend-head {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: var(--os-space-sm);
}

.os-sched__legend-key {
  padding: 6px 10px;
  border: 1px solid var(--os-line);
  border-radius: 7px;
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--os-ink);
}

.os-sched__legend-unit {
  font-family: var(--os-font-text);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--os-dim);
}

.os-sched__legend-list {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: var(--os-space-2xs) 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--os-font-text);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--os-ink);
}

.os-sched__legend-item { display: flex; align-items: center; gap: 9px; }

.os-sched__lg { display: block; flex: none; }

.os-sched__lg--mark {
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: var(--os-green-press);
  transform: skewX(-14deg);
}

.os-sched__lg--check {
  width: 28px;
  height: 15px;
  border: 1.5px dashed var(--os-green-press);
  border-radius: 8px;
}

/* Зеленая шапка со шкалой: подписи делений и засечки каждые 5 тыс. */
.os-sched__gaxis { display: none; }

.os-sched__ax {
  position: absolute;
  inset: 0 30px;
}

.os-sched__ax--go {
  position: relative;
  inset: auto;
  height: 48px;
  margin: 0 var(--os-space-md);
}

.os-sched__ax-l {
  position: absolute;
  top: 50%;
  left: var(--os-x);
  transform: translate(-50%, -50%);
  font-family: var(--os-font-num);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}

.os-sched__ax-l:first-of-type { transform: translate(0, -50%); }
.os-sched__th--axis .os-sched__ax-l:last-of-type { transform: translate(-100%, -50%); }

.os-sched__ax-l::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 1px;
  height: 9px;
  background: var(--os-paper);
}

.os-sched__ax-l:first-of-type::after { left: 0; }
.os-sched__th--axis .os-sched__ax-l:last-of-type::after { left: auto; right: 0; }

.os-sched__tk {
  position: absolute;
  bottom: 0;
  left: var(--os-x);
  width: 1px;
  height: 5px;
  background: var(--os-paper);
}

.os-sched__tk--long { height: 9px; }

/* График ТО: на телефоне вертикальный, линия слева. */
.os-sched__go {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 18px;
  padding: 14px 0 18px;
  list-style: none;
}

.os-sched__go::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 30px;
  left: 4px;
  border-left: 1.5px dashed var(--os-line-dash);
}

.os-sched__go-item {
  --os-x: 0px;
  position: relative;
  padding: 6px 0 10px 26px;
}

.os-sched__go-item .os-sched__mark { top: 8px; margin-left: 0; }

.os-sched__go-to {
  display: block;
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--os-ink);
}

.os-sched__go-km {
  display: block;
  margin-top: 2px;
  font-family: var(--os-font-num);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  color: var(--os-muted);
}

.os-sched__go-text {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-size: 14px;
  line-height: 1.45;
  color: var(--os-muted);
  hyphens: auto;
}

/* Таблица: на телефоне строки идут стопкой, шапка скрыта. */
.os-sched__table {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  border-collapse: collapse;
}

.os-sched__table thead { display: none; }

.os-sched__table tbody,
.os-sched__row { display: contents; }

.os-sched__name,
.os-sched__when,
.os-sched__track {
  padding: 2px 18px;
  font-family: var(--os-font-text);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  color: var(--os-ink);
}

.os-sched__name {
  padding-top: 18px;
  border-top: 1px solid var(--os-line);
  font-weight: 500;
}

.os-sched__row:first-child .os-sched__name { border-top: 0; }

.os-sched__sub {
  display: block;
  margin-top: var(--os-space-3xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--os-muted);
}

.os-sched__when {
  padding-top: var(--os-space-3xs);
  font-family: var(--os-font-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.os-sched__when--long {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.os-sched__track {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 18px 16px;
}

/* Дорожка строки: пунктир, направляющие на делениях, отметки или капсула. */
.os-sched__trk {
  position: relative;
  width: 100%;
  min-height: 46px;
}

.os-sched__trk::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  left: 0;
  border-top: 1.5px dashed var(--os-line-grey);
}

.os-sched__trk--has::before { border-top-color: var(--os-line-dash); }

.os-sched__guide {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: var(--os-x);
  border-left: 1.5px dashed var(--os-line-dash);
}

.os-sched__guide--off { border-left-color: var(--os-line-grey); }
.os-sched__guide--minor { display: none; border-left-style: dotted; }

.os-sched__mark {
  position: absolute;
  top: 6px;
  left: var(--os-x);
  width: 9px;
  height: 21px;
  margin-left: -4.5px;
  border-radius: 2px;
  background: var(--os-green-press);
  box-shadow: 0 0 0 3px var(--os-paper);
  transform: skewX(-14deg);
  transition: background var(--os-duration-fast);
}

.os-sched__lbl {
  position: absolute;
  top: 32px;
  left: var(--os-x);
  transform: translateX(-50%);
  font-family: var(--os-font-num);
  font-size: 11.5px;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
  color: var(--os-ink);
}

.os-sched__lbl--minor { display: none; }
.os-sched__lbl--edge { transform: translateX(-100%); }

/* Капсула по центру дорожки. Длинный текст переносится вниз,
   первая строка остается на пунктире. Не display: table: от таблицы
   графика наследуется border-collapse, и у такой капсулы пропадают
   внутренние отступы и скругление. */
.os-sched__check {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 5px auto 0;
  padding: 2px 9px;
  border: 1.5px dashed var(--os-green-press);
  border-radius: 11px;
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--os-ink);
}

.os-sched__note {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-xs);
  padding: var(--os-space-xs) 18px;
  border-top: 1px solid var(--os-line);
  background: var(--os-tint);
  font-family: var(--os-font-text);
  font-size: 14px;
  line-height: 1.55;
  color: var(--os-muted);
}

.os-sched__note-text { flex: 1; margin: 0; }

.os-sched__note-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  color: var(--os-green-press);
}

.os-sched__note-ico svg { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .os-sched__card { border-radius: var(--os-r-card); }

  .os-sched__legend {
    display: grid;
    grid-template-columns: var(--os-sched-cols);
    align-items: center;
    padding: var(--os-space-xs) 0;
  }

  .os-sched__legend-head { grid-column: 1 / 3; padding-left: var(--os-space-md); }
  .os-sched__legend-list { grid-column: 3; padding: 0 30px; }

  .os-sched__gaxis {
    display: block;
    background: var(--os-green-press);
    color: var(--os-paper);
  }

  .os-sched__go {
    grid-template-columns: repeat(var(--os-cols), minmax(0, 1fr));
    margin: 0 var(--os-space-md);
    padding: 0 0 26px;
  }

  .os-sched__go::before {
    top: 30px;
    right: 0;
    bottom: auto;
    left: 0;
    border-top: 1.5px dashed var(--os-line-dash);
    border-left: 0;
  }

  .os-sched__go-item { grid-column: var(--os-col); padding: 58px var(--os-space-sm) 0 0; }
  .os-sched__go-item .os-sched__mark { top: 20px; }
  .os-sched__go-text { margin-top: 10px; }

  .os-sched__table { grid-template-columns: var(--os-sched-cols); }
  .os-sched__table thead { display: contents; }
  .os-sched__table thead tr { display: contents; }

  .os-sched__th {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--os-space-md);
    background: var(--os-green-press);
    font-family: var(--os-font-text);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    color: var(--os-paper);
  }

  .os-sched__th + .os-sched__th { border-left: 1px solid rgba(255, 255, 255, .2); }
  .os-sched__th--axis { position: relative; padding: 0 30px; }

  .os-sched__name,
  .os-sched__when,
  .os-sched__track {
    padding: 18px var(--os-space-md);
    border-top: 0;
    border-bottom: 1px solid var(--os-line);
  }

  .os-sched__when,
  .os-sched__track { border-left: 1px solid var(--os-line); }

  .os-sched__track { padding: 14px 30px; }

  .os-sched__row:last-child .os-sched__name,
  .os-sched__row:last-child .os-sched__when,
  .os-sched__row:last-child .os-sched__track { border-bottom: 0; }

  .os-sched__row:hover .os-sched__mark { background: var(--os-ink); }

  .os-sched__guide { top: -14px; bottom: -14px; }
  .os-sched__guide--minor { display: block; }
  .os-sched__lbl--minor { display: block; }

  .os-sched__note { padding: 15px var(--os-space-md); }
}

/* ===== Карточки с бейджем: варианты услуги, болезни ===== */

.os-cards { padding-block: var(--os-section) 0; }

.os-cards__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-sm);
  margin: var(--os-space-md) 0 0;
  padding: 0;
  list-style: none;
}

.os-cards__item {
  flex: 1 1 250px;
  padding: var(--os-space-sm) var(--os-space-md) var(--os-space-md);
  border-radius: var(--os-r-md);
  background: var(--os-tint);
}

.os-cards__tag {
  display: inline-block;
  padding: var(--os-space-3xs) var(--os-space-xs);
  border-radius: 100px;
  background: var(--os-gold);
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  color: var(--os-ink);
}

.os-cards__text {
  margin: var(--os-space-xs) 0 0;
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--os-muted);
}

@media (min-width: 700px) {
  .os-cards__item { max-width: calc(50% - var(--os-space-sm) / 2); }
}

/* ===== Преимущества ===== */

.os-adv { padding-block: var(--os-section) 0; }

.os-adv__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--os-gutter);
}

.os-adv__lead {
  align-self: center;
  padding: var(--os-space-md) var(--os-space-md) var(--os-space-md) 0;
}

.os-adv__sub {
  margin: 0 0 var(--os-space-md);
  font-family: var(--os-font-text);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--os-muted);
}

.os-adv__btn {
  height: 50px;
  padding: 0 var(--os-space-md);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.os-adv__btn svg { width: 15px; height: 15px; }

.os-adv__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 240px;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: var(--os-tint);
  transition: background .15s;
}

.os-adv__card:hover { background: var(--os-tint-2); }

.os-adv__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--os-space-md);
  border-radius: 50%;
  background: var(--os-green);
  color: var(--os-paper);
}

.os-adv__ico svg { width: 20px; height: 20px; }

.os-adv__name {
  margin: 0 0 var(--os-space-2xs);
  font-family: var(--os-font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--os-ink);
}

.os-adv__card--solo .os-adv__name { font-size: 18px; line-height: 1.35; }

.os-adv__text {
  margin: 0;
  font-family: var(--os-font-text);
  font-size: 14px;
  line-height: 1.6;
  color: var(--os-on-paper);
}

.os-adv__n {
  position: absolute;
  right: 18px;
  top: 12px;
  font-family: var(--os-font-num);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .85);
  pointer-events: none;
}

@media (max-width: 1000px) {
  .os-adv__grid { grid-template-columns: 1fr 1fr; }
  .os-adv__lead { grid-column: 1 / -1; padding: 0 0 var(--os-space-2xs); }
}

@media (max-width: 560px) {
  .os-adv__grid { grid-template-columns: 1fr; }
  .os-adv__card { min-height: 0; padding: 22px 22px 24px; }
  .os-adv__n { font-size: 44px; }
}

/* ===== Этапы услуги ===== */

.os-flow { padding-block: var(--os-section) 0; }

.os-flow__box {
  --os-flow-pad: var(--os-space-lg);
  padding: var(--os-flow-pad);
  border-radius: var(--os-r-card);
  background: var(--os-tint-grad);
}

.os-flow__grid {
  display: grid;
  /* Пять колонок общей сетки слева: ширина считается от внешнего
     контейнера (сетка плюс два отступа карточки) и без левого отступа,
     поэтому граница совпадает с блоками без карточки. */
  grid-template-columns:
    calc((100% + 2 * var(--os-flow-pad) - 11 * var(--os-gutter)) * 5 / 12 + 4 * var(--os-gutter) - var(--os-flow-pad))
    minmax(0, 1fr);
  gap: var(--os-gutter);
  align-items: start;
}

.os-flow__lead {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
}

.os-flow__lead > .os-flow__media,
.os-flow__lead > .os-flow__pic { margin-top: var(--os-space-md); }

.os-flow__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--os-r-md);
  background: var(--os-ink);
}

.os-flow__media--blank { aspect-ratio: 16 / 9; }

.os-flow__ph,
.os-cf__ph {
  display: block;
  aspect-ratio: 16 / 9;
  margin-top: var(--os-space-md);
  border: 1px dashed var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-tint);
}

.os-flow__pic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--os-r-md);
}

.os-flow__media .os-flow__pic { border-radius: 0; }

.os-flow__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--os-ink);
  transition: background .15s, transform .15s;
}

.os-flow__media:hover .os-flow__play {
  background: var(--os-paper);
  transform: translate(-50%, -50%) scale(1.06);
}

.os-flow__play svg { width: 22px; height: 22px; }

.os-flow__list {
  display: grid;
  gap: var(--os-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.os-flow__item {
  display: flex;
  align-items: flex-start;
  gap: var(--os-space-sm);
  padding: var(--os-space-sm) var(--os-space-md);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  transition: transform .16s, box-shadow .18s;
}

.os-flow__item:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(20, 24, 30, .4); }

.os-flow__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--os-r-sm);
  background: var(--os-paper-2);
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--os-green-press);
}

.os-flow__item:last-child .os-flow__n {
  background: var(--os-green);
  color: var(--os-paper);
}

.os-flow__body { display: block; min-width: 0; }

.os-flow__name {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--os-ink);
}

.os-flow__text {
  display: block;
  margin-top: var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--os-muted);
}

@media (max-width: 900px) {
  .os-flow__box { --os-flow-pad: var(--os-space-md); }
  .os-flow__grid { grid-template-columns: 1fr; }
  .os-flow__lead { position: static; }
}

/* ===== Типовые болезни ===== */

.os-cf { padding-block: var(--os-section) 0; }

.os-cf__box {
  --os-cf-pad: var(--os-space-xl);
  padding: var(--os-space-xl) var(--os-cf-pad) var(--os-space-lg);
  border-radius: var(--os-r-card);
  background: var(--os-tint-grad);
}

.os-cf__box--plain {
  --os-cf-pad: 0px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.os-cf__box--plain .os-cf__pill::before { background: var(--os-tint); }

.os-cf__title { max-width: none; text-align: center; }

.os-cf__sub {
  margin: var(--os-space-xs) auto 0;
  max-width: 72ch;
  font-family: var(--os-font-text);
  font-size: 15.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--os-muted);
}

.os-cf__grid {
  display: grid;
  /* Четыре колонки общей сетки на каждую: ширина считается от внешнего
     контейнера (сетка плюс два отступа карточки), у крайних без отступа. */
  grid-template-columns: calc((100% + 2 * var(--os-cf-pad) - 11 * var(--os-gutter)) / 3 + 3 * var(--os-gutter) - var(--os-cf-pad)) calc((100% + 2 * var(--os-cf-pad) - 11 * var(--os-gutter)) / 3 + 3 * var(--os-gutter)) calc((100% + 2 * var(--os-cf-pad) - 11 * var(--os-gutter)) / 3 + 3 * var(--os-gutter) - var(--os-cf-pad));
  gap: 0 var(--os-gutter);
  align-items: center;
  margin-top: var(--os-space-lg);
}

/* Ролик уже средней колонки и стоит по ее центру; поверх штриховых
   линий пунктов, чтобы те с запасом длины всегда упирались в его край. */
.os-cf__media {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(300px, 100%);
  margin: 0;
}

.os-cf__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: var(--os-line);
  box-shadow: 0 30px 60px -36px rgba(20, 24, 30, .45);
}

.os-cf__frame--empty { background: var(--os-tint); }

.os-cf__ph {
  aspect-ratio: auto;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.os-cf__poster,
.os-cf__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-cf__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  transition: transform var(--os-duration-fast);
}

.os-cf__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.os-cf__play svg { width: 22px; height: 22px; margin-left: 3px; }

.os-cf__cap { margin: var(--os-space-sm) 0 0; text-align: center; }

.os-cf__cap b {
  display: block;
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--os-ink);
}

.os-cf__cap span {
  display: block;
  margin-top: 3px;
  font-family: var(--os-font-text);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--os-muted);
}

.os-cf__list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-cf__list--l { align-items: flex-end; text-align: right; }
.os-cf__list--r { align-items: flex-start; text-align: left; }

.os-cf__item {
  position: relative;
  max-width: 40ch;
  padding: var(--os-space-sm) 0;
}

.os-cf__pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 10px var(--os-space-sm);
  font-family: var(--os-font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--os-ink);
  text-decoration: none;
  transition: color var(--os-duration-base);
}

/* Скошенная подложка отдельным слоем: текст и плашки кодов не наклоняются. */
.os-cf__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px;
  background: var(--os-paper);
  box-shadow: 0 1px 0 var(--os-line), 0 12px 26px -16px rgba(20, 24, 26, .35);
  transform: skewX(-12deg);
  transition: background var(--os-duration-base), box-shadow var(--os-duration-base);
}

/* Выноска к кадру. Отступ 6px — на скос подложки, иначе линия входит в угол. */
.os-cf__pill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--os-gutter) + 74px);
  border-top: 2px dashed var(--os-line-dash);
  transition: border-color var(--os-duration-base);
}

.os-cf__list--l .os-cf__pill::after { left: calc(100% + 6px); }
.os-cf__list--r .os-cf__pill::after { right: calc(100% + 6px); }

.os-cf__code:first-of-type { margin-left: 4px; }
.os-cf__code::before { transition: background var(--os-duration-base); }

.os-cf__txt {
  margin-top: 10px;
  font-family: var(--os-font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--os-muted);
  text-wrap: pretty;
}

.os-cf__txt p { margin: 0; }
.os-cf__txt strong { color: var(--os-ink); }
.os-cf__txt a { color: var(--os-green-press); }

.os-cf__item:hover .os-cf__pill,
.os-cf__pill:focus-visible { color: var(--os-paper); }

.os-cf__item:hover .os-cf__pill::before,
.os-cf__pill:focus-visible::before {
  background: var(--os-green);
  box-shadow: 0 14px 28px -14px rgba(35, 138, 90, .55);
}

.os-cf__item:hover .os-cf__pill::after,
.os-cf__pill:focus-visible::after { border-top-color: var(--os-green); }

.os-cf__item:hover .os-cf__code,
.os-cf__pill:focus-visible .os-cf__code { color: var(--os-paper); }

.os-cf__item:hover .os-cf__code::before,
.os-cf__pill:focus-visible .os-cf__code::before { background: rgba(255, 255, 255, .2); }

.os-cf__grid--nomedia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.os-cf__grid--nomedia .os-cf__pill::after { display: none; }

@media (max-width: 960px) {
  .os-cf__box { --os-cf-pad: var(--os-space-md); padding: var(--os-space-lg) var(--os-cf-pad) var(--os-space-md); }
}

@media (max-width: 720px) {
  .os-cf__box { padding: var(--os-space-md) var(--os-space-sm) var(--os-space-sm); }
  .os-cf__grid { grid-template-columns: 1fr; gap: 0; margin-top: var(--os-space-md); }

  .os-cf__media {
    width: min(260px, 70%);
    margin: var(--os-space-sm) auto;
  }

  .os-cf__list--l,
  .os-cf__list--r { align-items: stretch; text-align: left; }

  .os-cf__item { max-width: none; border-top: 1px dashed var(--os-line-dash); }
  .os-cf__pill { font-size: 13px; }
  .os-cf__pill::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .os-cf__pill,
  .os-cf__pill::before,
  .os-cf__pill::after,
  .os-cf__code::before,
  .os-cf__play { transition: none; }
}

/* ===== Признаки, причины и «Почему в сервисе» ===== */

.os-cw { padding-block: var(--os-section) 0; }

.os-cw__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--os-rail);
  gap: var(--os-space-lg) var(--os-gutter);
  align-items: start;
}

.os-cw__head { grid-column: 1 / -1; }

/* --- Причины карточками --- */

.os-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--os-gutter);
  margin: var(--os-space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.os-reason { padding: var(--os-space-md); }

.os-reason__t {
  padding-bottom: var(--os-space-sm);
  margin-bottom: var(--os-space-sm);
  border-bottom: 1px dashed var(--os-green-line);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
  text-wrap: balance;
}

.os-reason__tx {
  font-family: var(--os-font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--os-muted);
  text-wrap: pretty;
}

.os-reasons__note {
  margin-top: var(--os-space-md);
  font-family: var(--os-font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--os-muted);
}

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

@media (max-width: 600px) {
  .os-reasons { grid-template-columns: minmax(0, 1fr); gap: var(--os-space-sm); }
}

/* --- Самопроверка --- */

.os-chk {
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-lg);
  background: var(--os-paper);
  box-shadow: var(--os-shadow-md);
}

.os-chk__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px var(--os-space-md) var(--os-space-3xs);
  font-family: var(--os-font-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--os-ink);
}

.os-chk__top svg { flex: none; width: 20px; height: 20px; color: var(--os-green-press); }

.os-chk__cnt {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--os-dim);
}

.os-chk__cnt b {
  font-family: var(--os-font-title);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--os-ink);
  transition: color .2s;
}

.os-chk:has(.os-chk__input:checked) .os-chk__cnt b { color: var(--os-green-press); }

.os-chk__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: var(--os-space-sm) var(--os-space-md) var(--os-space-md);
  list-style: none;
}

.os-chk__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.os-chk__label {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  height: 100%;
  padding: var(--os-space-sm) var(--os-space-sm) var(--os-space-sm) 14px;
  border-radius: var(--os-r-md);
  background: var(--os-tint);
  font-family: var(--os-font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--os-ink);
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.os-chk__label:hover { background: var(--os-tint-2); }
.os-chk__label:has(.os-chk__input:checked) { background: var(--os-paper); box-shadow: inset 0 0 0 1.5px var(--os-green); }

.os-chk__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.os-chk__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.5px solid var(--os-line-grey);
  border-radius: 7px;
  background: var(--os-paper);
  color: var(--os-paper);
  transition: background .2s, border-color .2s;
}

.os-chk__box svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
}

.os-chk__input:checked ~ .os-chk__box {
  border-color: var(--os-green);
  background: var(--os-green);
}
.os-chk__input:checked ~ .os-chk__box svg { opacity: 1; transform: scale(1); }
.os-chk__input:focus-visible ~ .os-chk__box { outline: 2px solid var(--os-green); outline-offset: 2px; }

.os-chk__tx b { font-weight: 700; }

.os-chk__res {
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  min-height: 72px;
  margin: 0;
  padding: var(--os-space-sm) var(--os-space-md);
  border-top: 1px dashed var(--os-line);
  font-family: var(--os-font-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--os-ink);
}

/* Число в косой плашке, как коды моторов; при отметке плашка зеленая. */
.os-chk__n {
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--os-font-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--os-ink);
  transition: color .2s;
}

.os-chk__n::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--os-line);
  border-radius: 7px;
  background: var(--os-paper);
  transform: skewX(-10deg);
  transition: background .2s, border-color .2s;
}

.os-chk__t { flex: 1; min-width: 0; }

.os-chk__res.is-on .os-chk__n { color: var(--os-paper); }
.os-chk__res.is-on .os-chk__n::before { border-color: var(--os-green-press); background: var(--os-green-press); }

.os-chk__cta {
  flex: none;
  height: 40px;
  padding: 0 var(--os-space-sm);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  visibility: hidden;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}

.os-chk__cta svg { width: 13px; height: 13px; }

.os-chk__note {
  margin: 0;
  padding: 0 var(--os-space-md) 18px;
  font-family: var(--os-font-text);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--os-muted);
}

.os-chk__res.is-on .os-chk__cta {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s, transform .2s, visibility 0s;
}

/* --- Колонка «Почему в сервисе» --- */

.os-why {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
}

.os-why__t {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--os-ink);
  text-wrap: balance;
}

.os-why__tx p {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--os-on-paper);
}

.os-why__tx p:last-child { margin-bottom: 0; }

.os-why__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--os-space-2xs);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.os-why__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  height: 36px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  background: var(--os-tint);
  font-family: var(--os-font-text);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--os-ink);
}

.os-why__facts svg { flex: none; width: 17px; height: 17px; color: var(--os-green-press); }

/* В столбец на той же ширине, что «Описание», «Цены» и «Текст». */
@media (max-width: 1060px) {
  .os-cw__grid { grid-template-columns: 1fr; gap: var(--os-space-lg); }
  .os-why { position: static; }
}

@media (max-width: 900px) {
  .os-chk__list { grid-template-columns: minmax(0, 1fr); padding: 14px 18px 18px; }
  .os-chk__top { padding: 18px 18px 2px; }
  .os-chk__res { padding: var(--os-space-sm) 18px; }
}

@media (max-width: 480px) {
  .os-chk__label { font-size: 14.5px; }
  .os-chk__res { flex-wrap: wrap; padding: 10px var(--os-space-xs); }
  .os-chk__cta { flex-basis: 100%; justify-content: center; }
  .os-chk__res:not(.is-on) .os-chk__cta { display: none; }
  .os-why__t { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .os-chk__box svg,
  .os-chk__cta { transition: none; }
}

/* =========================================================
   У дилера и у нас
   ========================================================= */

.os-vs { padding-block: var(--os-section); }

.os-vs__head { max-width: 640px; }

/* Строки карточек подчинены сетке пары (subgrid): шапки, списки и подвалы
   стоят на одной линии, карточки одной высоты. Без поддержки subgrid
   карточки остаются равными по высоте, но строки не выравниваются. */
.os-vs__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: var(--os-gutter);
  margin-top: var(--os-space-xl);
}

.os-vs__card {
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
  padding: var(--os-space-lg);
  border-radius: var(--os-r-card);
}

.os-vs__card--dealer {
  border: 1px solid var(--os-line);
  background: var(--os-tint-grad);
}

/* Темная карточка: фото ремзоны под градиентом, тот же снимок, что в ФОС. */
.os-vs__card--us {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--os-ink);
  color: var(--os-paper);
  box-shadow: 0 40px 80px -30px rgba(10, 30, 20, .55);
}

.os-vs__card--us::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/img/fos-bg.jpg");
  background-image: image-set(url("../assets/img/fos-bg.webp") type("image/webp"), url("../assets/img/fos-bg.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
}

.os-vs__card--us::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0, rgba(52, 171, 114, .22) 0, rgba(52, 171, 114, 0) 70%),
    linear-gradient(135deg, rgba(21, 25, 27, .93) 0, rgba(24, 28, 29, .86) 60%, rgba(27, 39, 35, .8) 100%);
}

.os-vs__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--os-space-md);
  padding-bottom: var(--os-space-md);
}

.os-vs__tag {
  margin: 0;
  font-family: var(--os-font-text);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--os-dim);
}

.os-vs__card--us .os-vs__tag { color: rgba(255, 255, 255, .45); }

.os-vs__title {
  margin: var(--os-space-2xs) 0 0;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--os-on-paper);
}

.os-vs__title b { display: block; color: var(--os-muted); }

.os-vs__card--us .os-vs__title { color: var(--os-paper); }
.os-vs__card--us .os-vs__title b { color: var(--os-green); }

.os-vs__big { flex: none; margin: 0; text-align: right; }

.os-vs__pct {
  display: block;
  font-family: var(--os-font-num);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-dim);
}

.os-vs__card--us .os-vs__pct { color: var(--os-paper); }

.os-vs__cap {
  display: block;
  max-width: 14ch;
  margin-top: var(--os-space-2xs);
  margin-left: auto;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-vs__card--us .os-vs__cap { color: rgba(255, 255, 255, .6); }

.os-vs__list {
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-vs__list li {
  display: flex;
  align-items: center;
  gap: var(--os-space-2xs);
  min-height: 46px;
  padding: var(--os-space-2xs) 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-vs__card--dealer .os-vs__list li { border-bottom: 1px solid var(--os-line); }

.os-vs__card--us .os-vs__list li { color: rgba(255, 255, 255, .78); }
.os-vs__card--us .os-vs__list li::before { content: "—"; flex: none; color: rgba(255, 255, 255, .35); }

.os-vs__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--os-paper-3);
  color: var(--os-dim);
}

.os-vs__x svg { width: 12px; height: 12px; }

/* Желтый маркер на цифрах: тот же прием, что у заголовков с os-mark. */
.os-vs__hl {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0 9px;
  margin: 0 var(--os-space-3xs) 0 2px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--os-ink);
}

.os-vs__hl::before {
  content: "";
  position: absolute;
  inset: -1px 0;
  z-index: -1;
  border-radius: 7px;
  background: var(--os-gold);
  transform: skewX(-10deg);
}

.os-vs__foot {
  align-self: end;
  display: flex;
  align-items: center;
  gap: var(--os-space-sm);
  padding-top: var(--os-space-md);
}

.os-vs__card--us .os-vs__foot { border-top: 1px solid rgba(255, 255, 255, .09); }

.os-vs__guar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  margin: 0;
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--os-muted);
}

.os-vs__guar b { display: block; color: var(--os-on-paper); }

.os-vs__card--us .os-vs__guar { color: rgba(255, 255, 255, .7); }
.os-vs__card--us .os-vs__guar b { color: var(--os-paper); }

.os-vs__guar-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--os-r-md);
  background: var(--os-paper-3);
  color: var(--os-dim);
}

.os-vs__guar-ico svg { width: 20px; height: 20px; }

.os-vs__card--us .os-vs__guar-ico { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .8); }

.os-vs__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--os-space-2xs);
  padding: var(--os-space-xs) var(--os-space-md);
  border-radius: var(--os-r-md);
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, gap .2s;
}

.os-vs__cta:hover { background: var(--os-gold-press); gap: var(--os-space-xs); }
.os-vs__cta svg { width: 18px; height: 18px; }

@media (max-width: 1060px) {
  .os-vs__pair { display: flex; flex-direction: column; }
  .os-vs__card { display: block; }
}

@media (max-width: 640px) {
  .os-vs__card { padding: var(--os-space-md); }
  .os-vs__top { flex-direction: column-reverse; gap: var(--os-space-sm); }
  .os-vs__big { text-align: left; }
  .os-vs__cap { margin-left: 0; }
  .os-vs__pct { font-size: 48px; }
  .os-vs__foot { flex-direction: column; align-items: stretch; }
  .os-vs__cta { justify-content: center; }
}

/* =========================================================
   Страница кейса (single-os_case)
   ========================================================= */

.os-case__hero { padding-block: var(--os-space-md) 0; }

.os-case__title {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.os-case__lead {
  margin: 14px 0 0;
  font-size: var(--os-text-lg);
  line-height: var(--os-leading-normal);
  color: var(--os-muted);
}

.os-case__lead b { color: var(--os-on-paper); font-weight: 600; }

/* Паспорт работы идет слева, как список разделов на листинге работ,
   и ширину берет из того же токена. */
.os-case__body {
  display: grid;
  grid-template-columns: var(--os-aside) minmax(0, 1fr);
  gap: 0 var(--os-space-lg);
  align-items: start;
  padding-block: var(--os-space-lg) 0;
}

.os-case__main { min-width: 0; }

/* --- Главное фото --- */

.os-case__stage {
  position: relative;
  margin: 0 0 36px;
  border-radius: var(--os-r-card);
  overflow: hidden;
  background: var(--os-tint-grad);
}

.os-case__stage-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.os-case__stage-cap {
  position: absolute;
  left: var(--os-space-sm);
  bottom: var(--os-space-sm);
  padding: 7px 11px;
  border-radius: var(--os-r-sm);
  background: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
}

.os-case__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  transition: background .14s, color .14s;
}

.os-case__play svg { width: 26px; height: 26px; }
.os-case__play:hover { background: var(--os-green); color: var(--os-paper); }

/* --- Текст --- */

.os-case__prose p,
.os-art__text p {
  margin: 0 0 var(--os-space-sm);
  font-size: 16.5px;
  line-height: 1.65;
}

.os-case__prose p:last-child,
.os-art__text p:last-child { margin: 0; }

/* --- Этапы --- */

.os-case__steps-sec { margin-top: 44px; }

.os-case__steps {
  margin: var(--os-space-md) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: os-step;
  border-top: 1px solid var(--os-ink);
}

.os-case__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 180px;
  gap: 0 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1.5px dashed var(--os-line-dash);
}

.os-case__step--text { grid-template-columns: 44px minmax(0, 1fr); }

.os-case__step::before {
  counter-increment: os-step;
  content: counter(os-step, decimal-leading-zero);
  padding-top: 6px;
  font-family: var(--os-font-num);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--os-dim);
}

.os-case__step-t {
  display: block;
  margin-bottom: 5px;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.os-case__step-x {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--os-muted);
}

.os-case__step-photo {
  width: 180px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--os-r-md);
}

/* --- Паспорт работы --- */

/* Расстояния держит gap, а не отступы кусков: смета и ролик печатаются
   не всегда, и на отступах соседей колонка то слипалась, то разъезжалась. */
.os-case__side {
  position: sticky;
  top: calc(var(--os-header-h) + var(--os-space-sm));
  display: flex;
  flex-direction: column;
  gap: var(--os-space-sm);
  padding: 22px 24px 20px;
  border-radius: var(--os-r-lg);
  background: var(--os-tint-grad);
  box-shadow: 0 0 0 1px rgba(20, 24, 30, .05);
}

.os-case__car {
  display: flex;
  align-items: center;
  gap: var(--os-space-xs);
  padding-bottom: var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
}

.os-case__car-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--os-paper);
}

.os-case__car-logo img { width: 24px; height: 24px; object-fit: contain; }

/* У статьи в кружке значок раздела вместо логотипа марки. */
.os-case__car-logo svg { width: 22px; height: 22px; color: var(--os-green-press); }

.os-case__car-name b {
  display: block;
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: var(--os-text-lg);
  line-height: 1.2;
}

.os-case__car-name span { font-size: 12.5px; line-height: 1.3; color: var(--os-muted); }

.os-case__kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px var(--os-space-sm);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}

.os-case__kv dt { color: var(--os-muted); }

.os-case__kv dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.os-case__kv a { color: inherit; text-decoration: none; transition: color .14s; }
.os-case__kv a:hover { color: var(--os-green-press); }

.os-case__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--os-space-2xs);
  margin: 0;
  padding-top: var(--os-space-sm);
  border-top: 1px solid var(--os-line);
  font-size: 13.5px;
  color: var(--os-muted);
}

.os-case__sum b {
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--os-on-paper);
}

.os-case__book {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--os-r-md);
  background: var(--os-gold);
  color: var(--os-ink);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: background .14s;
}

.os-case__book:hover { background: var(--os-gold-press); }

.os-case__vid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--os-space-2xs);
  height: 44px;
  margin-top: -6px;
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  color: var(--os-on-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .14s, color .14s;
}

.os-case__vid:hover { border-color: var(--os-green-line); color: var(--os-green-press); }

.os-case__vid-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--os-green-press);
  color: var(--os-paper);
}

.os-case__vid-icon svg { width: 12px; height: 12px; }
.os-case__vid i { font-style: normal; color: var(--os-muted); }

/* --- Похожие и перелинковка --- */

.os-case__rel { padding-block: var(--os-section) var(--os-section); }

.os-case__rel .os-sec-h { margin-bottom: var(--os-space-md); }

/* У статьи две подборки подряд: «Другие статьи» и «Наши работы». */
.os-case__rel + .os-case__rel { padding-top: 0; }

/* --- Статья (single-os_article) ---
   Раскладка, карточка слева и первый экран — классы страницы кейса.
   Свое у статьи: оглавление, заголовки разделов и «Поделиться». */

.os-art__toc { padding-top: var(--os-space-sm); border-top: 1px solid var(--os-line); }

/* Текст пунктов на одной линии с подписью и строками карточки:
   поле пункта уходит за край, туда же выходит белая плашка текущего. */
.os-art__toc-list { margin-inline: -10px; }

.os-art__toc-label {
  margin: 0 0 var(--os-space-2xs);
  font: 700 11px/1.3 var(--os-font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--os-dim);
}

/* Якорь раздела не уезжает под липкую шапку. */
.os-art__sec { scroll-margin-top: calc(var(--os-header-h) + var(--os-space-sm)); }
.os-art__sec + .os-art__sec { margin-top: 44px; }

.os-art__h {
  margin: 0 0 var(--os-space-sm);
  font-family: var(--os-font-title);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.os-art__h3 {
  margin: 28px 0 10px;
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.os-art__share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--os-space-xs);
  margin-top: 44px;
  padding-top: var(--os-space-md);
  border-top: 1px solid var(--os-line);
}

.os-art__share-label { margin-right: var(--os-space-2xs); font-size: 14px; color: var(--os-muted); }

.os-art__share-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--os-r-md);
  background: var(--os-paper-2);
  color: var(--os-on-paper);
  cursor: pointer;
  transition: background .14s, color .14s;
}

.os-art__share-btn[hidden] { display: none; }
.os-art__share-btn:hover { background: var(--os-green-soft); color: var(--os-green-press); }
.os-art__share-btn svg { width: 28px; height: 28px; }
.os-art__share-btn--copy svg { width: 20px; height: 20px; }
.os-art__share-btn--copy.is-done { background: var(--os-green-soft); color: var(--os-green-press); }

@media (max-width: 700px) {
  .os-art__h { font-size: 24px; }
}

@media (max-width: 1023px) {
  .os-case__body { grid-template-columns: minmax(0, 1fr); gap: var(--os-space-lg); }
  .os-case__side { position: static; }
}

@media (max-width: 560px) {
  .os-case__step { grid-template-columns: 36px minmax(0, 1fr); }
  .os-case__step-photo { grid-column: 2; width: 100%; margin-top: 10px; }
  .os-case__book,
  .os-case__vid { width: 100%; }
}

/* =========================================================
   Страница сотрудника (single-os_staff)
   ========================================================= */

/* Первый экран: карточка человека, фотография и карта станции.
   Ширина левой колонки общая со страницей кейса — токен --os-aside. */
.os-person__hero { padding-block: var(--os-space-lg) 0; }

.os-person__title {
  margin: 0;
  font-family: var(--os-font-title);
  font-size: var(--os-h1);
  line-height: var(--os-leading-tight);
}

.os-person__grid {
  display: grid;
  grid-template-columns: var(--os-aside) var(--os-aside) minmax(0, 1fr);
  gap: var(--os-space-sm);
  align-items: stretch;
  margin-top: var(--os-space-md);
}

/* --- карточка человека --- */

.os-person__card {
  display: flex;
  flex-direction: column;
  padding: var(--os-space-sm);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-lg);
  background: var(--os-paper-2);
}

/* Должность стоит шапкой карточки: имя человека уже есть в h1,
   а под чертой идут данные станции. */
.os-person__role {
  margin: 0 0 var(--os-space-sm);
  padding-bottom: var(--os-space-sm);
  border-bottom: 1px solid var(--os-line);
  font-family: var(--os-font-title);
  font-weight: 700;
  font-size: 18px;
  line-height: var(--os-leading-tight);
  color: var(--os-on-paper);
}

.os-person__kv {
  display: flex;
  flex-direction: column;
  gap: var(--os-space-sm);
  margin: 0 0 var(--os-space-md);
  padding: 0;
  list-style: none;
}

.os-person__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.os-person__row-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--os-r-sm);
  background: var(--os-paper);
  color: var(--os-muted);
}

.os-person__row-icon svg { width: 17px; height: 17px; }

.os-person__row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.os-person__row-label {
  font-family: var(--os-font-text);
  font-size: 12px;
  line-height: 1.1;
  color: var(--os-muted);
}

.os-person__row-val {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--os-on-paper);
}

.os-person__tel,
.os-person__sto { text-decoration: none; }

.os-person__tel { color: inherit; }
.os-person__sto { color: var(--os-green-press); }

.os-person__tel:hover,
.os-person__sto:hover { color: var(--os-green); }

.os-person__book { margin-top: auto; justify-content: center; }

.os-person__vid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  margin-top: var(--os-space-2xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  font-family: var(--os-font-title);
  font-weight: 600;
  font-size: 14px;
  color: var(--os-on-paper);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.os-person__vid:hover { border-color: var(--os-green-line); color: var(--os-green-press); }

.os-person__vid-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--os-green);
  color: var(--os-paper);
}

.os-person__vid-icon svg { width: 10px; height: 10px; }

/* --- фотография --- */

/* Фото шириной с карточку и пропорцией 2:3 задает высоту строки, карта
   берет остаток ширины. Снимок лежит поверх ячейки и кадрируется: свои
   пропорции у кадров разные, вытягивать строку они не должны. */
.os-person__shot {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--os-r-lg);
  background: var(--os-paper-3);
}

.os-person__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Фотографии еще нет: тот же силуэт, что в карточке листинга. */
.os-person__photo--stub {
  display: grid;
  place-items: center;
  color: var(--os-dim);
}

.os-person__photo--stub svg { width: 96px; height: 96px; }

.os-person__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--os-paper);
  color: var(--os-ink);
  transition: background .14s, color .14s, transform .14s;
}

.os-person__play svg { width: 22px; height: 22px; }
.os-person__play:hover { background: var(--os-green); color: var(--os-paper); transform: scale(1.06); }

/* Желтый здесь не кнопка записи, а метка ролика: так в макете клиента. */
.os-person__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--os-gold);
  font-family: var(--os-font-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: var(--os-ink);
}

.os-person__tag-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--os-paper);
}

.os-person__tag-icon svg { width: 11px; height: 11px; }

/* --- карта станции --- */

/* Сама карта — компонент контактов, здесь меняется только высота:
   она тянется за соседними колонками. */
.os-person__map { min-height: 100%; }

.os-person__prose p {
  margin: 0 0 var(--os-space-sm);
  font-size: 16.5px;
  line-height: 1.65;
}

.os-person__prose p:last-child { margin: 0; }

.os-person__sec { padding-block: var(--os-section) 0; }

/* Разделы, по которым человек работает: плитки со значками каталога,
   а не мелкие метки из карточки — здесь это самостоятельный раздел. */
.os-person__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--os-space-2xs);
  margin: var(--os-space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.os-person__node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--os-space-xs);
  border: 1px solid var(--os-line);
  border-radius: var(--os-r-md);
  background: var(--os-paper);
  font-family: var(--os-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: var(--os-on-paper);
}

.os-person__node-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--os-green);
}

.os-person__node-icon svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .os-person__grid { grid-template-columns: var(--os-aside) minmax(0, 1fr); }
  .os-person__map-sec { grid-column: 1 / -1; }
  .os-person__map { min-height: 360px; }
  .os-person__shot { min-height: 420px; aspect-ratio: auto; }
}

@media (max-width: 780px) {
  .os-person__grid { grid-template-columns: minmax(0, 1fr); }
  .os-person__shot { min-height: 0; max-height: 560px; aspect-ratio: 4 / 5; }
}
