/* ============================================================
   ПАПЕРКА — блоки страниц: hero, плитки, категории, шаги,
   галерея, отзывы, новости, карта, цены, карточка услуги
   ============================================================ */

/* ============================== HERO (компактный баннер + поиск) ======================== */
.hero {
  position: relative;
  display: block;
  padding-block: clamp(16px, 2.5vw, 32px);
  background: var(--surface-cool);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  display: none !important;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
}
.hero-banner {
  width: 100%;
  max-width: 960px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 99, 153, 0.14);
  background: #006399;
}
.hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ============================== HERO КАРУСЕЛЬ И СЛАЙДЫ ======================== */
.hero-slider-wrap {
  width: 100%;
  max-width: 960px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 99, 153, 0.14);
  background: #003087;
  position: relative;
}
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 485;
  overflow: hidden;
  outline: none;
}
@media (max-width: 640px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
  }
}

.hero-slider__track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Режим Fade (плавное растворение) */
.hero-slider--fade .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0.45s;
  pointer-events: none;
}
.hero-slider--fade .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Режим Slide (горизонтальное скольжение) */
.hero-slider--slide .hero-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
}
.hero-slider--slide .hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
}
.hero-slide__picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-slide__img--cover {
  object-fit: cover;
}
.hero-slide__img--contain {
  object-fit: contain;
}
.hero-slide__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 3.5vw, 36px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.hero-slide__title {
  margin: 0 0 8px;
  line-height: 1.1;
}
.hero-slide__sub {
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.hero-slide__note {
  margin: 0 0 14px;
}
.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  width: fit-content;
}
.hero-slide__btn:hover {
  transform: translateY(-1px);
}
.hero-slide__btn--primary {
  background: var(--brand);
  color: #ffffff;
}
.hero-slide__btn--primary:hover {
  background: var(--brand-600);
}
.hero-slide__btn--white {
  background: #ffffff;
  color: #003087;
}
.hero-slide__btn--white:hover {
  background: #f0f5ff;
}
.hero-slide__btn--outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}
.hero-slide__btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Анимации появления элементов внутри слайда */
.hero-slide.is-active .anim-fade-up {
  animation: heroFadeUp 0.5s ease-out both;
}
.hero-slide.is-active .anim-fade {
  animation: heroFade 0.4s ease-out both;
}
.hero-slide.is-active .anim-zoom-in {
  animation: heroZoomIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroZoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider--fade .hero-slide,
  .hero-slider--slide .hero-slider__track,
  .anim-fade-up, .anim-fade, .anim-zoom-in {
    transition: none !important;
    animation: none !important;
  }
}

/* Стрелки слайдера */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background var(--t), transform var(--t);
  backdrop-filter: blur(4px);
}
.hero-slider__arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}
.hero-slider__arrow:focus-visible {
  outline: 2px solid var(--brand);
}
.hero-slider__arrow--prev { left: 14px; }
.hero-slider__arrow--next { right: 14px; }

@media (max-width: 600px) {
  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }
  .hero-slider__arrow--prev { left: 8px; }
  .hero-slider__arrow--next { right: 8px; }
}

/* Точки слайдера */
.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 10;
}
.hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}
.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}
.hero-slider__dot.is-active {
  background: #ffffff;
  width: 24px;
  border-radius: 5px;
}
.hero-search-wrap {
  width: 100%;
  max-width: 720px;
  margin-top: clamp(14px, 2vw, 22px);
}
.hero-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--brand-400);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
}
.hero-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(0, 99, 153, 0.2);
}
.hero-search__icon {
  display: flex;
  align-items: center;
  color: var(--brand);
  margin-right: 10px;
  flex-shrink: 0;
}
.hero-search__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--fs-base);
  color: var(--ink);
  min-width: 0;
  padding: 8px 4px;
}
.hero-search__input::placeholder {
  color: var(--ink-400);
  font-size: 14px;
}
.hero-search__btn {
  flex-shrink: 0;
  border-radius: var(--r-pill);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 14px;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  width: 100%;
}
.hero-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.hero-meta__item .ico {
  color: var(--brand);
  display: inline-flex;
}
.hero-meta__item b {
  color: var(--ink);
  font-weight: 600;
}
.hero-meta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 2px 8px rgba(0, 99, 153, 0.25);
}
.hero-meta__btn:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}
.hero-meta__btn .ico {
  display: inline-flex;
}

