:root {
  --primary: #6C5CE7;
  --primary-dark: #4A3FB8;
  --lavender: #EEE9F8;
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --text: #1F2330;
  --text-2: #5F6470;
  --border: #E8EBF3;
  --good: #00B894;
  --warn: #F39C12;
  --warn-bg: #FFF6E0;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(31, 35, 48, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px 48px; }
.section-inner { margin-top: 40px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 680px; }
.muted { color: var(--text-2); font-size: 14px; }

/* Шапка */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.topnav { display: flex; gap: 16px; align-items: center; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.topnav .lang { color: var(--text-2); font-weight: 500; }

/* Кнопки и чипы */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--primary-dark); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--lavender); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--lavender); color: var(--primary-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip:hover { background: #e2dbf5; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: #8a5a00; font-size: 12px; font-weight: 700; }

/* Главная */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; padding: 48px 16px; }
.hero-img { width: 100%; height: auto; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.collection-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.collection-card strong { font-size: 17px; }
.collection-card span { color: var(--text-2); font-size: 14px; }
.collection-card:hover { border-color: var(--primary); }
.link-more { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }

/* Карточки пород */
.breed-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.breed-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); height: 100%; }
.breed-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.breed-card img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; padding: 2px; border: 2px solid #d9d2f3; background: var(--lavender); }
.breed-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.breed-card strong { font-size: 17px; }
.facts-line { font-size: 13px; font-weight: 600; color: var(--text-2); }
.summary { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.breed-card .tag { align-self: flex-start; margin-top: 4px; }
.search { width: 100%; max-width: 480px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; margin: 8px 0; }
.search:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Страница породы */
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }
.breed-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.breed-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; padding: 4px; border: 3px solid #d9d2f3; background: var(--lavender); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 24px 0; padding: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.facts div { padding: 16px; text-align: center; border-right: 1px solid var(--border); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 13px; color: var(--text-2); }
.facts dd { margin: 0; font-size: 20px; font-weight: 800; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--lavender); margin: 8px 0 32px; }
.cta-card p { margin: 0; max-width: 560px; font-weight: 600; }
.list-section { margin: 24px 0; }
.list-section ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list-section li { position: relative; padding: 12px 16px 12px 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.list-section li::before { position: absolute; left: 16px; top: 12px; font-weight: 900; }
.pros li::before { content: "✓"; color: var(--good); }
.cons li { background: var(--warn-bg); border-color: #F0E1B8; }
.cons li::before { content: "!"; color: var(--warn); left: 20px; }
.tips li::before { content: "→"; color: var(--primary); }
.traits { margin-top: 40px; }
.trait-group { margin: 20px 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trait { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.trait:first-of-type { border-top: 0; }
.meter { display: inline-flex; gap: 4px; flex: none; }
.meter i { width: 22px; height: 8px; border-radius: 4px; background: var(--border); }
.meter i.on { background: var(--primary); }

/* Баннер приложения и подвал */
.app-banner { background: var(--text); color: #fff; margin-top: 32px; }
.app-banner-row { display: flex; gap: 20px; align-items: center; padding: 40px 16px; }
.app-banner img { border-radius: 16px; flex: none; }
.app-banner h2 { color: #fff; }
.app-banner p { margin: 0 0 8px; color: rgba(255, 255, 255, .8); max-width: 640px; }
.badge-soon { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff !important; font-size: 14px; font-weight: 600; }
.footer { padding: 24px 0 40px; color: var(--text-2); font-size: 14px; }

@media (max-width: 720px) {
  .hero-row { grid-template-columns: 1fr; padding: 32px 16px; }
  .hero-img { max-width: 280px; margin: 0 auto; order: -1; }
  .breed-head { grid-template-columns: 1fr; }
  .breed-avatar { width: 128px; height: 128px; }
  .breed-grid { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--border); }
  .facts div:last-child { border-bottom: 0; }
  .app-banner-row { flex-direction: column; align-items: flex-start; }
  .topnav { gap: 12px; }
}

/* Иконки шкал и разделов */
.icon { flex: none; object-fit: contain; }
.trait-name { display: inline-flex; align-items: center; gap: 12px; }
.with-icon { display: flex; align-items: center; gap: 12px; }

/* Text pages (privacy policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
