/* cinologiya.ru — дизайн «Шалфей». Цвета только из палитры (brand/README.md). */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/assets/fonts/onest-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/assets/fonts/onest-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/assets/fonts/onest-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/assets/fonts/onest-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #2F5D46;
  --green-ink: #244A37;
  --sage: #8FAE96;
  --soft: #EEF3EC;
  --bg: #FAFAF6;
  --surface: #FFFFFF;
  --tan: #D98C4A;
  --tan-ink: #B86F2F;
  --ink: #1E2A23;
  --muted: #5E6B63;
  --line: #E3E8E1;
  --line-strong: #CBD5C8;
  --focus: 0 0 0 3px rgba(47, 93, 70, .28);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gap: clamp(16px, 2.5vw, 24px);
  --section: clamp(48px, 7vw, 88px);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #7FB394;
    --green-ink: #9CC7AE;
    --sage: #5E7F67;
    --soft: #1F2B24;
    --bg: #141A16;
    --surface: #1A221D;
    --tan: #E4A06A;
    --tan-ink: #EDB487;
    --ink: #E8EDE7;
    --muted: #A5B2A9;
    --line: #2A362F;
    --line-strong: #3A4A40;
    --focus: 0 0 0 3px rgba(127, 179, 148, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3, .h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.ico-lg { width: 32px; height: 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); }
