/* ==========================================================================
   Зелёный щит — редизайн посадочной
   Design tokens (из design_handoff_zeleny_shchit/README.md → Design Tokens)
   ========================================================================== */

:root {
  /* --- Цвета --- */
  --zs-green: #0f7a45;           /* Primary green */
  --zs-green-dark: #0b5a32;      /* hover / dark */
  --zs-green-accent: #3fc47a;    /* галочки на тёмном */
  --zs-green-soft: #e7f2ec;      /* плашки/бейджи */
  --zs-green-soft-2: #f1f6f2;    /* фон фото */

  --zs-bg: #ffffff;              /* Page bg */
  --zs-bg-alt: #f3f7f4;          /* Section alt bg */
  --zs-bg-dark: #14241b;         /* Dark section bg */
  --zs-bg-footer: #0f1a13;       /* Footer bg */

  --zs-text: #14241b;            /* Text primary */
  --zs-text-2: #16271d;          /* Text primary alt */
  --zs-text-body: #54635a;       /* Text body */
  --zs-text-body-2: #59685f;     /* Text body alt */
  --zs-text-muted: #7c8a81;      /* Text muted */

  --zs-on-dark: #b6c4bb;         /* Text on dark */
  --zs-on-dark-2: #8ea395;
  --zs-on-dark-3: #6c7d71;

  --zs-border: #e4eae5;          /* Border */
  --zs-border-2: #eaeee9;
  --zs-border-input: #d4ddd6;    /* input border */

  --zs-star: #f0a72e;            /* Star / rating */
  --zs-step: #cfe0d6;            /* Step numbers */

  /* --- Типографика --- */
  --zs-font: 'Onest', system-ui, sans-serif;

  /* --- Радиусы --- */
  --zs-radius-btn: 10px;         /* кнопки/инпуты */
  --zs-radius-card: 16px;        /* карточки 14–18 */
  --zs-radius-icon: 12px;        /* плашки иконок */
  --zs-radius-pill: 100px;       /* чипы/бейджи */

  /* --- Тени --- */
  --zs-shadow-card: 0 10px 30px rgba(15, 60, 35, .07);   /* карточка-форма */
  --zs-shadow-btn: 0 6px 14px rgba(15, 122, 69, .22);    /* кнопка-филл */
  --zs-shadow-btn-lg: 0 6px 14px rgba(15, 122, 69, .25); /* крупная кнопка */
  --zs-shadow-popular: 0 14px 36px rgba(15, 122, 69, .12); /* тариф «Популярное» */
  --zs-shadow-sticky: 0 -4px 16px rgba(0, 0, 0, .06);    /* sticky-панель моб. */
}

/* ==========================================================================
   База
   ========================================================================== */
body {
  font-family: var(--zs-font);
  color: var(--zs-text);
}

html {
  scroll-behavior: smooth;
}

/* sticky-хедер перекрывает якоря — компенсируем отступ при переходе */
[id="uslugi"],
[id="kak"],
[id="ceny"],
[id="komanda"],
[id="zayavka"] {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--zs-font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.zs-btn--cta {
  background: var(--zs-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--zs-radius-btn);
  box-shadow: var(--zs-shadow-btn);
  white-space: nowrap;
}

.zs-btn--cta:hover {
  background: var(--zs-green-dark);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   2. Хедер (sticky)
   ========================================================================== */
.zs-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--zs-border-2);
}

.zs-header.navbar-shadow {
  box-shadow: 0 4px 18px rgba(15, 60, 35, .07);
}

.zs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
}

/* Бренд */
.zs-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.zs-brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.zs-brand__name {
  font-size: 19px;
  font-weight: 800;
  color: var(--zs-text-2);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Навигация */
.zs-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.zs-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #3f4d44;
  text-decoration: none;
}

.zs-nav a:hover {
  color: var(--zs-green);
}

/* Телефон + CTA */
.zs-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.zs-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.zs-phone__num {
  font-size: 17px;
  font-weight: 800;
  color: var(--zs-text-2);
  white-space: nowrap;
}

.zs-phone__cap {
  font-size: 11px;
  font-weight: 500;
  color: var(--zs-text-muted);
}

