/* ============ Поводок — дизайн-система ============ */
/* Палитра из логотипа: фиолетовый #7d5bf7, индиго #27276c, лаванда */

:root {
  --violet: #7d5bf7;
  --violet-deep: #6a45f0;
  --violet-soft: #9d84f9;
  --indigo: #27276c;
  --ink: #11141f;
  --muted: #625f78;
  --faint: #918da6;
  --lav-1: #f5f3fd;
  --lav-2: #e7e3fc;
  --lav-3: #d9d2fa;
  --bg: #fdfdff;
  --card: #ffffff;
  --line: #eae7f6;
  --amber-bg: #fff6e8;
  --amber-ink: #8a5b00;
  --rose-bg: #fdeef2;
  --rose-ink: #a52a4a;
  --green-bg: #eaf7ef;
  --green-ink: #1d7a45;

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(39, 39, 108, 0.05), 0 2px 8px rgba(125, 91, 247, 0.06);
  --shadow-md: 0 2px 4px rgba(39, 39, 108, 0.05), 0 10px 28px rgba(125, 91, 247, 0.10);
  --shadow-lg: 0 4px 8px rgba(39, 39, 108, 0.06), 0 18px 48px rgba(125, 91, 247, 0.14);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 140ms;
  --t-med: 200ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--violet-deep); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { margin: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--lav-1); text-decoration: none; color: var(--violet-deep); }
}
.nav a.active { background: var(--lav-2); color: var(--indigo); }

.header-search { margin-left: auto; }
.header-search form { display: flex; }
.header-search input {
  width: 210px;
  padding: 9px 16px 9px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--lav-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23625f78' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center no-repeat;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), width var(--t-med) var(--ease-out);
}
.header-search input:focus {
  outline: none;
  border-color: var(--violet-soft);
  background-color: #fff;
  width: 260px;
}

.burger {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}

@media (max-width: 860px) {
  .header-search { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav.open { display: flex; }
  .burger { display: block; }
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 18px 0 0;
  font-size: 0.86rem;
  color: var(--faint);
}
.crumbs a { color: var(--muted); }
.crumbs .sep { color: var(--lav-3); }

/* ---------- Кнопки и чипы ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 18px rgba(125, 91, 247, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--violet-deep); box-shadow: 0 8px 22px rgba(125, 91, 247, 0.42); }
}
.btn-ghost {
  background: var(--lav-1);
  color: var(--indigo);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--lav-2); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--violet-soft); background: var(--lav-1); text-decoration: none; }
}
.chip.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

/* ---------- Карточки ---------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  color: var(--ink);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--lav-3);
  }
}
a.card:active { transform: translateY(-1px) scale(0.99); }

.card h3 { margin: 0 0 6px; }
.card .muted { margin: 0; font-size: 0.92rem; }

/* Аватар-заглушка с градиентом по hue */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 120% at 20% 0%, hsl(var(--h, 255) 84% 92%) 0%, hsl(var(--h, 255) 72% 82%) 100%);
  color: hsl(var(--h, 255) 55% 32%);
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
}
.avatar-lg { width: 100%; aspect-ratio: 16/9; font-size: 3rem; border-radius: var(--r-md) var(--r-md) 0 0; }
.avatar-md { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 18px; }
.avatar-sm { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 13px; }
.avatar-round { border-radius: 50%; }

.card-cover { padding: 0; overflow: hidden; }
.card-cover .card-body { padding: 16px 20px 20px; }

/* Рейтинг */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.stars .val { color: var(--amber-ink); font-weight: 700; }
.stars svg { color: #f2a91e; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 10%, var(--lav-2) 0%, transparent 60%),
    radial-gradient(50% 80% at 10% 90%, var(--lav-2) 0%, transparent 55%),
    var(--lav-1);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  margin-top: 20px;
}
.hero h1 { max-width: 640px; }
.hero .lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-paw {
  position: absolute;
  right: -40px;
  bottom: -60px;
  line-height: 1;
  color: var(--violet);
  opacity: 0.08;
  transform: rotate(-14deg);
  pointer-events: none;
}
.hero-paw svg { display: block; }

.hero-search { max-width: 560px; }
.hero-search form {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  padding: 8px 10px 8px 18px;
}
.hero-search input:focus { outline: none; }
.hero-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-chips .lbl { font-size: 0.86rem; color: var(--faint); }

/* ---------- Контентная страница ---------- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
}

.prose { max-width: 72ch; }
.prose h2 {
  margin-top: 1.8em;
  padding-top: 0.4em;
}
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }

.callout {
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 0 0 24px;
}
.callout .ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-tldr { background: var(--lav-1); border: 1px solid var(--lav-2); }
.callout-tldr .ttl { color: var(--indigo); }
.callout-urgent { background: var(--rose-bg); border: 1px solid #f7d5de; }
.callout-urgent .ttl { color: var(--rose-ink); }
.callout-ok { background: var(--green-bg); border: 1px solid #cdeeda; }
.callout-ok .ttl { color: var(--green-ink); }

/* Таблицы */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
}
table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: var(--lav-1);
  color: var(--indigo);
  font-weight: 600;
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: #fbfaff; }

