:root {
  color-scheme: light;
  --ink: #14272d;
  --muted: #5d7074;
  --line: #d7e3e2;
  --paper: #f7fbf9;
  --surface: #ffffff;
  --accent: #1f6f64;
  --accent-2: #d7f4ea;
  --soft: #eaf5f1;
  --warning: #f5c863;
  --shadow: 0 24px 70px rgb(31 79 88 / 0.14);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.promo {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgb(247 251 249 / 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.cart-button,
.icon-button {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.cart-button {
  padding: 10px 14px;
}

.cart-button span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1320px;
  min-height: calc(100dvh - 114px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 56px);
}

.hero-copy {
  max-width: 640px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.12;
}

.hero-text,
.section-head p,
.story-panel p,
.kit-card p,
.faq p,
.newsletter p,
.cart-note,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: #195b52;
}

.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.full {
  width: 100%;
}

.hero-visual-wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.pet-guide-mobile {
  display: none;
}

.pet-guide {
  display: grid;
  justify-items: center;
  gap: 14px;
  transition:
    transform 260ms ease,
    right 260ms ease,
    bottom 260ms ease;
}

.pet-guide.roaming {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 230px;
  transform: translateZ(0);
}

.pet-guide.roaming .speech {
  max-width: 230px;
  min-height: auto;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 14px 44px rgb(31 79 88 / 0.16);
}

.pet-guide.roaming .pet-stage {
  width: 210px;
  border-radius: 24px;
}

.pet-guide.roaming .pet-actions {
  display: none;
}

.pet-guide.roaming .dog {
  transform: scale(0.72) rotate(var(--tilt));
}

.pet-guide.walking .dog {
  animation: dog-walk 560ms ease-in-out infinite;
}

.speech {
  position: relative;
  max-width: 320px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  line-height: 1.28;
}

.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pet-stage {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 40% 24%, rgb(215 244 234 / 0.9), transparent 28%),
    linear-gradient(145deg, #ffffff, #edf8f4);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  --look-x: 0px;
  --look-y: 0px;
  --tilt: 0deg;
}

.pet-stage:active {
  transform: translateY(1px);
}

.pet-shadow {
  position: absolute;
  bottom: 34px;
  width: 170px;
  height: 28px;
  border-radius: 999px;
  background: rgb(20 39 45 / 0.12);
  filter: blur(4px);
}

.dog {
  position: relative;
  width: 220px;
  height: 250px;
  transform: rotate(var(--tilt));
  transform-origin: 50% 70%;
  transition: transform 160ms ease;
}

@keyframes dog-walk {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.face {
  position: absolute;
  top: 22px;
  left: 30px;
  z-index: 2;
  width: 160px;
  height: 145px;
  border-radius: 48% 48% 44% 44%;
  background: #f9f6ed;
  border: 3px solid #173137;
  box-shadow: inset 0 -12px 0 rgb(31 111 100 / 0.08);
}

.patch {
  position: absolute;
  top: 2px;
  right: 24px;
  width: 62px;
  height: 64px;
  border-radius: 54% 46% 50% 45%;
  background: #8b5b3e;
}

.ear {
  position: absolute;
  top: 20px;
  z-index: 1;
  width: 62px;
  height: 96px;
  border: 3px solid #173137;
  border-radius: 50% 50% 42% 42%;
  background: #8b5b3e;
}

.ear.left {
  left: 8px;
  transform: rotate(-22deg);
}

.ear.right {
  right: 8px;
  transform: rotate(22deg);
}

.eye {
  position: absolute;
  top: 58px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #173137;
  border-radius: 999px;
  background: #fff;
}

.eye.left {
  left: 42px;
}

.eye.right {
  right: 42px;
}

.pupil {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #173137;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 80ms linear;
}

.snout {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 72px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 46% 46% 50% 50%;
  background: #fff;
  border: 3px solid #173137;
}

.nose {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 24px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 48% 48% 55% 55%;
  background: #173137;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 24px;
  height: 13px;
  transform: translateX(-50%);
  border-bottom: 3px solid #173137;
  border-radius: 0 0 999px 999px;
}

.body {
  position: absolute;
  bottom: 8px;
  left: 45px;
  width: 130px;
  height: 105px;
  border: 3px solid #173137;
  border-radius: 48% 48% 38% 38%;
  background: #f9f6ed;
}

.chest {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 52px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 999px 999px 42% 42%;
  background: #fff;
}

.paw {
  position: absolute;
  bottom: -8px;
  width: 42px;
  height: 26px;
  border: 3px solid #173137;
  border-radius: 999px;
  background: #f9f6ed;
}

.paw.left {
  left: 14px;
}

.paw.right {
  right: 14px;
}

.tail {
  position: absolute;
  right: -44px;
  top: 18px;
  width: 70px;
  height: 22px;
  border: 3px solid #173137;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: #8b5b3e;
  transform-origin: left center;
  animation: wag 900ms ease-in-out infinite;
}

.pet-stage.happy .tail {
  animation-duration: 280ms;
}

.pet-stage.happy .mouth {
  height: 18px;
}

.pet-guide.walking .paw.left {
  animation: paw-left 560ms ease-in-out infinite;
}

.pet-guide.walking .paw.right {
  animation: paw-right 560ms ease-in-out infinite;
}

@keyframes paw-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7px);
  }
}

@keyframes paw-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-7px);
  }
}

.pet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pet-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.pet-actions button:hover {
  border-color: var(--accent);
}

@keyframes wag {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(16deg);
  }
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 44px;
  gap: 10px;
}

