/* ==========================================================================
   Cosiness — редизайн 2026
   ========================================================================== */

/* --- Шрифт Golos Text (локальный, вариативный 400–700) -------------------- */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* --- Токены --------------------------------------------------------------- */
:root {
  --ink: #33415e;          /* заголовки */
  --text: #3c4352;         /* основной текст */
  --muted: #6a7385;        /* подписи */
  --dim: #7c8ca0;          /* мелкие подписи */
  --line: #dce7ef;         /* бордеры */
  --line-soft: #e4edf5;    /* тонкие разделители, плейсхолдер фото */
  --surface: #edf4f9;      /* светло-голубой фон секций */
  --hero: #abc4dc;         /* голубой блок первого экрана */
  --deep: #556382;         /* тёмный блок */
  --accent: #4e7bb5;       /* ссылки, иконки */
  --label: #5573ad;        /* надписи-рубрики */
  --btn: linear-gradient(to bottom, #67ab5f 0%, #3d7f42 100%);
  --radius: 12px;
  --radius-s: 8px;
  --pad-x: 64px;
  --shadow: 0 10px 40px rgba(51, 65, 94, 0.18);
}

/* --- База ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* якоря не должны уезжать под липкую шапку */
section[id],
main[id] {
  scroll-margin-top: 92px;
}
body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.is-locked {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--ink);
}
button {
  font-family: inherit;
  cursor: pointer;
}
input {
  font-family: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
}
.section {
  padding: 64px var(--pad-x);
}
.section--tight {
  padding-top: 0;
}
.section__title {
  font-size: 40px;
  line-height: 1.15;
}
.section__title--center {
  text-align: center;
}
.section__sub {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.06);
  color: #fff;
}
.btn:active {
  filter: brightness(0.95);
}
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  color: var(--ink);
  filter: brightness(0.97);
}
.btn--ghost {
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  filter: none;
}
/* мессенджер MAX — синий, чтобы не путался с WhatsApp */
.btn--max {
  background: linear-gradient(to bottom, #5b8fcb 0%, #3e6698 100%);
}
.btn--sm {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* --- Шапка ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 80px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.logo {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.nav a {
  color: #555;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.header__side {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn--dark {
  background: var(--ink);
  color: #fff;
}
.burger {
  display: none;
}

/* --- Первый экран --------------------------------------------------------- */
.hero {
  padding: 24px var(--pad-x) 0;
}
.hero__inner {
  position: relative;
  min-height: 430px;
  padding: 56px 80px;
  border-radius: var(--radius);
  background: var(--hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(105, 133, 167, 0.62);
}
.hero__inner > *:not(.hero__photo) {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 780px;
  font-size: 54px;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  /* строки заголовка выравниваются по длине, а не рвутся как попало */
  text-wrap: balance;
}
.hero p {
  margin: 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.5;
  color: #f2f7fb;
  text-align: center;
  /* не оставляет одинокое слово на последней строке */
  text-wrap: pretty;
}
/* первая строка — про бесплатную доставку, она должна читаться первой */
.hero__text--lead {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.hero__text + .hero__text {
  margin-top: -8px;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

/* --- Факты ---------------------------------------------------------------- */
.facts {
  padding: 40px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.fact strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}
.fact span {
  font-size: 15px;
  color: var(--muted);
}

/* --- Каталог -------------------------------------------------------------- */
.catalog {
  background: var(--surface);
}
.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}
.catalog__headings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}
.tab {
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-s);
  background: transparent;
  color: #4a5468;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.tab:hover {
  background: var(--surface);
}
.tab.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.card[hidden] {
  display: none;
}

/* Слайдер фото */
.slider {
  position: relative;
  height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.slider__track {
  height: 100%;
}
.slider__slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.slider__slide.is-active {
  display: block;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  /* фото товаров разных пропорций — показываем целиком, без обрезки */
  object-fit: contain;
}
.slider__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #4a5468;
}
.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.slider__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: #a9bccd;
  transition: width 0.2s ease, background 0.2s ease;
}
.slider__dot.is-active {
  width: 18px;
  background: var(--ink);
}
.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.slider:hover .slider__arrow {
  opacity: 1;
}
.slider__arrow:hover {
  background: #fff;
}
.slider__arrow--prev {
  left: 8px;
}
.slider__arrow--next {
  right: 8px;
}

.card__body {
  flex-grow: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.card__color {
  font-weight: 400;
  color: var(--accent);
}
.specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.specs dt,
.specs .k {
  color: var(--dim);
  flex-shrink: 0;
}
.specs dd,
.specs .v {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* Образцы цвета */
.swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  /* любое число цветов помещается в один ряд */
  flex: 1 1 0;
  min-width: 0;
  max-width: 46px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}
.swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swatch:hover {
  border-color: #8eb4d5;
}
.swatch.is-active {
  border-color: #3d7f42;
  box-shadow: 0 0 0 2px rgba(103, 171, 95, 0.35);
}

.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.card__price b {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.card__price b.is-request {
  font-size: 19px;
}
.card__price span {
  font-size: 13px;
  color: var(--dim);
}
.card .btn {
  height: 46px;
  font-size: 15px;
}
.catalog__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

/* --- Прайс и декларация --------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.doc__text b {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.doc__text span {
  font-size: 15px;
  color: var(--muted);
}

/* --- Условия -------------------------------------------------------------- */
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.term {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--label);
}
.term p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a5468;
}

/* --- Вопросы -------------------------------------------------------------- */
.questions {
  padding: 56px var(--pad-x);
  background: var(--deep);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.questions h2 {
  font-size: 36px;
  color: #fff;
}
.questions p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #e1e8f2;
}
.questions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.questions__buttons .btn {
  height: 48px;
  font-size: 15px;
}

/* --- Формы ---------------------------------------------------------------- */
.form {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5468;
}
.field input {
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 123, 181, 0.15);
}
.field input.is-error {
  border-color: #c2504b;
  background: #fdf4f3;
}
.note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}
.form__msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.form__msg:empty {
  display: none;
}
.form__msg.is-ok {
  color: #3d7f42;
  font-weight: 600;
}
.form__msg.is-err {
  color: #c2504b;
  font-weight: 600;
}

