/* ================================================================
   za-stankom-ik.ru — оформление поверх макета
   1. Шапка и меню (компьютер + телефон)
   2. Телефон: страница не «ездит» вбок, блоки компактнее
   3. Карусели
   4. Кнопки, карточки, формы заявки
   ================================================================ */

/* ---------- 1. Шапка и меню ---------- */

.zs-nav {
  position: sticky; top: 0; z-index: 60;
  background: #f6f3ee;
  border-bottom: 1px solid color-mix(in srgb, #1b1714 12%, transparent);
  padding: 0 !important;
  display: block !important;
  transition: box-shadow .2s ease;
}
/* разметка меню из макета скрыта — вместо неё собирается .zs-nav-in */
.zs-nav > .zs-old { display: none !important; }
.zs-nav[data-scrolled="1"] { box-shadow: 0 6px 24px -14px rgba(27, 23, 20, .45); }

.zs-nav-in {
  max-width: 1220px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  height: 68px;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
}

.zs-brand { display: grid; gap: 3px; text-decoration: none; color: inherit; margin-right: auto; }
.zs-brand .zs-brand-name {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1;
  letter-spacing: .12em; white-space: nowrap; color: #1b1714;
}
.zs-brand .zs-brand-sub {
  font-size: 9.5px; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; color: color-mix(in srgb, #1b1714 62%, transparent);
}

/* Меню — стандартный «бургер»: три полоски. При наведении полоски
   расходятся, панель с разделами раскрывается сама. */

.zs-phone {
  font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: .01em;
  font-feature-settings: 'tnum' 1; color: #1b1714; text-decoration: none; white-space: nowrap;
}
.zs-phone:hover { color: var(--color-accent); }
.zs-nav .zs-cta { min-height: 42px; padding: 0 20px; font-size: 15px; }

.zs-burger {
  display: inline-flex; width: 46px; height: 46px; padding: 0; flex: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, #1b1714 20%, transparent); border-radius: 10px;
  color: #1b1714; transition: border-color .16s ease, background .16s ease, gap .18s ease;
}
.zs-burger span {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease, width .18s ease;
}
.zs-burger:hover, .zs-burger:focus-visible, .zs-nav[data-menu="1"] .zs-burger {
  border-color: var(--color-accent); color: var(--color-accent); background: #fff;
}
/* полоски «разъезжаются» под курсором */
.zs-burger:hover, .zs-burger:focus-visible { gap: 7px; }
.zs-burger:hover span:nth-child(1), .zs-burger:focus-visible span:nth-child(1) { width: 26px; }
.zs-burger:hover span:nth-child(3), .zs-burger:focus-visible span:nth-child(3) { width: 26px; }
/* открытое меню — крестик */
.zs-nav[data-menu="1"] .zs-burger { gap: 5px; }
.zs-nav[data-menu="1"] .zs-burger span { width: 24px; }
.zs-nav[data-menu="1"] .zs-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zs-nav[data-menu="1"] .zs-burger span:nth-child(2) { opacity: 0; }
.zs-nav[data-menu="1"] .zs-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* панель меню на компьютере — выпадающая карточка справа под шапкой */
.zs-panel {
  position: absolute; top: calc(100% - 1px); right: clamp(16px, 4vw, 56px); left: auto;
  width: min(660px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2px 30px;
  background: #fff; border: 1px solid color-mix(in srgb, #1b1714 12%, transparent);
  border-radius: 16px; box-shadow: 0 26px 60px -26px rgba(27, 23, 20, .55);
  padding: 20px 24px 22px; z-index: 61;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.zs-nav[data-menu="1"] .zs-panel { opacity: 1; visibility: visible; transform: none; }
.zs-panel-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 8px;
}
.zs-panel a.zs-panel-link {
  display: block; padding: 9px 10px; margin-left: -10px; border-radius: 9px;
  font-size: 15px; font-weight: 600; line-height: 1.25; color: #1b1714; text-decoration: none;
}
.zs-panel a.zs-panel-link small {
  display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500;
  color: color-mix(in srgb, #1b1714 58%, transparent);
}
.zs-panel a.zs-panel-link:hover { background: #f6f3ee; color: var(--color-accent); }
.zs-panel a.zs-panel-link[aria-current="page"] { color: var(--color-accent); }
.zs-panel .zs-panel-cta {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, #1b1714 10%, transparent);
}
.zs-panel .zs-panel-cta .btn { min-height: 44px; }
.zs-panel .zs-panel-phone {
  font-family: var(--font-heading); font-size: 20px; font-feature-settings: 'tnum' 1;
  text-decoration: none; color: #1b1714;
}
.zs-panel .zs-panel-note {
  margin: 0; font-size: 12.5px; color: color-mix(in srgb, #1b1714 58%, transparent);
}



.zs-call { display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 10px; color: #1b1714; text-decoration: none;
  border: 1px solid color-mix(in srgb, #1b1714 18%, transparent); }
.zs-call:hover { color: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 960px) {
  .zs-nav-in { height: 58px; gap: 12px; }
  .zs-nav .zs-cta { display: none !important; }
  .zs-phone { font-size: 15px; }
  .zs-burger { width: 44px; height: 44px; }

  .zs-panel {
    position: fixed; left: 0; right: 0; top: var(--zs-nav-h, 58px); bottom: 0;
    width: auto; display: block; border: 0; border-radius: 0; box-shadow: none;
    background: #f6f3ee; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px clamp(16px, 4vw, 28px) 28px; z-index: 59;
  }
  .zs-panel-label { margin: 18px 0 4px; }
  .zs-panel a.zs-panel-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 2px; margin-left: 0; border-radius: 0; font-size: 17px;
    border-bottom: 1px solid color-mix(in srgb, #1b1714 10%, transparent);
  }
  .zs-panel a.zs-panel-link small {
    margin-top: 0; text-align: right; max-width: 45%;
  }
  .zs-panel a.zs-panel-link:hover { background: none; }
  .zs-panel .zs-panel-cta {
    display: grid; gap: 10px; margin-top: 22px; padding-top: 0; border-top: 0;
    justify-items: stretch;
  }
  .zs-panel .zs-panel-cta .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .zs-panel .zs-panel-phone { text-align: center; font-size: 22px; padding: 6px 0 2px; }
  .zs-panel .zs-panel-note { text-align: center; font-size: 13px; }
}

@media (max-width: 600px) {
  .zs-nav-in { gap: 10px; }
  .zs-phone { display: none; }
  .zs-call { display: inline-flex; }
  .zs-brand .zs-brand-name { font-size: 17px; }
  .zs-brand .zs-brand-sub { font-size: 8.5px; letter-spacing: .12em; }
  /* верхняя строка: только город и телефон */
  .zs-strip > div { font-size: 11px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
  .zs-strip span + span { display: none; }
}

html.zs-lock, html.zs-lock body { overflow: hidden !important; }

/* ---------- 2. Телефон: ничего не «ездит», блоки компактнее ---------- */

html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
img, figure, table { max-width: 100%; }

section[id] { scroll-margin-top: 84px; }

@media (max-width: 820px) {
  section[id] { scroll-margin-top: 70px; }

  #top > section { padding-top: 34px !important; padding-bottom: 34px !important; }
  #top > section:first-of-type { padding-top: 26px !important; }

  h1 { font-size: clamp(26px, 7.2vw, 34px) !important; line-height: 1.12 !important; margin-left: 0 !important; }
  h2 { font-size: clamp(22px, 5.8vw, 28px) !important; line-height: 1.16 !important; }
  h3, .card-title { font-size: 17px !important; line-height: 1.25 !important; }
  section > p, .card p, figcaption p { font-size: 15px !important; line-height: 24px !important; }

  .card { padding: 18px !important; }

  /* плитки с цифрами — в две колонки, а не в одну длинную ленту */
  section[aria-label="Коротко"] > div,
  #top section [data-cells], #top [data-cells], section [data-cells] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  section[aria-label="Коротко"] > div > div,
  #top [data-cells] > div, section [data-cells] > div { padding: 16px 14px !important; }
  section[aria-label="Коротко"] > div > div p:first-child,
  #top [data-cells] > div p:first-child, section [data-cells] > div p:first-child {
    font-size: 25px !important; line-height: 29px !important;
  }
  section[aria-label="Коротко"] > div > div p + p,
  #top [data-cells] > div p + p, section [data-cells] > div p + p {
    font-size: 10.5px !important; line-height: 15px !important; margin-top: 8px !important;
  }

  section > p[style*="max-width:62ch"], section > p[style*="max-width:54ch"] { max-width: 100% !important; }
}

/* ---------- 3. Карусели ---------- */

@media (max-width: 820px) {
  .mcar {
    display: flex !important; flex-wrap: nowrap !important;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px !important; margin-inline: -16px; padding-inline: 16px; padding-bottom: 4px;
  }
  .mcar::-webkit-scrollbar { display: none; }
  #top .mcar > *, section .mcar > *, .mcar > * {
    flex: 0 0 86% !important; max-width: 86% !important; scroll-snap-align: center;
  }
  #top .mcar > figure, section .mcar > figure { width: auto !important; margin: 0 !important; }
  .mcar-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
  .mcar-dots { display: flex; gap: 6px; }
  .mcar-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
    background: color-mix(in srgb, var(--color-text) 25%, transparent); cursor: pointer;
  }
  .mcar-dots button[aria-current="true"] { background: var(--color-accent); width: 18px; border-radius: 999px; }
  .mcar-count, .mcar-hint {
    font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent);
    font-variant-numeric: tabular-nums;
  }
}
@media (min-width: 821px) { .mcar-nav { display: none; } }

/* ---------- 4. Кнопки, карточки, формы ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); color: #fff; }
.btn-secondary {
  background: transparent; color: #1b1714;
  border-color: color-mix(in srgb, #1b1714 28%, transparent);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.card {
  border: 1px solid color-mix(in srgb, #1b1714 13%, transparent);
  border-radius: 14px; background: #fff;
}
.card-kicker {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600;
}
.tag {
  display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 12px; line-height: 1; padding: 7px 13px; background: #ece7df; color: #1b1714;
}
.tag-outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, #1b1714 20%, transparent);
}

form .field { display: grid; gap: 7px; }
form .field > label {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, #1b1714 62%, transparent);
}
.input {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 13px 15px;
  font-family: var(--font-body); font-size: 16px; line-height: 22px; color: #1b1714;
  background: #fbf9f6; border: 1px solid color-mix(in srgb, #1b1714 18%, transparent);
  border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: color-mix(in srgb, #1b1714 38%, transparent); }
.input:hover { border-color: color-mix(in srgb, #1b1714 30%, transparent); }
.input:focus {
  outline: none; background: #fff; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}
textarea.input { min-height: 116px; resize: vertical; }

form[data-zs-form] {
  display: grid; gap: 16px; padding: 26px; max-width: 460px;
  background: #fff; border-radius: 16px;
  border: 1px solid color-mix(in srgb, #1b1714 12%, transparent);
  box-shadow: 0 18px 42px -28px rgba(27, 23, 20, .55);
}
form[data-zs-form] button[type="submit"] { width: 100%; min-height: 52px; font-size: 16px; }
form[data-zs-form] .zs-form-note {
  font-size: 12.5px; line-height: 19px; margin: 0;
  color: color-mix(in srgb, #1b1714 58%, transparent);
}
form[data-zs-form] .zs-form-note a { color: inherit; }
form[data-zs-form] .zs-form-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 0 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, #1b1714 55%, transparent);
}
form[data-zs-form] .zs-form-head b { color: var(--color-accent); font-weight: 600; }
form[data-zs-form] button[data-sending="1"] { opacity: .65; pointer-events: none; }

@media (max-width: 820px) {
  form[data-zs-form] { max-width: 100%; padding: 20px 16px; border-radius: 14px; }
}

/* ---------- 5. Хлебные крошки, SEO-текст и вопросы-ответы ---------- */

.crumbs {
  max-width: 1220px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 56px) 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: color-mix(in srgb, #1b1714 58%, transparent);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }

.seo-block {
  max-width: 1220px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--color-divider);
}
.seo-block h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.16; margin: 0 0 22px; max-width: 24ch;
}
.seo-block .faq-title { margin-top: 44px; }
.seo-text { max-width: 78ch; display: grid; gap: 16px; }
.seo-text p { margin: 0; font-size: 16px; line-height: 28px; color: var(--color-text); }

.faq { max-width: 78ch; border-top: 1px solid var(--color-divider); }
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 14px; justify-content: space-between;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 17px; line-height: 26px; font-weight: 600; color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--font-heading); font-size: 24px; line-height: 26px;
  color: var(--color-accent); transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { margin: 0; font-size: 15.5px; line-height: 26px; max-width: 70ch; color: var(--color-text); }

.zs-form-ok { padding: 26px; max-width: 460px; background: #fff; }
.zs-form-ok h3 { font-size: 22px; margin: 0; }
.zs-form-ok p { font-size: 15.5px; line-height: 26px; margin: 12px 0 0; }
.zs-form-ok-phone a { font-family: var(--font-heading); font-size: 20px; text-decoration: none; }

@media (max-width: 820px) {
  .seo-block { padding: 34px clamp(16px, 4vw, 56px); }
  .seo-block h2 { font-size: clamp(22px, 5.8vw, 28px) !important; margin-bottom: 16px; }
  .seo-text p { font-size: 15px !important; line-height: 25px !important; }
  .faq-item summary { font-size: 16px; line-height: 24px; padding: 15px 0; }
  .crumbs { padding-top: 10px; font-size: 12.5px; }
}