/* Бургер (только мобайл) */
.zs-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--zs-border);
  border-radius: var(--zs-radius-btn);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Раскладка: контейнер
   ========================================================================== */
.zs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Кнопка-филл (универсальная) */
.zs-btn--fill {
  background: var(--zs-green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 0 22px;
  border-radius: var(--zs-radius-btn);
  box-shadow: var(--zs-shadow-btn);
  white-space: nowrap;
}

.zs-btn--fill:hover {
  background: var(--zs-green-dark);
  color: #fff;
}

/* Инпут (универсальный) */
.zs-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--zs-border-input);
  border-radius: var(--zs-radius-btn);
  font-size: 15px;
  font-family: var(--zs-font);
  color: var(--zs-text);
  background: #fff;
}

.zs-input::placeholder {
  color: #94a39a;
}

.zs-input:focus {
  outline: none;
  border-color: var(--zs-green);
}

.zs-form--invalid .zs-input {
  border-color: #d65a4a;
}

/* Чип-оффер */
.zs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--zs-green-soft);
  color: var(--zs-green);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--zs-radius-pill);
}

.zs-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zs-green);
  display: inline-block;
}

/* Заголовки */
.zs-h1 {
  font-size: 43px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--zs-text);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

/* ==========================================================================
   3. Первый экран (Hero)
   ========================================================================== */
.zs-hero {
  padding: 52px 40px 44px;
}

.zs-hero__inner {
  display: flex;
  gap: 44px;
  align-items: center;
}

.zs-hero__text {
  flex: 1.08;
}

.zs-hero__media {
  flex: 0.92;
  position: relative;
}

.zs-chip {
  margin-bottom: 22px;
}

.zs-hero__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--zs-text-body);
  margin: 0 0 26px;
  max-width: 520px;
}

.zs-hero__lead b {
  color: var(--zs-text-2);
}

/* Мини-форма */
.zs-mini-form {
  background: #fff;
  border: 1px solid var(--zs-border);
  border-radius: var(--zs-radius-card);
  padding: 20px;
  box-shadow: var(--zs-shadow-card);
  max-width: 480px;
}

.zs-mini-form__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--zs-text-2);
  margin-bottom: 13px;
}

.zs-mini-form__row {
  display: flex;
  gap: 10px;
}

.zs-mini-form__row .zs-input {
  flex: 1;
}

.zs-mini-form__row .zs-btn--fill {
  height: auto;
  padding: 14px 22px;
}

.zs-mini-form__note {
  font-size: 12px;
  color: #8a978e;
  margin-top: 10px;
}

.zs-mini-form__note a {
  color: #8a978e;
  text-decoration: underline;
}

/* Статы */
.zs-stats {
  display: flex;
  gap: 28px;
  margin-top: 26px;
}

.zs-stat__num {
  font-size: 24px;
  font-weight: 800;
  color: var(--zs-green);
}

.zs-stat__cap {
  font-size: 13px;
  color: var(--zs-text-muted);
}

.zs-stat__sep {
  width: 1px;
  background: var(--zs-border);
}

/* Фото + бейдж */
.zs-hero__photo {
  background: var(--zs-green-soft-2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.zs-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  background: #fff;
  border-radius: var(--zs-radius-icon);
  padding: 11px 15px;
  box-shadow: 0 6px 18px rgba(15, 60, 35, .10);
  display: flex;
  align-items: center;
  gap: 9px;
}

.zs-badge__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--zs-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.zs-badge__text {
  font-size: 13px;
  font-weight: 700;
  color: var(--zs-text-2);
  line-height: 1.2;
}

/* ==========================================================================
   4. Полоса доверия
   ========================================================================== */
.zs-trust {
  background: var(--zs-bg-alt);
  padding: 18px 40px;
}

.zs-trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.zs-trust__item {
  font-size: 13px;
  font-weight: 600;
  color: var(--zs-text-muted);
}

.zs-trust__sep {
  color: #c9d4cc;
}

/* На мобиле — вертикальный список с галочками (см. адаптив, Шаг 10) */

/* ==========================================================================
   Секции: общий каркас + заголовки
   ========================================================================== */
.zs-section {
  padding: 64px 40px;
}

.zs-section--alt {
  background: var(--zs-bg-alt);
}

.zs-head {
  text-align: center;
  margin-bottom: 38px;
}

.zs-overline {
  font-size: 13px;
  font-weight: 700;
  color: var(--zs-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.zs-h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--zs-text);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.zs-head__sub {
  font-size: 16px;
  color: var(--zs-text-body-2);
  margin: 0;
}

/* ==========================================================================
   5. Услуги
   ========================================================================== */
.zs-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.zs-service {
  border: 1px solid var(--zs-border);
  border-radius: var(--zs-radius-card);
  padding: 24px;
  background: #fff;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.zs-service:hover {
  border-color: #d3e2d8;
  box-shadow: 0 10px 28px rgba(15, 60, 35, .10);
  transform: translateY(-2px);
}

.zs-service__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--zs-radius-icon);
  background: var(--zs-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.zs-service__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--zs-text-2);
  margin-bottom: 7px;
}

