/* ============ Мои собаки ============ */
.dogs-page { background: var(--bg); }

.dogs-hero {
  padding: clamp(34px, 5vw, 68px) 0 clamp(24px, 3.5vw, 40px);
  background:
    radial-gradient(620px 360px at 94% -12%, rgba(246, 197, 107, .32), transparent 70%),
    radial-gradient(460px 300px at 4% 110%, rgba(31, 92, 70, .1), transparent 70%),
    var(--bg);
}
.dogs-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}
.dogs-hero h1 { margin-bottom: 12px; }
.dogs-hero .lead { max-width: 42em; margin-bottom: 20px; }
.dogs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dogs-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #CFE3D8;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
}
.dogs-limit.is-warn { background: var(--yellow-soft); border-color: #E5C98C; color: #8A6118; }
.dogs-storage-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted-2); }
.dogs-data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dogs-data-actions .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: .8rem;
  text-decoration: none;
}
.dogs-data-actions .link-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.dogs-import-label { cursor: pointer; }
.dogs-data-status { margin: 8px 0 0; font-size: .8rem; color: var(--brand); }
.dogs-data-status.is-error { color: #8A1F1F; }

.dogs-hero-art { display: flex; justify-content: center; gap: 14px; }
.dogs-art-card {
  width: 132px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}
.dogs-art-card-alt { transform: rotate(6deg) translateY(20px); background: #FFF8EA; border-color: #EAD9B4; }
.dogs-art-card b { font-size: .82rem; color: var(--brand); letter-spacing: .02em; }

.dogs-summary {
  margin: 22px 0 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.dogs-list-section { padding: clamp(22px, 3.5vw, 44px) 0 clamp(48px, 6vw, 78px); }

.dogs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.dogs-grid.is-single { max-width: 660px; margin-inline: auto; grid-template-columns: 1fr; }

.dog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 0 rgba(31, 92, 70, .03);
}
.dog-head { display: flex; align-items: flex-start; gap: 14px; }
.dog-avatar {
  width: 64px;
  height: 64px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border: 1px solid #CFE3D8;
  border-radius: 20px;
  overflow: hidden;
}
.dog-avatar svg { width: 52px; height: 52px; border-radius: 50%; }
.dog-head-main { min-width: 0; flex: 1; }
.dog-head h3 { margin: 0 0 3px; font-size: 1.3rem; word-break: break-word; }
.dog-head p { margin: 0; font-size: .84rem; color: var(--muted); }
.dog-edit {
  flex: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--brand);
  border-radius: 10px;
  padding: 7px 11px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.dog-edit:hover { background: var(--brand-soft); border-color: var(--brand); }

.dog-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.dog-facts li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .76rem;
  color: var(--muted);
}
.dog-facts li b { color: var(--ink); font-weight: 700; }

.dog-note {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
  background: #FBF9F4;
  border-radius: 10px;
  padding: 9px 11px;
}
.dog-note b { color: var(--ink); }

.dog-plan {
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.dog-plan-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dog-plan-tag {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: #DDF0E4;
  color: #1F5C46;
}
.dog-plan-tag.is-empty { background: var(--yellow-soft); color: #8A6118; }
.dog-plan h4 { margin: 0; font-size: 1rem; line-height: 1.35; }
.dog-plan-sub { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }

.dog-progress { margin: 0 0 12px; }
.dog-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; color: var(--muted-2); margin-bottom: 5px; }
.dog-progress-top b { color: var(--brand); }
.dog-progress-bar { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dog-progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.dog-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.dogs-empty {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}
.dogs-empty-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border-radius: 26px;
  margin-bottom: 16px;
}
.dogs-empty h2 { margin-bottom: 8px; }
.dogs-empty p { margin: 0 auto 18px; max-width: 34em; color: var(--muted); font-size: .94rem; }

/* ---------- Диалог ---------- */
.dog-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(680px, calc(100% - 28px));
  background: #FFFDF9;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.dog-dialog::backdrop { background: rgba(20, 16, 12, .58); backdrop-filter: blur(3px); }
.dog-form { padding: clamp(22px, 3.5vw, 32px); position: relative; }
.dog-form .bd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.dog-form .bd-close:hover { background: var(--line); color: var(--ink); }
.dog-form h2 { margin-bottom: 6px; padding-right: 40px; }
.dog-form-sub { margin: 0 0 18px; font-size: .86rem; color: var(--muted); max-width: 46em; }
.dog-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dog-form .field { display: flex; flex-direction: column; gap: 5px; }
.dog-form .field > span { font-size: .8rem; font-weight: 700; color: var(--ink); }
.dog-form .field input,
.dog-form .field select,
.dog-form .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
}
.dog-form .field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.dog-form .field input:focus,
.dog-form .field select:focus,
.dog-form .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 92, 70, .12);
}
.field-wide { margin-top: 12px; }
.dog-form-error {
  margin: 12px 0 0;
  background: #F7DADA;
  color: #8A1F1F;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: .84rem;
}
.dog-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.dog-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8A1F1F;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
}
.dog-delete:hover { text-decoration: underline; }
.dog-delete.is-armed { background: #F7DADA; padding: 8px 10px; }

/* ---------- Подписка на профили ---------- */
.dog-pay-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(540px, calc(100% - 28px));
  background: #FFFDF9;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.dog-pay-dialog::backdrop { background: rgba(20, 16, 12, .58); backdrop-filter: blur(3px); }
.dog-pay-inner { padding: clamp(22px, 3.5vw, 32px); position: relative; }
.dog-pay-inner .bd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.dog-pay-inner .bd-close:hover { background: var(--line); color: var(--ink); }
.dog-pay-inner h2 { margin-bottom: 8px; padding-right: 40px; }
.dog-pay-inner p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.dog-pay-inner ul { margin: 14px 0 18px; padding-left: 18px; display: grid; gap: 5px; font-size: .9rem; color: var(--muted); }
.dog-pay-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #8A6118;
  margin-bottom: 8px;
}
.dog-pay-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0; }
.dog-pay-price b { font-family: var(--font-head); font-size: 2rem; }
.dog-pay-price span { font-size: .84rem; color: var(--muted); }
.dog-pay-note { margin: 12px 0 0 !important; font-size: .78rem !important; color: var(--muted-2) !important; }

body.no-scroll { overflow: hidden; }

@media (max-width: 960px) {
  .dogs-hero-inner { grid-template-columns: 1fr; }
  .dogs-hero-art { order: -1; justify-content: flex-start; }
  .dogs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dogs-art-card { width: 104px; min-height: 104px; border-radius: 20px; }
  .dogs-hero-actions .btn { width: 100%; }
  .dog-form-grid { grid-template-columns: 1fr; }
  .dog-form-actions .btn { flex: 1; }
  .dog-delete { margin-left: 0; width: 100%; text-align: left; }
}
