/* ═════════════════════════════════════════════════════════════════════════
   KalkHub — базовая тема

   Смысл оформления: на странице ровно один герой — результат расчёта.
   Всё остальное намеренно приглушено, чтобы взгляд шёл «поля → результат».
   Движение используется скупо и только там, где подтверждает действие:
   появился результат, открылся ответ, нажалась кнопка.
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  --ink:        #10131a;
  --ink-2:      #414b5a;
  --ink-3:      #6b7683;

  --line:       #e6e9ef;
  --line-soft:  #eff2f6;
  --paper:      #ffffff;
  --paper-alt:  #f7f9fc;

  --accent:     #2563eb;
  --accent-ink: #1d4ed8;
  --accent-bg:  #eff4ff;

  --result:     #0d7a52;
  --result-bg:  #ecfaf3;
  --result-line:#c9ecdb;

  --danger:     #c0362c;
  --danger-bg:  #fdeeec;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow-2: 0 4px 16px -4px rgba(16,19,26,.10), 0 2px 6px -2px rgba(16,19,26,.06);

  --wrap: 1120px;
  --gap:  24px;

  --ease: cubic-bezier(.2,.7,.3,1);
  --fast: .16s;
  --slow: .32s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* якорь не упирается в липкую шапку */
}

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #dbe7ff; }

/* Ничто не должно расширять страницу: длинные адреса, формулы, таблицы */
img, svg, video, iframe { max-width: 100%; height: auto; }
pre, code { overflow-x: auto; max-width: 100%; }
h1, h2, h3, p, li, td, th, .res-value, .card-title { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Шапка ───────────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner { display: flex; align-items: center; gap: var(--gap); padding: 12px 0; flex-wrap: wrap; }

.brand { display: flex; flex-direction: column; color: var(--ink); line-height: 1.25; }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-tag { font-size: 12.5px; color: var(--ink-3); }

.search { display: flex; gap: 8px; margin-left: auto; flex: 1 1 260px; max-width: 440px; }
.search input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; background: var(--paper-alt);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast);
}
.search input:focus { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); outline: none; }
.search button {
  padding: 10px 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: transform var(--fast) var(--ease), background var(--fast);
}
.search button:hover { background: #000; }
.search button:active { transform: scale(.97); }

/* ── Типографика ─────────────────────────────────────────────────────── */
h1 { font-size: clamp(27px,3.4vw,38px); line-height: 1.15; letter-spacing: -.03em; margin: 26px 0 12px; font-weight: 700; }
h2 { font-size: clamp(20px,2.2vw,23px); line-height: 1.25; letter-spacing: -.02em; margin: 36px 0 14px; font-weight: 650; }
h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 600; }

.lead { font-size: 17.5px; color: var(--ink-2); margin: 0 0 20px; max-width: 68ch; }
.count { color: var(--ink-3); font-size: 14px; margin: 0 0 18px; }
.muted { color: var(--ink-3); }

.prose { max-width: 70ch; color: var(--ink-2); }
.prose p { margin: 0 0 15px; }
.prose h2, .prose h3 { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 15px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--paper-alt); font-weight: 600; color: var(--ink); }

.crumbs { font-size: 13px; color: var(--ink-3); padding-top: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ── Главная ─────────────────────────────────────────────────────────── */
.hero { padding: 44px 0 10px; }
.hero h1 { margin-top: 0; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 8px; max-width: 60ch; }
.hero-count { font-size: 14px; color: var(--ink-3); margin: 0; }

.block { margin: 40px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.block-head h2 { margin: 0 0 16px; }

.more { font-size: 14px; white-space: nowrap; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: "→"; transition: transform var(--fast) var(--ease); }
.more:hover::after { transform: translateX(3px); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px,1fr)); gap: 14px; }

.card {
  display: flex; flex-direction: column; gap: 5px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); background: var(--paper);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.card:hover { color: var(--ink); border-color: #cfd9ea; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card:active { transform: translateY(0); }
.card-icon { font-size: 22px; line-height: 1.1; }
.card-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { font-weight: 600; }
.cat-list .muted { font-size: 13px; margin-left: 8px; }
.cat-list p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }

.tool-rows { list-style: none; padding: 0; margin: 0; }
.tool-rows li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tool-rows li:last-child { border-bottom: 0; }
.tool-rows .muted { font-size: 13px; }
.tool-rows-lg li { padding: 13px 0; }
.block-search { padding: 6px 0 0; }

/* ── Калькулятор ─────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: var(--gap); align-items: start; margin: 26px 0 32px; }
.calc-form { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-alt); }

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 550; margin-bottom: 7px; color: var(--ink); }
.field .unit { color: var(--ink-3); font-weight: 400; font-size: 13px; }

.field input[type="number"],
.field input[type="text"],
.field input[type="date"],
.field select,
.review-form textarea {
  width: 100%; padding: 11px 14px;
  font-size: 16px; /* меньше 16px — iOS увеличивает страницу при фокусе */
  font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field input:focus, .field select:focus, .review-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); outline: none;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7683' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-help { font-size: 13px; color: var(--ink-3); margin: 7px 0 0; }