.zs-service__text {
  font-size: 14px;
  line-height: 1.5;
  color: #4a574e;
}

/* ==========================================================================
   6a. Как работаем
   ========================================================================== */
.zs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.zs-step {
  background: #fff;
  border-radius: var(--zs-radius-card);
  padding: 24px;
  border: 1px solid var(--zs-border);
}

.zs-step__num {
  font-size: 30px;
  font-weight: 800;
  color: var(--zs-step);
  margin-bottom: 10px;
}

.zs-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zs-text-2);
  margin-bottom: 6px;
}

.zs-step__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--zs-text-body-2);
}

/* ==========================================================================
   6b. Команда
   ========================================================================== */
.zs-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.zs-member {
  background: #fff;
  border-radius: var(--zs-radius-card);
  border: 1px solid var(--zs-border);
  overflow: hidden;
}

.zs-member__photo {
  aspect-ratio: 1 / 1;
  background: #eef3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.zs-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.zs-member__photo--ph {
  background: repeating-linear-gradient(45deg, #eef3ef, #eef3ef 12px, #e6ece7 12px, #e6ece7 24px);
}

.zs-member__photo--ph span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #9aa89f;
}

.zs-member__body {
  padding: 20px;
}

.zs-member__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--zs-text-2);
}

.zs-member__role {
  font-size: 14px;
  font-weight: 600;
  color: var(--zs-green);
  margin: 3px 0 8px;
}

.zs-member__exp {
  font-size: 13px;
  line-height: 1.5;
  color: var(--zs-text-body-2);
}

/* ==========================================================================
   7. Цены
   ========================================================================== */
.zs-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.zs-price {
  border: 1px solid var(--zs-border);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.zs-price--popular {
  border: 2px solid var(--zs-green);
  box-shadow: var(--zs-shadow-popular);
}

.zs-price__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--zs-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--zs-radius-pill);
}

.zs-price__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--zs-text-2);
  margin-bottom: 6px;
}

.zs-price__desc {
  font-size: 14px;
  color: var(--zs-text-body-2);
  margin-bottom: 18px;
}

.zs-price__value {
  font-size: 30px;
  font-weight: 800;
  color: var(--zs-text);
}

.zs-price__note {
  font-size: 13px;
  color: var(--zs-text-muted);
  margin-bottom: 20px;
}

.zs-price__btn {
  margin-top: auto;
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: var(--zs-radius-btn);
}

.zs-price__btn--outline {
  border: 1.5px solid var(--zs-green);
  color: var(--zs-green);
  background: #fff;
}

.zs-price__btn--outline:hover {
  background: var(--zs-green-soft);
  color: var(--zs-green);
}

.zs-price__btn--fill {
  background: var(--zs-green);
  color: #fff;
  box-shadow: var(--zs-shadow-btn);
}

.zs-price__btn--fill:hover {
  background: var(--zs-green-dark);
  color: #fff;
}

/* ==========================================================================
   8. Финальная форма (тёмная)
   ========================================================================== */
.zs-final {
  padding: 60px 40px;
  background: var(--zs-bg-dark);
}

.zs-final__inner {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 980px;
}

