/* ============================================================
   MFOC main.css — полная стилизация
   Загружается асинхронно, после critical.css
   ============================================================ */

/* ----------------------------------------------------------
   0. Базовая типографика
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 600; }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--c-ink-2); line-height: 1.55; }

/* Заголовки секций */
.section-head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 760px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-sub { color: var(--c-muted); font-size: 16px; margin: 0; }

/* ----------------------------------------------------------
   1. Кнопки
   ---------------------------------------------------------- */
.btn-primary, .btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), #a30d24);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 16, 46, .4);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost-dark {
  background: var(--c-ink);
  color: #fff;
}
.btn-ghost-dark:hover { background: var(--c-ink-2); transform: translateY(-2px); }

/* ----------------------------------------------------------
   2. Бенто-сетка услуг на главной
   ---------------------------------------------------------- */
.services { padding: 64px 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.bento__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  box-shadow: var(--shadow-sm);
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.bento__card--wide { grid-column: span 2; grid-row: span 2; }
.bento__card:nth-child(4n+2) { background: linear-gradient(135deg, #1c3559, #0b2545); }
.bento__card:nth-child(4n+3) { background: linear-gradient(135deg, #8b0a20, var(--c-accent)); }

.bento__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform .6s ease;
  opacity: .55;
}
.bento__card:hover .bento__img { transform: scale(1.06); opacity: .7; }

.bento__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 37, 69, .85) 100%);
  z-index: -1;
}
.bento__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento__title {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}
.bento__short {
  font-size: 13px;
  opacity: .85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento__arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .25s, transform .25s;
}
.bento__card:hover .bento__arrow {
  background: var(--c-gold);
  color: var(--c-ink);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento__card--wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 500px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
}

/* ----------------------------------------------------------
   3. Блок «О комплексе»
   ---------------------------------------------------------- */
.about {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__media {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__media::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--c-gold), transparent);
  border-radius: var(--r-lg);
  z-index: -1;
  opacity: .4;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about__text h2 { text-align: left; }
.about__text h2::after { margin-left: 0; }
.about__text ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.about__text ul li {
  padding-left: 28px;
  position: relative;
  color: var(--c-ink-2);
}
.about__text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--c-ok);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------------------------------------------------------
   4. FAQ
   ---------------------------------------------------------- */
.faq { padding: 64px 0; }
.faq h2 { text-align: center; }
.faq__list {
  max-width: 820px;
  margin: 36px auto 0;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] {
  border-color: var(--c-accent);
  box-shadow: 0 6px 20px rgba(200, 16, 46, .08);
}
.faq__item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--c-ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .25s, background .25s, color .25s;
}
.faq__item[open] summary::after {
  content: '−';
  background: var(--c-accent);
  color: #fff;
  transform: rotate(180deg);
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--c-ink-2);
  line-height: 1.65;
}
.faq__a p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   5. Архив услуг / новостей
   ---------------------------------------------------------- */
.archive-wrap { padding: 48px 0; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.arc-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.arc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.arc-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--c-bg); }
.arc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.arc-card:hover .arc-card__media img { transform: scale(1.05); }
.arc-card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.arc-card__date { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.arc-card__title { font-size: 18px; margin: 0 0 8px; }
.arc-card__title a { color: var(--c-ink); }
.arc-card__title a:hover { color: var(--c-accent); }
.arc-card__excerpt { color: var(--c-muted); font-size: 14px; line-height: 1.5; flex: 1; }
.arc-card__more { margin-top: 14px; font-weight: 700; color: var(--c-accent); font-size: 14px; }
.arc-card__more::after { content: ' →'; transition: margin .2s; display: inline-block; }
.arc-card:hover .arc-card__more::after { margin-left: 6px; }

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--c-ink);
  font-weight: 600;
  border: 1px solid var(--c-line);
  transition: background .2s, color .2s;
}
.pagination .current,
.pagination a:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ----------------------------------------------------------
   6. Карточка услуги (single-uslugi.php)
   ---------------------------------------------------------- */