@media (max-width: 640px) {
  .hero-meta {
    gap: 8px;
    justify-content: stretch;
  }
  .hero-meta__item {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
  .hero-meta__btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
  .hero-search__input::placeholder {
    font-size: 12px;
  }
  .hero-search__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ============================== ПЛИТКИ БЫСТРЫХ ДЕЙСТВИЙ ===== */
.quick-actions { --card-min: 160px; }
@media (min-width: 560px) { .quick-actions { --card-min: 200px; } }

/* ТЗ §55/§62: плитка показывает РЕАЛЬНОЕ фото услуги, а не пиктограмму.
   Фотография — главный элемент, подпись и цена под ней. */
.qa {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.qa:hover {
  border-color: var(--brand-400);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
  color: var(--ink);
}
.qa__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: var(--surface-cool-2);
  overflow: hidden;
}
.qa__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.qa:hover .qa__media img { transform: scale(1.06); }
.qa__ph {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  color: var(--ink-300);
  background: var(--surface-cool-2);
}
.qa__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-4);
}
.qa__label {
  font-weight: 650;
  font-size: var(--fs-base);
  line-height: 1.25;
  text-wrap: balance;
}
.qa__hint { color: var(--ink-400); font-size: var(--fs-sm); }

.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  transition: transform var(--t), box-shadow var(--t);
}
@media (min-width: 700px) { .cat-card { min-height: 220px; } }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); color: #fff; }
.cat-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 15, 24, .95) 8%, rgba(10, 15, 24, .62) 55%, rgba(10, 15, 24, .18) 100%);
}
.cat-card__body { position: relative; min-width: 0; width: 100%; }
.cat-card__title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: var(--lh-snug);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-shadow: 0 1px 10px rgba(10, 14, 20, .5);
}
.cat-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: rgba(255, 255, 255, .8);
}
.cat-card__arrow {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-left: auto;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
  transition: background var(--t-fast), transform var(--t-fast);
}
.cat-card__arrow svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .cat-card {
    min-height: 135px;
    padding: 10px;
    border-radius: var(--r-md);
  }
  .cat-card__title {
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 650;
  }
  .cat-card__meta {
    font-size: 11px;
    margin-top: 4px;
    gap: 4px;
  }
  .cat-card__arrow {
    display: none;
  }
}

/* ============================== ШАГИ ======================== */
.steps { --card-min: 240px; counter-reset: step; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step__no {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--ink);
  border-radius: var(--r-md);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -.02em;
}
.step:first-child .step__no { background: var(--brand); }
.step__title { font-size: var(--fs-md); font-weight: 700; }
.step__text { margin: 0; color: var(--ink-500); font-size: var(--fs-sm); line-height: 1.55; }

/* ============================== ГАЛЕРЕЯ ===================== */
.gallery { --card-min: 150px; }
@media (min-width: 700px) { .gallery { --card-min: 200px; } }
.gal {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gal:hover img { transform: scale(1.06); }
.gal__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(14, 20, 28, .88), rgba(14, 20, 28, 0));
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
}
.gal:hover .gal__cap, .gal:focus-visible .gal__cap { opacity: 1; transform: none; }
@media (hover: none) { .gal__cap { opacity: 1; transform: none; } }

/* ============================== ОТЗЫВЫ ====================== */
.reviews { --card-min: 300px; }
.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.review__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.review__ava {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  background: var(--brand-100);
  border-radius: 50%;
  color: var(--brand-700);
  font-size: var(--fs-md);
  font-weight: 800;
}
.review__who { min-width: 0; }
.review__name { font-weight: 700; overflow-wrap: break-word; }
.review__date { font-size: var(--fs-xs); color: var(--ink-400); }
.review__stars { display: inline-flex; gap: 2px; margin-left: auto; flex: 0 0 auto; color: #F0A32A; }
.review__stars svg { width: 16px; height: 16px; }

/* ряд звёзд рейтинга: заполненные золотые, пустые — серые */
.stars { display: inline-flex; gap: 2px; margin-left: auto; flex: 0 0 auto; color: var(--line-strong); }
.stars .star { display: inline-flex; line-height: 0; }
.stars .star svg { width: 16px; height: 16px; }
.stars .star.is-on { color: #F0A32A; }

/* кнопка «Посмотреть все отзывы» под тремя карточками */
.reviews__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.review__text { margin: 0; color: var(--ink-700); line-height: 1.6; }
.review__extras { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.review__extras li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.review__extras svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--ok); }
.review__reply {
  margin-top: auto;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
}
.review__reply b { display: block; color: var(--ink); font-size: var(--fs-xs); margin-bottom: 2px; }
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ok);
}
.review__verified svg { width: 13px; height: 13px; }

