/*
Theme Name: Дом Пушистиков — Выбор филиала
Author: Дом Пушистиков
Description: Главная страница-портал контактного зоопарка «Дом Пушистиков» с выбором филиала (Гагаринский, Мытищи).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dompushistikov-portal
*/

:root {
  --c-bg:       #FAF7F0;
  --c-card:     #F3EEE2;
  --c-green:    #1E4D2B;
  --c-green2:   #2d6a3f;
  --c-coral:    #E8694A;
  --c-coral-dk: #D4553A;
  --c-gold:     #F5B041;
  --c-gold-s:   #FBE3B0;
  --c-leaf:     #9DBF88;
  --radius:     22px;
  --font: 'Nunito', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-green);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ═══ ШАПКА ═══ */
.site-header {
  background: #fff;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(30,77,43,.07);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 52px; height: 46px; flex-shrink: 0; }
.logo__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-green);
  line-height: 1.1;
}
.logo__sub {
  display: block;
  font-size: .78rem;
  color: #7a9a84;
  font-weight: 600;
}

/* ═══ HERO ═══ */
.page-hero {
  text-align: center;
  padding: 56px 20px 42px;
  position: relative;
}
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-gold-s);
  color: var(--c-green2);
  font-size: .88rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.page-hero__title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 900;
  color: var(--c-green);
  line-height: 1.12;
  max-width: 580px;
  margin: 0 auto 14px;
}
.page-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #4a7a5a;
  max-width: 400px;
  margin: 0 auto;
}

/* декоративные листики в hero */
.deco { position: absolute; pointer-events: none; }
.deco--tl { top: 30px; left: 16px; }
.deco--tr { top: 30px; right: 16px; transform: scaleX(-1); }

/* ═══ КАРТОЧКИ ФИЛИАЛОВ ═══ */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 460px));
  justify-content: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.branch-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30,77,43,.11);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(30,77,43,.18);
}

/* Верхняя зелёная зона */
.branch-card__top {
  background: var(--c-green);
  position: relative;
  padding: 28px 24px 36px;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* листья-фон через SVG */
.branch-card__top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='200' viewBox='0 0 420 200'%3E%3Cellipse cx='30' cy='30' rx='70' ry='28' fill='%23255f35' transform='rotate(-40 30 30)'/%3E%3Cellipse cx='140' cy='10' rx='65' ry='26' fill='%23235a32' transform='rotate(-20 140 10)'/%3E%3Cellipse cx='280' cy='40' rx='72' ry='28' fill='%23286640' transform='rotate(30 280 40)'/%3E%3Cellipse cx='390' cy='20' rx='60' ry='25' fill='%23245e37' transform='rotate(-15 390 20)'/%3E%3Cellipse cx='60' cy='140' rx='68' ry='27' fill='%23236039' transform='rotate(-50 60 140)'/%3E%3Cellipse cx='210' cy='160' rx='72' ry='28' fill='%231f5733' transform='rotate(20 210 160)'/%3E%3Cellipse cx='360' cy='150' rx='65' ry='26' fill='%23256038' transform='rotate(-35 360 150)'/%3E%3Cellipse cx='160' cy='90' rx='60' ry='24' fill='%231e5a35' transform='rotate(45 160 90)'/%3E%3Cellipse cx='320' cy='100' rx='68' ry='27' fill='%23286640' transform='rotate(-55 320 100)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: .9;
}

.branch-card__city {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  align-self: flex-start;
}
.branch-card__name {
  position: relative;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-top: 10px;
}

/* волна-переход */
.branch-card__wave {
  display: block;
  margin-top: -1px;
  line-height: 0;
}
.branch-card__wave svg { width: 100%; height: 32px; }

/* Нижняя белая зона */
.branch-card__body {
  flex: 1;
  padding: 10px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-card);
}
.branch-card__info { display: flex; flex-direction: column; gap: 6px; }
.branch-card__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .95rem;
  color: #3d6447;
}
.branch-card__row svg { flex-shrink: 0; margin-top: 3px; }
.branch-card__row span { line-height: 1.4; }

.branch-card__btn {
  display: block;
  text-align: center;
  margin-top: 6px;
  background: var(--c-coral);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 50px;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  cursor: pointer;
}
.branch-card:hover .branch-card__btn {
  background: var(--c-coral-dk);
}

/* ═══ CTA-полоса внизу ═══ */
.page-cta {
  background: var(--c-green);
  text-align: center;
  padding: 48px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120'%3E%3Cellipse cx='60' cy='30' rx='100' ry='36' fill='%23255f35' transform='rotate(-30 60 30)'/%3E%3Cellipse cx='300' cy='80' rx='110' ry='38' fill='%231e5731' transform='rotate(20 300 80)'/%3E%3Cellipse cx='540' cy='40' rx='95' ry='34' fill='%23235a32' transform='rotate(-40 540 40)'/%3E%3C/svg%3E");
  opacity: .5;
  background-size: cover;
}
.page-cta__inner { position: relative; }
.page-cta__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.page-cta__sub { color: rgba(255,255,255,.8); margin-bottom: 20px; }

/* ═══ ФУТЕР ═══ */
.site-footer {
  background: #17391f;
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
}

/* ═══ АДАПТИВ ═══ */
@media (max-width: 540px) {
  .branches { grid-template-columns: 1fr; }
  .deco { display: none; }
}

.page-cta__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.page-cta__btn{display:inline-block;background:var(--c-coral);color:#fff;font-weight:800;padding:12px 26px;border-radius:50px;text-decoration:none;transition:background .15s}
.page-cta__btn:hover{background:var(--c-coral-dk);color:#fff}
.page-cta__paw{display:inline-block;vertical-align:-3px;margin-left:6px}
.page-hero{padding-top:64px}
.branches{max-width:1020px;grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
@media (min-width:760px){.branches{grid-template-columns:repeat(2,1fr)}}
.page-hero__sub{max-width:520px}