.proof-strip span {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.section,
.shop-section,
.story,
.newsletter,
.quiz,
.studio-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 74px clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kit-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
}

.kit-card.strong {
  background: var(--accent);
  color: #fff;
}

.kit-card.strong p {
  color: rgb(255 255 255 / 0.82);
}

.kit-card span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent);
  font-weight: 900;
}

.kit-card.strong span {
  color: var(--accent-2);
}

.shop-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.controls {
  display: flex;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(31 111 100 / 0.14);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(31 79 88 / 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgb(31 79 88 / 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--soft);
  padding: 12px;
}

.product-body {
  display: grid;
  flex: 1;
  grid-template-rows: auto auto minmax(72px, auto) auto auto auto;
  gap: 10px;
  padding: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.product-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-benefit {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.warehouse-line {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.sku-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 22px;
  font-weight: 900;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.studio-section {
  border-block: 1px solid var(--line);
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.studio-controls,
.studio-preview {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(31 79 88 / 0.08);
}

.studio-controls {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.studio-controls input[type="file"] {
  display: grid;
  min-height: 54px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-actions .button {
  flex: 1 1 180px;
  white-space: nowrap;
}

.studio-preview {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgb(215 244 234 / 0.72), rgb(255 255 255 / 0.88)),
    #fff;
}

.studio-preview canvas {
  width: 100%;
  height: auto;
  max-height: 680px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(31 79 88 / 0.12);
}

.quiz {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
  border-block: 1px solid var(--line);
}

.quiz-form {
  display: flex;
  gap: 12px;
  align-items: end;
}

.quiz-result {
  grid-column: 2;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.story-panel,
.story-metrics {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 28px;
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 12px;
}

.story-metrics div {
  border-radius: 16px;
  background: var(--soft);
  padding: 18px;
}

.story-metrics strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.story-metrics span {
  color: var(--muted);
  font-weight: 700;
}

.trust-grid,
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-grid article,
.logistics-grid div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
}

.trust-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-2);
  color: var(--accent);
  font-weight: 900;
}

.trust-grid p,
.logistics-grid p,
.guide-grid p,
.ugc-section p {
  color: var(--muted);
  line-height: 1.58;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.guide-grid img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  background: var(--soft);
  padding: 14px;
}

.guide-grid div {
  padding: 20px;
}

.guide-grid a {
  color: var(--accent);
  font-weight: 900;
}

.ugc-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 74px clamp(18px, 4vw, 56px);
}

.ugc-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ugc-wall span {
  display: grid;
  min-height: 142px;
  place-items: end start;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(215 244 234 / 0.9), rgb(255 255 255 / 0.9)),
    #fff;
  padding: 18px;
  color: var(--ink);
  font-weight: 900;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  flex: 1;
}

.form-note {
  grid-column: 2;
  min-height: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(430px, 100vw);
  padding: 22px;
  background: #fff;
  box-shadow: -20px 0 60px rgb(20 39 45 / 0.18);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 24px;
}

.cart-items {
  display: grid;
  gap: 12px;
  max-height: 52vh;
  margin: 20px 0;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: 14px;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 22px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgb(20 39 45 / 0.45);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: 90dvh;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-media {
  position: relative;
  min-height: 100%;
  background: var(--soft);
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  padding: 18px;
  background: var(--soft);
}

.modal-stock-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgb(255 255 255 / 0.78);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.9);
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgb(20 39 45 / 0.16);
}

.modal-stock-card span,
.detail-title-line span,
.api-note {
  color: var(--muted);
  font-size: 13px;
}

.modal-stock-card strong {
  display: block;
  margin-top: 3px;
  color: var(--accent);
}

.modal-info {
  padding: 34px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 22px;
}

.modal-price-row strong {
  font-size: 34px;
  line-height: 1;
}

.modal-price-row span {
  color: var(--muted);
  font-weight: 800;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.detail-section h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.detail-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-grid div {
  border-radius: 14px;
  background: var(--soft);
  padding: 12px;
}

.spec-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-list {
  display: grid;
  gap: 8px;
}

.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.inventory-row strong {
  color: var(--accent);
}

.inventory-empty {
  border-radius: 14px;
  background: var(--soft);
  padding: 14px;
  color: var(--muted);
}

.api-note {
  margin: 12px 0 0;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .quiz,
  .story,
  .ugc-section,
  .newsletter,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual-wrap,
  .hero-visual {
    grid-template-columns: 1fr 1fr;
  }

  .pet-guide {
    grid-column: 1 / -1;
  }

  .proof-strip,
  .kit-grid,
  .trust-grid,
  .guide-grid,
  .logistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-result,
  .form-note {
    grid-column: auto;
  }

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-media img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 54px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual-wrap,
  .hero-visual,
  .proof-strip,
  .kit-grid,
  .trust-grid,
  .guide-grid,
  .logistics-grid,
  .ugc-wall,
  .product-grid,
  .story-metrics {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-card img {
    max-height: 360px;
  }

  .pet-stage {
    width: min(320px, 100%);
  }

  .pet-guide.roaming {
    right: 12px;
    bottom: 12px;
    width: 160px;
  }

  .pet-guide.roaming .speech {
    display: none;
  }

  .pet-guide.roaming .pet-stage {
    width: 154px;
    border-radius: 20px;
  }

  .pet-guide.roaming .dog {
    transform: scale(0.56) rotate(var(--tilt));
  }

  .modal-info {
    padding: 22px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .shop-top,
  .controls,
  .quiz-form,
  .subscribe-form,
  .studio-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-preview {
    min-height: auto;
    padding: 10px;
  }
}