/* ============================== НОВОСТИ / СТАТЬИ ============ */
.posts { --card-min: 280px; }
.post {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.post:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-3px); }
.post__top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-400);
}
.post__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: var(--lh-snug);
  overflow-wrap: break-word;
}
.post__excerpt {
  margin: 0;
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: var(--sp-2);
  color: var(--brand-700);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.post__more svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.post:hover .post__more svg { transform: translateX(3px); }
.post__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--sp-1);
}
.post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
  display: block;
}
.post:hover .post__thumb img {
  transform: scale(1.03);
}

.state--draft {
  background: #FFFBEB;
  border: 1px dashed #F59E0B;
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ============================== КОНТАКТЫ + КАРТА ============ */
.loc { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; align-items: start; }
.loc > * { min-width: 0; }
@media (min-width: 900px) { .loc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

.info-list { display: grid; gap: var(--sp-4); margin: 0; padding: 0; }
.info-list > div {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  min-width: 0;
}
.info-list__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  color: var(--brand-700);
}
.info-list__icon svg { width: 21px; height: 21px; }
.info-list__body { min-width: 0; }
.info-list dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 3px;
}
.info-list dd {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: break-word;
}
.info-list dd small { display: block; margin-top: 3px; font-size: var(--fs-sm); font-weight: 400; color: var(--ink-500); }

.sched { display: grid; gap: 6px; }
.sched__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.sched__row:last-child { border-bottom: 0; }
.sched__row span:first-child { color: var(--ink-500); }
.sched__row span:last-child { font-weight: 700; text-align: right; }
.sched__row.is-off span:last-child { color: var(--ink-400); font-weight: 600; }

.map-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--sh-1);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 44vw, 420px);
  border: 0;
  filter: saturate(.92);
}
.map-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.map-card__bar address { font-style: normal; font-weight: 650; min-width: 0; }

/* ============================== ПОЛОСА ПРЕИМУЩЕСТВ ========== */
.strip {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.strip > div { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.strip svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.strip b { display: block; font-size: var(--fs-sm); font-weight: 700; }
.strip span { font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.5; }

/* ============================== КАТАЛОГ ===================== */
.catalog-bar { display: grid; gap: var(--sp-4); }
.catalog-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.catalog-bar__row > * { min-width: 0; }
.catalog-count { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 600; }
.catalog-count b { color: var(--ink); }

/* ============================== ЦЕНЫ ======================== */
.price-group { margin-bottom: clamp(32px, 4vw, 56px); }
.price-group:last-child { margin-bottom: 0; }
.price-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--ink);
}
.price-group__title { font-size: var(--fs-lg); font-weight: 700; min-width: 0; }

.ptable { width: 100%; font-size: var(--fs-sm); }
.ptable thead th {
  padding: 10px 14px;
  background: var(--surface-2);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.ptable thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.ptable thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; text-align: right; }
.ptable tbody tr { border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.ptable tbody tr:hover { background: var(--brand-50); }
.ptable td { padding: 14px; vertical-align: middle; }
.ptable__name { font-weight: 650; color: var(--ink); overflow-wrap: break-word; }
.ptable__name a { color: inherit; }
.ptable__name a:hover { color: var(--brand-700); }
.ptable__name small { display: block; margin-top: 3px; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-400); }
.ptable__unit { color: var(--ink-500); white-space: nowrap; }
.ptable__price { font-weight: 800; white-space: nowrap; text-align: right; font-size: var(--fs-base); }
.ptable__act { text-align: right; white-space: nowrap; }

/* на мобильном таблица превращается в карточки — без горизонтального скролла */
@media (max-width: 767px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tbody tr {
    margin-bottom: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }
  .ptable tbody tr:hover { background: var(--bg); }
  .ptable td { padding: 0; }
  .ptable td + td { margin-top: 8px; }
  .ptable__name { font-size: var(--fs-base); }
  .ptable__unit::before {
    content: attr(data-label) ": ";
    color: var(--ink-400);
    font-size: var(--fs-xs);
  }
  .ptable__price { text-align: left; font-size: var(--fs-lg); }
  .ptable__act { text-align: left; }
  .ptable__act .btn { width: 100%; }
}