.single-usluga { padding: 48px 0; }
.usluga__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.usluga__gallery {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.usluga__gallery img { width: 100%; height: 100%; object-fit: cover; }

.price-table {
  margin: 32px 0;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.price-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
}
.price-table tr:nth-child(odd) td { background: rgba(11, 37, 69, .02); }
.price-table .price { font-weight: 800; color: var(--c-accent); white-space: nowrap; }

@media (max-width: 800px) { .usluga__head { grid-template-columns: 1fr; gap: 24px; } }

/* ----------------------------------------------------------
   7. Формы (обращения граждан)
   ---------------------------------------------------------- */
.page-appeals { padding: 48px 0 80px; }
.appeals__tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 0;
  background: var(--c-bg);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
.tab-btn {
  padding: 10px 22px;
  border: 0;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  color: var(--c-muted);
  transition: background .2s, color .2s;
  font-size: 14px;
}
.tab-btn.active {
  background: #fff;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

.appeal-form {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.appeal-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.appeal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.appeal-form label.full { margin-top: 16px; }
.appeal-form label span { color: var(--c-accent); }
.appeal-form input,
.appeal-form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.appeal-form input:focus,
.appeal-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .12);
}
.appeal-form input:invalid:not(:placeholder-shown) {
  border-color: #d93025;
}
.appeal-form textarea { resize: vertical; min-height: 120px; }
.appeal-form .agree {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  margin: 20px 0;
  color: var(--c-muted);
  cursor: pointer;
}
.appeal-form .agree input { width: auto; margin: 0; }

.appeal-alert {
  padding: 16px 22px;
  border-radius: 10px;
  margin: 0 0 20px;
  font-weight: 600;
  border-left: 4px solid;
  animation: alertIn .35s ease;
}
.appeal-alert--ok { background: #e8f6ec; color: #1e7a3c; border-color: #1e7a3c; }
.appeal-alert--err { background: #fdecec; color: #b3261e; border-color: #b3261e; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.appeals__info {
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
  color: #fff;
  border-radius: var(--r-md);
}
.appeals__info h2 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.appeals__info h2::after { display: none; }
.appeals__info p { margin: 0; opacity: .9; }

@media (max-width: 700px) {
  .appeal-form { padding: 22px; }
  .appeal-form .grid-2 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   8. Руководство
   ---------------------------------------------------------- */
.leadership { padding: 48px 0 80px; }
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.leader-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.leader-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--c-bg);
  background: var(--c-bg);
}
.leader-card__name { font-size: 17px; margin-bottom: 4px; }
.leader-card__post { color: var(--c-accent); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.leader-card p { margin: 4px 0; font-size: 14px; color: var(--c-muted); }
.leader-card__recept { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--c-line); font-size: 13px !important; }

/* ----------------------------------------------------------
   9. Вакансии
   ---------------------------------------------------------- */
.vacancies { padding: 48px 0 80px; }
.vacancies__list { display: grid; gap: 12px; margin-top: 28px; }
.vacancy {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.vacancy[open] { border-color: var(--c-ink); }
.vacancy summary {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  flex-wrap: wrap;
}
.vacancy summary::-webkit-details-marker { display: none; }
.vacancy__title { font-weight: 700; font-size: 17px; }
.vacancy__meta {
  background: var(--c-ok);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.vacancy__body { padding: 0 24px 24px; color: var(--c-ink-2); line-height: 1.65; }

/* ----------------------------------------------------------
   10. 404
   ---------------------------------------------------------- */
.e404 { padding: 80px 0 100px; text-align: center; }
.e404__inner { max-width: 580px; margin: 0 auto; }
.e404__num {
  font-size: clamp(110px, 18vw, 200px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-ink), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.e404__num span {
  display: inline-block;
  font-size: .6em;
  vertical-align: middle;
  background: none;
  -webkit-text-fill-color: initial;
  color: initial;
  animation: spinBall 3.5s linear infinite;
}
@keyframes spinBall { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .e404__num span { animation: none; } }
.e404 p { color: var(--c-muted); margin-bottom: 24px; }
.e404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

/* ----------------------------------------------------------
   11. Футер
   ---------------------------------------------------------- */
.footer {
  background: var(--c-ink);
  color: #c9d3e3;
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer__legal a {
  display: block;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  transition: background .2s, transform .2s;
}
.footer__legal a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.footer__legal img { max-height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer__title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.footer__title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-accent);
  margin-top: 8px;
}
.footer__body { font-size: 14px; line-height: 1.7; }
.footer__body a { color: #c9d3e3; border-bottom: 1px dotted rgba(255, 255, 255, .3); }
.footer__body a:hover { color: var(--c-gold); }

.footer__copy {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

/* ----------------------------------------------------------
   12. Бенто-карточка для бюджетных секций
   ---------------------------------------------------------- */
.sektsii-grid .bento__card {
  background: linear-gradient(135deg, #0e3a1f, #1e7a3c);
}
.sektsii-grid .bento__card:nth-child(2n) {
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
}

/* ----------------------------------------------------------
   13. Хлебные крошки
   ---------------------------------------------------------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--c-muted);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: var(--c-muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .sep { opacity: .4; }

/* ----------------------------------------------------------
   14. Поиск
   ---------------------------------------------------------- */
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--c-accent); }

/* ----------------------------------------------------------
   15. A11y версия — точечные override
   ---------------------------------------------------------- */
html[data-a11y="on"] {
  font-size: 18px;
}
html[data-a11y="on"] .bento__card,
html[data-a11y="on"] .bento__card::after { background: #000 !important; }
html[data-a11y="on"] .ticker,
html[data-a11y="on"] .footer { background: #000 !important; color: #fff !important; }
html[data-a11y="on"] .btn-primary { background: #ffd600 !important; color: #000 !important; box-shadow: none !important; }
html[data-a11y="on"] a { text-decoration: underline; }
html[data-a11y="on"] .faq__item summary::after,
html[data-a11y="on"] .bento__arrow { background: #ffd600; color: #000; }

/* ----------------------------------------------------------
   16. Print styles
   ---------------------------------------------------------- */
@media print {
  .header, .footer, .ticker, .nav, .topbar, .slider__dots, .btn-primary, .appeal-form { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 10pt; color: #555; }
  .container { max-width: 100%; padding: 0; }
}

/* ----------------------------------------------------------
   17. Утилиты
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.hidden { display: none !important; }
.no-wrap { white-space: nowrap; }


/* ----------------------------------------------------------
   18. Архив услуг — фильтры
   ---------------------------------------------------------- */
.archive-hero {
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
  color: #fff;
  padding: 64px 0 56px;
  margin-bottom: 32px;
}
.archive-hero h1 { color: #fff; }
.archive-hero h1::after { background: var(--c-gold); margin-left: 0; }
.archive-hero .lead { color: rgba(255, 255, 255, .85); max-width: 720px; }

.archive-controls {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  position: sticky;
  top: 80px;
  z-index: 10;
}
.archive-filter { display: grid; gap: 16px; }

.archive-search {
  position: relative;
}
.archive-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
}
.archive-search input:focus { outline: none; border-color: var(--c-accent); }
.archive-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

.archive-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
  margin: 0 -4px;
}
.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { background: #fff; border-color: var(--c-line); }
.chip.is-active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.chip__count {
  background: rgba(0, 0, 0, .08);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.chip.is-active .chip__count { background: rgba(255, 255, 255, .25); }

.archive-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-muted);
}
.archive-sort select {
  padding: 8px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  cursor: pointer;
}

.archive-meta {
  margin-bottom: 16px;
  color: var(--c-muted);
  font-size: 14px;
}

.arc-card__price-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--c-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.arc-card__media { position: relative; }
.arc-card__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.arc-card__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-accent);
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(200, 16, 46, .08);
  border-radius: 4px;
}

.archive-results.is-loading {
  opacity: .5;
  pointer-events: none;
  transition: opacity .2s;
}

.archive-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--c-muted);
}
.archive-empty svg { margin-bottom: 16px; opacity: .35; }
.archive-empty h3 { color: var(--c-ink); margin-bottom: 8px; }

/* ----------------------------------------------------------
   19. Single usluga — sticky sidebar + lightbox
   ---------------------------------------------------------- */
.usluga__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.usluga__content .prose {
  color: var(--c-ink-2);
  line-height: 1.7;
  font-size: 16px;
}
.usluga__content .prose h2,
.usluga__content .prose h3 { margin-top: 32px; }
.usluga__content .prose ul,
.usluga__content .prose ol { padding-left: 22px; margin-bottom: 16px; }
.usluga__content .prose li { margin-bottom: 6px; }
.usluga__content .prose img {
  border-radius: var(--r-md);
  margin: 16px 0;
}

.usluga__price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(135deg, var(--c-accent), #a30d24);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  margin: 16px 0;
}
.usluga__price-label { font-size: 14px; opacity: .85; }
.usluga__price-val { font-size: 26px; font-weight: 800; }
.usluga__price-cur { font-size: 14px; }

.usluga__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.usluga__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.usluga__tag {
  font-size: 13px;
  padding: 5px 12px;
  background: var(--c-bg);
  border-radius: 999px;
  color: var(--c-ink-2);
  transition: background .2s;
}
.usluga__tag:hover { background: var(--c-line); }

.usluga__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.usluga__thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--c-bg);
  transition: border-color .2s;
}
.usluga__thumb:hover { border-color: var(--c-accent); }
.usluga__thumb img { width: 100%; height: 100%; object-fit: cover; }

.usluga__zoom {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.usluga__schedule h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.usluga__schedule h2 svg { color: var(--c-accent); }

.usluga__price-note { color: var(--c-muted); font-size: 12px; margin-top: 12px; }

.usluga__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--c-muted);
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.share-btn:hover { background: var(--c-accent); color: #fff; }

.sticky-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}
.sticky-card__title {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--c-ink);
}
.sticky-card__contact {
  margin-bottom: 14px;
  font-size: 14px;
}
.sticky-card__contact strong {
  display: block;
  color: var(--c-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.sticky-card__contact a {
  display: block;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 2px 0;
}
.sticky-card__contact a:hover { color: var(--c-accent); }
.sticky-card hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 16px 0;
}
.sticky-card__addr {
  font-size: 14px;
  color: var(--c-ink-2);
  margin-bottom: 16px;
}
.sticky-card__addr a {
  color: var(--c-accent);
  font-weight: 600;
}
.btn-block { display: flex; width: 100%; justify-content: center; }

.related-services { margin: 64px 0; padding-top: 48px; border-top: 1px solid var(--c-line); }

@media (max-width: 900px) {
  .usluga__layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .archive-controls { position: static; }
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); backdrop-filter: blur(4px); }
.lightbox__img { max-width: 95vw; max-height: 90vh; border-radius: var(--r-md); }
.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}


/* ============================================================
   20. Версия для слабовидящих — детальные настройки
   ============================================================ */

/* --- Размеры шрифта --- */
html[data-a11y="on"][data-a11y-size="sm"] { font-size: 15px; }
html[data-a11y="on"][data-a11y-size="md"] { font-size: 18px; }
html[data-a11y="on"][data-a11y-size="lg"] { font-size: 22px; }
html[data-a11y="on"][data-a11y-size="xl"] { font-size: 26px; }

/* --- Шрифт --- */
html[data-a11y="on"][data-a11y-font="serif"] body,
html[data-a11y="on"][data-a11y-font="serif"] input,
html[data-a11y="on"][data-a11y-font="serif"] button,
html[data-a11y="on"][data-a11y-font="serif"] textarea {
  font-family: Georgia, "Times New Roman", Times, serif !important;
}

/* --- Межбуквенный интервал --- */
html[data-a11y="on"][data-a11y-letter="wide"] body {
  letter-spacing: 0.08em;
  word-spacing: 0.12em;
  line-height: 1.8;
}

/* --- Цветовые схемы --- */
html[data-a11y="on"][data-a11y-color="contrast-light"] {
  --c-bg: #fff;
  --c-bg-2: #fff;
  --c-ink: #000;
  --c-ink-2: #000;
  --c-muted: #333;
  --c-accent: #000;
  --c-line: #000;
}
html[data-a11y="on"][data-a11y-color="contrast-dark"] {
  --c-bg: #000;
  --c-bg-2: #000;
  --c-ink: #fff;
  --c-ink-2: #fff;
  --c-muted: #ccc;
  --c-accent: #fff;
  --c-line: #fff;
}
html[data-a11y="on"][data-a11y-color="blue-yellow"] {
  --c-bg: #ffff00;
  --c-bg-2: #ffff00;
  --c-ink: #003366;
  --c-ink-2: #003366;
  --c-muted: #003366;
  --c-accent: #003366;
  --c-line: #003366;
}
html[data-a11y="on"][data-a11y-color="contrast-dark"] body,
html[data-a11y="on"][data-a11y-color="contrast-light"] body,
html[data-a11y="on"][data-a11y-color="blue-yellow"] body {
  background: var(--c-bg);
  color: var(--c-ink);
}
html[data-a11y="on"][data-a11y-color="contrast-dark"] *,
html[data-a11y="on"][data-a11y-color="contrast-light"] *,
html[data-a11y="on"][data-a11y-color="blue-yellow"] * {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-a11y="on"][data-a11y-color="contrast-dark"] a,
html[data-a11y="on"][data-a11y-color="contrast-light"] a,
html[data-a11y="on"][data-a11y-color="blue-yellow"] a {
  text-decoration: underline;
}

/* --- Скрытие изображений --- */
html[data-a11y="on"][data-a11y-images="off"] img:not(.a11y-keep),
html[data-a11y="on"][data-a11y-images="off"] picture,
html[data-a11y="on"][data-a11y-images="off"] [class*="bg-image"],
html[data-a11y="on"][data-a11y-images="off"] .bento__img,
html[data-a11y="on"][data-a11y-images="off"] .arc-card__media,
html[data-a11y="on"][data-a11y-images="off"] .usluga__gallery img {
  display: none !important;
}
html[data-a11y="on"][data-a11y-images="off"] .bento__card,
html[data-a11y="on"][data-a11y-images="off"] .arc-card {
  min-height: auto;
}

/* --- Универсальное — фокус увеличен, кнопки крупнее --- */
html[data-a11y="on"] *:focus-visible {
  outline: 4px solid var(--c-accent) !important;
  outline-offset: 4px !important;
}
html[data-a11y="on"] button,
html[data-a11y="on"] input,
html[data-a11y="on"] select,
html[data-a11y="on"] textarea {
  min-height: 48px;
  font-size: inherit;
}

/* ============================================================
   21. Панель настроек a11y
   ============================================================ */
.a11y-panel {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 32px auto;
}
.a11y-panel__title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 28px;
}
.a11y-panel__group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.a11y-panel__group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.a11y-panel__group h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.a11y-panel__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.a11y-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 2px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s;
  min-height: 56px;
}
.a11y-opt:hover { border-color: var(--c-accent); }
.a11y-opt.is-active {
  border-color: var(--c-accent);
  background: rgba(200, 16, 46, .06);
  color: var(--c-accent);
}
.a11y-opt--size-sm .a11y-opt__letter { font-size: 14px; }
.a11y-opt--size-md .a11y-opt__letter { font-size: 18px; }
.a11y-opt--size-lg .a11y-opt__letter { font-size: 24px; }
.a11y-opt--size-xl .a11y-opt__letter { font-size: 30px; }

.a11y-opt--color-contrast-light { background: #fff; color: #000; border-color: #000; }
.a11y-opt--color-contrast-dark  { background: #000; color: #fff; border-color: #000; }
.a11y-opt--color-blue-yellow    { background: #ffff00; color: #003366; border-color: #003366; }

.a11y-opt--serif { font-family: Georgia, serif; }

.a11y-panel__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .a11y-panel { padding: 20px; }
  .a11y-panel__options { flex-direction: column; }
  .a11y-opt { width: 100%; justify-content: flex-start; }
}