/* «Мой питомник» (kn-) и страница владельца по QR-коду (ow-) */

.kn .mk-tabs { margin-top: -6px; }
.kn-box-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kn-box-h h2, .kn .mk-box > h2 { font-size: 18px; font-weight: 700; color: var(--fm-navy); }
.kn .mk-box > h2 { margin-bottom: 12px; }
.kn-box-h a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; text-decoration: none; }
.kn-h3 { font-size: 15px; font-weight: 700; color: var(--fm-ink); margin: 16px 0 8px; }
.kn-note { font-size: 14px; }
.kn-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fm-orange-soft); color: var(--fm-orange-soft-text); font-size: 14px; }
.kn-warn svg { flex: none; margin-top: 2px; }
.kn-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--fm-blue); font-size: 14px; }
.kn-red { color: #B42318; font-weight: 700; }
.kn-amber { color: var(--fm-orange-text); font-weight: 700; }
.kn .r { text-align: right; }

/* обзор */
.kn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kn-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); }
.kn-stat > span { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; background: var(--fm-sky); color: var(--fm-navy); display: grid; place-items: center; }
.kn-stat b { font-size: 26px; line-height: 1.1; color: var(--fm-navy); font-variant-numeric: tabular-nums; }
.kn-stat small { font-size: 13px; color: var(--fm-muted); line-height: 1.3; }
.kn-ov { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.kn-ov-chart { display: block; margin: 12px 0 10px; background: var(--fm-surface-3); border-radius: 12px; padding: 8px; }
.kn-ov-pups { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-ov-pups a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--fm-sky-admin); font-size: 13px; font-weight: 600; color: var(--fm-ink); text-decoration: none; }
.kn-ov-pups a.lag { background: var(--fm-orange-soft); color: var(--fm-orange-soft-text); }
.kn-ov-pups i, .kn-pup i, .kn-litter-k i, .kn-pick i { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.kn-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kn-ev { display: grid; grid-template-columns: 40px 4px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-ev:last-child { border-bottom: 0; }
.kn-ev-date { display: grid; text-align: center; font-size: 11px; color: var(--fm-muted); line-height: 1.1; text-transform: uppercase; }
.kn-ev-date b { font-size: 18px; color: var(--fm-navy); }
.kn-ev > i { width: 4px; align-self: stretch; border-radius: 2px; }
.kn-ev a { display: grid; text-decoration: none; color: var(--fm-ink); min-width: 0; }
.kn-ev a b { font-size: 14px; font-weight: 600; }
.kn-ev a span { font-size: 13px; color: var(--fm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-ev small { font-size: 12px; color: var(--fm-muted); white-space: nowrap; }
.kn-tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--fm-ink); }
.kn-tile small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fm-orange-text); }
.kn-tile b { font-size: 20px; color: var(--fm-navy); }
.kn-tile .muted { font-size: 14px; }