/* ============================== РЕФЕРЕНС № 2: КНОПКИ-ПОЛОСКИ УСЛУГ БЕЗ ФОТО ============= */
.service-stripes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .service-stripes {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.service-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #dbe5ee;
  border-radius: var(--r-md);
  color: var(--ink-900);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.service-stripe:hover {
  background: #f0f7fc;
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 99, 153, 0.09);
}
.service-stripe__title {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.service-stripe__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--brand);
  transition: all var(--t-fast);
}
.service-stripe:hover .service-stripe__arrow {
  background: var(--brand);
  color: #ffffff;
  transform: translateX(2px);
}

/* ============================== ШАПКА СТРАНИЦЫ УСЛУГИ (БЕЗ ТОВАРНОЙ КАРТОЧКИ) ============= */
.svc-page-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.svc-page-head__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.svc-page-head__title {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink-900);
}
.svc-page-head__desc {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--ink-600);
  line-height: 1.45;
}

/* ============================== КАРТОЧКА УСЛУГИ ============= */
.svc { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
.svc > * { min-width: 0; }
@media (min-width: 900px) { .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1120px) { .svc { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.svc-gal { display: grid; gap: var(--sp-3); }
.svc-gal__main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}
.svc-gal__main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--sp-4);
}
.svc-gal__zoom {
  position: absolute;
  right: var(--sp-3); bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-700);
  pointer-events: none;
}
.svc-gal__zoom svg { width: 14px; height: 14px; }
.svc-gal__thumbs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.svc-gal__thumbs::-webkit-scrollbar { display: none; }
.svc-gal__thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  padding: 4px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.svc-gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.svc-gal__thumb[aria-current="true"] { border-color: var(--brand); }
.svc-gal__thumb:hover { border-color: var(--ink-300); }

.svc-head { display: grid; gap: var(--sp-4); min-width: 0; }
.svc-head__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.svc-head h1 { font-size: var(--fs-xl); min-width: 0; overflow-wrap: break-word; }
.svc-head__desc { margin: 0; color: var(--ink-500); font-size: var(--fs-md); min-width: 0; overflow-wrap: break-word; }

.svc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 0;
}
.svc-price__val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.svc-price__val small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.svc-price__note { font-size: var(--fs-xs); color: var(--ink-muted); margin: 0; }

.svc-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.svc-actions .btn {
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 8px 14px;
  font-size: 13.5px;
}

/* Характеристики приходят разметкой <dl> (dt/dd), а старые правила ниже
   написаны под <table> — поэтому список выглядел «лестницей». Задаём
   двухколоночную сетку: слева название, справа значение. */
.attrs {
  display: grid;
  grid-template-columns: minmax(38%, auto) 1fr;
  gap: 0;
  width: 100%;
  margin: 0;
  font-size: var(--fs-sm);
}
.attrs dt,
.attrs dd {
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
  min-width: 0;
}
.attrs dt {
  padding-right: var(--sp-4);
  font-weight: 500;
  color: var(--ink-500);
}
.attrs dd { font-weight: 650; color: var(--ink); }
.attrs dt:nth-last-of-type(1),
.attrs dd:nth-last-of-type(1) { border-bottom: 0; }
@media (max-width: 520px) {
  /* на узком экране двухколоночная сетка сжимает значения в столбик —
     переходим на одну колонку с подписью сверху */
  .attrs { grid-template-columns: 1fr; }
  .attrs dt { padding: 10px 0 0; border-bottom: 0; }
  .attrs dd { padding: 2px 0 10px; }
}

.attrs tr { border-bottom: 1px solid var(--line); }
.attrs tr:last-child { border-bottom: 0; }
.attrs th {
  padding: 11px 14px 11px 0;
  text-align: left;
  font-weight: 500;
  color: var(--ink-500);
  width: 45%;
  vertical-align: top;
  overflow-wrap: break-word;
}
.attrs td {
  padding: 11px 0;
  font-weight: 650;
  color: var(--ink);
  vertical-align: top;
  overflow-wrap: break-word;
}

.panel {
  padding: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.panel--surface { background: var(--surface); }
.panel__title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-md);
  font-weight: 700;
}