.center { justify-content: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section) 0 0; }
.section-soft { background: var(--soft); padding: var(--section) 0; margin-top: var(--section); }
.section-soft + .section { padding-top: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); color: #fff; }
.btn-accent { background: var(--tan); color: #fff; }
.btn-accent:hover { background: var(--tan-ink); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-accent { color: #141A16; }
  .btn-primary:hover, .btn-accent:hover { color: #141A16; }
}

.pill { display: inline-block; background: var(--soft); color: var(--green); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover, .chip.is-active { border-color: var(--green); color: var(--green); background: var(--soft); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.brand-name .dot { color: var(--tan); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.site-nav > ul > li > a:hover { background: var(--soft); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 961px) { .site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: block; } }
.site-nav .sub a:hover { background: var(--soft); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.sub-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gap) 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  /* Телефон: разделы свёрнуты, раскрываются стрелкой; «Документы РКФ» — первой кнопкой (решение 160) */
  .site-nav { gap: 8px; padding-top: 8px; }
  .site-nav .nav-cta { order: -1; text-align: center; padding: 12px; font-size: 16px; }
  .site-nav > ul { gap: 0; }
  .site-nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav > ul > li > a { flex: 1; padding: 13px 4px; font-size: 17px; font-weight: 500; }
  .sub-toggle { display: block; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .site-nav .sub { display: none; flex-basis: 100%; position: static; border: 0; padding: 0 0 10px 12px; min-width: 0; background: transparent; }
  .site-nav .is-sub-open > .sub { display: block; }
  .site-nav .sub a { padding: 9px 4px; font-size: 15px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Главная: первый экран */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.trust .ico { color: var(--green); width: 18px; height: 18px; margin-right: 4px; }
.hero-art { aspect-ratio: 1 / 1; max-height: 460px;background: var(--soft); border-radius: 28px; display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: var(--sage); opacity: .25; top: -12%; right: -14%; }
.hero-card { position: relative; display: grid; place-items: center; gap: 24px; width: 100%; padding: 32px; }
.hero-mark { width: 42%; max-width: 200px; height: auto; aspect-ratio: 1; }
.hero-status { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; font-size: 14px; line-height: 1.4; }
.hero-status small { color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tan); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tan) 25%, transparent); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: auto; max-height: none; padding: 8px 0; }
  .hero-mark { width: 96px; }
}

/* Карточки */
.cards { display: grid; gap: var(--gap); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cards-3 { grid-template-columns: 1fr; }
  /* «Что оформляем» на телефоне — плитки по две, без пояснений (решение 160) */
  .cards-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards-svc .card-link { padding: 14px; gap: 0; }
  .cards-svc .card-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .cards-svc .card-title { font-size: 15px; overflow-wrap: anywhere; }
  .cards-svc .card-text { display: none; }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-link { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--sage); color: var(--ink); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--green); display: grid; place-items: center; margin-bottom: 10px; }
.card-title { font-weight: 600; font-size: 18px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.5; }

.post-card { overflow: hidden; }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.post-card-link:hover { color: var(--ink); }
.post-card-link:hover .post-card-title { color: var(--green); }
.post-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--soft); }   /* фото целиком, без обрезки */
.post-card-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.post-card-placeholder .ico { width: 44px; height: 44px; stroke-width: 1.4; position: relative; }
.placeholder-label { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
/* Заглушка без фото: мягкий фон рубрики и крупный знак — вместо картинок старого оформления. */
.post-card-placeholder::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; opacity: .5; }
.tone-green { background: var(--soft); color: var(--green); }
.tone-green::before { background: color-mix(in srgb, var(--green) 10%, transparent); }
.tone-tan { background: color-mix(in srgb, var(--tan) 14%, var(--bg)); color: var(--tan-ink); }
.tone-tan::before { background: color-mix(in srgb, var(--tan) 18%, transparent); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.post-card-title { font-weight: 600; font-size: 18px; line-height: 1.3; transition: color .15s; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {   /* телефон: 2×2 (решение 160) */
  .steps { gap: 18px 14px; margin-top: 18px; }
  .steps .step-num { width: 32px; height: 32px; margin-bottom: 4px; font-size: 15px; }
  .steps .step-title { font-size: 16px; }
  .steps .step-text { font-size: 14px; }
}
.step { display: flex; flex-direction: column; gap: 6px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .step-num { color: #141A16; } }
.step-title { font-weight: 600; font-size: 18px; }
.step-text { color: var(--muted); font-size: 15px; }

.club-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; } }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.link-list a::after { content: "→"; color: var(--sage); transition: transform .15s; }
.link-list a:hover { color: var(--green); }
.link-list a:hover::after { transform: translateX(4px); color: var(--green); }

.note { display: flex; gap: 18px; align-items: flex-start; background: var(--soft); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.note .ico { color: var(--tan); }
.note p:last-child { margin: 0; }

/* Внутренние страницы */
.page-head { padding: clamp(28px, 5vw, 56px) var(--gap) 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.article-head { padding-top: clamp(28px, 5vw, 56px); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.article-cover { margin: 8px auto 32px; }
.article-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; margin: 0 auto; border-radius: var(--r-lg); }   /* целиком, по размеру экрана */

.toc { background: var(--soft); border-radius: var(--r); padding: 18px 22px; margin: 8px 0 32px; font-size: 15px; }
.toc-title { font-weight: 600; margin-bottom: 6px; }
/* Номера — только у разделов (h2); подразделы — кружком, номер не съедают (было «1, 2, … 7, 8»). */
.toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 4px 0; }
.toc .toc-l2 { counter-increment: toc; }
.toc .toc-l2::before { content: counter(toc) ". "; color: var(--muted); }
.toc .toc-l3 { margin-left: 22px; }
.toc .toc-l3::before { content: "◦ "; color: var(--muted); }
.toc a { text-decoration: none; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 28px; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--tan); color: var(--ink); font-size: 19px; }
.prose img { display: block; max-width: 100%; height: auto; max-height: 80vh; width: auto; margin: 1.5em auto; border-radius: var(--r); }   /* целиком, в ширину текста и экрана */
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose mark { background: color-mix(in srgb, var(--tan) 28%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }

.corrections { border-left: 3px solid var(--tan); background: var(--soft); padding: 14px 18px; margin: 28px 0; font-size: 15px; border-radius: 0; }
.corrections p:last-child { margin: 0; }
.corr-list { list-style: none; padding: 0; margin: 0; }
.corr-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.corr-list a { display: block; font-weight: 600; margin: 2px 0 6px; }
.corr-list p { margin: 0; color: var(--muted); }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--green); color: #fff; border-radius: var(--r-lg); padding: 24px 28px; margin: 40px 0 0; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .86); }
.cta-box .cta-title { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .cta-box { background: var(--soft); border: 1px solid var(--line); } .cta-box p { color: var(--muted); } .cta-box .cta-title { color: var(--ink); } }
@media (max-width: 560px) { .cta-box { flex-direction: column; align-items: flex-start; } }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager .is-active { background: var(--green); border-color: var(--green); color: #fff; }

.stub { padding: clamp(48px, 9vw, 120px) 0 0; text-align: center; }
.stub-box .lead { margin-left: auto; margin-right: auto; }
.stub-mark { width: 72px; height: 72px; margin: 0 auto 24px; }
.big-code { font-size: clamp(72px, 14vw, 140px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--sage); margin: 0 0 8px; }

/* Подвал */
.site-footer { margin-top: var(--section); background: var(--surface); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-smi p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 14px 0 0; }
.footer-smi .age-mark { margin-right: 6px; font-size: 12px; }
a[href^="tel:"] { white-space: nowrap; }
.age-mark { display: inline-block; border: 1.5px solid var(--muted); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.typo-hint .ico { color: var(--tan); width: 18px; height: 18px; }
.typo-hint a { color: var(--green); }

/* «Нашли ошибку?» */
.typo-fab { position: absolute; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--font); cursor: pointer; }
.typo-fab .ico { width: 16px; height: 16px; color: var(--tan); }
.typo-fab[hidden] { display: none; }
.typo-dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; background: var(--surface); color: var(--ink); }
.typo-dialog::backdrop { background: rgba(20, 26, 22, .45); }
.typo-form { padding: 24px; }
.typo-form h2 { font-size: 24px; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: var(--focus); }
.field textarea[readonly] { background: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.typo-msg { min-height: 1.4em; font-size: 15px; margin: 0; }
.typo-msg.is-error { color: #B3412E; }
.typo-msg.is-ok { color: var(--green); }

/* Формы заявок (регистрация помёта и др.) */
.note-box { background: var(--soft); border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 24px; }
.note-box p { margin: 0 0 8px; }
.note-box p:last-child, .note-box ol:last-child { margin-bottom: 0; }
.note-box ol { margin: 0 0 8px; padding-left: 22px; }
.form-alert { background: #FBEDE9; color: #8E2F1F; border: 1px solid #F0C9BF; border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 48px; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form-card legend { font-weight: 600; font-size: 19px; padding: 0; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row > .field { min-width: 0; }
.field-error { display: block; color: #B3412E; font-size: 14px; margin-top: 6px; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: #B3412E; }
.field input[type="file"] { padding: 8px; background: var(--surface); }
.field small.muted { font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.file-note { font-size: 14px; margin: -4px 0 0; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 18px 16px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-alert { background: #3A2420; color: #F2C4B8; border-color: #5A332B; } }
:root[data-theme="dark"] .form-alert { background: #3A2420; color: #F2C4B8; border-color: #5A332B; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .typo-fab, .cta-box, .toc { display: none; } body { background: #fff; color: #000; } }
.prose video { width: 100%; border-radius: var(--r); margin: 1.5em 0; background: #000; }

/* «Заявка за минуту» и «добавить фото» */
.quick-form, .add-form { margin-bottom: 28px; }
.quick-title { font-size: 22px; margin: 0 0 4px; }
.quick-sub { margin: 0 0 18px; }
.quick-hint { font-size: 14px; margin: 12px 0 0; }
.puppy-age { display: block; min-height: 1.3em; margin-top: 6px; font-size: 14px; }
.via { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.via legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.via-opt { position: relative; }
.via-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.via-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); font-size: 15px; cursor: pointer; }
.via-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.via-opt input:focus-visible + span { box-shadow: var(--focus); }
.more { margin: 0 0 14px; }
.more summary { cursor: pointer; color: var(--green); font-size: 15px; font-weight: 600; padding: 4px 0; }
.more[open] summary { margin-bottom: 10px; }
.file-pick { display: block; margin: 0 0 16px; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick .btn { width: 100%; }
.file-pick .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.file-pick input:focus-visible + .btn { box-shadow: var(--focus); }
.file-pick small { display: block; margin-top: 8px; font-size: 14px; }
.form-ok { background: var(--soft); color: var(--green); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }

/* Страница карточками («Услуги»): раздел — карточка со знаком, ссылки — кнопки. */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 8px 0 28px; }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 18px; }
.svc-card .ico { color: var(--green); margin-bottom: 12px; }
.svc-card h2 { font-size: 20px; margin: 0 0 8px; }
.svc-card p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.svc-card .card-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }

/* «Разведение»: двери, карточки собак, фильтры, страница собаки */
.doors .door { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.doors .door:hover { border-color: var(--green); transform: translateY(-2px); }
.door-go { margin-top: auto; color: var(--green); font-weight: 600; font-size: 15px; }
.section-title { font-size: 24px; margin: 36px 0 16px; }
.dog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 0 0 20px; }
.dog-card { overflow: hidden; }
.dog-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.dog-card-link:hover .dog-card-name { color: var(--green); }
.dog-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.dog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.dog-card-name { font-weight: 600; font-size: 18px; line-height: 1.3; }
.tag-ok { color: var(--green); font-weight: 600; font-size: 14px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip-nav a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 15px; background: var(--bg); }
.chip-nav a.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip-nav small { opacity: .7; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin: 0 0 20px; }
.filters .field { margin: 0; min-width: 200px; }
.filters .check { margin: 0 0 10px; }
.razv-note { margin-top: 28px; }
.dog-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; margin-bottom: 40px; }
.dog-photo img, .dog-photo-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); display: flex; }
.dog-photo-empty .ico { width: 64px; height: 64px; }
.kv-public { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 18px; }
.kv-public dt { color: var(--muted); }
.kv-public dd { margin: 0; }
.dog-about { grid-column: 1 / -1; }
.pups { padding-left: 20px; }
@media (max-width: 760px) { .dog-page { grid-template-columns: 1fr; } .kv-public { grid-template-columns: 1fr; } .kv-public dd { margin-bottom: 6px; } }
.door-sm { padding: 18px; }
.door-sm h3 { font-size: 17px; margin: 0 0 6px; }
@media (max-width: 600px) {
  .doors-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .doors-home .door-sm { padding: 14px; }
  .doors-home .door-sm h3 { font-size: 15px; margin: 6px 0 0; overflow-wrap: anywhere; }
  .doors-home .door-go { display: none; }
}

/* Таблицы в текстах: на телефоне — помещаются в ширину (мельче шрифт, перенос длинных слов), без прокрутки вбок. */
@media (max-width: 600px) {
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 7px 6px; overflow-wrap: anywhere; hyphens: auto; }
}
/* Таблица «название — значение» (реквизиты): подписи узкой колонкой. */
.prose tbody th:first-child { width: 36%; }

/* «Написать нам»: плашка в подвале и окно-обращение (компьютер — панель справа, телефон — весь экран). */
.footer-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: var(--green); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 40px); margin: 0 0 clamp(32px, 5vw, 48px); }
.footer-ask-text { flex: 1 1 320px; min-width: 0; }
.footer-ask-text p { margin: 0; color: rgba(255, 255, 255, .85); }
.footer-ask .footer-ask-title { font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -.01em; }
.footer-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer .footer-ask-btn { background: #fff; color: var(--green); }
.site-footer .footer-ask-btn:hover { background: var(--soft); color: var(--green-ink); }
.footer-ask-btn .ico { width: 18px; height: 18px; }
.site-footer .footer-ask-phone { color: #fff; font-weight: 600; font-size: 17px; white-space: nowrap; }
.site-footer .footer-ask-phone:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .footer-ask-actions, .footer-ask-btn { width: 100%; } .footer-ask-actions { justify-content: center; } }
.ask-dialog { margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; border: 0; border-radius: 0;
  padding: 0; background: var(--surface); color: var(--ink); box-shadow: -10px 0 40px rgba(20, 30, 25, .18); overflow: auto; overscroll-behavior: contain; }
.ask-dialog[open] { animation: ask-in .2s ease-out; }
@keyframes ask-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ask-dialog::backdrop { background: rgba(20, 26, 22, .45); }
.ask-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ask-head h2 { margin: 0; font-size: 22px; }
.ask-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font: 400 28px/1 var(--font); cursor: pointer; }
.ask-form, .ask-done { padding: 18px 20px 24px; }
.ask-topics { margin-bottom: 14px; }
.ask-topics .via-opt span { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.ask-file { display: block; margin: 0 0 12px; }
.ask-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ask-file > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--green); }
.ask-file input:focus-visible + span { box-shadow: var(--focus); }
.ask-actions .btn { width: 100%; }
.ask-note { font-size: 14px; margin: 12px 0 0; }
.ask-done { text-align: center; padding-top: 40px; }
.ask-done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--green); font-size: 32px; }
.ask-done-title { font-size: 20px; font-weight: 600; margin: 16px 0 6px; }
.ask-done .actions { justify-content: center; }
@media (max-width: 600px) {
  .ask-dialog { width: 100vw; box-shadow: none; }
  .ask-dialog[open] { animation: ask-up .2s ease-out; }
  @keyframes ask-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .ask-dialog[open] { animation: none; } }
