/* Boribasar.asia — публичный сайт. Шрифт Scada (OFL), свой хостинг. */
/* Scada (SIL OFL) — подмножества latin, latin-ext, cyrillic, cyrillic-ext (с казахскими буквами), свой хостинг. */
@font-face { font-family: "Scada"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/scada-cyrillic-ext-400-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/scada-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/scada-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/scada-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site/fonts/scada-cyrillic-ext-700-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site/fonts/scada-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site/fonts/scada-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Scada"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site/fonts/scada-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0E1B1A; --ink-2: #12302E; --paper: #FBF7F0; --sand: #F3E9D8; --line: #E4D9C6;
  --text: #16211F; --muted: #5B6966;
  --orange: #FF6A13; --orange-2: #FF8B00; --sun: #FFC940; --teal: #00A99D; --teal-2: #007F76;
  --blue: #2F6FDB; --green: #1E9E57; --amber: #E9A21B; --red: #E0412F;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.55 "Scada", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.acc { font-style: normal; color: var(--orange); }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; white-space: nowrap; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn.solid { background: var(--orange); color: #fff; }
.btn.solid:hover { background: #ff7d33; }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: #fff; }
.btn.line { color: #fff; border-color: rgba(255,255,255,.5); }
.btn.line:hover { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.only-signed { display: none !important; }
.signed-in .only-signed { display: inline-flex !important; }
.signed-in .only-guest { display: none !important; }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(14,27,26,.92); backdrop-filter: blur(10px); color: #fff; }
.top-row { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.05; }
.logo-text { display: flex; flex-direction: column; }
.logo-img { display: block; width: auto; max-width: 220px; object-fit: contain; }
.logo-word { font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: #fff; }
.logo-word b { color: var(--orange); }
.logo-word.light { color: #fff; }
.logo-tag { font-size: 11.5px; color: rgba(255,255,255,.6); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: 10px; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.nav a:hover { color: #fff; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { position: relative; margin-right: 6px; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 700; color: #fff; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.langs[open] summary, .langs summary:hover { border-color: var(--sun); }
.langs .globe { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; opacity: .85; }
.langs .globe::before { content: ""; position: absolute; inset: -1.6px 3px; border: 1.6px solid currentColor; border-radius: 50%; }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: flex; flex-direction: column; padding: 6px; min-width: 190px; background: #fff; border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.lang { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.lang b { min-width: 34px; font-size: 12px; color: #6b746f; }
.lang:hover { background: #F4EEE4; }
.lang.cur { background: var(--sun); }
.lang.cur b { color: var(--ink); }

/* ── главный экран ── */
.hero { position: relative; overflow: hidden; background: var(--hero-bg, var(--ink)); color: #fff; padding: 64px 0 150px; }
/* фон из панели: картинка + затемнение, чтобы белый текст читался */
.hero-photo { position: absolute; inset: 0; background: var(--hero-img) var(--hero-pos, center) / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,27,26,calc(var(--hero-dim, .55) + .15)) 0%, rgba(14,27,26,var(--hero-dim, .55)) 55%, rgba(14,27,26,calc(var(--hero-dim, .55) - .1)) 100%); }
.hero-sky { position: absolute; inset: 0; background:
  radial-gradient(900px 480px at 88% 8%, rgba(255,106,19,.55), transparent 62%),
  radial-gradient(700px 420px at 8% 100%, rgba(0,169,157,.42), transparent 60%),
  radial-gradient(420px 260px at 55% 40%, rgba(255,201,64,.14), transparent 70%); }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13.5px; font-weight: 700; color: var(--sun); margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .acc { color: var(--orange); }
.lead { font-size: 19.5px; color: rgba(255,255,255,.82); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 16px 0 0; font-size: 14.5px; color: rgba(255,255,255,.6); }

/* схема */
.scheme { position: relative; margin: 0; }
.scheme-inner { position: relative; aspect-ratio: 1.08 / 1; container-type: inline-size; }
.scheme-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scheme-lines path { fill: none; stroke: rgba(255,255,255,.35); stroke-width: .5; vector-effect: non-scaling-stroke; stroke-width: 2; }
.scheme-lines path.hot { stroke: var(--orange); stroke-width: 3; }
.scheme-lines path.arc { stroke: var(--sun); stroke-dasharray: 6 6; stroke-width: 2; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 30cqw; }
.node .ph { display: block; border-radius: 50%; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 14px 30px rgba(0,0,0,.35); }
.node .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.node.n-xl .ph { width: 23cqw; height: 23cqw; box-shadow: 0 0 0 5px var(--orange), 0 18px 40px rgba(0,0,0,.45); }
.node.n-l .ph { width: 16cqw; height: 16cqw; }
.node.n-m .ph { width: 11.5cqw; height: 11.5cqw; }
.node.hot .ph { box-shadow: 0 0 0 3px var(--sun), 0 0 0 7px rgba(255,201,64,.25), 0 14px 30px rgba(0,0,0,.35); }
.node .nm { margin-top: 1.2cqw; font-weight: 700; font-size: clamp(12px, 2.6cqw, 17px); line-height: 1.1; }
.node.n-xl .nm { font-size: clamp(15px, 3.4cqw, 22px); }
.node .rl { font-size: clamp(10px, 1.9cqw, 12.5px); color: rgba(255,255,255,.6); text-transform: lowercase; }
.node.hot .rl { color: var(--sun); }
.scheme-coi { position: absolute; left: 0; bottom: -2%; width: 44%; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.sc-label { font-size: 12.5px; color: var(--muted); grid-column: 1 / -1; }
.sc-val { font-weight: 700; font-size: clamp(20px, 5cqw, 30px); color: var(--green); line-height: 1; }
.sc-zone { font-size: 12.5px; font-weight: 700; color: var(--green); grid-column: 1 / -1; order: 5; }
.scheme-coi .coibar { grid-column: 1 / -1; margin-top: 6px; }

/* шкала КИ */
.coibar-track { position: relative; display: flex; height: 12px; border-radius: 999px; overflow: visible; }
.coibar-track .z:first-child { border-radius: 999px 0 0 999px; } .coibar-track .z:last-of-type { border-radius: 0 999px 999px 0; }
.z-out { background: var(--blue); } .z-opt { background: var(--green); } .z-high { background: var(--amber); } .z-strong { background: var(--red); }
.coibar-marker { position: absolute; top: 50%; width: 20px; height: 20px; margin-left: -10px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 5px solid var(--ink); }
.coibar.mini .coibar-track { height: 8px; }
.coibar.mini .coibar-marker { width: 16px; height: 16px; margin-left: -8px; border-width: 4px; }
.coibar.large .coibar-track { height: 26px; }
.coibar.large .z { position: relative; }
.coibar-labels { display: flex; margin-top: 14px; }
.coibar-labels span { display: flex; flex-direction: column; padding-right: 10px; border-left: 2px solid var(--line); padding-left: 10px; }
.coibar-labels b { font-size: 16px; line-height: 1.2; }
.coibar-labels small { font-size: 14px; color: var(--muted); }
.coibar-labels span:nth-child(1) b { color: var(--blue); } .coibar-labels span:nth-child(2) b { color: var(--green); }
.coibar-labels span:nth-child(3) b { color: #B97A0C; } .coibar-labels span:nth-child(4) b { color: var(--red); }

/* ── секции ── */
section { padding: 96px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head h2, .big-h { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.02em; }
.sec-head p { font-size: 19px; color: var(--muted); margin: 14px 0 0; }
.big-h.light { color: #fff; }
.more-link { font-weight: 700; color: var(--orange); text-decoration: none; white-space: nowrap; }

/* породы */
.breeds { background: var(--paper); }
.breed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.breed { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-2); color: #fff; }
.breed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.breed:hover img { transform: scale(1.04); }
.breed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10,20,19,.92)); }
.breed-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.breed h3 { font-size: 24px; line-height: 1.1; }
.breed p { margin: 8px 0 0; font-size: 15px; color: rgba(255,255,255,.82); }

/* возможности — крупные номера вместо значков */
.features { background: var(--sand); }
.feat-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feat-list li { border-top: 3px solid var(--ink); padding: 18px 0 38px; }
.feat-list .num { display: block; font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--orange); margin-bottom: 14px; }
.feat-list h3 { font-size: 23px; line-height: 1.15; }
.feat-list p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; }

/* коэффициент */
.coi { background: #fff; }
.coi-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 46px; }
.lead-dark { font-size: 19px; color: var(--muted); margin: 20px 0 0; }
.formula { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.f-main { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; white-space: nowrap; overflow-x: auto; }
.f-main sup, .f-main sub { font-size: .55em; }
.f-note { margin-top: 10px; color: rgba(255,255,255,.65); font-size: 15px; }
.coi-examples { margin: 28px 0 0; font-size: 16.5px; color: var(--muted); }

/* как это работает */
.how { background: linear-gradient(120deg, var(--teal-2), var(--teal)); color: #fff; }
.how-steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-steps li { position: relative; padding-top: 12px; }
.step-n { display: block; font-size: 120px; line-height: .8; font-weight: 700; color: rgba(255,255,255,.2); margin-bottom: -26px; }
.how-steps h3 { position: relative; font-size: 26px; }
.how-steps p { margin: 10px 0 0; color: rgba(255,255,255,.88); font-size: 17px; }

/* статьи */
.arts { background: var(--paper); }
.arts.list { padding-top: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,27,26,.12); }
.card-cover { aspect-ratio: 16 / 9; display: block; background: var(--ink-2); position: relative; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.no-img { display: flex; align-items: flex-end; padding: 18px; }
.card-cover.v0 { background: linear-gradient(135deg, var(--orange), #FF3D6E); }
.card-cover.v1 { background: linear-gradient(135deg, var(--teal-2), #25C7B8); }
.card-cover.v2 { background: linear-gradient(135deg, #2436A8, var(--blue)); }
.cover-word { color: rgba(255,255,255,.92); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.card-body time { font-size: 13.5px; color: var(--muted); }
.card-body b { font-size: 21px; line-height: 1.2; }
.card-body .ex { color: var(--muted); font-size: 16px; }
.card-body .read { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--orange); }
.empty { font-size: 19px; color: var(--muted); }

/* вопросы */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 21px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 32px; font-weight: 400; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 17px; max-width: 40em; }

/* призыв */
.final { background: var(--orange); color: var(--ink); padding: 80px 0; }
.final-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.03; max-width: 16em; }
.final h2 .acc { color: #fff; }
.final p { margin: 12px 0 0; font-size: 19px; }

/* внутренние страницы */
.inner-head { background: var(--ink); color: #fff; padding: 72px 0 60px; position: relative; overflow: hidden; }
.inner-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0, rgba(255,106,19,.45), transparent 65%); }
.inner-head .wrap { position: relative; }
.inner-head h1 { font-size: clamp(38px, 5vw, 64px); }
.inner-head .lead { margin-bottom: 0; }
.inner-head.nf h1 { font-size: 120px; color: var(--orange); }
.post-head { background: var(--ink); color: #fff; padding: 56px 0 48px; }
.post-head h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; margin: 18px 0 12px; }
.post-head time { color: rgba(255,255,255,.6); font-size: 15px; }
.post-head .lead { margin: 18px 0 0; }
.back { color: var(--sun); text-decoration: none; font-weight: 700; font-size: 15px; }
.post-cover { margin-top: -1px; padding-top: 32px; }
.post-cover img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.prose { padding: 40px 0 80px; font-size: 19px; line-height: 1.7; }
.prose h2 { font-size: 30px; margin: 42px 0 12px; line-height: 1.15; }
.prose h3 { font-size: 23px; margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 700; }
.prose a { color: var(--teal-2); }
.prose img { border-radius: 14px; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); color: var(--muted); }
.prose code { background: var(--sand); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

/* подвал */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.foot-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.foot p { margin: 10px 0 0; font-size: 15.5px; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-nav, .foot-langs { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.foot-langs a[aria-current] { color: var(--sun); }
.foot-copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.45); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .foot-legal a { color: rgba(255,255,255,.6); }
.foot .foot-legal a:hover { color: #fff; }

/* правила и политики */
.legal .prose { padding-bottom: 36px; font-size: 17.5px; }
.legal .prose h2 { font-size: 24px; margin: 34px 0 10px; }
.legal .prose a { overflow-wrap: anywhere; }
.legal-other { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 22px 0 72px; border-top: 1px solid var(--line); }
.legal-other-h { width: 100%; font-weight: 700; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.legal-other a { color: var(--teal-2); font-weight: 700; }
.legal-list { padding: 40px 0 80px; }
.legal-list .wrap { display: flex; flex-direction: column; gap: 12px; }
.legal-item { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); }
.legal-item:hover { border-color: var(--orange); }
.legal-item b { font-size: 19px; }
.legal-item span { color: var(--muted); font-size: 14.5px; }

/* ── адаптив ── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .scheme { max-width: 620px; width: 100%; margin: 20px auto 0; }
  .breed-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-list, .cards { grid-template-columns: repeat(2, 1fr); }
  .coi-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .top-row { height: 62px; gap: 10px; }
  .logo-word { font-size: 22px; } .logo-tag { display: none; }
  .hide-sm { display: none !important; }
  .top .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .langs summary { padding: 6px 9px; }
  .hero { padding: 40px 0 110px; }
  .hero-ridge { height: 110px; }
  .lead { font-size: 17.5px; }
  .cta .btn { flex: 1 1 100%; }
  section { padding: 64px 0; }
  .breed-grid, .feat-list, .how-steps, .cards { grid-template-columns: 1fr; }
  .breed { aspect-ratio: 4 / 3; }
  .scheme-coi { position: relative; width: 100%; margin-top: 18px; bottom: auto; }
  .coibar-labels { flex-wrap: wrap; row-gap: 12px; }
  .coibar-labels span { flex: 1 1 45% !important; }
  .foot-row { grid-template-columns: 1fr; }
  .step-n { font-size: 90px; }
  .faq summary { font-size: 18.5px; }
}

/* Заголовки — без переносов по слогам: размер подобран так, чтобы самые
   длинные слова (казахские, кыргызские, узбекские) помещались целиком. */
h1, h2 { hyphens: manual; overflow-wrap: normal; }

/* публичные родословные */
.peds { background: #fff; }
.peds.list { background: var(--paper); padding-top: 40px; }
.dogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.peds.list .dogs { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .dogs, .peds.list .dogs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 681px) and (max-width: 900px) { .peds.list .dogs { grid-template-columns: repeat(3, 1fr); } }
.peds:not(.list) .dog-ph { aspect-ratio: 4 / 3; }
.dog { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.peds.list .dog { background: #fff; }
.dog:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,27,26,.12); }
.dog-ph { position: relative; aspect-ratio: 1; background: var(--ink-2); }
.dog-ph img { width: 100%; height: 100%; object-fit: cover; }
.dog-sex { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff; }
.dog-sex.M { background: var(--teal-2); } .dog-sex.F { background: #BF5D30; }
.dog-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; flex: 1; }
.dog-body b { font-size: 21px; line-height: 1.15; }
.dog-meta { color: var(--muted); font-size: 15px; }
.dog-anc { font-size: 14.5px; color: var(--muted); }
.dog-anc strong { color: var(--orange); font-size: 18px; }
.dog-body .read { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--orange); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; background: #fff; }
.pager .cur { background: var(--orange); color: #fff; }
@media (max-width: 680px) { .dogs, .peds.list .dogs { grid-template-columns: repeat(2, 1fr); gap: 12px; } .dog-body { padding: 12px; } .dog-body b { font-size: 17px; } }

/* компактный список на странице «Родословные» + поиск и фильтры */
.peds.list .dog-ph { aspect-ratio: 4 / 3; }
.peds.list .dog-body { gap: 2px; padding: 10px 12px 12px; }
.peds.list .dog-body b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peds.list .dog-meta { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peds.list .dog-anc { font-size: 12.5px; } .peds.list .dog-anc strong { font-size: 14px; }
.peds.list .dog-sex { left: 8px; top: 8px; width: 26px; height: 26px; font-size: 14px; }
.peds.list .dog:hover { transform: translateY(-2px); }
.ped-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.ped-filter input[type=search] { flex: 1 1 220px; min-width: 0; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; }
.ped-filter select { height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; max-width: 100%; }
.ped-filter .btn { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ped-reset { font-weight: 700; color: var(--orange); text-decoration: none; padding: 0 6px; }
.ped-count { margin: -6px 0 14px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 680px) { .ped-filter select { flex: 1 1 calc(50% - 8px); } .peds.list .dog-body { padding: 8px 10px 10px; } .peds.list .dog-body b { font-size: 15px; } }

/* ── меню-«бутерброд» (телефон; и компьютер, если разделы не помещаются) ── */
.btn, .langs summary, .lang, .foot-nav a, .foot-langs a { white-space: nowrap; }
.burger {
  display: none; flex: none; width: 44px; height: 44px; margin-left: -10px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.burger:hover { background: rgba(255,255,255,.1); }
.burger:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
html.nav-compact .nav { display: none; }
html.nav-compact .burger { display: inline-flex; }
@media (max-width: 1080px) { .burger { display: inline-flex; } }
/* Язык — в шапке и на телефоне (рядом с кнопкой): глобус и код, без стрелки. */
@media (max-width: 680px) {
  .top-actions { gap: 6px; }
  .top-actions .langs { margin-right: 0; }
  .langs summary { padding: 0 10px; min-height: 36px; gap: 6px; }
  .langs summary::after { display: none; }
  .langs-menu { min-width: 200px; max-width: calc(100vw - 24px); }
  .lang { padding: 11px 12px; font-size: 16px; }
}

.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(14,27,26,0); transition: background-color .22s ease; }
.drawer.open { background: rgba(14,27,26,.55); }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); display: flex; flex-direction: column;
  background: #fff; color: var(--ink); overflow-y: auto; box-shadow: 12px 0 40px rgba(0,0,0,.28);
  transform: translateX(-100%); transition: transform .22s ease;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 10px 0 20px; background: var(--ink); color: #fff; }
.drawer-head .logo-word { font-size: 22px; }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-close:hover { background: rgba(255,255,255,.12); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px; }
.drawer-nav a { display: flex; align-items: center; min-height: 50px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-nav a:hover, .drawer-nav a:focus-visible { background: #F4EEE4; outline: none; }
.drawer-sec { margin: 10px 22px 8px; font-size: 13.5px; font-weight: 700; color: #6b746f; }
.drawer-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 14px; }
.drawer-langs .dl { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border: 1.5px solid #E6DCCB; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-langs .dl.cur { border-color: var(--sun); background: #FFF4D6; font-weight: 700; }
.drawer-langs a.dl:hover { border-color: var(--orange); }
.drawer-auth { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #EFE7DA; }
.drawer-auth .btn { justify-content: center; width: 100%; }
.drawer-auth .btn.line { color: var(--ink); border-color: #E6DCCB; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-panel { transition: none; } }
/* заголовок раздела и ссылка «Все …» — на телефоне друг под другом */
@media (max-width: 680px) { .sec-head.row { flex-direction: column; align-items: flex-start; gap: 12px; } }