.ways { display: grid; gap: var(--sp-2); }
.way {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap);
  padding: 10px var(--sp-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 650;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.way:hover { border-color: var(--brand); background: var(--brand-50); color: var(--ink); transform: translateX(2px); }
.way__ic {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--ink-700);
}
.way:hover .way__ic { background: var(--brand); color: #fff; }
.way__ic svg { width: 17px; height: 17px; }
.way__txt { min-width: 0; }
.way__txt small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-400); }

.taglist { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.taglist li { margin: 0; }

/* ============================== 404 ========================= */
.nf {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}
.nf__code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf__text { margin: 0; max-width: 46ch; color: var(--ink-500); font-size: var(--fs-md); }

/* ============================== ПРОЧЕЕ ===================== */
.page-head {
  padding: clamp(24px, 3.4vw, 44px) 0 clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { display: grid; gap: var(--sp-3); }
.page-head h1 { font-size: var(--fs-2xl); }
.page-head p { margin: 0; max-width: 64ch; color: var(--ink-500); font-size: var(--fs-md); }

.prose { max-width: 70ch; }
.anchor-offset { scroll-margin-top: 92px; }

/* ─── страховка: ничего не распирает страницу ─── */
.rich-text { overflow-wrap: anywhere; }
.rich-text img { max-width: 100%; height: auto; }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: var(--sp-4) 0;
}
.table-scroll table { margin: 0; min-width: max-content; }
.table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ─── карточка категории: фото как фон, текст поверх ─── */
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--t-slow);
}
.cat-card::after {                 /* затемнение, чтобы текст читался */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(14, 20, 28, .82) 0%, rgba(14, 20, 28, .34) 55%, rgba(14, 20, 28, .12) 100%);
}
.cat-card__body, .cat-card__arrow { z-index: 2; }
.cat-card:hover .cat-card__img { transform: scale(1.04); }
.cat-card__title, .cat-card__meta { color: #fff; }
.cat-card__meta { opacity: .92; }

/* ─── первый экран: заголовок всегда помещается ─── */
.hero h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  max-width: 18ch;
}
@media (min-width: 900px) { .hero h1 { max-width: 22ch; } }

/* ─── плитки «с чего начать» ─── */
.quick-actions { --card-min: 168px; }

/* ─── доступность: контраст и размеры целей ─── */
.card__price-from { color: var(--ink-500); }      /* было --ink-400: 3.65:1 → стало 5.85:1 */

/* подписи-плашки: тёмный текст для контраста ≥4.5 на светлой подложке */
.badge--new  { color: #156F4B; }                  /* 5.48:1 на --ok-bg */
.badge--sale { color: #8A5D06; }                  /* 5.29:1 на --warn-bg */

/* текстовые ссылки в таблицах и подвале — цель не меньше 24px (WCAG 2.5.8) */
.ptable__name a,
.footer__list a,
.breadcrumbs a {
  display: inline-block;
  padding-block: 4px;
  min-height: 24px;
}

/* ─── подвал тёмный: приглушённый текст должен быть светлым, а не серым ─── */
.footer .u-muted,
.footer .u-small,
.footer__legal,
.footer__copy {
  color: #A8B2BD;                 /* 6.6:1 на графитовом фоне подвала */
}
.footer .u-muted b,
.footer__legal b { color: #D6DCE3; }

/* ─── обложка материала ─── */
.post__cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: var(--sp-5) 0;
  border-radius: var(--r-lg);
}

/* ============================== ПОЧЕМУ ПАПЕРКА ==============
   Пункты собираются из реальных полей базы (ТЗ §25, §36).      */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: clamp(16px, 1.8vw, 22px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
}
.fact__ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(153, 219, 255, .16);
  color: var(--brand-200);
}
.fact__title {
  margin: 0 0 4px;
  font-size: var(--fs-base);
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
.fact__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--on-dark-muted);
}
/* на светлом фоне (если секцию перекрасят через CMS) */
.section:not(.section--deep):not(.section--dark) .fact {
  background: var(--bg);
  border-color: var(--line);
}
.section:not(.section--deep):not(.section--dark) .fact__ic {
  background: var(--brand-100);
  color: var(--brand-700);
}
.section:not(.section--deep):not(.section--dark) .fact__title { color: var(--ink); }
.section:not(.section--deep):not(.section--dark) .fact__text { color: var(--ink-500); }

/* ============================================================
   ИСПРАВЛЕНИЯ ПО ВИЗУАЛЬНОЙ ПРОВЕРКЕ (ТЗ §8, §35, §47)
   Каждый пункт — найденный на скриншотах дефект.
   ============================================================ */

