:root {
  --bg: #f2f5f4;
  --card: #ffffff;
  --line: #dde7e2;
  --text: #17212e;
  --muted: #5f7489;
  --green: #42bb49;
  --green-dark: #2c9442;
  --green-soft: #eaf8ed;
  --shadow: 0 20px 45px rgba(23, 33, 46, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  color: var(--text);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: .5;
}

.bg-glow--1 {
  top: -260px;
  left: -140px;
  background: rgba(80, 214, 118, 0.25);
}

.bg-glow--2 {
  right: -180px;
  top: 20%;
  background: rgba(63, 171, 247, 0.2);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(221, 231, 226, 0.75);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 244, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 231, 226, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  font-size: 12px;
}

.logo strong {
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
}

.logo__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fffa, #e8f7eb);
  border: 1px solid #dcefe1;
  display: grid;
  place-items: center;
}

.logo__icon svg {
  width: 20px;
  height: 20px;
  color: #3dac43;
}

.menu-btn {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  height: 46px;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.search svg {
  width: 18px;
  height: 18px;
  color: #93a5b6;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn,
.cart-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 13px;
  font: inherit;
  font-weight: 700;
  color: #26384b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: .22s ease;
}

.ghost-btn:hover,
.cart-btn:hover {
  transform: translateY(-1px);
  border-color: #c4d3df;
}

.ghost-btn svg,
.cart-btn svg {
  width: 16px;
  height: 16px;
}

.cart-btn span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #298f34;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:focus-visible,
.ghost-btn:focus-visible,
.cart-btn:focus-visible,
.product__btn:focus-visible,
.need:focus-visible,
.choice:focus-visible {
  outline: 2px solid #42bb49;
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--green {
  color: #fff;
  background: linear-gradient(135deg, #57cb4f, #3eae49);
  box-shadow: 0 14px 28px rgba(62, 174, 73, 0.33);
}

.btn--light {
  background: #fff;
  border: 1px solid var(--line);
}

.btn--small {
  padding: 8px 12px;
  font-size: 13px;
}

.btn--wa {
  background: linear-gradient(135deg, #3ecc5e, #24a14a);
  color: #fff;
  text-decoration: none;
}

.hero {
  padding: 24px 0 18px;
}

.hero__grid {
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .86));
  border: 1px solid rgba(220, 235, 225, 0.95);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  padding: 42px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf6ef;
  color: #355c40;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  font-family: "Unbounded", sans-serif;
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero__features div {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  background: #f7fbf7;
  border: 1px solid #e2efe5;
  padding: 10px;
  color: #325443;
  font-size: 13px;
  font-weight: 700;
}

.hero__features span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
}

.hero__features svg {
  width: 16px;
  height: 16px;
}

.hero__visual {
  min-height: 460px;
  border-radius: 24px;
  border: 1px solid #ddecdf;
  background: #edf5ef;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease-out;
  isolation: isolate;
}

.hero__main-image {
  position: absolute;
  inset: 70px 20px 16px;
  width: calc(100% - 40px);
  height: calc(100% - 86px);
  object-fit: cover;
  object-position: center;
  background: #dfeee3;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(20, 36, 29, 0.16);
  z-index: 1;
}

.pet {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 22px 34px rgba(20, 36, 29, 0.18);
}

.pet--dog {
  left: 10%;
  bottom: -2%;
  width: 56%;
  height: 78%;
  border-radius: 32px;
  transform: translateZ(35px);
}

.pet--cat {
  right: 8%;
  bottom: -1%;
  width: 42%;
  height: 64%;
  border-radius: 24px;
  transform: translateZ(55px);
}

.fast-card,
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e8f0ea;
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 30px rgba(18, 32, 23, 0.12);
}

.fast-card {
  right: 16px;
  top: 14px;
  border-radius: 16px;
  padding: 12px 14px;
  max-width: 220px;
  z-index: 3;
}

.fast-card p {
  margin: 8px 0 4px;
  line-height: 1.3;
}

.floating-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.floating-pill svg {
  width: 14px;
  height: 14px;
}

.floating-pill--1 {
  left: 18px;
  top: 18px;
  animation: bob 4.1s ease-in-out infinite;
  z-index: 3;
}

.picker {
  padding: 14px 0;
}

.picker__panel {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}

.picker__left,
.picker__right {
  border-radius: 20px;
  padding: 18px;
}

.picker h3 {
  margin: 2px 0 12px;
  font-size: 20px;
}

.pet-choice {
  display: grid;
  gap: 10px;
}

.choice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.choice:hover {
  transform: translateY(-1px);
}

.choice--active {
  border-color: #b8e2c2;
  background: #effaf2;
}

.choice img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.needs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.need {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 104px;
  padding: 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #2d4257;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: .2s ease;
}

.need span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f6fd;
  display: grid;
  place-items: center;
}

.need svg {
  width: 16px;
  height: 16px;
}

.need:hover {
  border-color: #c4dbcf;
  transform: translateY(-2px);
}