/* Характеристики породы */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.fact .k { font-size: 0.78rem; color: var(--faint); margin-bottom: 2px; }
.fact .v { font-weight: 600; font-size: 0.95rem; }

/* Плюсы/минусы */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
@media (max-width: 620px) { .pros-cons { grid-template-columns: 1fr; } }
.pc {
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.pc.pros { background: var(--green-bg); }
.pc.cons { background: var(--rose-bg); }
.pc h3 { margin-bottom: 10px; }
.pc.pros h3 { color: var(--green-ink); }
.pc.cons h3 { color: var(--rose-ink); }
.pc ul { margin: 0; padding-left: 1.2em; }
.pc li { margin-bottom: 6px; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background-color var(--t-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform var(--t-med) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { background: var(--lav-1); }
}
.faq .faq-a { padding: 0 20px 16px; color: var(--muted); }

/* E-E-A-T блок */
.eeat {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  background: var(--lav-1);
  border: 1px solid var(--lav-2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.92rem;
}
.eeat .person { display: flex; align-items: center; gap: 10px; }
.eeat .person a { font-weight: 600; color: var(--indigo); }
.eeat .lbl { color: var(--faint); font-size: 0.8rem; display: block; }
.eeat .dates { margin-left: auto; color: var(--faint); font-size: 0.84rem; }
.eeat .check { color: var(--green-ink); font-weight: 600; }

/* Сайдбар */
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.side-box h3 { font-size: 1rem; margin-bottom: 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { margin-bottom: 10px; }
.side-box li a { color: var(--ink); font-size: 0.94rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .side-box li a:hover { color: var(--violet-deep); }
}
.side-cta {
  background: linear-gradient(135deg, var(--indigo) 0%, #3a3691 100%);
  color: #fff;
  border: none;
}
.side-cta h3 { color: #fff; }
.side-cta p { color: #cfcbf2; font-size: 0.9rem; }

/* Источники */
.sources {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.sources ol { padding-left: 1.3em; margin: 8px 0 0; }

/* ---------- Заглушки разделов ---------- */

.stub-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 20px;
  background:
    radial-gradient(55% 80% at 50% 0%, var(--lav-2) 0%, transparent 65%),
    var(--lav-1);
  border-radius: var(--r-xl);
  margin-top: 20px;
}
.stub-hero .emoji { line-height: 1; display: block; margin-bottom: 18px; color: var(--violet); }
.stub-hero h1 { margin-bottom: 12px; }
.stub-hero .lead { max-width: 520px; margin: 0 auto 26px; color: var(--muted); }
.stub-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.badge-soon {
  display: inline-block;
  background: var(--lav-2);
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

/* ---------- Подвал ---------- */

.footer {
  margin-top: 80px;
  background: var(--indigo);
  color: #c9c5ee;
  padding: 52px 0 36px;
}
.footer a { color: #e6e3fa; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 0.92rem; }
.footer .brand { font-weight: 800; font-size: 1.4rem; color: #fff; letter-spacing: -0.02em; }
.footer .tagline { font-size: 0.92rem; margin-top: 8px; max-width: 260px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9b96cc;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* ---------- Анимации появления ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 480ms var(--ease-out) both; }
  .grid > .stagger { animation: reveal 420ms var(--ease-out) both; }
  .grid > .stagger:nth-child(1) { animation-delay: 0ms; }
  .grid > .stagger:nth-child(2) { animation-delay: 45ms; }
  .grid > .stagger:nth-child(3) { animation-delay: 90ms; }
  .grid > .stagger:nth-child(4) { animation-delay: 135ms; }
  .grid > .stagger:nth-child(n + 5) { animation-delay: 170ms; }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Мелочи ---------- */

.species-switch { display: flex; gap: 16px; }
.species-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  text-decoration: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .species-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.species-card:active { transform: scale(0.98); }
.species-card .ico { line-height: 1; color: var(--violet); }
.species-card .ico svg { display: block; }
.row-ico { display: flex; align-items: center; color: var(--violet); flex-shrink: 0; }
.species-card h3 { margin: 0; color: var(--ink); }
.species-card p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 620px) { .species-switch { flex-direction: column; } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: none; }
.row-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  color: var(--ink);
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .row-link:hover { background: var(--lav-1); padding-left: 12px; }
}
.row-link .t { font-weight: 600; }
.row-link .d { color: var(--muted); font-size: 0.88rem; }
.row-link .arr { margin-left: auto; color: var(--lav-3); flex-shrink: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  background: var(--lav-1);
  border-radius: var(--r-lg);
}