/* --- Контакты и подвал ---------------------------------------------------- */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.contact {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact b {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.contact a {
  color: var(--ink);
  text-decoration: none;
}
.contact a:hover {
  color: var(--accent);
}
.contact .tel {
  font-size: 22px;
  font-weight: 600;
}
.contact span {
  font-size: 15px;
  color: var(--muted);
}
.footer {
  padding: 26px var(--pad-x);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer__logo {
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--ink);
}

/* --- Модальные окна ------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 24px;
  background: rgba(51, 65, 94, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.overlay[hidden] {
  display: none;
}
.modal {
  width: 100%;
  max-width: 560px;
  margin: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal--narrow {
  max-width: 400px;
}
.modal__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.modal__body {
  padding: 24px;
  display: flex;
  gap: 20px;
}
.modal__body--plain {
  flex-direction: column;
  gap: 14px;
}
.modal__aside {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal__photo {
  height: 150px;
  border-radius: 10px;
  background: var(--line-soft);
  overflow: hidden;
}
.modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
}
.modal__meta b {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.modal__form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__form .field {
  font-size: 13px;
}
.modal__form .field input {
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
}
.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.modal__actions .btn {
  flex-grow: 1;
  height: 48px;
  padding: 0 12px;
  font-size: 15px;
}
.modal__colors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5468;
}

/* --- Лайтбокс ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23, 30, 44, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius-s);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.26);
}
.lightbox__close {
  top: 20px;
  right: 20px;
}
.lightbox__nav--prev {
  left: 20px;
}
.lightbox__nav--next {
  right: 20px;
}
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #dfe6f0;
}

/* --- Нижняя панель связи (и на телефоне, и на компьютере) ----------------- */
.bar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: 64px;
  padding: 10px 16px;
  gap: 12px;
  /* на широком экране кнопки не растягиваем, а собираем по центру */
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(51, 65, 94, 0.07);
}
.bar .btn {
  flex: 0 0 auto;
  height: 100%;
  padding: 0 24px;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}
/* панель не должна закрывать конец страницы, плюс немного воздуха под подвалом */
body {
  padding-bottom: 76px;
}
/* плавающий виджет связи поднимаем над панелью */
div[id*="widgethelp"].rightbottom {
  bottom: 74px !important;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --pad-x: 40px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav {
    gap: 22px;
  }
  .header__phone {
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .questions {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .catalog__head {
    flex-direction: column;
    align-items: stretch;
  }
  .hero h1 {
    font-size: 40px;
  }
  .section__title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --pad-x: 16px;
  }
  body {
    padding-bottom: 82px;
  }
  .header {
    height: 60px;
  }
  .logo {
    font-size: 21px;
    letter-spacing: 1.6px;
  }
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 45;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(51, 65, 94, 0.12);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .header__phone {
    display: none;
  }
  .burger {
    display: flex;
  }
  .section {
    padding: 32px var(--pad-x);
  }
  .hero {
    padding: 12px 12px 0;
  }
  .hero__inner {
    min-height: 320px;
    padding: 32px 20px;
    gap: 16px;
  }
  .hero h1 {
    font-size: 29px;
    /* на узком экране заголовок в три строки читается лучше, чем в четыре */
    max-width: 15ch;
  }
  .hero p {
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.45;
  }
  .hero__text--lead {
    max-width: 28ch;
    font-size: 17px;
  }
  .hero__text + .hero__text {
    margin-top: -4px;
  }
  .hero__buttons {
    width: 100%;
    flex-direction: column;
  }
  .hero__buttons .btn {
    width: 100%;
  }
  .facts {
    padding: 20px var(--pad-x) 24px;
    gap: 10px;
  }
  .fact {
    padding: 14px;
    border-radius: 10px;
    background: var(--surface);
  }
  .fact strong {
    font-size: 20px;
  }
  .fact span {
    font-size: 13px;
  }
  .section__title {
    font-size: 26px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    background: #fff;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .slider {
    height: 190px;
  }
  .slider__arrow {
    opacity: 1;
  }
  .card__body {
    padding: 16px;
  }
  .specs {
    font-size: 14px;
  }
  .docs,
  .terms {
    grid-template-columns: 1fr;
  }
  .doc {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  .doc .btn,
  .doc .btn--ghost {
    width: 100%;
  }
  .term {
    padding: 20px;
  }
  .questions {
    padding: 32px var(--pad-x);
  }
  .questions h2 {
    font-size: 26px;
  }
  .form {
    padding: 20px;
  }
  .contact {
    padding: 20px;
  }
  .footer {
    padding: 20px var(--pad-x) 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__links {
    gap: 14px;
  }
  .bar {
    height: 70px;
    gap: 10px;
    /* на телефоне кнопки делят ширину поровну */
    justify-content: stretch;
  }
  .bar .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    gap: 6px;
    font-size: 14px;
  }
  div[id*="widgethelp"].rightbottom {
    bottom: 78px !important;
  }
  section[id],
  main[id] {
    scroll-margin-top: 68px;
  }
  .overlay {
    padding: 0;
    align-items: stretch;
  }
  .modal {
    max-width: none;
    min-height: 100%;
    border-radius: 0;
  }
  .modal__body {
    flex-direction: column;
  }
  .modal__aside {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .modal__photo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
  .modal__actions {
    flex-direction: column;
  }
}

/* --- Добавлено при переносе на WordPress ---------------------------------- */
/* Ловушка для ботов: людям не видна, но и не screen-reader-only — боты читают и её */
.cosiness-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.modal__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5468;
}
/* админ-панель WordPress перекрывает липкую шапку */
body.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}
