/* Doggi-центр — Design System v2 */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F1E2;
  --surface: #FBF7EE;
  --surface-2: #FFFFFF;
  --ink: #1A1714;
  --ink-2: #2C2620;
  --ink-muted: #6B5F4E;
  --ink-faint: #9C8F7A;
  --line: #ECE3D0;
  --line-soft: #F1EADB;
  --blue: #2B6CB0;
  --blue-deep: #1F5187;
  --blue-soft: #E4ECF6;
  --blue-tint: #F1F5FB;
  --shadow-sm: 0 1px 2px rgba(53,33,8,.04), 0 2px 6px rgba(53,33,8,.04);
  --shadow-md: 0 8px 24px rgba(53,33,8,.06), 0 2px 8px rgba(53,33,8,.04);
  --shadow-lg: 0 24px 60px rgba(53,33,8,.10), 0 8px 20px rgba(53,33,8,.05);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;
  --font: 'Onest', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.35; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 72px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: 52px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 28px; line-height: 1.15; }
p { margin: 0; }
.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; color: var(--blue); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.text-muted { color: var(--ink-muted); }
.text-faint { color: var(--ink-faint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: var(--r-pill); font: 500 17px/1 var(--font); cursor: pointer; border: 0; transition: transform .15s, background .15s, color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-soft { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { background: #fff; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 64px; padding: 0 32px; font-size: 18px; }

/* Cards */
.card { background: var(--surface-2); border-radius: var(--r-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--flat:hover { transform: none; box-shadow: none; }

/* Photo placeholder */
.ph { background: linear-gradient(135deg, #DCD3BF 0%, #CFC6B1 100%); border-radius: var(--r-lg); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; }
.ph::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 14px), repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 14px); pointer-events: none; }
.ph-caption { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(251,246,234,0.9); border-radius: 6px; padding: 5px 9px; color: #4A4030; z-index: 1; }

/* Real photo (replaces placeholder) */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill-blue { background: var(--blue-soft); color: var(--blue-deep); border-color: transparent; }
.pill-dark { background: var(--ink); color: var(--bg); border-color: transparent; }

/* Avatar */
.av { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 20px; flex-shrink: 0; }
.av--blue { background: var(--blue-soft); color: var(--blue-deep); }
.av--warm { background: #EDE3CF; color: #6B4A1F; }
.av--neutral { background: #E8E2D2; color: #3A3220; }

/* Links */
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.link:hover { border-color: currentColor; }
.link-blue { color: var(--blue); }

/* Section */
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); border-radius: var(--r-xl); margin: 0 40px; }

/* Divider */
.divider { height: 1px; background: var(--line); width: 100%; }

/* Squiggle */
.squiggle { display: block; }

/* Icons (inline SVG helpers) */
.icon { display: inline-flex; align-items: center; flex-shrink: 0; }

/* Stars */
.stars { display: flex; gap: 4px; color: #E4A82B; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32; padding: 20px 80px; max-width: 1280px; margin: 0 auto; }
.header__logo img { height: 46px; display: block; }
.header__nav { display: flex; gap: 36px; }
.header__nav a { font-size: 16px; font-weight: 500; color: var(--ink); transition: color .15s; }
.header__nav a:hover { color: var(--blue); }
.header__right { display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.header__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; align-items: center; justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: #171513; color: #E5DCC9; padding: 88px 80px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48; padding-bottom: 64px; border-bottom: 1px solid #2A2622; }
.footer__brand { }
.footer__logo { height: 48px; display: block; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer__brand p { font-size: 17px; line-height: 1.5; color: #B8AC95; max-width: 280px; }
.footer__col-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8C8270; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: #E5DCC9; font-size: 16px; transition: color .15s; }
.footer__links a:hover { color: #F5A623; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 14px; color: #8C8270; flex-wrap: wrap; gap: 16px; }
.footer__bottom a { color: #8C8270; transition: color .15s; }
.footer__bottom a:hover { color: #F5A623; }

/* Social buttons */
.social { display: flex; gap: 10px; margin-top: 28px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social .s-tg { background: #2AA1DA; }
.social .s-vk { background: #0077FF; }
.social .s-wa { background: #25D366; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--blue); color: #fff; border-radius: var(--r-xl); padding: 72px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48; align-items: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-banner::after { content: ''; position: absolute; bottom: -120px; right: 120px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner__actions { display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.cta-banner__phone { height: 64px; border-radius: var(--r-pill); background: #fff; color: var(--blue-deep); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 600; text-decoration: none; }
.cta-banner__phone:hover { transform: translateY(-2px); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); margin-bottom: 32px; }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--ink); }

/* ===== ARTICLE CONTENT ===== */
.article-content { max-width: 720px; margin: 0 auto; }
.article-content p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-bottom: 20px; }
.article-content p.lead { font-size: 22px; line-height: 1.55; font-weight: 500; }
.article-content h2 { font-size: 34px; font-weight: 700; margin: 40px 0 16px; }
.article-content h3 { font-size: 26px; font-weight: 600; margin: 32px 0 12px; }
.article-content img { border-radius: var(--r-lg); margin: 28px 0; width: 100%; }
.article-content blockquote { margin: 28px 0; padding: 32px 40px; background: var(--blue-soft); border-radius: var(--r-lg); border-left: 6px solid var(--blue); font-size: 22px; line-height: 1.5; color: var(--blue-deep); font-weight: 500; }
.article-content ul { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.article-content li { display: flex; gap: 14px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.article-content .check { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .header__inner { padding: 16px 40px; }
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 60px 40px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-banner { padding: 48px; grid-template-columns: 1fr; }
  .section--soft { margin: 0 20px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header__inner { padding: 14px 20px; }
  .header__nav { display: none; }
  .header__right { display: none; }
  .header__burger { display: flex; }
  /* Mobile menu */
  .header__nav.open { display: flex; flex-direction: column; position: fixed; top: 73px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 32px 20px; gap: 20px; z-index: 49; }
  .header__nav.open a { font-size: 22px; }

  h1 { font-size: 42px; line-height: 1.05; }
  h2 { font-size: 32px; line-height: 1.08; }
  h3 { font-size: 22px; }
  .section { padding: 60px 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer { padding: 56px 20px 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 32px 24px; grid-template-columns: 1fr; }
  .cta-banner__phone { font-size: 17px; height: 56px; }

  .section--soft { margin: 0 12px; border-radius: var(--r-lg); padding: 40px 20px; }

  .breadcrumbs { flex-wrap: wrap; }

  .article-content blockquote { padding: 20px 22px; font-size: 17px; border-radius: var(--r-md); }
  .article-content h2 { font-size: 26px; }
  .article-content h3 { font-size: 22px; }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────
   Лид-форма записи на мероприятие (#zapis) — белая карточка
   на синем .cta-banner. Заявка → petcrm (+ yclients на сервере).
   JS: booking.js (хуки .booking__form / .booking__card / .is-sent).
   ───────────────────────────────────────────────────────── */
.cta-banner--form { align-items: stretch; }
@media (max-width: 860px) { .cta-banner--form { grid-template-columns: 1fr; } }

.booking__card {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.booking__form { display: flex; flex-direction: column; gap: 16px; }
.booking__form-title { font-weight: 700; font-size: 22px; color: var(--ink); }
.booking__form-sub { margin-top: 2px; font-size: 14px; color: var(--ink-muted); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__label .req { color: var(--blue); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input, .select, .textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 15px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input { height: 50px; }
.textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.select {
  height: 50px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239C8F7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px;
}
.input.is-invalid { border-color: #E25C4B; box-shadow: 0 0 0 3px rgba(226,92,75,.15); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }
.consent a { color: var(--ink-2); }

.booking__submit { width: 100%; justify-content: center; }
.booking__submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.booking__note { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: -4px; }

.booking__error { display: none; padding: 11px 13px; border-radius: var(--r-sm); background: #FDECEA; color: #C0392B; font-size: 13.5px; line-height: 1.4; }
.booking__card.has-error .booking__error { display: block; }

.booking__state { display: none; text-align: center; padding: 26px 6px; }
.booking__card.is-sent .booking__form { display: none; }
.booking__card.is-sent .booking__state--ok { display: block; }
.booking__state-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-deep); }
.booking__state-title { font-weight: 700; font-size: 22px; }
.booking__state-text { margin-top: 8px; font-size: 15px; color: var(--ink-muted); max-width: 32ch; margin-left: auto; margin-right: auto; }

/* Фикс: телефон-кнопка в баннере с формой не должна сжиматься/обрезаться */
.cta-banner--form .cta-banner__phone { flex: 0 0 auto; font-size: 18px; padding: 0 22px; white-space: nowrap; }
.cta-banner--form .cta-banner__actions .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .cta-banner--form .cta-banner__phone,
  .cta-banner--form .cta-banner__actions .btn { width: 100%; }
}

/* Narrow screens must override fixed type sizes and inline desktop columns. */
@media (max-width:768px) {
  h1 { font-size:clamp(30px,8vw,42px) !important; overflow-wrap:break-word; }
  section h2 { font-size:clamp(26px,7vw,36px) !important; overflow-wrap:break-word; }
  section h2 .hand { font-size:clamp(30px,8vw,42px) !important; }
  .cta-banner > *, .container > div > * { min-width:0; }
  section [style*="grid-template-columns:"]:not(.kids-dog-team) { grid-template-columns:minmax(0,1fr) !important; gap:28px !important; }
  section [style*="display:flex"][style*="gap:12px"] { flex-wrap:wrap; }
  .container > div[style*="justify-content:space-between"] { flex-wrap:wrap; }
  section .cta-banner h2 { overflow-wrap:anywhere; }
}