.zs-final__text {
  flex: 1;
}

.zs-final__title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.zs-final__sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--zs-on-dark);
  margin: 0 0 22px;
}

.zs-final__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-final__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6e2da;
  font-size: 15px;
}

.zs-final__list svg {
  flex: none;
}

.zs-final__card {
  flex: 0.9;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
}

.zs-final__card .zs-input {
  margin-bottom: 12px;
}

/* Поле «Напишите ваш вопрос» — высота 3 строки, дальше прокрутка */
.zs-textarea {
  display: block;
  height: 92px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.zs-channel-label {
  font-size: 13px;
  color: var(--zs-text-muted);
  margin-bottom: 8px;
}

.zs-channel {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.zs-channel-btn {
  flex: 1;
  min-height: 44px;
  text-align: center;
  border: 1.5px solid var(--zs-border-input);
  color: var(--zs-text-body-2);
  background: #fff;
  font-family: var(--zs-font);
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.zs-channel-btn.is-active {
  border-color: var(--zs-green);
  color: var(--zs-green);
}

.zs-final__submit {
  width: 100%;
  background: var(--zs-green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  border-radius: var(--zs-radius-btn);
  box-shadow: var(--zs-shadow-btn-lg);
}

.zs-final__submit:hover {
  background: var(--zs-green-dark);
  color: #fff;
}

.zs-final__consent {
  font-size: 12px;
  color: #94a39a;
  margin-top: 11px;
  text-align: center;
}

.zs-final__consent a {
  color: var(--zs-green);
  text-decoration: none;
}

.zs-final__consent a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. Футер
   ========================================================================== */
.zs-footer {
  background: var(--zs-bg-footer);
}

.zs-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 40px;
}

.zs-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zs-footer__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.zs-footer__name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.zs-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.zs-footer__links a {
  font-size: 13px;
  color: var(--zs-on-dark-2);
  text-decoration: none;
}

.zs-footer__links a:hover {
  color: #fff;
}

.zs-footer__phone {
  color: #fff !important;
  font-weight: 700;
}

.zs-footer__legal {
  padding: 14px 40px;
  border-top: 1px solid #1c2c22;
  font-size: 12px;
  color: var(--zs-on-dark-3);
}

/* ==========================================================================
   10a. Мобильная sticky-панель + чат
   ========================================================================== */
.zs-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid var(--zs-border);
  padding: 11px 14px;
  gap: 10px;
  box-shadow: var(--zs-shadow-sticky);
}

.zs-mobile-bar__call {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--zs-green);
  border-radius: var(--zs-radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.zs-mobile-bar__cta {
  flex: 1;
  background: var(--zs-green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--zs-radius-btn);
}

.zs-mobile-bar__cta:hover {
  background: var(--zs-green-dark);
  color: #fff;
}

/* ==========================================================================
   10b. Адаптив (брейкпоинт ~768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* Хедер: показываем бургер, прячем десктоп-навигацию/CTA */
  .zs-header__inner {
    padding: 14px 18px;
  }

  .zs-burger {
    display: flex;
  }

  .zs-nav,
  .zs-header__actions {
    display: none;
  }

  /* Выпадающее мобильное меню */
  .zs-header.zs-nav-open .zs-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--zs-border-2);
    padding: 6px 18px 12px;
    box-shadow: 0 8px 18px rgba(15, 60, 35, .08);
  }

  .zs-header.zs-nav-open .zs-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--zs-border-2);
    font-size: 16px;
  }

  .zs-header {
    position: sticky;
  }

  /* Hero → стек */
  .zs-hero {
    padding: 24px 18px 22px;
  }

  .zs-hero__inner {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }

  .zs-h1 {
    font-size: 27px;
    line-height: 1.13;
    margin-bottom: 12px;
  }

  .zs-hero__lead {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .zs-mini-form {
    max-width: none;
  }

  .zs-mini-form__row {
    flex-direction: column;
  }

  .zs-mini-form__row .zs-btn--fill {
    width: 100%;
    padding: 14px;
  }

  .zs-stats {
    gap: 14px;
    margin-top: 18px;
    justify-content: space-between;
  }

  .zs-stat__sep {
    display: none;
  }

  .zs-stat__num {
    font-size: 19px;
  }

  .zs-stat__cap {
    font-size: 11px;
  }

  .zs-hero__photo {
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--zs-radius-card);
  }

  .zs-hero__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  /* Полоса доверия → вертикальный список с галочками */
  .zs-trust {
    padding: 14px 18px;
  }

  .zs-trust__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .zs-trust__sep {
    display: none;
  }

  .zs-trust__item {
    font-size: 12px;
    color: var(--zs-text-body-2);
  }

  .zs-trust__item::before {
    content: "✓ ";
    color: var(--zs-green);
    font-weight: 700;
  }

  /* Секции: меньше отступов */
  .zs-section,
  .zs-final {
    padding: 34px 18px;
  }

  .zs-head {
    text-align: left;
    margin-bottom: 18px;
  }

  .zs-h2 {
    font-size: 24px;
  }

  /* Сетки → один столбец */
  .zs-services,
  .zs-steps,
  .zs-team,
  .zs-prices {
    grid-template-columns: 1fr;
  }

  /* Услуги: вертикально (иконка сверху) */
  .zs-service {
    display: block;
    border-radius: 14px;
    padding: 16px;
  }

  .zs-service__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  /* Как работаем: номер слева */
  .zs-step {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px;
  }

  .zs-step__num {
    margin-bottom: 0;
  }

  /* Финальная форма → стек, низ с запасом под sticky-панель */
  .zs-final {
    padding-bottom: 96px;
  }

  .zs-final__inner {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }

  .zs-final__title {
    font-size: 23px;
  }

  /* Футер: всё в столбик */
  .zs-footer__top {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .zs-footer__links {
    flex-direction: column;
    gap: 9px;
  }

  .zs-footer__legal {
    padding: 14px 18px;
  }

  /* Низ страницы — запас под фикс-панель */
  body {
    padding-bottom: 70px;
  }

  /* Показываем мобильную sticky-панель */
  .zs-mobile-bar {
    display: flex;
  }

  /* Чат-виджет (закрытая иконка) поднимаем над sticky-панелью,
     чтобы не перекрывал её и форму. Кнопка позиционируется через .btn_cons_wrapper. */
  .btn_cons_wrapper {
    top: auto !important;
    bottom: 84px !important;
    left: auto !important;
    right: 14px !important;
  }

  .dialog {
    top: auto !important;
    bottom: 146px !important;
    right: 14px !important;
  }
}

