/* ---------------------------------------------------------------------------
 * ШАТОКС — рукописный слой поверх выгрузки макета.
 * Свой адаптив у страницы уже есть (правила [data-r="…"] в её стилях), поэтому
 * здесь только то, чего в макете нет вовсе: мобильное меню, ответ формы и
 * уведомление о cookie.
 * ------------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
section[id] { scroll-margin-top: 96px; }

/* Мобильную шапку с бургером макет отдаёт сам — своих стилей ей не нужно. */

/* --- Форма заявки --- */
.shx-form__note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--surface-tint, #eaf4fd);
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.5;
}
.shx-form__note[hidden] { display: none; }

@media (max-width: 720px) {
  /* Верхняя полоса с часами и языками не должна ломать шапку. */
  header .lucide { flex: 0 0 auto; }
}

/* --- Уведомление о cookie --- */
.cookie-notice {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(620px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-bright);
  border-radius: var(--radius-md, 6px);
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 30, 50, .22);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.cookie-notice button {
  flex: 0 0 auto;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-md, 6px);
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-notice button:hover { background: var(--brand-bright); }

@media (max-width: 620px) {
  .cookie-notice {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-notice button { align-self: flex-start; }
}

/* --- Шапка уменьшается при прокрутке ---------------------------------------
   Размеры взяты из макета один в один (SiteHeader, состояние compact):
   служебная полоса 8px/14px -> 4px/12px, полоса меню 74 -> 52 (на мобильной
   62 -> 52), логотип 46 -> 34 (мобильный 36 -> 30), пункты меню 16px/7px 9px
   -> 14px/4px 8px. Переходы уже описаны в стилях самих узлов, здесь только
   конечные значения. Мобильным шапкам высоту задаём и в обычном состоянии:
   инлайновые размеры сняты патчем, иначе до них не дотянуться. */
.site-head--mobile .shx-head__bar { min-height: 62px; }
.site-head--mobile .shx-head__logo { height: 36px; }

.shx-head.is-compact .shx-head__util { padding: 4px 24px; font-size: 12px; }
.shx-head.is-compact .shx-head__bar { min-height: 52px; }
.shx-head.is-compact .shx-head__logo { height: 34px; }
.shx-head.is-compact .shx-head__link { padding: 4px 8px; font-size: 14px; }
.site-head--mobile.is-compact .shx-head__logo { height: 30px; }

/* --- Знак разработчика в подвале ------------------------------------------
   Место для него в макете уже было: ссылка с заглушкой в нижней строке слева.
   Здесь только приводим её к нужному виду — знак слева, подпись справа. */
.dev-credit {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--blue-200);
}
.dev-credit img { width: auto; height: 32px; opacity: 1; }
.dev-credit span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: inherit;
}
.dev-credit:hover { color: var(--blue-300); }