/* 1. Аккордеон: правило `.acc__btn span` (специфичность 0,1,1) перебивало
      `.acc__sign` (0,1,0) и растягивало знак «+» в эллипс. */
.acc__btn .acc__sign {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

/* 2. Список контактов и график: разметка — <li>, а стили были написаны
      под <div>. Отсюда маркеры списка и сломанная строка. */
.info-list { list-style: none; }
.info-list > li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  min-width: 0;
}
.footer__sched { list-style: none; margin: 0; padding: 0; }
.footer__sched li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: 280px;
}
.footer__sched li b { color: #fff; font-weight: 600; }
.sched { display: grid; gap: 4px; }
.sched__row { display: flex; justify-content: space-between; gap: var(--sp-4); }

/* 3. Отзыв: имя и дата слипались. */
.review__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* 4. Кривые переносы (ТЗ §8). Длинные названия категорий рвались
      посреди слова («Ксерокопирован/ие»). Включаем переносы по слогам
      (lang="ru" стоит на <html>) и запрещаем разрыв в произвольном месте. */
.cat-card__title,
.card__title,
.qa__label,
.wtile__title,
.fact__title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* цену и единицу не переносим никогда */
.price-tag, .card__price, .ptable__price { overflow-wrap: normal; word-break: keep-all; }

/* 5. «Читать» — это <button>, у него оставался системный фон-полоса. */
.post__more {
  align-self: flex-start;
  background: none;
  border: 0;
  padding-inline: 0;
  cursor: pointer;
}
.post__more:hover { color: var(--brand); }
.post__more:hover svg { transform: translateX(3px); }

/* 6. CTA-полоса внутри тёмной секции: панель светлая, поэтому внутри
      неё ВОЗВРАЩАЕМ светлую тему токенов. Без этого `color: var(--ink)`
      разрешался в светлый цвет (секция переопределяет --ink) и заголовок
      с кнопкой «Позвонить» пропадали на белом. */
.section--deep .strip,
.section--dark .strip {
  background: #fff;
  border-color: rgba(255, 255, 255, .22);
  --ink: #1E2937;
  --ink-700: #33404F;
  --ink-500: #5A6675;
  --ink-400: #667283;
  --line: #E7E2DC;
  --line-strong: #D6CFC6;
  --surface: #FAF8F6;
  --bg: #FFFFFF;
  color: var(--ink);
}

/* 7. Карточка товара: уменьшаем внутренний отступ, чтобы фотография
      занимала больше места (ТЗ §57). */
.card__media img { padding: var(--sp-2); }

/* Заголовок внутри светлой панели тёмной секции: правило
   `.section--deep .section__title { color:#fff }` перебивало
   наследование, поэтому задаём цвет явно и более точным селектором. */
.section--deep .strip .section__title,
.section--dark .strip .section__title,
.section--ink .strip .section__title { color: var(--ink); }
.section--deep .strip .u-muted,
.section--dark .strip .u-muted { color: var(--ink-500); }

/* Крупная цена на странице товара: используем общий .price-tag,
   поэтому локальные размеры задаём через него. */
.svc-price__val .price-tag__val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--brand);
}
.svc-price__val .price-tag__unit { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }
.svc-price__val .price-tag__from { font-size: var(--fs-sm); font-weight: 600; }

/* ============================================================
   ПРАЙС как визуальный каталог (ТЗ §11, §69)
   Группы по категориям + та же сетка карточек, что в каталоге.
   ============================================================ */
.price-group { scroll-margin-top: 90px; }
.price-group + .price-group { margin-top: clamp(32px, 4vw, 56px); }
.price-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: clamp(14px, 1.8vw, 22px);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.price-group__titlewrap { min-width: 0; }
.price-group__title {
  margin: 0;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.price-group__meta {
  margin: 4px 0 0;
  color: var(--ink-400);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.chip__n {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  opacity: .66;
}

/* ============================================================
   ФИЛЬТРЫ КАТАЛОГА (ТЗ §44)
   На десктопе панель раскрыта в строке под поиском.
   На мобильном — нижний лист (bottom sheet) по кнопке «Фильтры».
   ============================================================ */
.filters-btn { display: none; flex: 0 0 auto; gap: 8px; }
/* Атрибут hidden обязан отключать значок: правило display ниже
   перебивает UA-стиль [hidden], поэтому гасим его явно. */
.filters-btn__n[hidden] { display: none; }
.filters-btn__n {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--brand);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.catalog-filters { display: block; min-width: 0; max-width: 100%; }
.catalog-filters__head,
.catalog-filters__foot { display: none; }
.catalog-filters__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-4) var(--sp-6);
  min-width: 0;
  max-width: 100%;
}
.catalog-filters__body > .chips {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  overflow: visible;
  margin-inline: 0;
  padding-inline: 0;
}