.field-error { font-size: 13px; color: var(--danger); margin: 7px 0 0; animation: shake .3s var(--ease); }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio, .checkbox {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 14px; cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.radio:hover, .checkbox:hover { border-color: #cfd9ea; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); }

.btn-calc {
  display: block; width: 100%; padding: 13px 22px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: center; box-shadow: 0 1px 2px rgba(37,99,235,.25);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn-calc:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 4px 14px -4px rgba(37,99,235,.5); }
.btn-calc:active { transform: scale(.985); }

/* ── Результат: единственное яркое пятно страницы ─────────────────────── */
.calc-result {
  padding: 22px; border: 1px solid var(--result-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--result-bg), #fff 140%);
  position: sticky; top: 84px;
  transition: border-color var(--slow) var(--ease), background var(--slow) var(--ease);
}
.calc-result.is-empty { background: var(--paper-alt); border-color: var(--line); border-style: dashed; }
.res-placeholder { margin: 0; color: var(--ink-3); font-size: 14px; }

.res-row {
  padding: 12px 0; border-bottom: 1px solid var(--result-line);
  animation: rise .34s var(--ease) backwards; /* строки появляются по очереди */
}
.res-row:nth-child(2) { animation-delay: .04s; }
.res-row:nth-child(3) { animation-delay: .08s; }
.res-row:nth-child(4) { animation-delay: .12s; }
.res-row:nth-child(5) { animation-delay: .16s; }
.res-row:last-child { border-bottom: 0; padding-bottom: 0; }
.res-row:first-child { padding-top: 0; }

.res-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.res-value { display: block; font-size: 20px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.res-unit { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.res-hint { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.res-main .res-value { font-size: clamp(30px,5vw,38px); color: var(--result); letter-spacing: -.035em; line-height: 1.1; }
.res-main .res-unit { font-size: 19px; color: var(--result); opacity: .75; }

.form-error {
  margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--danger-bg); color: var(--danger); font-size: 14px; animation: rise .28s var(--ease);
}
.notes { font-size: 14px; color: var(--ink-3); max-width: 70ch; }
.notes p { margin: 0 0 8px; }

/* ── Вопросы ─────────────────────────────────────────────────────────── */
.faq { margin: 34px 0; max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 550; list-style: none; display: flex; align-items: flex-start; gap: 12px; transition: color var(--fast) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-alt); color: var(--ink-3); font-weight: 400;
  display: grid; place-items: center;
  transition: transform var(--slow) var(--ease), background var(--fast), color var(--fast);
}
.faq summary:hover { color: var(--accent); }
.faq summary:hover::before { background: var(--accent-bg); color: var(--accent); }
.faq details[open] summary::before { transform: rotate(45deg); background: var(--accent-bg); color: var(--accent); }
.faq details p { margin: 10px 0 2px 34px; color: var(--ink-2); animation: rise .3s var(--ease); }

/* ── Отзывы ──────────────────────────────────────────────────────────── */
.reviews { margin: 38px 0; max-width: 70ch; }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reviews-head h2 { margin: 0 0 14px; }
.reviews-rating { display: flex; align-items: baseline; gap: 8px; }
.reviews-rating .stars, .reviews-avg { margin-right: 8px; }
.reviews-avg { font-size: 19px; font-weight: 650; }

.stars { white-space: nowrap; letter-spacing: 1px; }
.star { color: #dfe4ec; font-size: 15px; }
.star.is-on { color: #f0a92f; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.review header strong, .review header .stars { margin-right: 10px; }
.review header strong { font-size: 15px; }
.review header time { font-size: 13px; color: var(--ink-3); }
.review p { margin: 0; color: var(--ink-2); }

.review-reply { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.review-reply strong { display: block; font-size: 12.5px; color: var(--accent-ink); margin-bottom: 4px; }

.reviews-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 0; }
.btn-inline { width: auto; display: inline-block; }
.link-quiet { font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: var(--accent); }

.review-form { max-width: 560px; margin-top: 22px; }
.review-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field-captcha input { max-width: 170px; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 32px; line-height: 1; color: #dfe4ec; cursor: pointer; margin: 0; transition: color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #f0a92f; }
.rating-input label:hover { transform: scale(1.15); }
.rating-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Пагинация ───────────────────────────────────────────────────────── */
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 26px 0 10px; }
.pager a { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-size: 14px; min-width: 42px; text-align: center; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.pager a:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); }
.pager a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-gap { color: var(--ink-3); padding: 0 2px; }

/* ── Реклама ─────────────────────────────────────────────────────────── */
.ad { margin: 26px 0; }
.ad:empty { display: none; }
.ad-sidebar { margin: 20px 0 0; }
@media (max-width: 900px) { .ad-desktop { display: none; } }
@media (min-width: 901px) { .ad-mobile { display: none; } }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.site-foot { margin-top: 60px; border-top: 1px solid var(--line); padding: 30px 0; background: var(--paper-alt); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.foot-nav a { font-size: 14px; color: var(--ink-3); }
.foot-nav a:hover { color: var(--accent); }
.foot-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.search-page { max-width: 540px; margin: 0 0 26px; }

/* ── Движение ────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(13,122,82,.22); } 100% { box-shadow: 0 0 0 14px rgba(13,122,82,0); } }

/* Пересчёт подтверждается короткой вспышкой вокруг результата */
.calc-result.is-updated { animation: pulse .5s var(--ease); }

/* ── Мобильные ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; gap: 16px; }

  /* Шапка в две строки: название и поиск. Кнопка поиска — иконкой,
     чтобы строка не переносилась на узких экранах */
  .site-head { padding: 0; }
  .head-inner { padding: 10px 0 12px; row-gap: 10px; }
  .brand-name { font-size: 17px; }
  .search { gap: 6px; }
  .search input { padding: 11px 14px; font-size: 16px; }
  .search button { padding: 11px 16px; }

  /* Результат прилипает к низу экрана: поля и результат не помещаются
     одновременно, а видеть итог во время ввода нужно */
  .calc-result {
    position: sticky; bottom: 0; top: auto; z-index: 20;
    margin: 0 -16px; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -12px rgba(16,19,26,.22);
    background: var(--result-bg);
  }
  .calc-result.is-empty { box-shadow: none; border-style: solid; }
  .res-main .res-value { font-size: 30px; }
  .res-row { padding: 8px 0; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
  .card { padding: 14px; }

  .wrap { padding: 0 16px; }
  .head-inner { padding: 10px 0; gap: 12px; }
  .search { margin-left: 0; max-width: none; flex-basis: 100%; order: 3; }
  .brand-tag { display: none; }

  h1 { margin: 20px 0 10px; }
  .hero { padding: 28px 0 6px; }
  .block { margin: 32px 0; }
  .site-foot { margin-top: 44px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 12px; }
  .card-desc { display: none; }
  .card-title { font-size: 14px; }
  .reviews-actions { flex-direction: column; align-items: stretch; }
  .btn-inline { width: 100%; text-align: center; }

  /* Заголовки на узком экране: меньше кегль, плотнее строки */
  h1 { font-size: 25px; line-height: 1.2; }
  h2 { font-size: 19px; }
  .lead, .hero-sub { font-size: 16px; }

  /* Хлебные крошки одной строкой с прокруткой, а не в три этажа */
  .crumbs {
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .crumbs::-webkit-scrollbar { display: none; }

  /* Поля и кнопки не меньше 44 пикселей: это минимум для пальца */
  .field input, .field select, .review-form textarea { min-height: 46px; }
  .btn-calc { min-height: 50px; font-size: 17px; }
  .radio, .checkbox { min-height: 44px; padding: 10px 14px; }
  .pager a { min-width: 46px; min-height: 46px; line-height: 28px; }

  /* Липкий результат: компактнее, чтобы не съедать пол-экрана */
  .calc-result { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .res-main .res-value { font-size: 27px; }
  .res-row { padding: 6px 0; }

  /* Много строк результата не должны занимать весь экран:
     блок ограничен по высоте и прокручивается внутри себя */
  .calc-result { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  .site-foot { padding: 22px 0; }
  .foot-nav { gap: 8px 16px; }
}

/* Системная настройка «меньше движения» отключает анимации полностью */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Печать: остаётся расчёт, уходит навигация ───────────────────────── */
@media print {
  .site-head, .site-foot, .ad, .reviews, .btn-calc, .search { display: none; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-result { position: static; box-shadow: none; }
  body { font-size: 12pt; }
}

/* Форма отзыва прямо на странице калькулятора */
.review-inline { margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-alt); }
.review-inline > summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.review-inline > summary::-webkit-details-marker { display: none; }
.review-inline > summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 20px; }
.review-inline[open] > summary::after { content: "−"; }
.review-inline > summary:hover { color: var(--accent); }
.review-inline .review-form { padding: 0 18px 18px; margin-top: 0; }

/* Карта сайта */
.sitemap-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.sitemap-nav a {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink); background: var(--paper);
}
.sitemap-nav a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-bg); }
.sitemap-block { margin: 0 0 26px; }
.sitemap-block h2 { margin: 0 0 10px; font-size: 19px; }
.sitemap-block h2 .muted { font-size: 14px; font-weight: 400; }
.sitemap-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 26px; }
.sitemap-list li { break-inside: avoid; padding: 4px 0; font-size: 15px; }
.foot-nav-service { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }

@media (max-width: 900px) { .sitemap-list { columns: 2; } }
@media (max-width: 560px) { .sitemap-list { columns: 1; } .sitemap-nav { gap: 6px; } }

/* Логотип в шапке */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-logo { display: block; width: auto; max-width: 200px; }
.brand:has(.brand-logo) .brand-tag { display: none; }
@media (max-width: 560px) { .brand-logo { max-width: 150px; } }