/* ==========================================================================
   Виджет-консультант: брендовый оранжевый + правки компоновки
   (style.css грузится после redesign.css → используем !important)
   ========================================================================== */

/* Hover иконки и кнопок внутри виджета */
.btn_cons_wrapper:hover {
  background-color: #D8550F !important;
}

.submit_btn_step_one:hover,
.form_buttons button:hover {
  background: #D8550F !important;
}

/* Текст в полях ввода телефона и города — ярче, тёмно-зелёный */
.consultant_body .form_input input,
.consultant_body .text {
  color: #0b5a32 !important;
}

/* Ссылки-согласия в виджете — приглушённые, как под формами (не яркие синие) */
.privacy_policy_text a,
.privacy_policy a {
  color: #8a978e !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.privacy_policy_text a:hover,
.privacy_policy a:hover {
  color: #16271d !important;
}

/* Тело виджета подгоняем под контент — убираем большой отступ под полем ввода.
   Применяем для всех ширин выше фуллскрин-режима (он на max-width:430px). */
@media (min-width: 431px) {
  .consultant_body {
    height: auto !important;
    max-height: 72vh;
  }

  .consultant_body_mess {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 140px;
    max-height: 52vh;
    padding-bottom: 16px !important;
  }

  .consultant_body_send {
    position: static !important;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, .04) !important;
  }
}

@media (min-width: 769px) {
  /* Подсказка «Задать вопрос юристу» слева от иконки (когда чат закрыт) */
  .btn_consultant:not(.btnone) .btn_cons_wrapper::after {
    content: "Задать вопрос юристу";
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #16271d;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 24px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    pointer-events: none;
  }
}
