/* =========================================================
   Питомник сиба-ину — базовые стили
   Mobile-first, без внешних шрифтов и фреймворков.
   ========================================================= */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1e9dd;
  --color-surface: #ffffff;
  --color-text: #241f1a;
  --color-text-muted: #6b6259;
  --color-accent: #c1502e;
  --color-accent-dark: #9c3f24;
  --color-accent-soft: #f3ddd2;
  --color-border: #e6ddce;
  --color-success: #3f6b4c;
  --color-success-bg: #e7f0e9;
  --color-warn: #97711a;
  --color-warn-bg: #f6ecd6;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-card: 0 2px 10px rgba(36, 31, 26, 0.06);
  --shadow-card-hover: 0 6px 20px rgba(36, 31, 26, 0.1);
  --container-w: 1120px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", ui-serif, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { color: var(--color-accent-dark); }
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.main-nav {
  display: none;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.97rem;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] { color: var(--color-accent-dark); font-weight: 600; }
.main-nav a:hover { color: var(--color-accent-dark); }

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}
.header-phone { font-weight: 600; color: var(--color-text); text-decoration: none; white-space: nowrap; }

.nav-toggle {
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-s);
  height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; color: var(--color-text);
  white-space: nowrap; line-height: 1;
}
.nav-toggle-icon { font-size: 1.15rem; line-height: 1; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
}
.mobile-nav a[aria-current="page"] { color: var(--color-accent-dark); font-weight: 600; }
.mobile-nav .mobile-cta { padding: 16px 20px; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 40px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  gap: 28px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}
.hero p.lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 26px;
  font-size: 0.92rem; color: var(--color-text-muted);
}
.trust-strip li { list-style: none; margin: 0; display: flex; align-items: center; gap: 8px; }
.trust-strip { padding: 0; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---------- Sections ---------- */
section.block { padding: 46px 0; }
section.block.alt { background: var(--color-bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--color-text-muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* ---------- Puppy cards ---------- */
.puppy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.puppy-card:hover { box-shadow: var(--shadow-card-hover); }
.puppy-photo { aspect-ratio: 4/3; background: var(--color-bg-alt); position: relative; overflow: hidden; }
.puppy-photo img { width: 100%; height: 100%; object-fit: cover; }
.puppy-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.puppy-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.puppy-meta { list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.92rem; color: var(--color-text-muted); display: grid; gap: 4px; }
.puppy-price { font-weight: 700; font-size: 1.15rem; color: var(--color-text); margin: 4px 0 14px; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em;
}
.badge-available { background: var(--color-success-bg); color: var(--color-success); }
.badge-reserved { background: var(--color-warn-bg); color: var(--color-warn); }
.puppy-photo .badge { position: absolute; top: 12px; left: 12px; }
.puppy-body > .badge { margin-bottom: 10px; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
.price-table th { background: var(--color-bg-alt); font-family: var(--font-head); }
.price-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.price-note { font-size: 0.9rem; color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 4px; font-size: 1.02rem; font-weight: 600; color: var(--color-text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-body);
}
.faq-q .icon { flex-shrink: 0; transition: transform 0.2s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px; color: var(--color-text-muted); display: none; }
.faq-a[data-open="true"] { display: block; }

/* ---------- Reviews ---------- */
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-card); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-accent-dark); flex-shrink: 0; }
.review-name { font-weight: 700; }
.review-date { font-size: 0.85rem; color: var(--color-text-muted); }
.review-stars { color: var(--color-accent); letter-spacing: 1px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0; font-size: 0.88rem; color: var(--color-text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent-dark); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-border); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 20px 20px 20px 62px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--color-text-muted); }

/* ---------- Video reviews (статичное превью, без встроенного плеера) ---------- */
.video-review-card { display: block; text-decoration: none; color: var(--color-text); }
.video-thumb { position: relative; aspect-ratio: 4/3; background: var(--color-bg-alt); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-review-card:hover .video-thumb { box-shadow: var(--shadow-card-hover); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(36,31,26,0.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.video-review-card p { margin: 10px 0 0; font-size: 0.92rem; font-weight: 600; }
.video-thumb.no-image { background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; }
.video-thumb.no-image .video-play { position: static; transform: none; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 1rem; background: var(--color-surface); color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 14px; }
.form-success { display: none; background: var(--color-success-bg); color: var(--color-success); padding: 14px 16px; border-radius: var(--radius-s); margin-bottom: 16px; }
.form-success.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-text); color: #fff; border-radius: var(--radius-l);
  padding: 38px 28px; text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d9d2c8; max-width: 52ch; margin: 0 auto 20px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-outline:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: #cfc7bc; margin-top: 60px; }
.footer-inner { padding: 44px 20px 26px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; margin: 0 0 14px; }
.site-footer a { color: #cfc7bc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
/* ---------- Мессенджер-кнопки (контакты) ---------- */
.msg-cta { display: flex; flex-direction: column; gap: 10px; }
.btn-msg { color: #fff; border: none; }
.btn-msg:hover { color: #fff; filter: brightness(0.93); }
.btn-wa { background: #25D366; }
.btn-tg { background: #229ED9; }
.btn-max { background: #7c2d3a; }
.btn-vk { background: #0077FF; }
.btn-sms { background: #5b667a; }
.msg-template { margin-top: 18px; padding: 14px 16px; background: var(--color-bg-alt); border-radius: var(--radius-m); }
.msg-template-text { margin: 0 0 12px; font-weight: 600; color: var(--color-text); }
.msg-template .btn-sm { background: var(--color-surface); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 0.82rem; color: #a89d8f;
}

/* ---------- Misc ---------- */
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list a { background: var(--color-surface); border: 1px solid var(--color-border); padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; text-decoration: none; color: var(--color-text); }
.tag-list a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

.article-list { display: grid; gap: 20px; }
.article-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-card); }
.article-card .article-date { font-size: 0.82rem; color: var(--color-text-muted); }
.article-card h3 { margin: 6px 0 8px; }
.article-card a.stretched { text-decoration: none; color: inherit; }

.prose { max-width: 74ch; }
.prose h2:first-of-type { margin-top: 0.4em; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 2fr 1fr; align-items: start; } }
.sidebar-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-card); position: sticky; top: 90px; }

.placeholder-note {
  font-size: 0.78rem; color: var(--color-warn); background: var(--color-warn-bg);
  padding: 6px 10px; border-radius: var(--radius-s); display: inline-block; margin-bottom: 10px;
}

.not-found { padding: 80px 0; text-align: center; }
.not-found .code { font-family: var(--font-head); font-size: 5rem; color: var(--color-accent-soft); margin: 0; }
