:root {
  --ink: #070707;
  --accent: #ff8a4c;
  --accent-hover: #f47837;
  --text: #111111;
  --muted: #666666;
  --line: #e8e8e8;
  --soft: #f7f7f5;
  --white: #ffffff;
  --danger: #b83232;
  --max: 1240px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:target { scroll-margin-top: 150px; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 48px), 860px); margin-inline: auto; }
.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;
}

/* Header — black/white rhythm from the supplied PetFoodLab screenshots. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 14px;
  font-weight: 700;
}
.desktop-nav a,
.catalog-strip__links a { transition: color 0.18s ease; }
.desktop-nav a:hover,
.catalog-strip__links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.header-city {
  border: 0;
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
  padding: 8px 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.header-city span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-action {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}
.round-action:hover { transform: translateY(-2px); background: var(--accent); }
.round-action--cart span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 10px;
}
.catalog-strip { border-top: 1px solid rgba(255, 255, 255, 0.12); background: #111111; }
.catalog-strip__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.catalog-strip__links { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.header-search { display: flex; align-items: center; width: min(370px, 34vw); }
.header-search input {
  width: 100%;
  height: 34px;
  border: 1px solid #393939;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  padding: 0 14px;
  background: #1b1b1b;
  color: var(--white);
  outline: none;
}
.header-search input::placeholder { color: #999; }
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 0 999px 999px 0;
  padding: 0 15px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Hero */
