/* ═══════════════════════════════════════════════════════════════
   CNB Smooth v1.0 — доработки плавности поверх оригинальных стилей.
   Дизайн не меняется: только более мягкие easing-кривые, GPU-хинты
   и плавный скролл. Всё уважает prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Плавный якорный скролл + отступ под шапку ── */
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 84px; /* высота фиксированной шапки */
}

/* ── 2. Hero-слайдер: мягкий кроссфейд + лёгкий Ken Burns ── */
.cnb-slide {
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
  will-change: opacity;
}
.cnb-slide > img,
.cnb-slide {
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .cnb-slide.is-active > img {
    animation: cnb-kenburns 12s ease-out forwards;
  }
  @keyframes cnb-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
  }
}
.cnb-slide__content {
  will-change: transform, opacity;
}
/* Контент активного слайда мягко поднимается */
@media (prefers-reduced-motion: no-preference) {
  .cnb-slide .cnb-slide__eyebrow,
  .cnb-slide .cnb-slide__h1,
  .cnb-slide .cnb-slide__sub,
  .cnb-slide .cnb-slide__actions {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .cnb-slide.is-active .cnb-slide__eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
  .cnb-slide.is-active .cnb-slide__h1      { opacity: 1; transform: none; transition-delay: .25s; }
  .cnb-slide.is-active .cnb-slide__sub     { opacity: 1; transform: none; transition-delay: .38s; }
  .cnb-slide.is-active .cnb-slide__actions { opacity: 1; transform: none; transition-delay: .5s; }
}

/* ── 3. Кнопки и плитки: единая упругая кривая ── */
.cnb-btn {
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color .25s ease, border-color .25s ease,
              color .25s ease, box-shadow .35s ease;
}
.cnb-btn:hover {
  box-shadow: 0 6px 22px rgba(204, 32, 39, .28);
}
.cnb-btn:active {
  transform: scale(.97);
  transition-duration: .12s;
}
.cnb-tile,
.cnb-svo-tile,
.cnb-mcard,
.cnb-rcard {
  will-change: transform;
  backface-visibility: hidden;
}
.cnb-tile__img-wrap img {
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease;
}

/* ── 4. Слайдеры: плавные стрелки и точки ── */
.cnb-slider__arrow,
.cnb-pslider__btn {
  transition: background-color .25s ease, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .25s ease;
}
.cnb-slider__arrow:hover,
.cnb-pslider__btn:hover {
  transform: scale(1.08);
}
.cnb-slider__arrow:active,
.cnb-pslider__btn:active {
  transform: scale(.94);
}
.cnb-slider__dot,
.cnb-pslider__dot {
  transition: background-color .3s ease, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), width .3s ease;
}
.cnb-pslide {
  transition: opacity .9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 5. FAQ (details): плавное раскрытие ── */
.cnb-faq-item {
  transition: background-color .3s ease, border-color .3s ease;
}
.cnb-faq-item summary {
  transition: color .25s ease;
}
.cnb-faq-item > p {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .cnb-faq-item[open] > p {
    animation: cnb-faq-open .38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes cnb-faq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── 6. Шапка: плавное появление фона при скролле ── */
.cnb-header {
  transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.cnb-nav__link {
  transition: color .22s ease;
}
.cnb-nav__link::after {
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── 7. Прогресс-бар скролла: без рывков ── */
.cnb-scroll-progress__bar {
  transition: transform .08s linear;
  will-change: transform;
}

/* ── 8. Галерея: плавное скрытие/появление при фильтрации ── */
.cnb-gallery-tile {
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity .35s ease, box-shadow .35s ease;
}
.cnb-gallery-tile.cnb-hiding {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}
.cnb-gallery-tile.cnb-showing {
  animation: cnb-tile-in .45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cnb-tile-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ── 9. Липкая мобильная панель: мягкий подъём ── */
.cnb-sticky-bar {
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s ease;
}

/* ── 10. Формы: фокус и радио-карточки ── */
.cnb-radio-card {
  transition: border-color .22s ease, background-color .22s ease, transform .22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cnb-radio-card:hover {
  transform: translateY(-1px);
}
.cnb-radio-card.is-checked {
  transform: none;
}
.cnb-field input,
.cnb-field textarea,
#cnbQuoteForm input,
#cnbQuoteForm select,
#cnbQuoteForm textarea {
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.cnb-field input:focus,
.cnb-field textarea:focus,
#cnbQuoteForm input:focus,
#cnbQuoteForm select:focus,
#cnbQuoteForm textarea:focus {
  border-color: rgba(204, 32, 39, .6) !important;
  box-shadow: 0 0 0 3px rgba(204, 32, 39, .15);
}
.cnb-form-step {
  animation: cnb-step-in .4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cnb-step-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
.cnb-progress__bar {
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 11. Изображения: сглаживание рендера при трансформациях ── */
.cnb-about-glass__bgimg,
.cnb-svc-photo img,
.cnb-gallery-tile__img img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ═══════════════════════════════════════════════════════════════
   ФОТОФОН HERO сервисных страниц и лендингов (.cnb-svc-hero__bg)
   Слои: фото (низ) → затемняющие градиенты → красная сетка/скан → контент.
   ═══════════════════════════════════════════════════════════════ */
.cnb-svc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cnb-svc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.25) brightness(.4) contrast(1.06) saturate(.85);
  transform: scale(1.04);
}
@media (prefers-reduced-motion: no-preference) {
  .cnb-svc-hero__bg img {
    animation: cnb-hero-bg-drift 24s ease-in-out infinite alternate;
  }
  @keyframes cnb-hero-bg-drift {
    from { transform: scale(1.04) translateY(0); }
    to   { transform: scale(1.09) translateY(-10px); }
  }
}
.cnb-svc-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .55) 52%, rgba(11, 11, 13, .74) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, .55) 0%, transparent 30%, transparent 55%, rgba(13, 13, 13, .97) 100%);
}
/* Сетка и скан — поверх фото (идут в DOM после фона) */
.cnb-svc-hero__grid, .cnb-svc-hero__scan,
.cnb-svo-hero__grid, .cnb-svo-hero__scan { z-index: 0; }
.cnb-svc-hero__inner, .cnb-svo-hero__inner { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .cnb-svc-hero__bg::after {
    background:
      linear-gradient(180deg, rgba(11, 11, 13, .82) 0%, rgba(11, 11, 13, .6) 45%, rgba(13, 13, 13, .97) 100%);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ЛЕНДИНГ-БЛОКИ сервисных страниц (includes / pricing / BA / where)
   ═══════════════════════════════════════════════════════════════ */
.cnb-svc-hero__anchor {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  border-bottom: 1px dashed rgba(204, 32, 39, .5);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.cnb-svc-hero__anchor:hover { color: #ff5050; border-color: #ff5050; }

/* Display-строка hero лендингов (ТЗ: крупная фраза под H1) */
.cnb-svc-hero__display {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .85);
  margin: .35rem 0 1rem;
}

.cnb-svc-inc-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem 2rem;
  max-width: 980px;
}
@media (max-width: 720px) { .cnb-svc-inc-list { grid-template-columns: 1fr; } }
.cnb-svc-inc-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.55;
}
.cnb-svc-inc-list svg { flex: 0 0 auto; margin-top: .22rem; }

.cnb-svc-pricing__p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .62);
  line-height: 1.75;
  margin: 0 0 1.15rem;
  max-width: 800px;
}

/* 4 гарантии вместо 3 */
.cnb-svc-guarantees--4 { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
@media (max-width: 1100px) {
  .cnb-svc-guarantees--4 { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cnb-svc-guarantees--4 .cnb-svc-guarantee__div { display: none; }
}
@media (max-width: 640px) { .cnb-svc-guarantees--4 { grid-template-columns: 1fr; } }

.cnb-svc-ba__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (max-width: 720px) { .cnb-svc-ba__grid { grid-template-columns: 1fr; } }
.cnb-svc-ba__item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
}
.cnb-svc-ba__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(1.02) contrast(1.1) saturate(1.12);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}
.cnb-svc-ba__item:hover img { transform: scale(1.05); filter: brightness(1.12) contrast(1.14) saturate(1.2); }

.cnb-svc-where__grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.cnb-svc-where__pill {
  display: inline-block;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  font-size: .84rem; font-weight: 600;
  padding: .42rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.cnb-svc-where__pill:hover {
  border-color: rgba(204, 32, 39, .6);
  color: #fff;
  background: rgba(204, 32, 39, .12);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   ЛЕНДИНГИ (page-landing.php): таблица цен / команда / услуги / гайды
   ═══════════════════════════════════════════════════════════════ */
.cnb-lp-table {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  overflow: hidden;
}
.cnb-lp-table__row {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cnb-lp-table__row:last-child { border-bottom: none; }
.cnb-lp-table__row.is-alt { background: rgba(255, 255, 255, .03); }
.cnb-lp-table__label { font-size: .95rem; font-weight: 600; color: #fff; }
.cnb-lp-table__value {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: .9rem; color: #ff5050; white-space: nowrap;
}
.cnb-lp-table__note { font-size: .8125rem; color: rgba(255, 255, 255, .38); margin-top: 1rem; line-height: 1.6; }

.cnb-lp-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}
.cnb-lp-team__card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  transition: border-color .3s ease, transform .3s ease;
}
.cnb-lp-team__card:hover { border-color: rgba(204, 32, 39, .45); transform: translateY(-3px); }
.cnb-lp-team__icon { margin-bottom: .9rem; }
.cnb-lp-team__card strong { display: block; color: #fff; font-size: 1rem; margin-bottom: .3rem; }
.cnb-lp-team__tag {
  display: inline-block;
  background: rgba(204, 32, 39, .14); border: 1px solid rgba(204, 32, 39, .35);
  color: #ff5050; font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 3px; margin-bottom: .6rem;
}
.cnb-lp-team__card p { font-size: .84rem; color: rgba(255, 255, 255, .5); line-height: 1.6; margin: 0; }

.cnb-lp-svcgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .cnb-lp-svcgrid { grid-template-columns: 1fr; } }
.cnb-lp-svcgrid__item {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}
.cnb-lp-svcgrid__item:hover { border-color: rgba(204, 32, 39, .4); background: rgba(204, 32, 39, .06); }
.cnb-lp-svcgrid__item strong { display: block; color: #fff; font-size: .95rem; margin-bottom: .2rem; }
.cnb-lp-svcgrid__item span { color: rgba(255, 255, 255, .4); font-size: .78rem; }

.cnb-lp-links { display: flex; flex-direction: column; gap: .6rem; }
.cnb-lp-links__item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: .95rem 1.25rem;
  color: #fff; font-size: .95rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, color .2s ease;
}
.cnb-lp-links__item svg { color: rgba(255, 255, 255, .35); transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .2s; }
.cnb-lp-links__item:hover { border-color: rgba(204, 32, 39, .5); color: #ff5050; }
.cnb-lp-links__item:hover svg { transform: translateX(4px); color: #ff5050; }

/* ═══════════════════════════════════════════════════════════════
   ВСТРАИВАЕМАЯ ФОРМА КВОТЫ (рекламные посадочные) — .cnb-qf-*
   ═══════════════════════════════════════════════════════════════ */
.cnb-qf-wrap {
  position: relative;
  background: #0d0d0d;
  border-top: 1px solid rgba(204, 32, 39, .15);
  border-bottom: 1px solid rgba(204, 32, 39, .15);
  padding: 4rem 0;
  overflow: hidden;
}
.cnb-qf-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(204, 32, 39, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 32, 39, .05) 1px, transparent 1px);
  background-size: 52px 52px;
}
.cnb-qf-card {
  max-width: 620px;
  margin: 0 auto;
  background: #f4f5f7;
  border-radius: 14px;
  padding: 2rem 1.75rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(204, 32, 39, .18);
}

/* ── Простая форма: единые белые поля (работают на светлой и тёмной карточке) ── */
.cnb-qf-form--simple .cnb-field { margin-bottom: .8rem; }
.cnb-qf-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d5d5da;
  border-radius: 7px;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body, inherit);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cnb-qf-input::placeholder { color: #9a9aa0; }
.cnb-qf-input:focus { border-color: #cc2027; box-shadow: 0 0 0 3px rgba(204, 32, 39, .12); }

.cnb-qf-terms {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .3rem 0 1rem;
  font-size: .875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);           /* на тёмной карточке (главная/контакты) */
  cursor: pointer;
}
.cnb-qf-terms input { margin-top: .15rem; accent-color: #cc2027; width: 16px; height: 16px; flex: 0 0 auto; }
.cnb-qf-terms a { color: #ff5050; text-decoration: underline; text-underline-offset: 2px; }
.cnb-qf-submit { width: 100%; justify-content: center; }
.cnb-qf-form--simple .cnb-form-privacy { color: rgba(255, 255, 255, .4); text-align: center; font-size: .8rem; }

/* Внутри светлых карточек (embed и белая карточка главной) — тёмный текст */
.cnb-qf-card .cnb-qf-terms,
.cnb-form-card .cnb-qf-terms { color: #555; }
.cnb-qf-card .cnb-qf-terms a,
.cnb-form-card .cnb-qf-terms a { color: #cc2027; }
.cnb-qf-card .cnb-qf-form--simple .cnb-form-privacy,
.cnb-form-card .cnb-qf-form--simple .cnb-form-privacy { color: #888; }
.cnb-qf-head { text-align: center; margin-bottom: 1.5rem; }
.cnb-qf-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
}
.cnb-qf-sub { color: #666; font-size: .95rem; margin: 0; }
.cnb-qf-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid #eee;
  font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  color: #8a8a8a; text-transform: uppercase;
}
.cnb-qf-trust i { width: 3px; height: 3px; border-radius: 50%; background: #cc2027; }

/* ~30 секунд под заголовком */
.cnb-qf-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .7rem;
  padding: .3rem .8rem;
  background: rgba(204, 32, 39, .07);
  border: 1px solid rgba(204, 32, 39, .18);
  border-radius: 100px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #a33;
}

/* Skip-ссылка на шаге 1 */
.cnb-qf-skip {
  display: block;
  width: 100%;
  margin-top: .6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: #999;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.cnb-qf-skip:hover { color: #cc2027; }

/* Honeypot — прячем от людей, оставляем для ботов */
.cnb-qf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Privacy-ссылка в микрокопии */
.cnb-qf-privacy { color: #999; text-decoration: underline; text-underline-offset: 2px; }
.cnb-qf-privacy:hover { color: #cc2027; }

/* WhatsApp под траст-строкой */
.cnb-qf-wa {
  margin: .8rem 0 0;
  text-align: center;
  font-size: .84rem;
  color: #8a8a8a;
}
.cnb-qf-wa a { color: #1da851; font-weight: 700; text-decoration: none; }
.cnb-qf-wa a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sticky-бар на посадочных: виден сразу + кнопка WhatsApp */
.cnb-sticky-bar.cnb-sticky--always {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.cnb-sticky-bar__wa {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  align-self: stretch;
  background: #1da851;
  color: #fff;
  border-radius: 8px;
  margin: 0 .4rem;
  transition: background-color .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.cnb-sticky-bar__wa:hover { background: #179547; }
.cnb-sticky-bar__wa:active { transform: scale(.93); }
@media (max-width: 560px) {
  .cnb-qf-wrap { padding: 2.5rem 0; }
  .cnb-qf-card { padding: 1.5rem 1.1rem 1.25rem; border-radius: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   АДМИН-БАР WP: правильные отступы фиксированной шапки.
   В оригинале только top:32px (десктоп). На ≤782px бар выше (46px),
   а на ≤600px он ПРОКРУЧИВАЕТСЯ со страницей — шапка должна
   прилипать к самому верху, иначе остаётся «дыра».
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 782px) {
  .admin-bar .cnb-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .cnb-header { top: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   ДРОПДАУН SERVICES — десктоп (>768px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .cnb-nav__item { position: relative; }
  .cnb-nav__item--has-sub > .cnb-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
  }
  .cnb-nav__chev {
    opacity: .55;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s;
  }
  .cnb-nav__item--has-sub:hover .cnb-nav__chev,
  .cnb-nav__item--has-sub:focus-within .cnb-nav__chev {
    transform: rotate(180deg);
    opacity: 1;
  }

  .cnb-nav__sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 330px;
    padding: .55rem;
    background: rgba(13, 13, 15, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(.98);
    transform-origin: top center;
    transition: opacity .28s ease, transform .32s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .3s;
    z-index: 300;
  }
  /* Красный акцент сверху + «мостик», чтобы курсор не проваливался */
  .cnb-nav__sub::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cc2027 30%, #cc2027 70%, transparent);
    border-radius: 2px;
  }
  .cnb-nav__sub::after {
    content: '';
    position: absolute;
    top: -14px; left: 0; right: 0;
    height: 14px;
  }
  .cnb-nav__item--has-sub:hover > .cnb-nav__sub,
  .cnb-nav__item--has-sub:focus-within > .cnb-nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity .24s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
  }

  .cnb-nav__subitem {
    position: relative;
    display: block;
    padding: .62rem .8rem .62rem 1.05rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color .18s ease, padding-left .25s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-nav__subitem::before {
    content: '';
    position: absolute;
    left: .45rem; top: 50%;
    width: 3px; height: 0;
    transform: translateY(-50%);
    background: #cc2027;
    border-radius: 3px;
    transition: height .25s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-nav__subitem:hover { background: rgba(255, 255, 255, .055); padding-left: 1.25rem; }
  .cnb-nav__subitem:hover::before { height: 60%; }
  .cnb-nav__subtitle {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
  }
  .cnb-nav__subitem:hover .cnb-nav__subtitle { color: #ff5050; }
  .cnb-nav__submeta {
    display: block;
    margin-top: .14rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .42);
    letter-spacing: .01em;
  }
  .cnb-nav__suball {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .45rem;
    padding: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #cc2027;
    text-decoration: none;
    transition: color .2s ease;
  }
  .cnb-nav__suball span { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
  .cnb-nav__suball:hover { color: #ff5050; }
  .cnb-nav__suball:hover span { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════════════
   МОБИЛЬНОЕ МЕНЮ — полноэкранный оверлей (≤768px)
   ═══════════════════════════════════════════════════════════════ */
.cnb-mm { display: none; }

html.cnb-mm-lock, body.cnb-mm-lock { overflow: hidden; }

@media (max-width: 768px) {
  /* Старый белый дропдаун отключён навсегда */
  .cnb-nav.is-open .cnb-nav__links { display: none !important; }

  /* ── Кнопка-бургер: в оригинале color:var(--black) — невидима на тёмном.
        Делаем заметную «стеклянную» кнопку с белой иконкой ── */
  .cnb-nav__toggle {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 9px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease,
                transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
  }
  .cnb-nav__toggle svg { display: block; }
  .cnb-nav__toggle:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .14);
  }
  .cnb-nav__toggle:active {
    transform: scale(.9);
    border-color: #cc2027;
    background: rgba(204, 32, 39, .22);
    box-shadow: 0 0 0 4px rgba(204, 32, 39, .18);
  }

  .cnb-mm {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000; /* поверх админ-бара WP (99999) — меню это модалка */
    height: 100vh;
    height: 100dvh;
    background: #0b0b0d;
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0px at calc(100% - 43px) 32px);
    transition: clip-path .55s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .55s;
  }
  .cnb-mm.is-open {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 43px) 32px);
    transition: clip-path .6s cubic-bezier(.22, 1, .36, 1);
  }

  /* Фирменный фон: красная сетка + мягкое свечение */
  .cnb-mm__bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(204, 32, 39, .06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(204, 32, 39, .06) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
  }
  .cnb-mm__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(204, 32, 39, .10), transparent 60%),
      radial-gradient(140% 70% at 50% 110%, rgba(0, 0, 0, .55), transparent 60%);
  }

  .cnb-mm__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 var(--pad, 1.5rem) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* Верх: лого + крестик (высота как у шапки) */
  .cnb-mm__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    flex: 0 0 auto;
  }
  .cnb-mm__close {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 32, 39, .18);
    border: 1.5px solid rgba(204, 32, 39, .65);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(204, 32, 39, .28);
    transition: border-color .25s ease, background-color .25s ease,
                transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
  }
  .cnb-mm__close svg { stroke-width: 2.4; }
  .cnb-mm__close:hover {
    background: #cc2027;
    border-color: #cc2027;
    box-shadow: 0 6px 26px rgba(204, 32, 39, .45);
  }
  .cnb-mm__close:active { transform: scale(.9); }

  /* Ссылки */
  .cnb-mm__nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    overflow-y: auto;
  }
  .cnb-mm__list {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    width: 100%;
  }
  .cnb-mm__item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .45s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
    transition-delay: 0s;
  }
  .cnb-mm.is-open .cnb-mm__item {
    opacity: 1;
    transform: none;
    transition-delay: calc(.16s + var(--mm-i, 0) * .06s);
  }
  .cnb-mm__link {
    display: flex;
    align-items: baseline;
    gap: .9rem;
    padding: .55rem 0;
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
    text-decoration: none;
    transition: color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-mm__link:hover, .cnb-mm__link:active { color: #cc2027; transform: translateX(6px); }
  .cnb-mm__num {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: .78rem;
    font-weight: 400;
    color: rgba(204, 32, 39, .85);
    letter-spacing: .08em;
  }

  /* ── Аккордеон подменю (Services) ── */
  .cnb-mm__row {
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .cnb-mm__row .cnb-mm__link { flex: 1 1 auto; min-width: 0; }
  .cnb-mm__subtoggle {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease;
  }
  .cnb-mm__subtoggle svg {
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-mm__item.is-sub-open .cnb-mm__subtoggle {
    border-color: rgba(204, 32, 39, .6);
    background: rgba(204, 32, 39, .12);
    color: #ff5050;
  }
  .cnb-mm__item.is-sub-open .cnb-mm__subtoggle svg { transform: rotate(180deg); }

  .cnb-mm__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-mm__item.is-sub-open .cnb-mm__sub { grid-template-rows: 1fr; }
  .cnb-mm__sublist {
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.1rem;
    border-left: 1px solid rgba(204, 32, 39, .25);
    margin-left: .35rem;
  }
  .cnb-mm__item.is-sub-open .cnb-mm__sublist { padding-top: .3rem; padding-bottom: .55rem; }
  .cnb-mm__sublink {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-mm__sublink:hover, .cnb-mm__sublink:active { color: #ff5050; transform: translateX(4px); }
  .cnb-mm__subdot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #cc2027;
    flex: 0 0 auto;
  }

  /* Низ: звонок + Free estimate */
  .cnb-mm__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
  }
  .cnb-mm.is-open .cnb-mm__actions {
    opacity: 1;
    transform: none;
    transition-delay: calc(.16s + var(--mm-i, 5) * .06s);
  }
  .cnb-mm__call,
  .cnb-mm__quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 52px;
    border-radius: 9px;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease, border-color .25s ease, box-shadow .3s ease;
  }
  .cnb-mm__call {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .04);
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-weight: 400;
    letter-spacing: .02em;
  }
  .cnb-mm__call:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
  .cnb-mm__quote {
    color: #fff;
    background: #cc2027;
    box-shadow: 0 8px 26px rgba(204, 32, 39, .35);
  }
  .cnb-mm__quote:hover { background: #b51e1b; }
  .cnb-mm__call:active, .cnb-mm__quote:active { transform: scale(.97); }
  .cnb-mm__hours {
    margin: .35rem 0 0;
    text-align: center;
    font-size: .78rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .38);
  }
}

/* Низкие экраны — компактнее пункты */
@media (max-width: 768px) and (max-height: 640px) {
  .cnb-mm__link { font-size: clamp(1.5rem, 6.5vw, 1.9rem); padding: .4rem 0; }
  .cnb-mm__actions { gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cnb-mm { clip-path: none; opacity: 0; transition: opacity .01ms; }
  .cnb-mm.is-open { clip-path: none; opacity: 1; }
  .cnb-mm__item, .cnb-mm__actions { opacity: 1; transform: none; transition: none; }
}

/* ── 12. Уважение reduced motion: глушим всё ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