.fgroup { display: grid; gap: var(--sp-2); min-width: 0; }
.fgroup__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.fprice { display: flex; align-items: center; gap: var(--sp-3); }
.fprice__field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 14px;
  min-height: var(--tap);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.fprice__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.fprice__cap { color: var(--ink-400); font-size: var(--fs-sm); }
.input--num {
  width: 5.5em;
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.input--num:focus { outline: none; box-shadow: none; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(14, 22, 32, .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 760px) {
  .filters-btn { display: inline-flex; }

  /* нижний лист: выезжает снизу, с ручкой и кнопкой «Показать» */
  .catalog-filters {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-drawer);
    max-height: 86vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: 0 -12px 40px rgba(14, 22, 32, .28);
    transform: translateY(101%);
    transition: transform var(--t-slow);
    visibility: hidden;
  }
  .catalog-filters.is-open { transform: none; visibility: visible; }

  .catalog-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
    border-bottom: 1px solid var(--line);
  }
  .catalog-filters__title { font-size: var(--fs-md); font-weight: 700; }
  .catalog-filters__close {
    display: grid;
    place-items: center;
    width: var(--tap); height: var(--tap);
    margin: calc(var(--sp-2) * -1);
    background: none;
    border: 0;
    border-radius: var(--r-md);
    color: var(--ink-500);
    cursor: pointer;
  }
  .catalog-filters__close:hover { background: var(--surface-2); color: var(--ink); }

  .catalog-filters__body {
    display: grid;
    gap: var(--sp-5);
    padding: var(--sp-4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* внутри листа категории — обычным переносом, а не горизонтальной лентой */
  .catalog-filters__body > .chips--scroll {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  /* У базового .chip стоит white-space: nowrap — длинные названия
     («Ксерокопирование, распечатка и сканирование») вылезали за край
     листа. В листе разрешаем перенос и ограничиваем ширину. */
  .catalog-filters__body .chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    padding-block: 9px;
    min-height: var(--tap);
  }

  .catalog-filters__foot {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .fprice__field { flex: 1 1 0; }
  .input--num { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filters { transition: none; }
}

/* ─────────── варианты услуги (ТЗ §14) ───────────
   Блок появляется только когда владелец заполнил варианты из Telegram-CMS,
   поэтому пустого состояния у него нет — нечего и оформлять. */
.variants {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.variant {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  padding: 11px var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.variant__name {
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  /* длинные названия форматов не рвём посреди слова */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.variant__price { margin-left: auto; white-space: nowrap; }

/* ─────────── страница всех отзывов ─────────── */
.reviews-toolbar { margin: 0 0 var(--sp-5); }
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: center;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.rating-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.rating-summary__value { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rating-summary__score .stars { margin: 0; }
.rating-summary__bars { display: grid; gap: 7px; }
.rating-bar { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.rating-bar__label { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-700); }
.rating-bar__label svg { width: 12px; height: 12px; color: #F0A32A; }
.rating-bar__track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rating-bar__fill { display: block; height: 100%; background: #F0A32A; border-radius: 999px; }
.rating-bar__n { text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }

/* форма отзыва и выбор звёзд */
.reviewform { max-width: 640px; }
.starpick { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }
.starpick__star {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--line-strong);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.starpick__star:hover { transform: translateY(-2px); border-color: #F0A32A; }
.starpick__star.is-on { color: #F0A32A; border-color: #F0A32A; background: #FFF7E8; }
.starpick__star svg { width: 26px; height: 26px; }

@media (max-width: 560px) {
  .rating-summary { grid-template-columns: 1fr; }
  .rating-summary__score { flex-direction: row; justify-content: center; min-width: 0; gap: 12px; }
}

/* ─────────── карточка аккаунта в личном кабинете ─────────── */
/* 260px на четыре колонки оказалось тесно: подпись «E-mail» рвалась на
   «E-» и «mail», а чип с ID и кнопка копирования уезжали на вторую строку. */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2px var(--sp-5); }
.acct-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.acct-row__label {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  /* перенос только между словами: «Дата регистрации» переносить можно,
     «E-mail» посреди слова — нельзя */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
/* у адреса почты переносим где угодно — иначе он распирает колонку */
.acct-row__value { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.acct-idrow { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.acct-id code {
  display: inline-block;
  background: var(--surface-2);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

/* ========================= СЕРВИСНЫЕ ПОЛОСЫ (LEVEL 2) ========================= */
/* ========================= КОМПАКТНЫЕ СТРОКИ ПРЕЙСКУРАНТА (LEVEL 2) ========================= */
.service-stripes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
}

.service-stripe {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast);
  position: relative;
}

.service-stripe:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--brand-dark);
}

.service-stripe__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e8f2f9;
  color: var(--brand);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.service-stripe__body {
  flex: 1 1 auto;
  min-width: 0;
}

.service-stripe__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.service-stripe:hover .service-stripe__title {
  color: var(--brand);
}

.service-stripe__spec {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.service-stripe__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.service-stripe__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.service-stripe__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  opacity: 0.7;
  transition: transform var(--t-fast);
}

.service-stripe:hover .service-stripe__arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .service-stripe {
    padding: 8px 10px;
    gap: 8px;
  }
  .service-stripe__num {
    width: 20px;
    height: 20px;
    font-size: 10.5px;
  }
  .service-stripe__title {
    font-size: 14px;
  }
  .service-stripe__spec {
    font-size: 11.5px;
  }
  .service-stripe__price {
    font-size: 13.5px;
  }
}

/* ========================= КОМПАКТНЫЙ PDF-БАР ========================= */
.pdf-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0f7fc;
  border: 1px solid #cce3f4;
  border-radius: 6px;
  padding: 8px 14px;
  margin-top: 14px;
}

.pdf-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
}

.pdf-promo__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pdf-promo__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #0b3954;
  line-height: 1.25;
}

.pdf-promo__text {
  margin: 2px 0 0;
  font-size: 12px;
  color: #4a6880;
  line-height: 1.3;
}

.pdf-promo__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pdf-promo {
    flex-direction: column;
    align-items: stretch;
    padding: 9px 12px;
    gap: 8px;
  }
  .pdf-promo__text { display: none; }
  .pdf-promo__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ========================= СЕРВИСНЫЙ БЛОК СВЯЗИ ========================= */
.service-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-top: 24px;
}
.service-contact-bar__info {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.service-contact-bar__info strong {
  color: var(--brand);
}
@media (max-width: 640px) {
  .service-contact-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .service-contact-bar .btn {
    width: 100%;
  }
}

/* ========================= СТРАНИЦА «ЦЕНЫ»: ОФИЦИАЛЬНЫЙ PDF И КОНТАКТЫ ========================= */
#prices-view {
  padding-bottom: 48px;
}

.price-pdf-hero {
  background: #f0f7fc;
  border: 1px solid #cce3f4;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0, 99, 153, 0.05);
}

.price-pdf-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #006399;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-pdf-hero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.price-pdf-hero__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #006399;
  background: rgba(0, 99, 153, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.price-pdf-hero__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #0b3954;
  line-height: 1.3;
}

.price-pdf-hero__desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #3b5a75;
  max-width: 720px;
}

.price-pdf-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.price-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.price-meta-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.price-meta-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.price-meta-card__icon {
  color: #006399;
  display: flex;
  align-items: center;
}

.price-meta-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.price-meta-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 18px;
}

.price-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.price-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.price-contact-list li .ico {
  color: #006399;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-contact-list li a {
  color: #006399;
  font-weight: 600;
  text-decoration: none;
}

.price-contact-list li a:hover {
  text-decoration: underline;
}

.price-meta-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 768px) {
  .price-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .price-pdf-hero {
    flex-direction: column;
    padding: 18px 16px;
    gap: 14px;
  }
  .price-pdf-hero__icon {
    width: 42px;
    height: 42px;
  }
  .price-pdf-hero__title {
    font-size: 18px;
  }
  .price-pdf-hero__actions {
    width: 100%;
  }
  .price-pdf-hero__actions .btn {
    flex: 1 1 130px;
    text-align: center;
    justify-content: center;
  }
  .price-meta-card {
    padding: 18px 16px;
  }
  .price-meta-card__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