/* «Услуги» по группам: заголовок группы, вводный абзац, сетка карточек. */
.svc-group { margin: 8px 0 clamp(28px, 5vw, 44px); }
.svc-group > h2 { margin: 0 0 6px; }
.svc-intro p { margin: 0 0 16px; color: var(--muted); font-size: 18px; max-width: 680px; }
.svc-card .svc-title { font-size: 20px; margin: 0 0 8px; }
.svc-note ul { margin: 0 0 12px; padding-left: 1.2em; }
.svc-note li { margin: 6px 0; }
.svc-note p:last-child { margin-bottom: 0; }
.svc-group { scroll-margin-top: 80px; }

/* Календарь выставок РКФ */
.rkf-cal { margin: 0 0 36px; }
.cal-title { margin: 0 0 12px; }
.cal-month { font-size: 20px; margin: 22px 0 10px; color: var(--green); }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: var(--soft); border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.cal-date b { font-size: 24px; color: var(--green); }
.cal-date small { font-size: 12px; color: var(--muted); text-align: center; }
.cal-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 16px; line-height: 1.45; }
.cal-where { font-weight: 600; }
.cal-breeds { font-size: 14px; }
.cal-link { font-size: 14px; margin-top: 2px; }
.cal-note { font-size: 14px; margin-top: 16px; }
/* Подвал: спокойнее и короче */
.footer-brand p { max-width: 300px; font-size: 14px; margin-top: 10px; }
.footer-bottom { justify-content: space-between; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-smi p { font-size: 12px; }

/* ---------- Документы РКФ ---------- */
.price-group { margin: 32px 0 8px; font-size: 20px; }
.price-list { border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.price-row:hover { background: var(--soft, rgba(0,0,0,.03)); }
.price-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-name small, .price-sum small { font-size: 14px; }
.price-sum { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
@media (max-width: 520px) { .price-row { flex-direction: column; gap: 6px; } .price-sum { align-items: flex-start; text-align: left; } }
.price-more { margin-top: 12px; }
.faq summary { font-weight: 600; }
.faq p { margin: 8px 0 16px; }
.docs-delivery li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.docs-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.docs-step legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; margin-bottom: 12px; padding: 0; }
.docs-step legend .step-num { width: 32px; height: 32px; margin: 0; font-size: 15px; flex: none; }
.docs-step[hidden], [data-docs-urgent-wrap][hidden], [data-docs-addr][hidden], [data-docs-map][hidden], [data-docs-sample][hidden] { display: none; }
.docs-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 16px; margin: 12px 0; border-radius: 12px; background: var(--soft, rgba(47,93,70,.08)); }
.docs-price b { font-size: 24px; }
.docs-price small { flex-basis: 100%; }
.docs-need ul { margin: 6px 0 8px; padding-left: 20px; }
.via-col { display: flex; flex-direction: column; gap: 8px; }

.docs-now { padding: 18px 20px; border-radius: 14px; background: var(--soft, rgba(47,93,70,.08)); margin-bottom: 20px; }
.docs-now-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 6px; }
.docs-now.is-cancelled { opacity: .75; }
.docs-timeline { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 0; }
.docs-timeline li { position: relative; padding: 6px 0 6px 28px; color: var(--muted); }
.docs-timeline li::before { content: ''; position: absolute; left: 6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg, #fff); }
.docs-timeline li::after { content: ''; position: absolute; left: 11px; top: 24px; bottom: -6px; width: 2px; background: var(--line); }
.docs-timeline li:last-child::after { display: none; }
.docs-timeline li.is-done { color: inherit; }
.docs-timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.docs-timeline li.is-now { color: inherit; font-weight: 600; }
.docs-timeline li.is-now::before { border-color: var(--green); box-shadow: 0 0 0 4px rgba(47,93,70,.18); }
.docs-invoice { margin-bottom: 20px; }
.docs-qr img { max-width: 200px; height: auto; border-radius: 8px; background: #fff; padding: 8px; }
.docs-found li { display: flex; flex-direction: column; gap: 4px; }

/* Бланк согласия РКФ — для печати на A4 */
.print-page { background: #fff; color: #000; }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #EEF3EF; }
.print-bar p { margin: 0; }
.consent-sheet { max-width: 760px; margin: 24px auto; padding: 0 16px; font: 14px/1.5 "Times New Roman", Times, serif; color: #000; text-align: justify; }
.consent-sheet h1 { font-size: 16px; text-align: center; margin: 0 0 18px; }
.consent-sheet p { margin: 0 0 10px; }
.fill { display: inline-block; min-width: 40px; border-bottom: 1px solid #000; text-align: center; padding: 0 4px; }
.fill-wide { min-width: min(420px, 70vw); }
.fill-day { min-width: 32px; }
.fill-month { min-width: 110px; }
.fill-sign { min-width: 200px; }
.fill-label { font-size: 11px; color: #444; }
.consent-sign { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; text-align: center; }
@media print {
  .no-print { display: none !important; }
  .consent-sheet { margin: 0 auto; max-width: none; }
  @page { size: A4; margin: 18mm 16mm; }
}

/* ---------- Пакет 19: плотнее и богаче (решение 100) ----------
   Шапка страницы — светлая плашка с крошками, заголовок меньше; оглавление сбоку на широком экране;
   текст плотнее; юридические страницы — «документом», как на yataksa.ru/privacy. */
h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-head { position: relative; overflow: hidden; background: var(--soft); border-radius: var(--r-lg); margin: clamp(12px, 2vw, 24px) auto clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 36px); }
.wrap.page-head, .wrap-narrow.page-head { max-width: calc(var(--wrap) - 2 * var(--gap)); }
.wrap-narrow.page-head { max-width: calc(var(--wrap-narrow) - 2 * var(--gap)); }
@media (max-width: 700px) { .page-head, .wrap.page-head, .wrap-narrow.page-head { max-width: none; border-radius: 0; margin: 0 0 20px; } }
.page-head h1 { margin-bottom: .35em; max-width: 860px; position: relative; }
.page-head .lead { font-size: clamp(16px, 1.6vw, 18px); margin: 0; max-width: 760px; position: relative; }
.page-head .crumbs { margin-bottom: 10px; position: relative; }
.page-head .actions { margin: 16px 0 0; position: relative; }
.page-head-mark { position: absolute; right: -28px; bottom: -40px; width: 200px; height: 200px; color: var(--green); opacity: .07; pointer-events: none; }
@media (max-width: 700px) { .page-head-mark { width: 130px; height: 130px; right: -24px; bottom: -30px; } }

.page-body { padding-bottom: 8px; }
.page-main { max-width: var(--wrap-narrow); min-width: 0; }
.page-body:not(.page-grid) .page-main { margin: 0 auto; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.page-grid .page-aside { order: 2; position: sticky; top: 84px; }
.page-grid .page-main { order: 1; }
@media (max-width: 1023px) {
  .page-grid { display: block; }
  .page-grid .page-aside { position: static; }
  .page-main { margin: 0 auto; }
}
.toc { margin: 0 0 20px; padding: 14px 18px; font-size: 14px; }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " ▾"; color: var(--muted); }
.toc[open] summary::after { content: " ▴"; }
.toc ol { margin-top: 8px; }
.toc li { margin: 5px 0; line-height: 1.35; }

.prose { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 .9em; }
.prose h2 { font-size: clamp(22px, 2.2vw, 26px); margin: 1.5em 0 .5em; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 1.3em 0 .4em; scroll-margin-top: 84px; }
.section { padding-top: clamp(40px, 5vw, 64px); }
.section-soft { padding: clamp(40px, 5vw, 64px) 0; margin-top: clamp(40px, 5vw, 64px); }

/* Юридические страницы */
.prose.legal { font-size: 15.5px; line-height: 1.6; }
.prose.legal h2 { font-size: 19px; margin: 1.6em 0 .5em; padding-top: .9em; border-top: 1px solid var(--line); }
.prose.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.prose.legal p, .prose.legal li { margin-bottom: .55em; }
.prose.legal ul, .prose.legal ol { margin-bottom: .8em; }
.prose.legal table { display: table; font-size: 14.5px; margin: .8em 0 1.2em; }
.prose.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 700px) {
  .prose .pd-table thead { display: none; }
  .prose .pd-table, .prose .pd-table tbody, .prose .pd-table tr, .prose .pd-table td { display: block; width: 100%; }
  .prose .pd-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prose .pd-table td { border: 0; padding: 2px 0; }
  .prose .pd-table td:first-child { font-weight: 600; padding-bottom: 6px; }
  .prose .pd-table td[data-label] { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
  .prose .pd-table td[data-label]::before { content: attr(data-label) ":"; flex: none; color: var(--ink); font-weight: 600; }
}

/* Подвал короче (решение 101) */
.site-footer { padding: clamp(28px, 4vw, 44px) 0 18px; }
.footer-ask { padding: clamp(16px, 2.6vw, 22px) clamp(18px, 3vw, 28px); margin-bottom: clamp(22px, 3vw, 32px); }
.footer-ask .footer-ask-title { font-size: clamp(18px, 2vw, 21px); margin-bottom: 2px; }
.footer-grid { gap: 20px 28px; }
.footer-h { margin-bottom: 8px; }
.site-footer li { margin: 4px 0; }
.footer-bottom { flex-direction: column; gap: 6px; margin-top: 22px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom .footer-smi { font-size: 12px; line-height: 1.5; margin: 0; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { display: none; }
}

/* Бланки и положения — карточки файлов */
.prose .file-grid { list-style: none; padding: 0; margin: .4em 0 1.4em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.prose .file-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.prose .file-card:hover { border-color: var(--sage); box-shadow: 0 4px 14px rgba(30, 42, 35, .06); }
.prose .file-card::marker { content: none; }
.file-main { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.file-main:hover .file-name { color: var(--green); }
.file-name { flex: 1; min-width: 0; }
.file-ext { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; background: #3D6EA8; }
.file-ext.file-pdf { background: #B5503A; }
.file-dl { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--green); font-weight: 600; }
.file-more { font-size: 13.5px; color: var(--muted); padding-left: 58px; }

/* Плашка cookie (Метрика — только после согласия) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 10px 30px rgba(30, 42, 35, .14); padding: 14px 16px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
.cookie-bar .cookie-actions { flex: 0 0 auto; display: flex; gap: 8px; }

/* Главная: цены под ключ в первом экране */
.hero-prices { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.4vw, 26px); }
.hero-prices-title { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-prices ul { list-style: none; margin: 0; padding: 0; }
.hero-prices li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hero-prices li a:hover span { color: var(--green); }
.hero-prices li b { white-space: nowrap; }
.hero-prices-note { margin: 0; font-size: 13.5px; color: var(--green); }
.hero-prices .hero-status { position: static; margin-top: 6px; }
.hero-card.hero-prices { display: flex; place-items: initial; width: min(88%, 400px); background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 14px 40px rgba(30, 42, 35, .10); }
.section-head { flex-wrap: wrap; row-gap: 6px; }

/* Документы РКФ по городам */
.city-main h2 { font-size: clamp(21px, 2.2vw, 25px); margin: 1.6em 0 .5em; }
.city-main h2:first-child { margin-top: 0; }
.city-shows li a { display: block; padding: 10px 0; }
.city-near, .city-letters { flex-wrap: wrap; }
.city-letters { margin-bottom: 20px; }
.city-index { columns: 4 220px; column-gap: 32px; }
.city-letter { break-inside: avoid; margin-bottom: 18px; }
.city-letter h2 { font-size: 20px; margin: 0 0 6px; color: var(--green); scroll-margin-top: 84px; }
.city-letter ul { list-style: none; margin: 0; padding: 0; }
.city-letter li { margin: 3px 0; font-size: 15px; }

.hero-prices-from { margin: 0; font-size: clamp(34px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.hero-prices p { margin: 0; }

/* Заявление о вступлении — один лист A4 */
.member-sheet { font-size: 13.5px; }
.sheet-to { text-align: right; margin-bottom: 18px; }
.member-sheet h1 { margin-bottom: 12px; }
.sheet-fields, .sheet-dogs { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.sheet-fields th { width: 34%; text-align: left; font-weight: 400; padding: 9px 8px 3px 0; vertical-align: bottom; }
.sheet-fields td { border-bottom: 1px solid #000; }
.sheet-dogs th, .sheet-dogs td { border: 1px solid #000; padding: 4px 6px; text-align: left; font-weight: 400; font-size: 12.5px; }
.sheet-dogs td { height: 26px; }
.sheet-h { font-weight: 600; margin: 8px 0 0; }
.sheet-small { font-size: 11.5px; line-height: 1.45; }
.sheet-office { margin-top: 18px; padding-top: 8px; border-top: 1px dashed #777; }
@media print { .member-sheet { font-size: 12.5px; } }

/* Журнал: превью — две строки (решение 110) */
.post-card .card-text, .post-card-body .card-text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Календарь: регионы Северо-Запада и Центра группами */
.cal-group { display: flex; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; }
.cal-group-name { flex: none; width: 104px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 8px; }
.cal-group .chip-nav { margin: 0; }
@media (max-width: 700px) { .cal-group { flex-direction: column; gap: 4px; } .cal-group-name { width: auto; padding-top: 0; } }

/* Калькулятор титулов */
.titles-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.titles-row { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px 10px; margin: 0; display: grid; grid-template-columns: 1.1fr .9fr 1fr 1.6fr 1fr; gap: 8px; min-width: 0; }
.titles-row legend { font-size: 12px; padding: 0 4px; }
.titles-row .field { margin: 0; min-width: 0; }
.titles-row .field > span { font-size: 12.5px; }
@media (max-width: 860px) { .titles-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .titles-row { grid-template-columns: 1fr; } }
.titles-result { padding: 18px 20px; border-radius: var(--r-lg); background: var(--soft); margin-bottom: 20px; scroll-margin-top: 84px; }
.titles-list { list-style: none; padding: 0; margin: 10px 0; }
.titles-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.titles-list li.is-ok b { color: var(--green); }
.titles-list li.is-no { color: var(--muted); }
.titles-list li span { font-size: 14.5px; }
.titles-rules dt { font-weight: 600; margin-top: 12px; }
.titles-rules dd { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Переписка по заявке — как в мессенджере (решение 134) */
.chat { margin: 28px 0 20px; }
.chat-feed { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.chat-msg.is-club { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.is-mine { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 4px; }
.chat-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.chat-files { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.chat-files .ico { width: 16px; height: 16px; vertical-align: -3px; }
.chat-event { align-self: center; font-size: 13px; color: var(--muted); text-align: center; }
.chat-event small { opacity: .8; }
.chat-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px; }
.chat-form textarea { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--ink); }
.chat-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.chat-row .file-pick { flex: 1 1 220px; }
.chat-hint { font-size: 13.5px; margin: 8px 0 0; }
@media (max-width: 480px) { .chat-msg { max-width: 94%; } .chat-row .btn-primary { width: 100%; } }

/* Помёт: отметка актировки, таблица щенков, помёты в карточке собаки (решение 142) */
.akt-mark { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: var(--soft); margin: 0 0 18px; }
.akt-mark .ico { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }
.pups-tbl { margin-bottom: 18px; }
.litter-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pups-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.pups-tbl th, .pups-tbl td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.pups-tbl th { color: var(--muted); font-weight: 500; font-size: 13.5px; }

/* «Только документы РКФ» (решение 143) */
.rkf-only { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 15px; margin: 12px 0; }
.rkf-only .ico { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }

/* «Что у вас случилось?», группы цен, календарь помёта, города (решения 144–146) */
.situations { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.situations a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-decoration: none; }
.situations a:hover { border-color: var(--green); background: var(--soft); }
.situations-full { grid-template-columns: 1fr; }
.situations-full a span { color: var(--muted); font-size: 15px; }
.situations-full .sit-go { color: var(--green); font-weight: 600; }
.price-acc { border-bottom: 1px solid var(--line); }
.price-acc > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; padding: 16px 4px; margin: 0; list-style: none; }
.price-acc > summary::-webkit-details-marker { display: none; }
.price-acc > summary::after { content: '▾'; color: var(--muted); margin-left: 8px; }
.price-acc[open] > summary::after { content: '▴'; }
.price-acc > summary > span { flex: 1; }
.cal-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cal-fields .field { flex: 1 1 200px; }
.cal-or { color: var(--muted); padding-bottom: 12px; }
.cal-plan { list-style: none; margin: 24px 0 12px; padding: 0; border-left: 3px solid var(--green); }
.cal-plan li { display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 18px; position: relative; }
.cal-plan li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.cal-plan li.is-past { opacity: .6; }
.cal-date { font-size: 14px; color: var(--green); font-weight: 600; }
.city-search { max-width: 460px; margin-bottom: 18px; }
.city-big { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-big a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--bg); font-size: 15px; }
.city-big li[hidden], .city-index li[hidden], .city-letter[hidden] { display: none; }
.city-all > summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.situations:not(.situations-full) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.situations:not(.situations-full) a { padding: 10px 12px; font-size: 15px; line-height: 1.3; }
@media (max-width: 480px) { .situations:not(.situations-full) { grid-template-columns: 1fr 1fr; } .situations:not(.situations-full) a { font-size: 14px; } }

/* Подписка на помёты, статус щенков у заводчика (решения 148–149) */
.litter-sub { margin: 28px 0 12px; }
.litter-sub-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.litter-sub-row .field { flex: 1 1 220px; }
.pups-manage { list-style: none; margin: 0 0 16px; padding: 0; }
.pups-manage li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pups-manage select { max-width: 50%; }

/* Электронная копия на странице заявки (решение 153) */
.ecopy { list-style: none; margin: 0 0 8px; padding: 0; }
.ecopy a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; font-weight: 600; }
.ecopy .ico { width: 18px; height: 18px; }
.docs-timeline small { font-weight: 400; }

/* Карта сайта для людей (решение 158) */
.sitemap section { margin: 0 0 32px; scroll-margin-top: 80px; }
.sitemap h2 small { font-size: 15px; font-weight: 400; }
.sitemap-list { columns: 2 320px; column-gap: 32px; margin: 0; padding: 0 0 0 18px; }
.sitemap-list li { break-inside: avoid; margin: 0 0 6px; overflow-wrap: anywhere; }

/* Положения НКП по породам (решение 162) */
.nkp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nkp-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.nkp-list li[hidden] { display: none; }
.nkp-list li > b { flex: 0 0 240px; min-width: 0; }
.nkp-docs { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.nkp-new { color: var(--accent, #C8743A); font-size: 13px; }
@media (max-width: 600px) { .nkp-list li > b { flex-basis: 100%; } }

/* «Заявка больше не нужна» — тихо, внизу страницы заявки (решение 167) */
.docs-close { margin: 24px 0 8px; }
.docs-close > summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.docs-close-form { display: grid; gap: 10px; max-width: 420px; margin-top: 12px; }

/* Номер заявки в РКФ на странице клиента (решение 170) */
.rkf-track { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.rkf-track p { margin: 0 0 6px; }
.rkf-track p:last-child { margin: 0; }