.hero-home {
  min-height: calc(100vh - var(--site-header-height, 126px));
  color: var(--white);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34)),
    url("../img/hero-petfoodlab.f0e83e726143.jpg") center 48% / cover no-repeat;
}
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}
.hero-home__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 56px;
}
.hero-home h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: 1.07;
  letter-spacing: -2.5px;
  font-weight: 800;
}
.hero-home p {
  max-width: 900px;
  margin: 36px auto 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 24px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline,
.btn--ghost { background: var(--white); border-color: #cfcfcf; color: var(--ink); }
.btn--outline:hover,
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--small { min-height: 38px; padding: 7px 14px; font-size: 12px; text-transform: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--hero { min-width: 280px; margin-top: 42px; }
.cart-add-feedback {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  padding: 2px 1px;
  color: #525252;
  font-size: 12px;
  line-height: 1.35;
  animation: cartFeedbackIn .18s ease-out;
}
.cart-add-feedback[hidden] { display: none; }
.cart-add-feedback__icon {
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 900;
}
.cart-add-feedback__text { min-width: 0; font-weight: 600; }
.cart-add-feedback a {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid #a8a8a8;
}
.cart-add-feedback a:hover { border-bottom-color: var(--ink); }
.cart-add-feedback--detail { max-width: 560px; margin-top: 10px; font-size: 13px; }
.cart-add-feedback--error { color: var(--danger); }
.cart-add-feedback--error .cart-add-feedback__icon { color: var(--danger); }
.cart-add-feedback--leaving { opacity: 0; transform: translateY(-3px); transition: .18s ease; }
@keyframes cartFeedbackIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-home__down {
  margin-top: 55px;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  animation: downPulse 1.8s ease-in-out infinite;
}
@keyframes downPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Sections */
.section { padding: 92px 0; }
.section--catalog { padding-top: 104px; }
.section--soft { background: var(--soft); }
.section-title-row,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 46px;
}
.section-title-row h2,
.section-head h2,
.about-home h2,
.why-home h2 {
  margin: 6px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.8px;
}
.kicker,
.eyebrow {
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.section-title-row__links { display: flex; gap: 20px; font-weight: 700; }
.section-title-row__links a:hover,
.text-link:hover { color: var(--accent-hover); }
.text-link { font-weight: 800; }
.section-center { display: flex; justify-content: center; margin-top: 46px; }

/* Product cards: white, airy, image-led like the screenshots. */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 28px; }
.product-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; min-width: 0; flex-direction: column; background: var(--white); }
.product-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1 / 1.08;
}
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.28s ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 19px 0 0; }
.product-card__meta,
.product-card__flavor { color: var(--muted); font-size: 12px; }
.product-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.product-card h3 a:hover { color: var(--accent-hover); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 7px; }
.price-row strong { font-size: 18px; }
.price-row del { color: #999; font-size: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.badge--sale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); }

/* About block */
.about-home { padding: 120px 0; background: var(--white); }
.about-home__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 90px; }
.about-home__copy { max-width: 520px; }
.about-home__copy p { margin: 28px 0; color: #333; font-size: 18px; line-height: 1.75; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; }
.about-mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #efefed; }

/* Why block */
.why-home { min-height: 720px; padding: 118px 0; background: var(--white); }
.why-home__inner { width: min(calc(100% - 48px), 760px); margin-inline: auto; }
.why-home h2 { margin-bottom: 68px; }
.why-list { display: flex; flex-direction: column; gap: 45px; }
.why-item { display: grid; grid-template-columns: 54px 1fr; gap: 28px; align-items: start; }
.why-item__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  font-size: 26px;
  font-weight: 400;
}
.why-item h3 { margin: 0 0 15px; font-size: 17px; line-height: 1.35; }
.why-item p { margin: 0; color: #333; line-height: 1.75; }

/* Promotions */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promo-card { min-height: 230px; padding: 32px; border-radius: 2px; background: var(--white); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); }
.promo-card > span { color: var(--accent-hover); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.promo-card h3 { margin: 20px 0 10px; font-size: 25px; line-height: 1.15; }
.promo-card p { margin: 0; color: var(--muted); }
.promo-card--large { min-height: 280px; }

/* Inner pages */
.page-head { padding: 72px 0 62px; background: #f5f5f3; }
.page-head h1 { margin: 8px 0 10px; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -2px; }
.page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.breadcrumbs { color: var(--muted); font-size: 13px; }
.breadcrumbs a { font-weight: 700; }
.breadcrumbs a:hover { color: var(--accent-hover); }
.catalog-layout { display: grid; grid-template-columns: 255px 1fr; gap: 50px; align-items: start; }
.filters {
  position: sticky;
  top: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.filters form { display: flex; flex-direction: column; gap: 18px; }
.filters label,
.checkout-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.filters select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.auth-card input,
.article-filters select,
.location-manual input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: var(--white);
  padding: 9px 11px;
  outline: none;
}
.filters select:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.auth-card input:focus,
.article-filters select:focus,
.location-manual input:focus { border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.16); }
.filter-reset { text-align: center; color: var(--muted); font-size: 13px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; color: var(--muted); }
.filters-toggle { display: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 50px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; margin-top: 18px; }
.product-detail__gallery { position: relative; background: var(--white); overflow: hidden; }
.product-detail__gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product-detail__info h1 { margin: 10px 0 14px; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -2px; }
.sku { color: var(--muted); font-size: 13px; }
.product-price { display: flex; align-items: baseline; gap: 14px; margin: 27px 0; }
.product-price strong { font-size: 38px; }
.product-price del { color: #999; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips span { padding: 8px 12px; border-radius: 999px; background: #f1f1ef; font-size: 13px; }
.buy-form { display: flex; gap: 10px; margin: 26px 0; }
.buy-form input { width: 82px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.delivery-note { margin-top: 22px; padding: 20px; background: #f5f5f3; }
.delivery-note p { margin: 5px 0 0; color: var(--muted); }
.detail-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 58px; }
.detail-tabs article { padding: 30px; border: 1px solid var(--line); }
.detail-tabs h2 { margin-top: 0; }

/* Cart / checkout */
.cart-layout,
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 42px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); }
.cart-item > div:first-child { display: flex; flex-direction: column; }
.cart-item span { color: var(--muted); font-size: 13px; }
.cart-item input { width: 68px; min-height: 38px; border: 1px solid #ccc; padding: 6px; }
.link-danger { border: 0; background: transparent; color: var(--danger); cursor: pointer; }
.cart-summary { position: sticky; top: 150px; padding: 28px; background: #f5f5f3; }
.cart-summary h2 { margin-top: 0; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; }
.cart-summary__total { margin-top: 8px; border-top: 1px solid #d7d7d2; font-size: 20px; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.checkout-form label:has(textarea),
.checkout-form label:has(input[type='checkbox']),
.checkout-form button,
.checkout-form .form-hint,
.checkout-form .errorlist { grid-column: 1 / -1; }
.checkout-form input[type='checkbox'] { width: auto; min-height: 0; }
.error,
.errorlist,
.form-error { color: var(--danger); }
.form-hint { color: var(--muted); font-size: 13px; }
.empty-state,
.success-card { padding: 70px 30px; border: 1px dashed #ccc; text-align: center; background: var(--white); }
.success-card > span { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--white); font-size: 38px; }

/* Articles/content/auth/profile */
.article-filters { display: flex; gap: 10px; margin-bottom: 28px; }
.article-filters select { width: auto; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.article-card h2 { font-size: 23px; line-height: 1.25; }
.article-card p { color: var(--muted); }
.article-card > a:last-child { font-weight: 800; }
.article-card > a:last-child:hover { color: var(--accent-hover); }
.article-detail { padding: 90px 0; }
.article-detail h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -2.3px; }
.lead { color: var(--muted); font-size: 21px; }
.article-body { font-size: 18px; }
.content-card,
.auth-card { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.auth-card { max-width: 540px; margin: auto; }
.auth-card p { display: flex; flex-direction: column; gap: 5px; }
.auth-card ul { color: var(--muted); font-size: 12px; }
.profile-head { display: flex; align-items: center; justify-content: space-between; }
.orders { display: flex; flex-direction: column; gap: 12px; }
.order-card { display: grid; grid-template-columns: 1fr auto auto; gap: 25px; align-items: center; padding: 20px; border: 1px solid var(--line); }
.order-card > div:first-child { display: flex; flex-direction: column; }
.order-card span { color: var(--muted); font-size: 13px; }

.messages { position: relative; z-index: 65; }
.message { margin-top: 12px; padding: 13px 16px; border-left: 4px solid var(--accent); background: #fff3eb; }

/* Footer */
.footer { padding: 68px 0; margin-top: 0; background: var(--ink); color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
.footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer__grid a,
.footer__grid span,
.footer__grid p { color: #bdbdbd; }
.footer__grid a:hover { color: var(--accent); }
.footer__brand p { max-width: 330px; }
.brand--footer { color: var(--white); }
.mobile-nav { display: none; }

/* Location confirmation */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
.location-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); backdrop-filter: blur(3px); }
.location-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.location-card__close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.location-card__eyebrow { color: var(--accent-hover); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.location-card h2 { margin: 8px 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.12; letter-spacing: -1px; }
.location-card > p { margin: 0; color: var(--muted); }
.location-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.location-manual { margin-top: 24px; }
.location-manual label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.location-manual__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-error { margin: 9px 0 0; font-size: 13px; }

@media (max-width: 1100px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a:nth-child(5) { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-home__grid { gap: 55px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container,
  .container--narrow { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: relative; }
  .site-header__inner { min-height: 68px; grid-template-columns: 1fr auto; }
  .desktop-nav,
  .header-city,
  .catalog-strip__links { display: none; }
  .header-actions .round-action:first-of-type { display: none; }
  .catalog-strip__inner { min-height: 52px; }
  .header-search { width: 100%; }
  .hero-home { min-height: 680px; }
  .hero-home h1 { font-size: clamp(38px, 8vw, 62px); letter-spacing: -1.8px; }
  .section { padding: 70px 0; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .product-grid,
  .product-grid--home,
  .product-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  .about-home { padding: 85px 0; }
  .about-home__grid { grid-template-columns: 1fr; gap: 55px; }
  .about-home__copy { max-width: none; }
  .about-mosaic { max-width: 600px; }
  .why-home { padding: 85px 0; min-height: auto; }
  .why-home__inner { width: min(calc(100% - 28px), 760px); }
  .promo-grid,
  .article-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.filters--open { display: block; }
  .filters-toggle { display: inline-flex; }
  .product-detail { grid-template-columns: 1fr; gap: 38px; }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    background: var(--ink);
    border-top: 1px solid #272727;
  }
  .mobile-nav a,
  .mobile-nav button { min-height: 64px; display: grid; place-items: center; border: 0; background: transparent; color: var(--white); font-size: 12px; text-align: center; }
}

@media (max-width: 620px) {
  .hero-home { min-height: 620px; }
  .hero-home__inner { padding-top: 58px; }
  .hero-home h1 br { display: none; }
  .hero-home p { margin-top: 25px; }
  .btn--hero { width: 100%; min-width: 0; }
  .hero-home__down { margin-top: 34px; }
  .section-title-row h2,
  .section-head h2,
  .about-home h2,
  .why-home h2 { font-size: 34px; }
  .product-card__body { padding-top: 13px; }
  .product-card h3 { font-size: 14px; }
  .product-card__meta,
  .product-card__flavor { font-size: 11px; }
  .product-card .btn { padding-inline: 8px; font-size: 11px; }
  .about-mosaic { gap: 8px; }
  .why-home h2 { margin-bottom: 45px; }
  .why-item { grid-template-columns: 46px 1fr; gap: 18px; }
  .why-item__check { width: 44px; height: 44px; }
  .promo-grid,
  .article-grid,
  .detail-tabs { grid-template-columns: 1fr; }
  .checkout-form { grid-template-columns: 1fr; padding: 22px; }
  .checkout-form label,
  .checkout-form button,
  .checkout-form .form-hint,
  .checkout-form .errorlist { grid-column: 1; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item form:first-of-type { grid-column: 1 / 2; }
  .article-filters { flex-wrap: wrap; }
  .article-filters select { flex: 1; min-width: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .location-card { padding: 32px 22px 24px; }
  .location-card__actions { grid-template-columns: 1fr; }
  .location-manual__row { grid-template-columns: 1fr; }
  .profile-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .order-card { grid-template-columns: 1fr auto; }
  .order-card > strong { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .product-grid,
  .product-grid--home,
  .product-grid--catalog { grid-template-columns: 1fr; }
  .buy-form { flex-direction: column; }
  .buy-form input { width: 100%; min-height: 46px; }
}

/* v5 quality pass: alignment, accessibility, resilient long text and forms. */
html { min-width: 320px; }
body { overflow-wrap: anywhere; }
main { min-height: 40vh; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 138, 76, 0.52);
  outline-offset: 3px;
}
button, .btn, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled { cursor: not-allowed; }
button[aria-busy='true'] { cursor: progress; }
.muted { color: var(--muted); }

.site-header__inner { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto; }
.desktop-nav { min-width: 0; }
.header-actions { min-width: max-content; }
.header-city .icon { color: var(--accent); }
.round-action .icon { width: 19px; height: 19px; }
.header-search button { gap: 7px; }
.header-search button .icon { width: 16px; height: 16px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs > span { min-width: 0; }

.product-card { height: 100%; }
.product-card__body { min-height: 0; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 4px; min-height: 19px; }
.product-card h3 { overflow-wrap: anywhere; }
.product-card__action { margin-top: auto; padding-top: 5px; }
.product-card__image img { padding: clamp(8px, 1vw, 16px); }
.empty-state--grid { grid-column: 1 / -1; }

.filters form { gap: 8px; }
.filters form > label:not(:first-child) { margin-top: 10px; }
.filters select { margin-bottom: 2px; }
.filter-reset { margin-top: 4px; }
.catalog-results { min-width: 0; }
.pagination a,
.pagination__disabled {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.pagination__disabled { color: #aaa; background: #fafafa; }

.stock-note { margin: -14px 0 0; color: var(--muted); font-size: 13px; }
.detail-tabs p { margin-bottom: 0; }

.cart-item {
  grid-template-columns: 84px minmax(180px, 1fr) auto auto auto;
  gap: 16px;
}
.cart-item__image {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--white);
  overflow: hidden;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cart-item__info { min-width: 0; }
.cart-item__info strong { line-height: 1.35; }
.cart-item__quantity { display: flex; align-items: center; gap: 8px; }
.cart-item__subtotal { white-space: nowrap; }
.cart-item__remove { justify-self: end; }
.link-danger { padding: 6px; border-radius: 4px; }
.link-danger:hover { background: #fff1f1; }

.checkout-form { align-content: start; }
.checkout-form label { min-width: 0; }
.checkout-form textarea { resize: vertical; min-height: 112px; }
.checkout-form .checkbox-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.checkout-form .checkbox-field input { margin-top: 3px; flex: 0 0 auto; }
.checkout-form .checkbox-field a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.checkout-submit,
.checkout-form .form-hint,
.checkout-form .form-errors--wide,
.checkout-form .field-error--wide { grid-column: 1 / -1; }
.checkout-city,
.checkout-destination,
.delivery-calculate-row { grid-column: 1 / -1; }
.delivery-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.delivery-picker legend { margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.delivery-picker__status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.delivery-picker__status--error { color: var(--danger); }
.delivery-options > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.delivery-options__item { min-width: 0; }
.delivery-options__item label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  min-height: 78px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
}
.delivery-options__item label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.delivery-options__item label:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.delivery-options__item input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.delivery-options__detail {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.delivery-options__detail--error { color: var(--danger); }
.delivery-calculate-row { display: flex; justify-content: flex-start; }
.delivery-calculate-row .btn { margin: 0; }
.address-autocomplete {
  position: relative;
  display: block;
  width: 100%;
}
.address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
}
.address-suggestions[hidden] { display: none; }
.address-suggestions__option {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.address-suggestions__option:hover,
.address-suggestions__option--active {
  background: #f5f5f3;
  color: var(--ink);
}
.cart-summary__products { margin-top: 8px; border-top: 1px solid #d7d7d2; }
.cart-summary__delivery strong { text-align: right; }
.char-counter { align-self: flex-end; color: var(--muted); font-size: 11px; font-weight: 400; }
.form-errors {
  padding: 12px 14px;
  border-left: 4px solid var(--danger);
  background: #fff1f1;
  color: var(--danger);
}
.form-errors .errorlist { margin: 0; padding-left: 18px; }
.errorlist { margin: 4px 0 0; padding-left: 18px; }
.error { display: block; line-height: 1.35; font-weight: 500; }

.auth-section { background: var(--soft); }
.auth-card { border-radius: 2px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06); }
.auth-card h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
.auth-card__intro { margin: 0 0 26px; color: var(--muted); }
.auth-card label { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.auth-card label input { margin: 0; }
.auth-card .checkbox-field { flex-direction: row; align-items: flex-start; font-weight: 500; }
.auth-card .checkbox-field input { width: auto; min-height: 0; margin-top: 3px; flex: 0 0 auto; }
.auth-card .checkbox-field a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-card .btn { margin-top: 22px; }
.auth-field { display: grid; gap: 7px; margin-top: 16px; }
.auth-field > label { margin: 0; }
.password-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-control {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d7d7d2;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.password-control:hover { border-color: var(--ink); }
.password-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.auth-card .password-actions .btn { width: auto; margin: 0; padding: 10px 14px; }
.password-actions .password-control { min-height: 40px; }
.password-strength { display: grid; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.password-strength::before {
  content: '';
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e4e4df;
}
.password-strength__bar {
  display: block;
  width: var(--password-strength, 0%);
  height: 5px;
  margin-top: -11px;
  border-radius: 999px;
  background: var(--password-strength-color, var(--danger));
  transition: width 160ms ease;
}
.auth-card__switch { display: block !important; margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-card__switch a { color: var(--text); font-weight: 800; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 400; }

.profile-identity { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #d7d7d2;
  background: var(--white);
}
.phone-status--verified { border-left: 4px solid #2b8a3e; }
.phone-status--required { border-left: 4px solid #b7791f; background: #fff8e8; }
.phone-status p { margin: 5px 0 0; color: var(--muted); }
.phone-status .btn { flex: 0 0 auto; }
.auth-card input[autocomplete='one-time-code'] {
  letter-spacing: 0.45em;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}
.order-card__status { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 10px; border-radius: 12px; background: var(--soft); font-size: 13px; white-space: nowrap; }
.order-card__status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.message { border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.message--success { border-left-color: #2b8a3e; background: #effaf1; }
.message--error { border-left-color: var(--danger); background: #fff1f1; }
.message--warning { border-left-color: #b7791f; background: #fff8e8; }

.location-card { border-radius: 2px; }
.location-card:focus { outline: none; }
.location-card__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.location-card__close:hover { background: var(--soft); }
.location-manual input[aria-invalid='true'] { border-color: var(--danger); }

@media (max-width: 620px) {
  .phone-status { align-items: stretch; flex-direction: column; }
  .phone-status .btn { width: 100%; }
}

.footer__grid a { overflow-wrap: anywhere; }
.mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav a,
.mobile-nav button { padding: 6px 4px; line-height: 1.2; }

@media (max-width: 1180px) and (min-width: 861px) {
  .site-header__inner { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; }
  .desktop-nav { gap: 14px; font-size: 13px; }
  .desktop-nav a:nth-child(5) { display: none; }
  .header-city { max-width: 125px; }
  .catalog-strip__links { gap: 16px; }
}

@media (max-width: 1040px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .cart-item { grid-template-columns: 72px minmax(150px, 1fr) auto; }
  .cart-item__image { width: 72px; height: 72px; grid-row: span 2; }
  .cart-item__quantity { grid-column: 2; }
  .cart-item__subtotal { grid-column: 3; grid-row: 1; }
  .cart-item__remove { grid-column: 3; grid-row: 2; }
}

@media (max-width: 860px) {
  .header-actions { gap: 8px; }
  .site-header__inner { gap: 12px; }
  .catalog-strip { border-top-color: #222; }
  .hero-home { min-height: min(680px, calc(100svh - 120px)); }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 620px) {
  .page-head { padding: 50px 0 44px; }
  .page-head h1 { letter-spacing: -1.3px; }
  .product-card__image img { padding: 8px; }
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: start;
    padding: 14px;
    gap: 10px;
  }
  .cart-item__image { width: 64px; height: 64px; grid-row: 1 / span 2; }
  .cart-item__info { grid-column: 2 / -1; }
  .cart-item__quantity { grid-column: 2; flex-wrap: wrap; }
  .cart-item__subtotal { grid-column: 3; grid-row: 2; align-self: center; }
  .cart-item__remove { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
  .checkout-form .checkbox-field { grid-column: 1; }
  .checkout-submit,
  .checkout-form .form-hint,
  .checkout-form .form-errors--wide,
  .checkout-form .field-error--wide { grid-column: 1; }
  .delivery-picker { grid-column: 1; }
  .checkout-city,
  .checkout-destination,
  .delivery-calculate-row { grid-column: 1; }
  .delivery-options > div { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
  .article-detail h1 { letter-spacing: -1.5px; }
}

@media (max-width: 420px) {
  .container,
  .container--narrow { width: min(calc(100% - 22px), var(--max)); }
  .brand { font-size: 19px; }
  .round-action { width: 44px; height: 44px; }
  .header-search button span { display: none; }
  .header-search button { width: 46px; padding: 0; }
  .hero-home h1 { font-size: 36px; }
  .cart-item { grid-template-columns: 58px minmax(0, 1fr); }
  .cart-item__image { width: 58px; height: 58px; }
  .cart-item__info { grid-column: 2; }
  .cart-item__quantity { grid-column: 1 / -1; }
  .cart-item__subtotal { grid-column: 2; grid-row: 3; justify-self: end; }
  .cart-item__remove { grid-column: 1; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* v6 polish pass: fixed header search geometry, balanced service pages and contacts. */
.header-search { min-width: 0; }
.header-search input { min-width: 0; flex: 1 1 auto; }
.header-search button {
  flex: 0 0 auto;
  min-width: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}
.header-search button span { display: inline-block; white-space: nowrap; }

.rich-plain-text { color: #333; font-size: 17px; line-height: 1.75; }
.rich-plain-text > :first-child { margin-top: 0; }
.rich-plain-text > :last-child { margin-bottom: 0; }
.content-card--page { padding: clamp(28px, 5vw, 54px); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.045); }
.service-content-section { min-height: 360px; }

.page-head--contacts { padding-bottom: 74px; }
.contacts-section { background: var(--white); }
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
.contacts-primary { display: grid; gap: 18px; }
.contact-card {
  min-height: 190px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: #d0d0d0; box-shadow: 0 18px 45px rgba(0,0,0,.06); }
.contact-card--accent { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact-card__label { color: var(--accent-hover); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.contact-card strong { max-width: 100%; font-size: clamp(25px, 3vw, 40px); line-height: 1.12; letter-spacing: -1px; overflow-wrap: anywhere; }
.contact-card > span:last-child { color: var(--muted); }
.contact-card--accent > span:last-child { color: #c7c7c7; }
.contacts-note { padding: clamp(30px, 4vw, 52px); background: var(--soft); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contacts-note h2 { margin: 9px 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -1.5px; }
.contacts-note > p { margin: 0; font-size: 18px; line-height: 1.65; }
.contacts-note__body { margin: 22px 0 28px; font-size: 15px; color: var(--muted); }

.product-detail__gallery img { padding: clamp(14px, 2vw, 30px); }
.detail-tabs article { min-width: 0; }
.article-card { display: flex; flex-direction: column; min-width: 0; }
.article-card > a:last-child { margin-top: auto; padding-top: 12px; }
.promo-card { min-width: 0; }
.promo-card h2 { margin: 20px 0 12px; line-height: 1.15; }
.empty-state h2, .success-card h1 { margin-top: 0; }

@media (max-width: 860px) {
  .header-search button { min-width: 92px; }
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-note { min-height: 320px; }
}

@media (max-width: 520px) {
  .catalog-strip__inner { gap: 0; }
  .header-search { width: 100%; }
  .header-search input { height: 44px; padding-inline: 14px 10px; }
  .header-search button { height: 44px; min-width: 76px; padding-inline: 11px; font-size: 12px; }
  .header-search button .icon { width: 15px; height: 15px; }
  .contact-card { min-height: 155px; }
  .contact-card strong { font-size: 25px; }
  .contacts-note { min-height: 0; }
  .content-card--page { padding: 26px 20px; }
}

@media (max-width: 360px) {
  .header-search button { min-width: 48px; width: 48px; padding: 0; }
  .header-search button span { display: none; }
}

/* v7 cart UX and contacts background pass. */
.toast-stack {
  position: relative;
  z-index: 10;
  width: min(380px, calc(100vw - 32px));
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-stack:empty { display: none; }
.message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.96);
  color: var(--white);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.message > span { min-width: 0; overflow-wrap: anywhere; }
.message > button {
  width: 28px;
  height: 28px;
  margin: -7px -8px -7px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.message > button:hover,
.message > button:focus-visible { background: rgba(255, 255, 255, 0.12); }
.message--success { border-left-color: #35b86b; background: rgba(12, 30, 19, 0.96); }
.message--error { border-left-color: var(--danger); background: rgba(42, 14, 14, 0.96); }
.message--warning { border-left-color: #d59a28; background: rgba(43, 31, 12, 0.96); }
.toast { animation: toastIn 0.18s ease-out; }
.toast--leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item__quantity {
  display: grid;
  align-items: start;
  gap: 6px;
  min-width: 78px;
}
.cart-item__quantity input {
  width: 72px;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cart-item__quantity--saving input {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.14);
}
.cart-item__autosave {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.page-head--contacts {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.46) 54%, rgba(0, 0, 0, 0.16) 100%),
    url("../img/pets-outdoors.45be45264af2.jpg") center 56% / cover no-repeat;
}
.page-head--contacts .container { position: relative; z-index: 1; }
.page-head--contacts .kicker { color: #ffb27f; }
.page-head--contacts h1 {
  max-width: 760px;
  color: var(--white);
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}
.page-head--contacts p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}
.contacts-section {
  background:
    linear-gradient(180deg, rgba(247, 248, 244, 0.96), rgba(255, 255, 255, 0.98)),
    url("../img/pets-outdoors.45be45264af2.jpg") center bottom / cover no-repeat;
}
.contact-card {
  border-color: rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(19, 37, 24, 0.10);
  backdrop-filter: blur(10px);
}
.contact-card strong { letter-spacing: 0; }
.contact-card--accent {
  border-color: rgba(7, 7, 7, 0.9);
  background: rgba(7, 7, 7, 0.94);
}
.contacts-note {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px rgba(19, 37, 24, 0.12);
  backdrop-filter: blur(12px);
}
.contacts-note h2 { letter-spacing: 0; }

@media (max-width: 620px) {
  .toast-stack {
    margin-top: 12px;
    width: calc(100vw - 24px);
  }
  .cart-add-feedback { grid-template-columns: auto minmax(0, 1fr); }
  .cart-add-feedback a { grid-column: 2; justify-self: start; }
  .page-head--contacts {
    padding: 74px 0 64px;
    background-position: 42% center;
  }
}

/* Standalone error pages: intentionally independent from database context processors. */
.error-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}
.error-page {
  width: min(100%, 720px);
  padding: clamp(30px, 7vw, 72px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}
.error-page__code {
  margin: 44px 0 6px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.error-page h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -2px;
}
.error-page > p:not(.error-page__code) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
@media (max-width: 520px) {
  .error-page__actions { flex-direction: column; }
  .error-page__actions .btn { width: 100%; }
}

/* Restrained storefront pass: conventional ecommerce layout, fewer decorative cards. */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; }

/* Keep delivery choices native and predictable across browsers. */
.delivery-options__item label {
  min-height: 82px;
  padding: 14px;
  border-radius: 7px;
  column-gap: 10px;
  letter-spacing: 0;
  word-spacing: 0;
}
.delivery-options__item input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  appearance: auto;
  -webkit-appearance: radio;
  accent-color: #111;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.delivery-options__item input[type="radio"]:focus-visible {
  outline: 2px solid rgba(244, 120, 55, .32);
  outline-offset: 2px;
}
.delivery-options__detail {
  margin-top: 2px;
  letter-spacing: 0;
  word-spacing: 0;
}
.btn {
  min-height: 44px;
  border-radius: 6px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.btn--primary,
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline,
.btn--ghost { border-radius: 6px; background: #fff; }
.auth-card {
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.filters select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.auth-card input,
.article-filters select,
.location-manual input { border-radius: 6px; }

.service-content-section { background: #fff; }
.service-page-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}
.service-page-simple .content-card--page {
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.service-summary {
  padding: 22px 0 22px 24px;
  border-left: 1px solid #d8d8d3;
}
.service-summary h2 { margin: 0 0 14px; font-size: 20px; }
.service-summary ul { margin: 0; padding-left: 18px; color: #555; line-height: 1.7; }
.rich-plain-text { font-size: 17px; line-height: 1.78; }

.articles-page { background: #fff; }
.articles-lead {
  max-width: 760px;
  margin-bottom: 34px;
}
.articles-lead h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.articles-lead p { margin: 0; color: #555; font-size: 17px; }
.article-filters { padding: 0 0 26px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.article-grid--plain { gap: 0 34px; }
.article-card--plain {
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.article-card--plain:hover { transform: none; box-shadow: none; }
.article-card__meta { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.article-card__meta span + span::before { content: " · "; margin: 0 5px; }
.article-card--plain h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.article-card--plain p { margin: 0; color: #555; line-height: 1.65; }
.article-card__link { display: inline-block; margin-top: 16px; font-weight: 700; }
.article-detail--plain { padding: 76px 0; background: #fff; }
.article-detail--plain h1 { margin: 18px 0; letter-spacing: -.035em; }
.article-meta-line { margin-top: 18px; color: var(--muted); font-size: 13px; }
.article-meta-line span + span::before { content: " · "; margin: 0 5px; }
.article-detail--plain .lead { max-width: 720px; margin-bottom: 34px; color: #555; font-size: 19px; line-height: 1.6; }
.article-back { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; }

.profile-simple { max-width: 1040px; }
.profile-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; margin-bottom: 42px; }
.profile-toolbar .phone-status {
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
}
.profile-head { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.profile-head h2 { margin: 0; font-size: 28px; }
.orders--plain { display: grid; }
.order-card--plain {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(170px,.6fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.order-card--plain > div:first-child { display: flex; flex-direction: column; }
.order-card--plain span { color: var(--muted); font-size: 13px; }
.order-card--plain .order-card__status { padding: 0; background: transparent; border-radius: 0; }

.success-card--order { max-width: 720px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.success-card--order > h1 { margin-top: 0; }
.order-payment-state { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-payment-state span { color: var(--muted); }
.payment-action { margin: 22px 0; }
.payment-note { margin: 22px 0; padding: 14px 16px; border-left: 3px solid #b7791f; background: #fff8e8; }

.toast-stack { top: 96px; right: 18px; width: min(360px, calc(100vw - 28px)); }
.message {
  padding: 13px 42px 13px 15px;
  border: 1px solid #deded9;
  border-left: 3px solid #777;
  border-radius: 6px;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.message::before { display: none; }
.message--success { border-left-color: #2b8a3e; background: #fff; }
.message--error { border-left-color: var(--danger); background: #fff; }
.message--warning { border-left-color: #b7791f; background: #fff; }
.message > button { top: 7px; right: 7px; color: #666; }

@media (max-width: 860px) {
  .service-page-simple { grid-template-columns: 1fr; gap: 28px; }
  .service-summary { padding: 20px; border: 1px solid var(--line); }
  .profile-toolbar { grid-template-columns: 1fr; }
  .order-card--plain { grid-template-columns: 1fr auto; }
  .order-card--plain .order-card__status { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .article-grid--plain { grid-template-columns: 1fr; }
  .success-card--order { padding: 24px 20px; }
  .order-card--plain { grid-template-columns: 1fr; }
}

/* Restrained storefront motion, full first viewport and delivery page. */
:root { --site-header-height: 126px; }
html { scroll-padding-top: calc(var(--site-header-height) + 14px); }

/* The opening image owns the whole visible viewport below the sticky header. */
.hero-home {
  min-height: calc(100svh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
}
.hero-home__inner {
  min-height: calc(100svh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  justify-content: center;
  padding-top: clamp(48px, 7vh, 84px);
  padding-bottom: clamp(36px, 6vh, 68px);
}
.hero-home__down {
  margin-top: clamp(34px, 6vh, 58px);
  animation: none;
  opacity: .82;
  transition: opacity .16s ease, transform .16s ease;
}
.hero-home__down:hover,
.hero-home__down:focus-visible { opacity: 1; transform: translateY(2px); }

/* Natural micro-interactions: fast feedback, no floating/scaling effect. */
.btn {
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .11s ease;
}
.btn:hover { transform: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.desktop-nav a,
.catalog-strip__links a,
.text-link,
.article-card__link,
.footer a {
  transition: color .15s ease, opacity .15s ease, border-color .15s ease;
}
.round-action { transition: background-color .15s ease, color .15s ease, transform .12s ease; }
.round-action:hover { transform: translateY(-1px); }

/* Dedicated delivery/payment page — editorial, not card-heavy. */
.delivery-page { background: #fff; }
.delivery-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
}
.delivery-page__copy h2,
.delivery-page__process h2,
.delivery-page__notes h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.delivery-page__copy > p,
.delivery-page__payment > p,
.delivery-page__notes > p {
  margin: 0;
  color: #555;
  font-size: 17px;
  line-height: 1.72;
}
.delivery-methods {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.delivery-method {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-method strong { font-size: 16px; }
.delivery-method p { margin: 0; color: #555; line-height: 1.62; }
.delivery-page__consent {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.delivery-page__consent strong { display: block; margin-bottom: 8px; font-size: 16px; }
.delivery-page__consent p { margin: 0; color: #555; font-size: 14px; line-height: 1.65; }
.delivery-page__payment {
  padding: 4px 0 4px 30px;
  border-left: 1px solid #cfcfca;
}
.delivery-page__payment h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.delivery-page__payment-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #555;
  font-size: 14px;
  line-height: 1.65;
}
.delivery-page__payment-meta strong { color: var(--ink); }
.delivery-page__process {
  margin-top: 88px;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}
.delivery-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.delivery-process__step {
  min-width: 0;
  padding: 24px 24px 26px 0;
}
.delivery-process__step + .delivery-process__step {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.delivery-process__number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.delivery-process__step h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.25; }
.delivery-process__step p { margin: 0; color: #555; font-size: 14px; line-height: 1.6; }
.delivery-page__notes {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 60px;
  margin-top: 70px;
}
.delivery-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.delivery-checklist li {
  position: relative;
  padding: 17px 0 17px 26px;
  border-bottom: 1px solid var(--line);
  color: #444;
  line-height: 1.55;
}
.delivery-checklist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: 800;
}
.delivery-page__fineprint {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .delivery-page__intro,
  .delivery-page__notes { grid-template-columns: 1fr; gap: 36px; }
  .delivery-page__consent { margin-top: 24px; }
  .delivery-page__payment { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .delivery-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-process__step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .delivery-process__step:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .delivery-method { grid-template-columns: 1fr; gap: 8px; }
  .delivery-page__process { margin-top: 64px; padding-top: 46px; }
  .delivery-process { grid-template-columns: 1fr; }
  .delivery-process__step,
  .delivery-process__step + .delivery-process__step,
  .delivery-process__step:nth-child(3),
  .delivery-process__step:nth-child(4) {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .delivery-process__step:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home__down,
  .btn,
  .round-action { transition: none !important; }
}

/* Basket discounts */
.discount-progress {
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--soft);
}
.discount-progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.discount-progress__head h2 { margin: 0 0 4px; font-size: clamp(20px, 2vw, 26px); }
.discount-progress__head p { margin: 0; color: var(--muted); font-size: 14px; }
.discount-progress__welcome {
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 76, 0.35);
  background: rgba(255, 138, 76, 0.08);
  display: grid;
  gap: 2px;
}
.discount-progress__welcome strong { color: var(--accent-hover); }
.discount-progress__welcome span { color: var(--muted); font-size: 13px; }
.discount-progress__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.discount-progress__group {
  --discount-group-color: #16876e;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.discount-progress__group--dog { --discount-group-color: #356fcb; }
.discount-progress__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.discount-progress__group-head h3 { margin: 0; font-size: 15px; text-transform: uppercase; }
.discount-progress__group-head > strong { color: var(--discount-group-color); font-size: 13px; }
.discount-progress__track-wrap { position: relative; height: 72px; margin: 10px 32px 0; }
.discount-progress__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 5px;
  border-radius: 999px;
  background: #e8edf1;
  overflow: hidden;
}
.discount-progress__fill {
  display: block;
  width: var(--discount-value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--discount-group-color);
  transition: width 0.25s ease;
}
.discount-progress__tier {
  position: absolute;
  left: var(--discount-value, 0%);
  top: 0;
  width: 64px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  grid-template-rows: 26px 11px auto;
  gap: 5px;
  color: #9aa2aa;
  text-align: center;
}
.discount-progress__tier:first-of-type { transform: translateX(-50%); }
.discount-progress__tier strong { font-size: 15px; line-height: 1; }
.discount-progress__tier small { white-space: nowrap; font-size: 11px; }
.discount-progress__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd5da;
  box-shadow: 0 0 0 3px var(--white);
}
.discount-progress__tier.is-reached { color: var(--discount-group-color); }
.discount-progress__tier.is-reached .discount-progress__dot { background: var(--discount-group-color); }
.discount-progress__status { margin: 0; color: var(--muted); font-size: 13px; }
.discount-progress__note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.cart-item__discount { display: block; margin-top: 3px; color: var(--accent-hover) !important; font-weight: 700; }
.cart-item__discount.is-hidden,
.cart-item__base-subtotal.is-hidden,
.cart-summary__discount.is-hidden { display: none; }
.cart-item__price { display: grid; justify-items: end; gap: 2px; min-width: 95px; }
.cart-item__base-subtotal { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.cart-summary__discount { color: #16876e; }
.checkout-discount-note {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: rgba(255, 138, 76, 0.08);
  color: var(--muted);
  font-size: 12px;
}
.checkout-order-line > span { display: grid; gap: 2px; }
.checkout-order-line > span small { color: var(--accent-hover); font-size: 11px; font-weight: 700; }
.checkout-order-line > strong { display: grid; justify-items: end; }
.checkout-order-line > strong small { color: var(--muted); font-size: 11px; font-weight: 400; text-decoration: line-through; }

@media (max-width: 820px) {
  .discount-progress__head { flex-direction: column; }
  .discount-progress__welcome { max-width: none; width: 100%; }
  .discount-progress__groups { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .discount-progress { padding: 16px 14px; }
  .discount-progress__group { padding-inline: 12px; }
  .discount-progress__group-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .discount-progress__track-wrap { margin-inline: 27px; }
  .discount-progress__tier { width: 54px; }
  .discount-progress__tier small { font-size: 10px; }
  .cart-item__price { grid-column: 2; grid-row: 3; }
}

@media (max-width: 1040px) {
  .cart-item__price { grid-column: 3; grid-row: 1; }
}

@media (max-width: 620px) {
  .cart-item__price { grid-column: 3; grid-row: 2; align-self: center; }
}

@media (max-width: 420px) {
  .cart-item__price { grid-column: 2; grid-row: 3; justify-self: end; }
}

/* On-demand storefront offers */
.notification-center { position: relative; flex: 0 0 auto; }
.notification-center__trigger { list-style: none; cursor: pointer; }
.notification-center__trigger::-webkit-details-marker { display: none; }
.notification-center[open] .notification-center__trigger { background: var(--accent); }
.notification-center__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 2;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 160px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
}
.notification-center__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.notification-center__head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.notification-center__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; font-size: 23px; line-height: 1; }
.notification-center__close:hover { background: var(--line); color: var(--ink); }
.notification-center__item { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.notification-center__symbol { display: grid; place-items: center; min-height: 42px; border-radius: 10px; background: #fff0e6; color: #923d0d; font-size: 14px; font-weight: 800; }
.notification-center__symbol .icon { width: 22px; height: 22px; }
.notification-center__item h3 { margin: 0 0 3px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.notification-center__item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.notification-center__item a, .notification-center__footer a { display: inline-block; margin-top: 7px; color: #9a420e; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notification-center__footer { padding-top: 9px; }
.notification-center :is(a,button,summary):focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
@media (max-width: 860px) {
  .header-actions .notification-center__trigger.round-action:first-of-type { display: grid; }
  .header-actions > .round-action--cart:first-of-type { display: grid; }
  .notification-center { position: static; }
  .notification-center__panel { top: 60px; left: 14px; right: 14px; width: auto; max-width: 360px; margin-left: auto; max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .desktop-nav { gap: 10px; }
  .header-city { max-width: 90px; }
  .desktop-nav { flex-wrap: wrap; row-gap: 4px; }
}

/* Marketing consent and replenishment preferences */
.marketing-consent-box,
.profile-mini-survey,
.checkout-extra {
  grid-column: 1 / -1;
  margin: 4px 0;
  padding: 18px;
  border: 1px solid #deded9;
  border-radius: 8px;
  background: #fafaf8;
}
.marketing-consent-box legend,
.profile-mini-survey legend,
.checkout-extra legend { padding: 0 6px; font-size: 14px; font-weight: 800; }
.marketing-consent-box legend span,
.profile-mini-survey legend span,
.checkout-extra legend span { color: var(--muted); font-size: 11px; font-weight: 600; }
.marketing-consent-box > p,
.profile-mini-survey > p,
.checkout-extra > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.profile-mini-survey__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.profile-mini-survey__channels { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.profile-mini-survey__or { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.marketing-benefit-note {
  margin-bottom: 6px;
  padding: 14px 15px;
  border-left: 3px solid var(--accent);
  background: #fff7f1;
}
.marketing-benefit-note strong { display: block; margin-bottom: 3px; font-size: 13px; }
.marketing-benefit-note p { margin: 0; color: #555; font-size: 12px; line-height: 1.5; }

.consent-separator { height: 1px; margin: 12px 0; background: #deded9; }
.checkout-extra--reminder .profile-mini-survey__grid { opacity: .55; }
.checkout-extra--reminder.is-expanded .profile-mini-survey__grid { opacity: 1; }

.profile-engagement { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 44px; }
.profile-engagement__section { padding: 22px; border: 1px solid var(--line); background: #fff; }
.profile-engagement__section--wide { grid-column: 1 / -1; }
.profile-engagement__section .profile-head { margin-bottom: 16px; }
.profile-settings-form { display: grid; gap: 10px; }
.profile-settings-form > p, .profile-setting-status { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.pet-profile-list { display: grid; gap: 12px; margin: 18px 0; }
.pet-profile-card { display: grid; grid-template-columns: repeat(5, minmax(110px,1fr)) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); background: var(--soft); }
.pet-profile-card h3 { grid-column: 1 / -1; margin: 0; }
.pet-profile-card label:not(.checkbox-field) { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.pet-profile-card input, .pet-profile-card select { min-height: 40px; }
.pet-profile-card__channels { grid-column: 1 / -2; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pet-profile-card--new { margin-top: 14px; }

@media (max-width: 860px) {
  .profile-engagement { grid-template-columns: 1fr; }
  .profile-engagement__section--wide { grid-column: auto; }
  .pet-profile-card { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pet-profile-card__channels { grid-column: 1 / -1; }
  .pet-profile-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .profile-mini-survey__grid { grid-template-columns: 1fr; }
  .marketing-consent-box, .profile-mini-survey, .checkout-extra { padding: 15px 13px; }
  .pet-profile-card { grid-template-columns: 1fr; }
  .pet-profile-card__channels { grid-column: 1; }
}

/* Loyalty program */
.loyalty-panel {
  margin: 0 0 42px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.loyalty-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.loyalty-panel__head h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.loyalty-panel__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.loyalty-progress { margin-top: 24px; }
.loyalty-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #ecece8;
  accent-color: var(--accent);
}
.loyalty-progress progress::-webkit-progress-bar { background: #ecece8; border-radius: 999px; }
.loyalty-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.loyalty-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.loyalty-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.loyalty-progress__meta strong { color: var(--ink); text-align: right; }
.loyalty-rewards { display: grid; gap: 10px; margin-top: 22px; }
.loyalty-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.loyalty-reward > div { display: grid; gap: 2px; }
.loyalty-reward span { color: var(--muted); font-size: 12px; }
.loyalty-reward > span { max-width: 280px; text-align: right; }
.loyalty-panel__text { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.checkout-discount-note--loyalty { border-left: 3px solid #111; background: #f5f5f3; }

@media (max-width: 620px) {
  .loyalty-panel__head,
  .loyalty-progress__meta,
  .loyalty-reward { align-items: flex-start; flex-direction: column; }
  .loyalty-progress__meta strong,
  .loyalty-reward > span { max-width: none; text-align: left; }
}

/* Profile and pet forms: neutral field focus, without orange focus boxes. */
.pet-profile-card input:not([type="checkbox"]):not([type="radio"]),
.pet-profile-card select,
.profile-settings-form input:not([type="checkbox"]):not([type="radio"]),
.profile-settings-form select,
.profile-mini-survey input:not([type="checkbox"]):not([type="radio"]),
.profile-mini-survey select {
  border: 1px solid #cfcfca;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  outline: none;
}
.pet-profile-card input:not([type="checkbox"]):not([type="radio"]):focus,
.pet-profile-card select:focus,
.profile-settings-form input:not([type="checkbox"]):not([type="radio"]):focus,
.profile-settings-form select:focus,
.profile-mini-survey input:not([type="checkbox"]):not([type="radio"]):focus,
.profile-mini-survey select:focus,
.pet-profile-card input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.pet-profile-card select:focus-visible,
.profile-settings-form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.profile-settings-form select:focus-visible,
.profile-mini-survey input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.profile-mini-survey select:focus-visible {
  border-color: #9f9f9a;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
  outline: none;
  outline-offset: 0;
}


/* Account settings */
.profile-simple .profile-toolbar { align-items: center; margin-bottom: 24px; }
.profile-simple .profile-engagement { gap: 18px; align-items: stretch; }
.profile-simple .profile-engagement__section {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid #e2e2df;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(17,17,17,.035);
  display: flex;
  flex-direction: column;
}
.profile-simple .profile-engagement__section .profile-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.profile-simple .profile-engagement__section .profile-head h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.profile-simple .profile-section-intro,
.profile-simple .profile-engagement__section > p,
.profile-simple .profile-settings-form > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.profile-simple .profile-engagement__section > .profile-name-notice {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff5eb;
  color: #783b12;
}
.profile-simple .profile-settings-form { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.profile-simple .profile-name-field { display: grid; gap: 6px; min-width: 0; }
.profile-simple .profile-name-field label { font-size: 13px; font-weight: 700; }
.profile-simple .profile-name-field label span { color: var(--muted); }
.profile-simple .profile-name-field input,
.profile-simple .pet-profile-card input:not([type="checkbox"]):not([type="hidden"]),
.profile-simple .pet-profile-card select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
}
.profile-simple .profile-name-field input[aria-invalid="true"] { border-color: var(--danger); }
.profile-simple .profile-settings-form > p { margin-bottom: 0; }
.profile-simple .profile-settings-form .checkbox-field,
.profile-simple .pet-profile-card .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.profile-simple .profile-settings-form .checkbox-field {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafaf9;
}
.profile-simple .checkbox-field input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.profile-simple .checkbox-field input:disabled + span { color: var(--muted); }
.profile-simple .checkbox-field small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.profile-simple .profile-settings-form > .btn { margin-top: auto; width: 100%; }
.profile-simple .profile-engagement__section--telegram {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 24px;
  align-items: center;
}
.profile-simple .profile-engagement__section--telegram .profile-head { grid-column: 1; margin: 0; padding: 0; border: 0; }
.profile-simple .profile-engagement__section--telegram > p { grid-column: 1; margin: 0; }
.profile-simple .profile-engagement__section--telegram > .btn { grid-column: 2; grid-row: 1 / 3; }
.profile-simple .pet-profile-card { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border-radius: 8px; }
.profile-simple .pet-profile-card__channels { grid-column: 1 / -1; }
.profile-simple .pet-profile-card > .btn { grid-column: 1 / -1; justify-self: start; }
.profile-simple .profile-name-field input:focus-visible,
.profile-simple .pet-profile-card input:focus-visible,
.profile-simple .pet-profile-card select:focus-visible,
.profile-simple .checkbox-field input:focus-visible,
.profile-simple .btn:focus-visible { outline: 2px solid #555; outline-offset: 2px; }
@media (max-width: 860px) {
  .profile-simple .pet-profile-card { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .profile-simple .profile-toolbar .phone-status { align-items: stretch; flex-direction: column; }
  .profile-simple .profile-engagement__section--telegram { grid-template-columns: minmax(0,1fr); }
  .profile-simple .profile-engagement__section--telegram > .btn { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .profile-simple .pet-profile-card { grid-template-columns: minmax(0,1fr); }
  .profile-simple .pet-profile-card > .btn { justify-self: stretch; }
}


.discount-progress--value-0 { --discount-value: 0%; }
.discount-progress--value-1 { --discount-value: 1%; }
.discount-progress--value-2 { --discount-value: 2%; }
.discount-progress--value-3 { --discount-value: 3%; }
.discount-progress--value-4 { --discount-value: 4%; }
.discount-progress--value-5 { --discount-value: 5%; }
.discount-progress--value-6 { --discount-value: 6%; }
.discount-progress--value-7 { --discount-value: 7%; }
.discount-progress--value-8 { --discount-value: 8%; }
.discount-progress--value-9 { --discount-value: 9%; }
.discount-progress--value-10 { --discount-value: 10%; }
.discount-progress--value-11 { --discount-value: 11%; }
.discount-progress--value-12 { --discount-value: 12%; }
.discount-progress--value-13 { --discount-value: 13%; }
.discount-progress--value-14 { --discount-value: 14%; }
.discount-progress--value-15 { --discount-value: 15%; }
.discount-progress--value-16 { --discount-value: 16%; }
.discount-progress--value-17 { --discount-value: 17%; }
.discount-progress--value-18 { --discount-value: 18%; }
.discount-progress--value-19 { --discount-value: 19%; }
.discount-progress--value-20 { --discount-value: 20%; }
.discount-progress--value-21 { --discount-value: 21%; }
.discount-progress--value-22 { --discount-value: 22%; }
.discount-progress--value-23 { --discount-value: 23%; }
.discount-progress--value-24 { --discount-value: 24%; }
.discount-progress--value-25 { --discount-value: 25%; }
.discount-progress--value-26 { --discount-value: 26%; }
.discount-progress--value-27 { --discount-value: 27%; }
.discount-progress--value-28 { --discount-value: 28%; }
.discount-progress--value-29 { --discount-value: 29%; }
.discount-progress--value-30 { --discount-value: 30%; }
.discount-progress--value-31 { --discount-value: 31%; }
.discount-progress--value-32 { --discount-value: 32%; }
.discount-progress--value-33 { --discount-value: 33%; }
.discount-progress--value-34 { --discount-value: 34%; }
.discount-progress--value-35 { --discount-value: 35%; }
.discount-progress--value-36 { --discount-value: 36%; }
.discount-progress--value-37 { --discount-value: 37%; }
.discount-progress--value-38 { --discount-value: 38%; }
.discount-progress--value-39 { --discount-value: 39%; }
.discount-progress--value-40 { --discount-value: 40%; }
.discount-progress--value-41 { --discount-value: 41%; }
.discount-progress--value-42 { --discount-value: 42%; }
.discount-progress--value-43 { --discount-value: 43%; }
.discount-progress--value-44 { --discount-value: 44%; }
.discount-progress--value-45 { --discount-value: 45%; }
.discount-progress--value-46 { --discount-value: 46%; }
.discount-progress--value-47 { --discount-value: 47%; }
.discount-progress--value-48 { --discount-value: 48%; }
.discount-progress--value-49 { --discount-value: 49%; }
.discount-progress--value-50 { --discount-value: 50%; }
.discount-progress--value-51 { --discount-value: 51%; }
.discount-progress--value-52 { --discount-value: 52%; }
.discount-progress--value-53 { --discount-value: 53%; }
.discount-progress--value-54 { --discount-value: 54%; }
.discount-progress--value-55 { --discount-value: 55%; }
.discount-progress--value-56 { --discount-value: 56%; }
.discount-progress--value-57 { --discount-value: 57%; }
.discount-progress--value-58 { --discount-value: 58%; }
.discount-progress--value-59 { --discount-value: 59%; }
.discount-progress--value-60 { --discount-value: 60%; }
.discount-progress--value-61 { --discount-value: 61%; }
.discount-progress--value-62 { --discount-value: 62%; }
.discount-progress--value-63 { --discount-value: 63%; }
.discount-progress--value-64 { --discount-value: 64%; }
.discount-progress--value-65 { --discount-value: 65%; }
.discount-progress--value-66 { --discount-value: 66%; }
.discount-progress--value-67 { --discount-value: 67%; }
.discount-progress--value-68 { --discount-value: 68%; }
.discount-progress--value-69 { --discount-value: 69%; }
.discount-progress--value-70 { --discount-value: 70%; }
.discount-progress--value-71 { --discount-value: 71%; }
.discount-progress--value-72 { --discount-value: 72%; }
.discount-progress--value-73 { --discount-value: 73%; }
.discount-progress--value-74 { --discount-value: 74%; }
.discount-progress--value-75 { --discount-value: 75%; }
.discount-progress--value-76 { --discount-value: 76%; }
.discount-progress--value-77 { --discount-value: 77%; }
.discount-progress--value-78 { --discount-value: 78%; }
.discount-progress--value-79 { --discount-value: 79%; }
.discount-progress--value-80 { --discount-value: 80%; }
.discount-progress--value-81 { --discount-value: 81%; }
.discount-progress--value-82 { --discount-value: 82%; }
.discount-progress--value-83 { --discount-value: 83%; }
.discount-progress--value-84 { --discount-value: 84%; }
.discount-progress--value-85 { --discount-value: 85%; }
.discount-progress--value-86 { --discount-value: 86%; }
.discount-progress--value-87 { --discount-value: 87%; }
.discount-progress--value-88 { --discount-value: 88%; }
.discount-progress--value-89 { --discount-value: 89%; }
.discount-progress--value-90 { --discount-value: 90%; }
.discount-progress--value-91 { --discount-value: 91%; }
.discount-progress--value-92 { --discount-value: 92%; }
.discount-progress--value-93 { --discount-value: 93%; }
.discount-progress--value-94 { --discount-value: 94%; }
.discount-progress--value-95 { --discount-value: 95%; }
.discount-progress--value-96 { --discount-value: 96%; }
.discount-progress--value-97 { --discount-value: 97%; }
.discount-progress--value-98 { --discount-value: 98%; }
.discount-progress--value-99 { --discount-value: 99%; }
.discount-progress--value-100 { --discount-value: 100%; }
