/* ==========================================================================
   Питомник доберманов Rada Gravity — дизайн-система
   Mobile-first. Только системные шрифты (нет запросов к веб-шрифтам — бережём LCP).
   Палитра взята от породы: графит + подпал (tan).
   ========================================================================== */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-alt: #f3f0ea;
  --text: #1c1b19;
  --muted: #5f5a51;
  --border: #e4ded2;
  --graphite: #17171a;
  --graphite-2: #232227;
  --accent: #a2662f;
  --accent-dark: #82501f;
  --accent-soft: #f6ecdf;
  --ok-bg: #eaf3e6;
  --ok-text: #2f5227;
  --focus: #1d6fd6;

  --font-h: Georgia, "Times New Roman", serif;
  --font-b: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-s: 5px;
  --r-m: 10px;
  --r-l: 18px;
  --wrap: 1180px;
  --shadow: 0 8px 26px rgba(28, 27, 25, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.22; margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.6vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.32rem); }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--graphite); color: #fff; padding: .8em 1.3em;
}
.skip-link:focus { left: 0; }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.block { padding-block: 52px; }
.block.alt { background: var(--surface-alt); }
.block.dark { background: var(--graphite); color: #ece7dd; }
.block.dark h2, .block.dark h3 { color: #fff; }
.block.tight { padding-block: 30px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.section-head { margin-bottom: 26px; max-width: 72ch; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.grid { display: grid; gap: 22px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 248, .97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--graphite); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.logo-text { font-family: var(--font-h); font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.logo-sub {
  display: block; font-family: var(--font-b); font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.main-nav { display: none; }
.header-cta { display: none; margin-left: auto; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--border); border-radius: var(--r-s);
  padding: .55em .85em; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text);
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav.is-open { display: block; padding: 8px 20px 20px; }
.mobile-nav a {
  display: block; padding: .72em 0; text-decoration: none; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-cta { margin-top: 16px; }

@media (min-width: 1000px) {
  .nav-toggle, .mobile-nav { display: none !important; }
  .main-nav { display: flex; gap: 18px; margin-left: 22px; flex-wrap: wrap; }
  .main-nav a {
    text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
    padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-dark); }
  .header-cta { display: flex; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .82em 1.5em; border-radius: var(--r-s); font: inherit; font-size: .97rem;
  font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: .58em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding-block: 14px 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35em; }
.breadcrumbs li { margin: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin-left: .35em; color: #bdb4a4; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Первый экран ---------- */
.hero { background: var(--graphite); color: #ece7dd; padding-block: 44px 52px; }
.hero h1 { color: #fff; }
.hero .lead { color: #cdc5b8; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; } }
.hero-eyebrow { color: var(--accent); }
.hero-media img { border-radius: var(--r-l); width: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-strip { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 9px; }
.trust-strip li { color: #d7d0c4; font-size: .96rem; padding-left: 1.6em; position: relative; }
.trust-strip li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Карточки ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.alt .card { background: #fff; }

.photo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-card .photo-body { padding: 18px 20px 22px; }
.photo-card h3 { margin-top: 0; }
.photo-card p:last-child { margin-bottom: 0; }

.puppy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.puppy-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.puppy-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.puppy-body h3 { margin-top: 0; margin-bottom: .3em; }
.puppy-meta { list-style: none; padding: 0; margin: 0 0 14px; font-size: .93rem; color: var(--muted); }
.puppy-meta li { margin-bottom: .25em; }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .28em .8em; border-radius: 999px; margin-bottom: 10px;
}
.badge-available { background: var(--ok-bg); color: var(--ok-text); }
.badge-reserved { background: var(--surface-alt); color: var(--muted); }
.puppy-price { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; margin: auto 0 14px; }

/* ---------- Родители ---------- */
.parent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.parent-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.parent-body { padding: 20px 22px 24px; }
.parent-body h3 { margin-top: 0; margin-bottom: .2em; }
.parent-role { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.titles-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: .94rem; }
.titles-list li { padding-left: 1.4em; position: relative; margin-bottom: .3em; }
.titles-list li::before { content: "🏅"; position: absolute; left: 0; font-size: .85em; }
.health-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: .94rem; }
.health-list li { padding-left: 1.4em; position: relative; margin-bottom: .3em; }
.health-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok-text); font-weight: 700; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-m); }

/* ---------- Шаги ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding-left: 52px; position: relative; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: 1.05rem;
}
.steps h3 { margin: 4px 0 .3em; }
.steps p { color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; padding: 18px 0; font: inherit; font-weight: 700; font-size: 1.03rem;
  text-align: left; cursor: pointer; color: var(--text); font-family: var(--font-h);
}
/* Знак «+» лежит в разметке текстом (работает и без CSS), здесь мы его
   прячем и рисуем через ::before, чтобы менять на «−» в раскрытом состоянии. */
.faq-q .icon { color: var(--accent); flex-shrink: 0; line-height: 1; font-size: 0; }
.faq-q .icon::before { content: "+"; font-size: 1.5rem; }
.faq-q[aria-expanded="true"] .icon::before { content: "−"; }
.faq-a { display: none; padding-bottom: 20px; color: var(--muted); }
.faq-a[data-open="true"] { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; margin-block: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; background: var(--surface); }
th, td { text-align: left; padding: .8em 1em; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-family: var(--font-h); font-size: .96rem; border-bottom: 2px solid var(--graphite); }
tbody tr:hover { background: var(--surface-alt); }
.alt table { background: #fff; }

/* ---------- Контакты ---------- */
.contact-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 28px 24px;
}
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-btn {
  display: flex; align-items: center; gap: 10px; padding: .9em 1.1em;
  border-radius: var(--r-s); text-decoration: none; font-weight: 700; font-size: .97rem;
  color: #fff; background: var(--graphite-2); transition: filter .15s;
}
.contact-btn:hover { filter: brightness(1.15); color: #fff; }
.contact-ic {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.contact-wa { background: #25623f; }
.contact-tg { background: #1f5f86; }
.contact-max { background: #4a2f7a; }
.contact-vk { background: #23415f; }
.contact-ig { background: #8a3560; }
.contact-tel { background: var(--accent-dark); }
.contact-sms { background: #4a4640; }
.copy-row {
  margin-top: 18px; padding: 16px 18px; background: var(--surface-alt);
  border-radius: var(--r-m); display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.copy-text { margin: 0; font-size: .95rem; color: var(--muted); flex: 1 1 260px; }
.contact-phone-line { margin: 16px 0 0; font-size: .95rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--graphite); color: #ece7dd; border-radius: var(--r-l);
  padding: 40px 28px; text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cdc5b8; max-width: 62ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Статьи ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--r-m); margin-block: 26px; }
.prose > ul, .prose > ol { margin-bottom: 1.1em; }
.callout {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-m) var(--r-m) 0; padding: 18px 22px; margin-block: 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }
.note {
  background: var(--surface-alt); border-radius: var(--r-m);
  padding: 18px 22px; margin-block: 24px; font-size: .96rem;
}
.note p:last-child { margin-bottom: 0; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.read-next { background: var(--surface-alt); border-radius: var(--r-m); padding: 22px 24px; margin-top: 34px; }
.read-next h2 { margin-top: 0; font-size: 1.2rem; }

.figure-caption { font-size: .88rem; color: var(--muted); margin-top: -14px; margin-bottom: 26px; }

/* ---------- Видеоотзывы (фасад) ---------- */
.video-embed {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--graphite); border-radius: var(--r-m); overflow: hidden;
  cursor: pointer; aspect-ratio: 16/9;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-embed .play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  border-radius: 50%; background: rgba(23, 23, 26, .78); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; padding-left: 5px; transition: background-color .15s;
}
.video-embed:hover .play { background: var(--accent); }
.video-title { margin: 12px 0 0; font-weight: 600; font-size: .97rem; }

/* ---------- Служебное ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Отзывы ---------- */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 22px; }
.review-card p:last-child { margin-bottom: 0; }
.review-name { font-weight: 700; }
.review-date { font-size: .85rem; color: var(--muted); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; flex-shrink: 0;
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--graphite); color: #c9c1b5; padding-block: 46px 22px; margin-top: 10px; }
.site-footer a { color: #eee8dd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h3, .footer-brand {
  color: #fff; font-size: 1rem; font-family: var(--font-b); font-weight: 700; margin-bottom: .9em;
}
.footer-brand { font-family: var(--font-h); font-size: 1.15rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; font-size: .95rem; }
.footer-list li { margin: 0; }
.footer-addr { color: #a99f90; font-size: .93rem; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: .84rem; color: #9a9184; display: flex; flex-wrap: wrap;
  gap: 10px 26px; justify-content: space-between;
}
