/* =============================================================
   puppy-page.css — стили раздела объявлений о щенках
   Подключить в layouts/main.php после style.css
   ============================================================= */

/* ── Переменные (берём из существующей темы сайта) ─────────── */
:root {
  --puppy-accent:     #2d5a27;   /* зелёный Breedbase */
  --puppy-accent-h:   #1e3d1b;
  --puppy-badge-avail:#2d5a27;
  --puppy-badge-res:  #b45309;
  --puppy-badge-sold: #6b7280;
  --puppy-card-radius:12px;
  --puppy-gap:        24px;
}

/* ── Утилита: screen-reader only ───────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================================
   HERO КАТАЛОГА
   ============================================================= */
.puppy-hero.catalog-hero {
  background: linear-gradient(135deg, #1a3a16 0%, #2d5a27 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.puppy-hero.catalog-hero .puppy-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.puppy-hero__sub {
  font-size: 1rem;
  opacity: .85;
  margin: 0 0 24px;
  /*max-width: 560px;*/
}
.puppy-hero.catalog-hero .puppy-hero__cta { margin-top: 4px; }

/* =============================================================
   ФИЛЬТРЫ
   ============================================================= */
.puppy-filters {
  background: #f8faf7;
  border-bottom: 1px solid #dde8db;
  padding: 20px 0;
}
.puppy-filters__form {}
.puppy-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.puppy-filters__row + .puppy-filters__row { margin-top: 12px; }
.puppy-filters__field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.puppy-filters__field--price { min-width: 220px; }
.puppy-filters__label { font-size: .8rem; color: #555; font-weight: 500; }
.puppy-filters__select,
.puppy-filters__input  {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .9rem;
  background: #fff;
  color: #222;
  transition: border-color .15s;
}
.puppy-filters__select:focus,
.puppy-filters__input:focus  { border-color: var(--puppy-accent); outline: none; }
.puppy-filters__price-range  { display: flex; align-items: center; gap: 6px; }
.puppy-filters__price-range .puppy-filters__input { width: 90px; }
.puppy-filters__price-sep    { color: #888; }
.puppy-filters__row--checks  { flex-wrap: wrap; gap: 12px; align-items: center; }
.puppy-filters__check        { display: flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }
.puppy-filters__check input  { accent-color: var(--puppy-accent); }
.puppy-filters__sort         { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.puppy-filters__actions      { display: flex; gap: 8px; margin-left: auto; }

/* =============================================================
   КАТАЛОГ — СЧЁТЧИК И СЕТКА
   ============================================================= */
.puppy-catalog__body   { padding: 32px 0 48px; }
.puppy-catalog__count  { font-size: .9rem; color: #555; margin: 0 0 20px; }
.puppy-catalog__empty  { text-align: center; padding: 48px 0; color: #777; }
.puppy-catalog__empty p { margin-bottom: 16px; }

/* Сетка карточек */
.puppy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--puppy-gap);
  list-style: none;
  padding: 0; margin: 0;
}

/* =============================================================
   КАРТОЧКА В КАТАЛОГЕ
   ============================================================= */
.puppy-card {
  background: #fff;
  border-radius: var(--puppy-card-radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.puppy-card:hover  { box-shadow: 0 4px 16px rgba(0,0,0,.13); transform: translateY(-2px); }

.puppy-card__link  { display: block; }
.puppy-card__img-wrap {
  position: relative;
  aspect-ratio: 10/7;
  overflow: hidden;
  background: #eee;
}
.puppy-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.puppy-card:hover .puppy-card__img { transform: scale(1.03); }

.puppy-card__status {
  position: absolute; top: 8px; left: 8px;
  font-size: .72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
}
.status--published { background: var(--puppy-accent); color: #fff; }
.status--pending   { background: #b45309; color: #fff; }
.status--draft     { background: #6b7280; color: #fff; }
.status--archived  { background: #374151; color: #fff; }

.puppy-card__badge {
  position: absolute; top: 8px; right: 8px;
  font-size: .7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,.9); color: var(--puppy-accent);
}

.puppy-card__body   { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.puppy-card__title  { font-size: 1rem; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.puppy-card__title a { color: inherit; text-decoration: none; }
.puppy-card__title a:hover { color: var(--puppy-accent); }

.puppy-card__meta        { margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: #555; }
.puppy-card__meta-row    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.puppy-card__region      { display: flex; align-items: center; gap: 4px; }
.puppy-card__breeder     { color: #333; }
.puppy-card__kennel a    { color: #1e598d; text-decoration: none; font-weight: 500; }
.puppy-card__kennel a:hover { text-decoration: underline; }

.puppy-card__footer  {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.puppy-card__price   { font-size: 1rem; font-weight: 700; color: #111; }

/* =============================================================
   ПАГИНАЦИЯ
   ============================================================= */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  margin: 32px 0 0;
  flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #333;
  font-size: .9rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pagination__btn:hover  { background: #f0f5ef; border-color: var(--puppy-accent); }
.pagination__btn--active {
  background: var(--puppy-accent); color: #fff;
  border-color: var(--puppy-accent);
  font-weight: 700; pointer-events: none;
}

/* =============================================================
   СТРАНИЦА ПОМЁТА / ЩЕНКА — HERO
   ============================================================= */
.litter-page  { padding-bottom: 48px; }
.puppy-page   { padding-bottom: 48px; }

.litter-hero,
.puppy-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.litter-hero__inner,
.puppy-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .litter-hero__inner,
  .puppy-hero__inner {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ГАЛЕРЕЯ (для помёта и щенка)
   ============================================================= */
.litter-gallery {
  width: 100%;
}

.litter-gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  min-height: 250px;
  max-width: 100%;
  margin: 0 auto;
}

.litter-gallery__main-img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s;
}

.litter-gallery__main-img:hover {
  transform: scale(1.02);
}

.litter-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}

.litter-gallery__nav:hover {
  background: rgba(0,0,0,.7);
}

.litter-gallery__nav--prev {
  left: 10px;
}

.litter-gallery__nav--next {
  right: 10px;
}

.litter-gallery__counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.litter-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}

.litter-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s;
  width: 80px;
  height: 80px;
}

.litter-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.litter-gallery__thumb--active,
.litter-gallery__thumb:hover {
  border-color: var(--puppy-accent);
}

.litter-gallery__placeholder {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 10px;
  font-size: 24px;
  color: #000;
}

/* =============================================================
   ИНФО СПРАВА (помёт и щенок)
   ============================================================= */
.litter-hero__status {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.litter-hero__status--published {
  background: #dcfce7;
  color: #166534;
}

.litter-hero__status--pending {
  background: #fef3c7;
  color: #92400e;
}

.litter-hero__status--draft {
  background: #f3f4f6;
  color: #374151;
}

.litter-hero__date {
  font-size: .85rem;
  color: #ffffff;
  margin: 0 0 4px;
}

.litter-hero__title,
.puppy-hero__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.litter-hero__price,
.puppy-hero__price {
  margin: 0 0 16px;
}

.litter-hero__price-val,
.puppy-hero__price-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.litter-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

.litter-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.litter-hero__stat dt {
  font-size: .72rem;
  color: #ffffff;
  text-align: center;
}

.litter-hero__stat dd {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.litter-hero__colors {
  font-size: .9rem;
  margin: 0 0 10px;
}

.litter-hero__region {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  margin: 0 0 14px;
}

.litter-hero__breeder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f5ef;
  border-radius: 8px;
  margin-bottom: 12px;
}

.litter-hero__breeder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--puppy-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.litter-hero__breeder-label {
  font-size: .75rem;
  color: #888;
}

.litter-hero__breeder-name {
  font-weight: 600;
  color: #111;
}

.litter-hero__kennel {
  font-size: .9rem;
  margin-bottom: 14px;
}

.litter-hero__kennel-label {
  color: #fff;
}

.litter-hero__kennel-link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.litter-hero__kennel-link:hover {
  text-decoration: underline;
}

.litter-hero__cta,
.puppy-hero__cta {
  margin-top: 4px;
}

/* Характеристики щенка */
.puppy-hero__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.puppy-hero__spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: .9rem;
}

.puppy-hero__spec dt {
  font-size: .85rem;
  font-weight: 500;
}

.puppy-hero__spec dd {
  margin: 0;
  font-weight: 500;
}

.puppy-hero__litter-link {
  font-size: .88rem;
  margin: 0 0 14px;
}

.puppy-hero__litter-link a {
  color: #ffffff;
  text-decoration: none;
}

.puppy-hero__litter-link a:hover {
  text-decoration: underline;
}

/* =============================================================
   ВКЛАДКИ-ЯКОРЯ
   ============================================================= */
.litter-tabs {
  border-bottom: 2px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.litter-tabs__list {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.litter-tabs__item {
  display: inline-block;
  padding: 14px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}

.litter-tabs__item:hover {
  color: var(--puppy-accent);
  border-bottom-color: var(--puppy-accent);
}

/* =============================================================
   СЕКЦИИ СТРАНИЦЫ
   ============================================================= */
.litter-page__body,
.puppy-page__body {
  padding: 32px 0 0;
}

.litter-section {
  margin-bottom: 40px;
}

.litter-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.litter-section__sub {
  font-size: .88rem;
  color: #777;
  margin: 0 0 20px;
}

.litter-section__empty {
  color: #999;
  font-style: italic;
}

/* Описание */
.litter-description {
  line-height: 1.7;
  color: #333;
}

.litter-description__empty {
  color: #aaa;
  font-style: italic;
}

.litter-delivery {
  margin-top: 20px;
  padding: 16px;
  background: #f8faf7;
  border-radius: 8px;
}

.litter-delivery__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

/* =============================================================
   ЩЕНКИ (сетка на странице помёта)
   ============================================================= */
.litter-puppies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.litter-puppies__count {
  float: right;
  font-size: .85rem;
  color: #888;
}

.puppy-thumb-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}

.puppy-thumb-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: #eee;
}

.puppy-thumb-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.puppy-thumb-card__sex {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.puppy-thumb-card__body {
  padding: 12px 14px 14px;
}

.puppy-thumb-card__name {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: .95rem;
}

.puppy-thumb-card__color {
  font-size: .82rem;
  color: #666;
  margin: 0 0 6px;
}

.puppy-thumb-card__price {
  font-weight: 700;
  margin: 0 0 10px;
}

.puppy-thumb-card__btn {
  width: 100%;
  justify-content: center;
}

/* =============================================================
   БЕЙДЖИ СТАТУСОВ ПРОДАЖИ
   ============================================================= */
.sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.sale-badge--lg {
  position: static;
  display: inline-block;
  font-size: .82rem;
  margin-bottom: 8px;
}

.sale-badge--available {
  background: #dcfce7;
  color: #166534;
}

.sale-badge--reserved {
  background: #fef3c7;
  color: #92400e;
}

.sale-badge--sold {
  background: #f3f4f6;
  color: #6b7280;
}

/* =============================================================
   РОДИТЕЛИ
   ============================================================= */
.litter-parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .litter-parents {
    grid-template-columns: 1fr;
  }
}

.parent-card {
  background: #f8faf7;
  border-radius: 10px;
  padding: 16px 18px;
}

.parent-card__role {
  font-size: .85rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.parent-card__sex--male {
  color: #2563eb;
}

.parent-card__sex--female {
  color: #db2777;
}

.parent-card__inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.parent-card__photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.parent-card__photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #aaa;
}

.parent-card__name {
  font-weight: 700;
  margin: 0 0 4px;
}

.parent-card__pedigree-link {
  font-size: .85rem;
  color: var(--puppy-accent);
  text-decoration: none;
}

.parent-card__pedigree-link:hover {
  text-decoration: underline;
}

.parent-card__details {
  font-size: .82rem;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.parent-card__details dt {
  color: #888;
  font-size: .75rem;
}

.parent-card__details dd {
  margin: 0;
}

.parent-card__manual {
  font-weight: 500;
  margin: 0 0 4px;
}

.parent-card__manual-note {
  font-size: .8rem;
  color: #999;
  margin: 0;
}

.parent-card__unknown {
  color: #aaa;
  font-style: italic;
  margin: 0;
}

/* =============================================================
   ПИТОМНИК
   ============================================================= */
.litter-kennel-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #f0f5ef;
  border-radius: 10px;
}

.litter-kennel-card__logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.litter-kennel-card__logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--puppy-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.litter-kennel-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.litter-kennel-card__link {
  font-size: .88rem;
  color: var(--puppy-accent);
  text-decoration: none;
}

.litter-kennel-card__link:hover {
  text-decoration: underline;
}

/* =============================================================
   ДОКУМЕНТЫ
   ============================================================= */
.litter-docs {
  padding-left: 20px;
  line-height: 1.8;
  color: #333;
}

.litter-docs__note {
  margin-top: 12px;
  font-size: .82rem;
  color: #888;
  font-style: italic;
}

/* =============================================================
   КОНТАКТЫ
   ============================================================= */
.litter-contacts {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  padding: 28px 32px;
}

.litter-contacts__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.litter-contacts .litter-section__title {
  color: #fff;
  margin-bottom: 6px;
}

.litter-contacts__text p {
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* =============================================================
   ЛИЧНЫЙ КАБИНЕТ — МОИ ОБЪЯВЛЕНИЯ
   ============================================================= */
.my-litters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-litter-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  flex-wrap: wrap;
}

.my-litter-card__img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.my-litter-card__img--placeholder {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.my-litter-card__body {
  flex: 1;
  min-width: 180px;
}

.my-litter-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.my-litter-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.my-litter-card__title a {
  color: inherit;
  text-decoration: none;
}

.my-litter-card__title a:hover {
  color: var(--puppy-accent);
}

.my-litter-card__meta {
  font-size: .82rem;
  color: #666;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.my-litter-card__meta dt {
  color: #aaa;
}

.my-litter-card__meta dd {
  margin: 0;
}

.my-litter-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}

.my-litter-card__status-form {
  display: inline;
}

.litter-status-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

/* =============================================================
   ФОРМА СОЗДАНИЯ / РЕДАКТИРОВАНИЯ
   ============================================================= */
.puppy-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0;
}

.form-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  display: block;
  width: 100%;
}

.form-section__hint {
  font-size: .85rem;
  color: #777;
  margin: -12px 0 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group--required .form-label::after {
  content: ' *';
  color: #dc2626;
}

.form-label {
  font-size: .88rem;
  font-weight: 500;
  color: #333;
}

.form-label--secondary {
  font-weight: 400;
  color: #666;
}

.form-input,
.form-select,
.form-textarea {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .93rem;
  color: #111;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--puppy-accent);
  box-shadow: 0 0 0 3px rgba(45,90,39,.15);
  outline: none;
}

.form-input--date {
  max-width: 200px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: .78rem;
  color: #888;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-kennel-hint {
  background: #f0f5ef;
  padding: 12px 16px;
  border-radius: 8px;
}

.form-kennel-hint__inner {
  font-size: .9rem;
}

.form-kennel-hint a {
  color: var(--puppy-accent);
}

/* Parent selector */
.parent-selector-group {
  gap: 8px;
}

.parent-selector__search {
  position: relative;
}

.parent-selector__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.parent-selector__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: none;
  font-size: .88rem;
  cursor: pointer;
  color: #111;
  transition: background .1s;
}

.parent-selector__item:hover {
  background: #f0f5ef;
}

.parent-selector__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #dcfce7;
  border-radius: 6px;
  font-size: .88rem;
}

.parent-selector__clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.1rem;
  padding: 0 4px;
}

.form-group--manual {
  padding-left: 12px;
  border-left: 3px solid #e5e7eb;
}

/* Карточки щенков в форме */
.puppy-form-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #fafafa;
}

.puppy-form-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.puppy-form-card__title {
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
}

.puppy-form-card__remove {
  margin-left: auto;
}

/* Кнопки формы */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* =============================================================
   КНОПКИ
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 7px;
  border: 2px solid transparent;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--puppy-accent);
  outline-offset: 2px;
}

.btn--add {
  background: #ffffff;
  color: #164670;
}

.btn--add:hover {
  background: #164670;

}

.btn--filter {
   background: #1e598d;
   color: #fff;
}

.btn--filter:hover {
  background: #164670;
  color: #fff;
}

.btn--primary {
   background: #1e598d;
}

.btn--primary:hover {
  background: #164670;
  color: #fff;
}

.btn--outline {
  background: #1e598d;
  color: #ffffff;
}

.btn--outline:hover {
  background: #164670;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #555;
  border-color: #d1d5db;
}

.btn--ghost:hover {
  background: #f3f4f6;
}

.btn--danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn--danger:hover {
  background: #b91c1c;
}

.btn--sm {
  padding: 6px 12px;
  font-size: .82rem;
  border-radius: 5px;
}

.btn--lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* =============================================================
   АЛЕРТЫ
   ============================================================= */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .9rem;
}

.alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert--info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert__list {
  margin: 0;
  padding-left: 18px;
}

/* =============================================================
   АДАПТИВНОСТЬ
   ============================================================= */
@media (max-width: 900px) {
  .litter-hero__inner,
  .puppy-hero__inner {
    gap: 24px;
  }
  
  .litter-contacts__inner {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .litter-gallery__main {
    max-width: 100%;
  }
  
  .litter-gallery__main-img {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .puppy-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .litter-puppies {
    grid-template-columns: 1fr 1fr;
  }
  
  .my-litter-card__actions {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .litter-gallery__placeholder {
    width: 100%;
    height: 200px;
  }
  
  .litter-gallery__thumb {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 420px) {
  .puppy-grid {
    grid-template-columns: 1fr;
  }
  
  .litter-puppies {
    grid-template-columns: 1fr;
  }
}