/* животные */
.kn-animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kn-animal { padding: 18px; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-lg); }
.kn-animal-top { display: flex; gap: 14px; align-items: center; }
.kn-animal-top > div { flex: 1; display: grid; min-width: 0; }
.kn-animal-top b { font-size: 19px; color: var(--fm-navy); }
.kn-animal-top div span { font-size: 13px; color: var(--fm-muted); }
.kn-animal dl { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 12px; margin: 0; }
.kn-animal dt, .kn-dl dt { font-size: 12px; color: var(--fm-muted); }
.kn-animal dd, .kn-dl dd { margin: 0; font-size: 14px; font-weight: 600; }
.kn-titles { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-card-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kn-profile-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.kn-profile-top h2 { font-size: 24px; color: var(--fm-navy); }
.kn-profile-top .kn-titles { margin-top: 8px; }
.kn-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 0; border-top: 1px solid var(--fm-line-soft); }
.kn-dl dd small { font-weight: 400; }
.kn-food { display: flex; flex-direction: column; gap: 14px; }
.kn-food-p { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--fm-ink); padding: 10px; border-radius: 12px; background: var(--fm-surface-3); }
.kn-food-p:hover { background: var(--fm-sky); color: var(--fm-ink); }
.kn-food-p > span { display: grid; gap: 2px; }
.kn-food-p small { font-size: 12px; color: var(--fm-orange-text); font-weight: 600; }
.kn-food-p .muted { font-size: 13px; }
.kn-food-n { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kn-food-n b { font-size: 26px; color: var(--fm-navy); }
.kn-food-n span { color: var(--fm-muted); font-size: 14px; }
.kn-food .btn { align-self: flex-start; }
.kn-care { list-style: none; margin: 0; padding: 0; }
.kn-care li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-care li:last-child { border-bottom: 0; }
.kn-care li > span { width: 36px; height: 36px; border-radius: 10px; background: var(--fm-green-soft); color: var(--fm-green-text); display: grid; place-items: center; }
.kn-care div { display: grid; }
.kn-care b { font-size: 14px; font-weight: 600; }
.kn-care small { font-size: 12px; color: var(--fm-muted); }
.kn-care em { font-style: normal; font-size: 13px; color: var(--fm-muted); white-space: nowrap; }
.kn-care em.soon { color: var(--fm-orange-text); font-weight: 700; }
.kn-mini { list-style: none; margin: 0; padding: 0; }
.kn-mini li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-mini li:last-child { border-bottom: 0; }
.kn-mini a { display: grid; gap: 2px; text-decoration: none; color: var(--fm-ink); min-width: 0; }
.kn-mini a b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.kn-mini a span { font-size: 13px; color: var(--fm-muted); }

/* помёты */
.kn-litters { display: flex; flex-direction: column; gap: 12px; }
.kn-litter { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); }
.kn-litter > svg { color: var(--fm-muted); flex: none; }
.kn-letter { width: 56px; height: 56px; border-radius: 16px; background: var(--fm-navy); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.kn-litter.wait .kn-letter { background: #EEE8F7; color: #4A3378; border: 2px dashed #B49BD9; }
.kn-litter-b { flex: 1; display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.kn-litter-h { display: flex; gap: 10px; align-items: center; }
.kn-litter-h b { font-size: 17px; color: var(--fm-navy); }
.kn-litter-k { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.kn-litter-k span { margin-left: 6px; color: var(--fm-muted); font-size: 13px; }
.kn-litter .mk-bar { margin-top: 6px; max-width: 360px; }
.kn-litter-top { display: flex; flex-direction: column; gap: 20px; }
.kn-parents { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kn-parent { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fm-ink); padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--fm-surface-3); }
.kn-parent > span { display: grid; }
.kn-parent small { font-size: 12px; color: var(--fm-muted); }
.kn-parent b { font-size: 16px; color: var(--fm-navy); }
.kn-parent .muted { font-size: 12px; }
.kn-x { font-size: 22px; color: var(--fm-muted); }
.kn-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.kn-tl li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding-top: 22px; font-size: 13px; }
.kn-tl li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--fm-line); }
.kn-tl li:first-child::before { left: 50%; }
.kn-tl li:last-child::before { right: 50%; }
.kn-tl li.done::before, .kn-tl li.now::before { background: var(--fm-ok); }
.kn-tl i { position: absolute; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--fm-line-input); }
.kn-tl li.done i { background: var(--fm-ok); border-color: var(--fm-ok); }
.kn-tl li.now i { border-color: var(--fm-orange); background: var(--fm-orange-soft); }
.kn-tl b { font-weight: 600; }
.kn-tl small { color: var(--fm-muted); font-size: 12px; }
.kn-wait { display: flex; flex-direction: column; gap: 10px; }
.kn-wait h2 { font-size: 20px; color: var(--fm-navy); margin-bottom: 4px; }
.kn-wait .mk-bar { height: 12px; border-radius: 6px; }
.kn-wait-f { display: flex; justify-content: space-between; font-size: 13px; color: var(--fm-muted); }
.kn-pups { padding: 20px; overflow-x: auto; }
.kn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kn-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--fm-muted); padding: 8px 10px; border-bottom: 1px solid var(--fm-line); white-space: nowrap; }
.kn-table td { padding: 10px; border-bottom: 1px solid var(--fm-line-soft); vertical-align: middle; }
.kn-table tr:last-child td { border-bottom: 0; }
.kn-table td.num, .kn-table td.r { white-space: nowrap; }
.kn-table tr.low td { background: #FFF8F2; }
.kn-pup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fm-ink); }
.kn-pup b { font-weight: 600; }
.kn-pup small { font-size: 12px; color: var(--fm-muted); }
.kn-low { color: var(--fm-orange-text); vertical-align: -2px; }
.kn-pup-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.kn-pup-top h2 { font-size: 24px; color: var(--fm-navy); }
.kn-pup-top p { margin-bottom: 6px; }
.kn-collar { width: 72px; height: 72px; border-radius: 50%; background: #E7C48D; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--c); flex: none; }
.kn-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kn-kpis div { background: var(--fm-surface-3); border-radius: 12px; padding: 10px 12px; display: grid; }
.kn-kpis small { font-size: 12px; color: var(--fm-muted); }
.kn-kpis b { font-size: 20px; color: var(--fm-navy); font-variant-numeric: tabular-nums; }
.kn-side-col { display: flex; flex-direction: column; gap: 16px; }
.kn-owner { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.kn-owner div { display: grid; }
.kn-owner .muted { font-size: 13px; }
.kn-sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.kn-sched li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--fm-line); background: #fff; }
.kn-sched li svg { color: var(--fm-blue); }
.kn-sched li.done { background: var(--fm-green-soft); border-color: transparent; }
.kn-sched li.done svg { color: var(--fm-ok); }
.kn-sched b { font-size: 14px; font-weight: 600; }
.kn-sched span { font-size: 12px; color: var(--fm-muted); }
.kn-sched small { grid-column: 2 / -1; font-size: 12px; color: var(--fm-muted); }

/* календарь */
.kn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--fm-ink-2); }
.kn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kn-legend i { width: 10px; height: 10px; border-radius: 3px; }
.kn-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.kn-cal { padding: 16px; }
.kn-cal header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kn-cal header h2 { font-size: 20px; color: var(--fm-navy); min-width: 170px; text-align: center; }
.kn-cal header .btn { margin-left: auto; }
.kn-cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--fm-line-soft); border-left: 1px solid var(--fm-line-soft); }
.kn-wd { font-size: 12px; font-weight: 600; color: var(--fm-muted); padding: 6px 8px; border-right: 1px solid var(--fm-line-soft); border-bottom: 1px solid var(--fm-line-soft); background: var(--fm-surface-3); }
.kn-day { min-height: 104px; padding: 6px; border-right: 1px solid var(--fm-line-soft); border-bottom: 1px solid var(--fm-line-soft); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kn-day.out { background: var(--fm-surface-3); }
.kn-day > b { font-size: 13px; font-weight: 600; color: var(--fm-ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.kn-day.past > b { color: var(--fm-muted); font-weight: 400; }
.kn-day.today { background: #FFF8F2; }
.kn-day.today > b { background: var(--fm-orange); color: #fff; }
.kn-day small { font-size: 11px; color: var(--fm-muted); padding-left: 4px; }
.kn-chip { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--fm-ink); text-decoration: none; font-size: 11.5px; line-height: 1.3; min-width: 0; }
.kn-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.kn-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-chip:hover { background: color-mix(in srgb, var(--c) 22%, #fff); color: var(--fm-ink); }
.kn-day.past .kn-chip { opacity: .6; }
.kn-soon ul { list-style: none; margin: 0; padding: 0; }
.kn-soon li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-soon li:last-child { border-bottom: 0; }
.kn-soon li > div { display: grid; gap: 1px; }
.kn-soon a { text-decoration: none; color: var(--fm-ink); }
.kn-soon a b { font-size: 14px; font-weight: 600; }
.kn-soon span { font-size: 13px; color: var(--fm-muted); }
.kn-soon small { font-size: 12px; font-weight: 600; }
.kn-soon li.done a b { text-decoration: line-through; color: var(--fm-muted); }
.kn-tick input { width: 20px; height: 20px; accent-color: var(--fm-ok); margin-top: 2px; }
.kn-mate-prev { background: var(--fm-surface-3); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.kn-mate-prev ul { margin: 6px 0 0; padding-left: 18px; }

/* развитие */
.kn-chart { display: block; width: 100%; height: auto; }
.kn-chart.compact { height: 130px; }
.kn-chart-box { margin-top: 8px; }
.kn-norm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fm-muted); }
.kn-norm i { width: 18px; height: 10px; border-radius: 3px; background: rgba(46, 139, 87, .18); }
.kn-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-pick a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--fm-line-input-2); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--fm-ink); text-decoration: none; }
.kn-pick i { background: var(--c); }
.kn-pick a.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.kn-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kn-weigh { display: flex; flex-direction: column; }
.kn-weigh label { display: grid; grid-template-columns: minmax(0, 1fr) 130px 70px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-weigh .kn-pup { display: grid; grid-template-columns: 12px auto; column-gap: 8px; }
.kn-weigh .kn-pup small { grid-column: 2; }
.kn-gin { position: relative; display: inline-flex; align-items: center; }
.kn-gin input { width: 100%; height: 38px; border: 1px solid var(--fm-line-input); border-radius: 8px; padding: 0 30px 0 10px; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.kn-gin em { position: absolute; right: 10px; font-style: normal; font-size: 13px; color: var(--fm-muted); pointer-events: none; }
.kn-delta { font-size: 13px; color: var(--fm-green-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.kn-weigh-f { padding-top: 14px; }
.kn-hist { list-style: none; margin: 0 0 12px; padding: 0 0 0 18px; border-left: 2px solid var(--fm-line); display: flex; flex-direction: column; gap: 14px; }
.kn-hist li { position: relative; display: grid; gap: 2px; font-size: 14px; }
.kn-hist li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--fm-blue); box-shadow: 0 0 0 3px #fff; }
.kn-hist b { color: var(--fm-navy); }
.kn-hist li + li::before { background: var(--fm-line-input); }

/* калькулятор */
.kn-calc { padding: 8px 20px 18px; }
.kn-crow { display: grid; grid-template-columns: minmax(180px, 1.4fr) 90px 100px minmax(200px, 1.6fr) 90px 44px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fm-line-soft); }
.kn-crow.head { font-size: 12px; font-weight: 600; color: var(--fm-muted); padding: 10px 0 6px; }
.kn-crow label { display: grid; gap: 2px; min-width: 0; }
.kn-crow select, .kn-crow input { height: 40px; border: 1px solid var(--fm-line-input); border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; width: 100%; min-width: 0; }
.kn-crow small { font-size: 12px; color: var(--fm-muted); }
.kn-crow b { font-size: 16px; color: var(--fm-navy); }
.kn-crow .icon-btn { width: 40px; height: 40px; color: var(--fm-muted); }
.kn-cl { display: none; font-size: 12px; color: var(--fm-muted); }
.kn-calc #addrow { margin-top: 14px; }
.kn-res-top { display: flex; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 14px; }
.kn-res-top div { display: grid; }
.kn-res-top small { font-size: 13px; color: var(--fm-muted); }
.kn-res-top b { font-size: 28px; color: var(--fm-navy); font-variant-numeric: tabular-nums; }
.kn-res-top .btn { margin-left: auto; }
.kn-food-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fm-ink); }
.kn-food-row > span { display: grid; }
.kn-food-row small { font-size: 12px; color: var(--fm-muted); }

/* закупки */
.kn-purch-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.kn-until, .kn-order { display: flex; flex-direction: column; gap: 6px; }
.kn-until small, .kn-order small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fm-muted); }
.kn-until b { font-size: 30px; color: var(--fm-navy); }
.kn-until.warn { background: #FFF8F2; border-color: #F3C9A6; }
.kn-until.warn b { color: var(--fm-orange-text); }
.kn-until > span { color: var(--fm-ink-2); font-size: 14px; }
.kn-until .check { margin-top: 6px; font-size: 14px; min-height: 32px; }
.kn-order b { font-size: 24px; color: var(--fm-navy); }
.kn-order-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kn-order-b .btn[disabled] { opacity: .5; cursor: not-allowed; }
.kn-ptable { padding: 8px 16px; overflow-x: auto; }
.kn-ptable .kn-gin { width: 110px; }
.kn-ptable .kn-food-row b { font-weight: 600; }

/* документы */
.kn-doc-bar { display: flex; flex-direction: column; gap: 12px; }
.kn-doc-f { display: flex; gap: 10px; flex-wrap: wrap; }
.kn-doc-f .select { max-width: 280px; }
.kn-doc-f form { flex: 1; min-width: 220px; max-width: 420px; }
.kn-docs { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.kn-docs li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--fm-line-soft); }
.kn-docs li:last-child { border-bottom: 0; }
.kn-doc-ic { width: 48px; height: 52px; border-radius: 8px; background: var(--fm-sky); color: var(--fm-blue); display: grid; place-items: center; align-content: center; gap: 0; }
.kn-doc-ic.pdf { background: #FDECEC; color: #B42318; }
.kn-doc-ic small { font-size: 10px; font-weight: 700; }
.kn-doc-t { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 15px; color: var(--fm-ink); display: block; }
.kn-doc-t:hover { color: var(--fm-navy); text-decoration: underline; }
.kn-docs .muted { font-size: 13px; }
.kn-docs .pill { font-size: 11px; padding: 2px 8px; vertical-align: 1px; }
.kn-doc-a { display: flex; gap: 4px; align-items: center; }
.kn-paper { background: #FFFDF7; border: 1px solid #E7DFC8; border-radius: 6px; padding: 24px 28px; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #E7DFC8; display: flex; flex-direction: column; gap: 16px; }
.kn-paper header { text-align: center; display: grid; gap: 6px; }
.kn-paper header span { font-size: 11px; letter-spacing: .12em; color: #8A6D0B; font-weight: 700; }
.kn-paper header b { font-size: 20px; color: #3D2F0B; font-family: Georgia, serif; }
.kn-paper dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
.kn-paper dt { font-size: 11px; color: #8A7A55; text-transform: uppercase; letter-spacing: .05em; }
.kn-paper dd { margin: 0; font-family: Georgia, serif; font-size: 15px; border-bottom: 1px dotted #CBBF9E; padding-bottom: 2px; }
.kn-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kn-tree div { border: 1px solid #E7DFC8; border-radius: 6px; padding: 8px 12px; display: grid; font-size: 13px; }
.kn-tree small { color: #8A7A55; font-size: 11px; text-transform: uppercase; }
.kn-tree b { font-family: Georgia, serif; }
.kn-paper footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8A7A55; }
.kn-stamp { border: 2px solid rgba(27, 108, 168, .5); color: rgba(27, 108, 168, .7); border-radius: 50%; padding: 14px 10px; font-size: 9px; font-weight: 700; transform: rotate(-12deg); }
.kn-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed var(--fm-line-input); border-radius: 12px; color: var(--fm-muted); cursor: pointer; text-align: center; }
.kn-drop:hover { border-color: var(--fm-blue); background: var(--fm-surface-3); }
.kn-drop b { color: var(--fm-navy); }
.kn-drop span { font-size: 13px; }
.kn-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* карточка для владельца */
.kn-hand { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.kn-handover { padding: 28px; border-radius: var(--r-lg); }
.kn-ho-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 3px solid var(--fm-navy); }
.kn-ho-h > div { display: flex; gap: 16px; align-items: center; }
.kn-ho-h > div > span { display: grid; gap: 2px; }
.kn-ho-h small { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fm-orange-text); }
.kn-ho-h h2 { font-size: 30px; color: var(--fm-navy); line-height: 1.1; }
.kn-ho-h span span { color: var(--fm-muted); font-size: 14px; }
.kn-qr { flex: none; border-radius: 6px; }
.kn-ho-food { display: flex; gap: 14px; align-items: center; background: var(--fm-surface-3); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.kn-scheme { margin-bottom: 4px; }
.kn-ho-f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--fm-line); font-size: 13px; }
.kn-ho-f div { display: grid; gap: 2px; }
.kn-ho-f small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-muted); }
.kn-ho-f b { font-size: 15px; color: var(--fm-navy); }
.kn-ho-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.kn-ho-side .mk-box { display: flex; flex-direction: column; gap: 8px; }
.kn-ho-side .mk-box h2 { margin-bottom: 4px; }
.kn-ho-kit > svg { color: var(--fm-orange); }
.kn-ho-kit p { font-size: 14px; }

@media (max-width: 1100px) {
  .kn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-ov, .kn-card-grid, .kn-two, .kn-cal-wrap, .kn-hand, .kn-purch-top { grid-template-columns: minmax(0, 1fr); }
  .kn-ho-side { position: static; }
  .kn-crow { grid-template-columns: minmax(150px, 1.4fr) 70px 80px minmax(160px, 1.6fr) 80px 40px; }
}
@media (max-width: 900px) {
  .kn .mk-head-acts { width: 100%; }
  .kn .mk-head-acts .btn { flex: 1 1 auto; }
  .kn-stat { padding: 12px 14px; column-gap: 10px; }
  .kn-stat > span { width: 36px; height: 36px; }
  .kn-stat b { font-size: 22px; }
  .kn-animal dl { grid-template-columns: repeat(2, auto); }
  .kn-dl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kn-litter { padding: 14px; gap: 12px; }
  .kn-letter { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .kn-tl { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .kn-tl li { grid-template-columns: 24px auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 10px; padding: 6px 0; }
  .kn-tl li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 3px; height: auto; }
  .kn-tl li:first-child::before { top: 50%; left: 7px; }
  .kn-tl li:last-child::before { bottom: 50%; right: auto; }
  .kn-tl i { position: relative; top: auto; }
  .kn-tl small { justify-self: end; }
  .kn-pups { padding: 14px; }
  .kn-pups .kn-table th:nth-child(2), .kn-pups .kn-table td:nth-child(2), .kn-pups .kn-table th:nth-child(4), .kn-pups .kn-table td:nth-child(4),
  .kn-pups .kn-table th:nth-child(6), .kn-pups .kn-table td:nth-child(6) { display: none; }
  .kn-pups .kn-table .btn span, .kn-pups .kn-table td:last-child .btn { font-size: 0; gap: 0; padding: 0 10px; }
  .kn-pup small { display: none; }
  .kn-kpis b { font-size: 17px; }
  .kn-cal { padding: 10px 6px; }
  .kn-cal header h2 { min-width: 0; font-size: 17px; }
  .kn-day { min-height: 54px; padding: 3px; }
  .kn-day > b { font-size: 12px; width: 22px; height: 22px; }
  .kn-chip { padding: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
  .kn-chip i, .kn-chip span { display: none; }
  .kn-day small { display: none; }
  .kn-day { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .kn-day > b { flex-basis: 100%; }
  .kn-weigh label { grid-template-columns: minmax(0, 1fr) 110px 56px; }
  .kn-crow.head { display: none; }
  .kn-crow { grid-template-columns: 1fr 1fr; padding: 14px 0; }
  .kn-crow label:first-child, .kn-crow label:nth-child(4) { grid-column: 1 / -1; }
  .kn-cl { display: block; }
  .kn-crow b { text-align: left; }
  .kn-crow .icon-btn { justify-self: end; }
  .kn-res-top b { font-size: 22px; }
  .kn-res-top .btn { margin-left: 0; width: 100%; }
  .kn-ptable { padding: 4px 14px; }
  .kn-ptable thead { display: none; }
  .kn-ptable table, .kn-ptable tbody { display: block; }
  .kn-ptable tr { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--fm-line-soft); }
  .kn-ptable tr:last-child { border-bottom: 0; }
  .kn-ptable td { display: block; padding: 0; border: 0 !important; text-align: left !important; white-space: normal !important; }
  .kn-ptable td:nth-child(1) { grid-column: 1 / -1; }
  .kn-ptable td:nth-child(2), .kn-ptable td:nth-child(6) { display: none; }
  .kn-ptable td:nth-child(5) { grid-column: 1 / -1; font-size: 13px; color: var(--fm-muted); }
  .kn-ptable td:nth-child(5)::before { content: "К заказу: "; }
  .kn-ptable .kn-gin { width: 100px; }
  .kn .kn-crow b.r { text-align: left; }
  .kn-crow b::before { content: "В сутки на голову: "; font-size: 13px; font-weight: 400; color: var(--fm-muted); }
  .kn-order-b .btn { flex: 1 1 100%; }
  .kn-docs li { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .kn-doc-ic { width: 40px; height: 44px; }
  .kn-doc-a { grid-column: 2; }
  .kn-doc-f .select { max-width: none; width: 100%; }
  .kn-paper { padding: 16px; }
  .kn-paper dl { grid-template-columns: minmax(0, 1fr); }
  .kn-handover { padding: 18px; }
  .kn-scheme th, .kn-scheme td, .ow-food .kn-table th, .ow-food .kn-table td { padding: 8px 5px; font-size: 13px; }
  .kn-ho-h { flex-direction: column; }
  .kn-ho-h h2 { font-size: 24px; }
  .kn-ho-food { flex-direction: column; align-items: flex-start; }
  .kn-ho-f { grid-template-columns: minmax(0, 1fr); }
}

/* печать карточки владельца: только сама карточка */
@media print {
  body:has(.kn-handover) .mk-top, body:has(.kn-handover) .mk-side, body:has(.kn-handover) .mk-foot, body:has(.kn-handover) .mk-tabbar,
  body:has(.kn-handover) .mk-head, body:has(.kn-handover) .mk-tabs, body:has(.kn-handover) .kn-noprint, body:has(.kn-handover) #fa-root,
  body:has(.kn-handover) .fa-launch { display: none !important; }
  body:has(.kn-handover) { background: #fff; }
  body:has(.kn-handover) .mk-body { display: block; }
  .kn-hand { display: block; }
  .kn-handover { border: 0; padding: 0; }
}

/* ---------------------------------------------------------------- страница владельца по QR-коду (ow-) */
.ow { background: #fff; }
.ow-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ow-top { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--fm-muted); }
.ow-top img { height: 40px; width: auto; }
.ow-hero { background: linear-gradient(120deg, var(--fm-navy), #1B6CA8 70%, #5FA8D3); color: #fff; }
.ow-hero .ow-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.ow-hero-t small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-on-navy-2); }
.ow-hero h1 { font-size: 52px; line-height: 1.05; margin: 10px 0 16px; letter-spacing: -.02em; }
.ow-hero p { font-size: 18px; color: var(--fm-on-navy); max-width: 560px; }
.ow-hero-b { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ow-photo { position: relative; justify-self: center; display: grid; place-items: center; }
.ow-photo::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ow-photo .mk-pet { position: relative; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); }
.ow-collar { position: absolute; bottom: -6px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--fm-navy); font-size: 13px; font-weight: 600; box-shadow: inset 0 -3px 0 var(--c); }
.ow-main { display: flex; flex-direction: column; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
.ow-h2 { font-size: 28px; color: var(--fm-navy); margin-bottom: 16px; }
.ow-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ow-tip { padding: 18px; border-radius: var(--r-lg); background: var(--fm-sky); display: flex; flex-direction: column; gap: 6px; }
.ow-tip svg { color: var(--fm-orange); }
.ow-tip b { font-size: 16px; color: var(--fm-navy); }
.ow-tip p { font-size: 14px; color: var(--fm-ink-2); }
.ow-food { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ow-food .muted { margin-bottom: 12px; }
.ow-prod { padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ow-prod img { align-self: center; }
.ow-prod small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-orange-text); }
.ow-prod b { font-size: 18px; color: var(--fm-navy); }
.ow-prod p { font-size: 14px; }
.ow-coupon { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--r-xl); background: var(--fm-orange-soft); border: 2px dashed #E9A574; }
.ow-coupon small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-orange-text); }
.ow-coupon h2 { font-size: 28px; color: var(--fm-orange-soft-text); margin: 4px 0 6px; }
.ow-coupon p { color: var(--fm-orange-soft-text); max-width: 520px; }
.ow-code { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 10px 10px 18px; }
.ow-code b { font-size: 22px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--fm-ink); }
.ow-sched { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ow-sched span { display: none; }
.ow-breeder { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 22px; }
.ow-breeder > div { display: grid; gap: 2px; }
.ow-breeder small { font-size: 12px; color: var(--fm-muted); text-transform: uppercase; letter-spacing: .05em; }
.ow-breeder b { font-size: 18px; color: var(--fm-navy); }
.ow-contacts { display: flex; flex-direction: column; gap: 4px; }
.ow-contacts a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.ow-breeder > p { grid-column: 2 / -1; font-size: 14px; }
@media (max-width: 900px) {
  .ow-in, .ow-top { padding-left: 16px; padding-right: 16px; }
  .ow-top span { font-size: 12px; }
  .ow-hero .ow-in { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .ow-photo { order: -1; }
  .ow-photo::before { width: 190px; height: 190px; }
  .ow-hero h1 { font-size: 36px; }
  .ow-hero p { font-size: 16px; }
  .ow-hero-b .btn { flex: 1 1 auto; }
  .ow-tips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ow-food { grid-template-columns: minmax(0, 1fr); }
  .ow-coupon { padding: 20px; }
  .ow-coupon h2 { font-size: 22px; }
  .ow-code { width: 100%; justify-content: space-between; }
  .ow-code b { font-size: 18px; }
  .ow-breeder { grid-template-columns: auto minmax(0, 1fr); }
  .ow-contacts, .ow-breeder > p { grid-column: 1 / -1; }
  .ow-h2 { font-size: 22px; }
}
/* фото «Тихое место» с farminashop.ru над советами */
.ow-ph { aspect-ratio: 16 / 5; border-radius: 18px; margin-bottom: 16px; }
@media (max-width: 700px) { .ow-ph { aspect-ratio: 16 / 9; } }