.trust {
  padding: 8px 0 16px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust article {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.trust h4 {
  margin: 0 0 6px;
}

.trust p {
  margin: 0;
  color: var(--muted);
}


.products {
  padding: 20px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
}

.link {
  text-decoration: none;
  font-weight: 800;
  color: #3ca247;
}

.products__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.products__toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2ebf2;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product--empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 16px;
}

.product__media {
  position: relative;
  display: block;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef3f0;
  overflow: hidden;
}

.product__discount {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: #ff5252;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 9px;
}

.product__hit {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 9px;
}

.product__img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 8px;
  display: block;
  background: #fff;
  transition: transform .25s ease;
}

.product:hover .product__img {
  transform: scale(1.04);
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product__brand {
  color: #3ca247;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.product__name {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 38px;
}

.product__name:hover {
  color: #2c9442;
}

.product__info {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product__rating {
  color: #e8a712;
  font-size: 12px;
  font-weight: 800;
}

.product__reviews {
  color: var(--muted);
  font-size: 12px;
}

.product__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.product__price {
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.product__price s {
  color: #9db0c2;
  font-size: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.product__btn {
  width: 42px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: var(--green-soft);
  color: #2b8e39;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.product__btn:hover {
  background: var(--green);
  color: #fff;
}

.advantages,
.subscription,
.steps,
.reviews {
  padding: 18px 0;
}

.advantages__grid,
.steps__grid,
.reviews__grid {
  display: grid;
  gap: 12px;
}

.advantages__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advantages article,
.step,
.review {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
}

.advantages h4,
.step h4 {
  margin: 0 0 7px;
}

.advantages p,
.step p,
.review p {
  margin: 0;
  color: var(--muted);
}

.subscription__box {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  align-items: center;
}

.subscription__visual {
  min-height: 220px;
  border-radius: 14px;
  background: url("https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?auto=format&fit=crop&w=1000&q=80") center/cover no-repeat;
}

.subscription ul {
  margin: 10px 0 18px;
  color: #334a60;
}

.steps__grid,
.reviews__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #2f9442;
  font-weight: 800;
}

.footer {
  background: #eaf1ed;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer h3 {
  margin: 0;
}

.footer p {
  margin: 5px 0 0;
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

.pwa-install {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #57cb4f, #3eae49);
  box-shadow: 0 14px 26px rgba(62, 174, 73, 0.36);
}

.pwa-install[hidden] {
  display: none;
}

.cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 100vw);
  height: 100dvh;
  z-index: 130;
  background: #fff;
  box-shadow: -16px 0 32px rgba(18, 24, 40, 0.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: right .24s ease;
}

.cart.open {
  right: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 125;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart__head button {
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
}

.cart ul {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  flex: 1;
}

.cart__row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cart__row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eef3f0;
  background: #fff;
  flex-shrink: 0;
}

.cart__row-main {
  flex: 1;
  display: grid;
  gap: 6px;
}

.cart__row-main strong {
  font-size: 13px;
  line-height: 1.3;
}

.cart__row-price {
  color: var(--muted);
  font-size: 12px;
}

.cart__row-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart__remove {
  border: none;
  background: transparent;
  color: #b0bfce;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
}

.cart__remove:hover {
  color: #ff5252;
}

.cart__empty {
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 40px 10px;
  color: var(--muted);
}

.cart__empty-icon {
  font-size: 34px;
}

.cart__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f4f8f5;
  font-size: 15px;
  font-weight: 800;
  color: #2b8e39;
  cursor: pointer;
}

.qty button:hover {
  background: var(--green-soft);
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.qty--big button {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.qty--big span {
  min-width: 40px;
  font-size: 16px;
}

.cart__summary {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.6);
}

.checkout-modal.open {
  display: grid;
}

.checkout-form {
  width: min(560px, 96vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.checkout-form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 10px 12px;
}

.checkout-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  padding: 9px 10px;
  cursor: pointer;
}

.checkout-step--active {
  border-color: #bfe6c2;
  background: #effaf2;
}

.checkout-step-pane {
  display: none;
  gap: 8px;
}

.checkout-step-pane--active {
  display: grid;
}

.checkout-form__status {
  min-height: 18px;
  margin: 0;
  color: #d84343;
  font-weight: 700;
}

.checkout-form__body {
  display: grid;
  gap: 10px;
}

.checkout-form__body[hidden] {
  display: none;
}

.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: #fafcfa;
  max-height: 180px;
  overflow: auto;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.checkout-summary__row--total {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 15px;
}

.req {
  color: #d84343;
}

.checkout-success {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 14px 6px;
}

.checkout-success[hidden] {
  display: none;
}

.checkout-success__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #2b8e39;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
}

.checkout-success h3 {
  margin: 0;
}

.checkout-success p {
  margin: 0;
  color: #33475c;
}

.checkout-success__timer {
  font-family: "Unbounded", sans-serif;
  font-size: 34px;
  color: #2b8e39;
}

.btn--big {
  padding: 14px 22px;
  font-size: 16px;
  justify-content: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #2f9442;
  font-weight: 800;
  margin-bottom: 8px;
}

.no-scroll {
  overflow: hidden;
}

.muted {
  margin: 0;
  color: var(--muted);
}

/* ---------- Карточка товара ---------- */
.product-page {
  padding: 18px 0 30px;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumbs a {
  color: #3ca247;
  text-decoration: none;
  font-weight: 700;
}

.product-detail {
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px;
  background: #fff;
}

.product-detail__media {
  position: relative;
  border: 1px solid #eef3f0;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.product-detail__media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 20px;
}

.product-detail__info {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-detail__info h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-detail__desc {
  margin: 0;
  color: #33475c;
  line-height: 1.6;
}

.product-detail__specs {
  margin: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafcfa;
}

.product-detail__specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.product-detail__specs dt {
  color: var(--muted);
}

.product-detail__specs dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.stock {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
}

.stock--ok {
  background: var(--green-soft);
  color: #2b8e39;
}

.stock--low {
  background: #fff3df;
  color: #c07c11;
}

.stock--out {
  background: #ffe9e9;
  color: #d84343;
}

.product-detail__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.product-detail__price {
  display: grid;
  line-height: 1.1;
}

.product-detail__price strong {
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
}

.product-detail__price s {
  color: #9db0c2;
  font-size: 14px;
}

.product-detail__note {
  margin: 0;
  border-left: 3px solid var(--green);
  background: #f4faf5;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: #33475c;
  font-size: 13px;
  line-height: 1.55;
}

.similar {
  margin-top: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1150px) {
  .products__grid,
  .needs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.open {
    display: flex;
  }

  .hero__grid,
  .picker__panel,
  .subscription__box {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
  }

  .hero__features {
    grid-template-columns: 1fr;
  }

  .steps__grid,
  .reviews__grid,
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .product-detail__media {
    min-height: 240px;
  }

  .product-detail__media img {
    max-height: 300px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1180px, 95vw);
  }

  .header__actions {
    gap: 6px;
  }

  .ghost-btn,
  .cart-btn {
    padding: 9px 10px;
  }

  .header__actions .ghost-btn:nth-child(1) {
    display: none;
  }

  .products__grid,
  .needs,
  .advantages__grid,
  .steps__grid,
  .reviews__grid,
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product__img {
    height: 140px;
  }

  .hero__visual {
    min-height: 360px;
  }

  .hero__main-image {
    inset: 64px 12px 12px;
    width: calc(100% - 24px);
    height: calc(100% - 76px);
  }

  .picker h3,
  .section-head h2 {
    font-size: 20px;
  }

  .need,
  .choice,
  .btn,
  .product__btn {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .header {
    position: sticky;
    top: 0;
  }

  .header__actions {
    display: none;
  }

  .nav.open {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search input {
    height: 42px;
    font-size: 16px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero__grid {
    border-radius: 20px;
    padding: 14px;
  }

  .badge {
    font-size: 11px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 270px;
  }

  .hero__main-image {
    inset: 58px 10px 10px;
    width: calc(100% - 20px);
    height: calc(100% - 68px);
    border-radius: 14px;
  }

  .fast-card {
    right: 8px;
    top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    max-width: 150px;
    font-size: 12px;
  }

  .floating-pill--1 {
    left: 8px;
    top: 8px;
    padding: 6px 10px;
  }

  .picker__left,
  .picker__right,
  .trust article,
  .product {
    border-radius: 14px;
    padding: 12px;
  }

  .products__toolbar {
    gap: 8px;
  }

  .products__toolbar p {
    font-size: 13px;
  }

  .cart {
    width: 100vw;
    right: -100vw;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .checkout-form {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    padding: 14px;
    overflow: auto;
  }

  .checkout-form__actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 8px;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    gap: 4px;
  }

  .mobile-nav__item {
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: #314357;
    border-radius: 12px;
    min-height: 56px;
    display: grid;
    place-items: center;
    gap: 2px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-nav__item svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav__item--active {
    color: #2ea947;
    background: #effaf2;
    border-color: #d7eddc;
  }

  .mobile-nav__item--cart {
    position: relative;
  }

  .mobile-nav__item--cart b {
    position: absolute;
    right: 12px;
    top: 6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e8f8ec;
    color: #2ea947;
    display: grid;
    place-items: center;
    font-size: 11px;
  }

  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .needs,
  .advantages__grid,
  .steps__grid,
  .reviews__grid,
  .trust__grid {
    grid-template-columns: 1fr;
  }

  .product {
    padding: 8px;
    border-radius: 14px;
  }

  .product__img {
    height: 120px;
    padding: 4px;
  }

  .product__name {
    font-size: 13px;
    min-height: 34px;
  }

  .product__price {
    font-size: 15px;
  }

  .product__btn {
    width: 40px;
    height: 40px;
  }

  .product-detail__buy {
    gap: 10px;
  }

  .product-detail__buy .btn--big {
    width: 100%;
    order: 3;
  }

  .checkout-success__timer {
    font-size: 28px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
