:root {
  --soft-ivory: #f6f5f2;
  --warm-white: #fbfaf7;
  --deep-slate: #243447;
  --cool-gray: #7b8794;
  --deep-emerald: #1f7a68;
  --emerald-dark: #145f51;
  --sage: #abc5b8;
  --light-stone: #d8ddd7;
  --line: rgba(36, 52, 71, 0.14);
  --shadow: 0 24px 70px rgba(36, 52, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--deep-slate);
  background: var(--soft-ivory);
  font-family: Inter, Manrope, Arial, Helvetica, sans-serif;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--deep-emerald);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-slate);
  letter-spacing: 0.16em;
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--deep-emerald);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border: 2px solid var(--deep-emerald);
  border-left: 0;
}

.logo-mark::before {
  top: 5px;
  right: 3px;
  width: 24px;
  height: 23px;
  border-radius: 0 18px 18px 0;
}

.logo-mark::after {
  right: 3px;
  bottom: 6px;
  width: 30px;
  height: 27px;
  border-radius: 0 22px 22px 0;
}

.logo strong,
.logo small {
  display: block;
  line-height: 1;
}

.logo strong {
  font-size: 1rem;
  font-weight: 500;
}

.logo small {
  margin-top: 7px;
  color: var(--deep-emerald);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
}

.nav-links {
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: clamp(28px, 4vw, 62px);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--deep-slate);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--deep-emerald);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--deep-slate);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--deep-emerald);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: var(--warm-white);
  background: var(--deep-emerald);
  font-size: 0.68rem;
  font-weight: 900;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  color: var(--deep-slate);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 112px max(24px, calc((100vw - 1180px) / 2)) 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 54px;
  background: var(--warm-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.94) 34%, rgba(251, 250, 247, 0.36) 45%, rgba(251, 250, 247, 0) 54%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--deep-emerald);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 640px;
  color: var(--deep-slate);
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 500px;
  margin: 28px 0 34px;
  color: #4f5d68;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-copy a {
  color: var(--deep-emerald);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .primary-button {
  order: 1;
}

.hero-actions .secondary-button {
  order: 2;
}

.hero-button,
.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-button,
.add-to-cart {
  color: var(--warm-white);
  background: var(--deep-emerald);
  border: 1px solid var(--deep-emerald);
}

.secondary-button {
  color: var(--deep-emerald);
  background: transparent;
  border: 1px solid var(--sage);
}

.hero-button:hover,
.hero-button:focus-visible,
.add-to-cart:hover,
.add-to-cart:focus-visible {
  transform: translateY(-2px);
}

.primary-button:hover,
.primary-button:focus-visible,
.add-to-cart:hover,
.add-to-cart:focus-visible {
  color: var(--deep-emerald);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--warm-white);
  background: var(--deep-emerald);
  border-color: var(--deep-emerald);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-picture,
.hero-picture img {
  width: 100%;
  height: 100%;
}

.hero-picture {
  display: block;
}

.hero-picture img {
  object-fit: cover;
  object-position: center;
}

.research-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-section-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-pillar {
  min-height: 168px;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  align-content: center;
  border-right: 1px solid var(--line);
}

.research-pillar:last-child {
  border-right: 0;
}

.pillar-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: var(--deep-emerald);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.research-pillar h3 {
  margin: 0 0 8px;
  color: var(--deep-slate);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-pillar p {
  margin: 0;
  color: #60707c;
  font-size: 0.82rem;
  line-height: 1.55;
}

.content-section h2,
.quality-section h2,
.catalog-section h2 {
  color: var(--deep-slate);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
}

.catalog-section {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
  color: var(--deep-slate);
  background: var(--soft-ivory);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cool-gray);
  font-size: 0.9rem;
}

select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  color: var(--deep-slate);
  background: var(--warm-white);
  border: 1px solid var(--light-stone);
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 34px;
}

.product-card {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  transform: translateY(0);
  transition: transform 220ms ease;
}

.product-media {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.product-link,
.product-title-link {
  color: inherit;
}

.product-media img {
  width: 205px;
  height: 298px;
  object-fit: cover;
  filter: drop-shadow(0 22px 18px rgba(36, 52, 71, 0.18));
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, filter 220ms ease;
  will-change: transform;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px);
}

.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  filter: drop-shadow(0 30px 24px rgba(36, 52, 71, 0.24));
  transform: translateY(-8px) scale(1.035);
}

.product-body {
  padding: 16px 0 0;
}

.product-body h3 {
  max-width: 320px;
  min-height: 42px;
  margin: 0 auto 8px;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.12;
}

.product-title-link {
  transition: color 180ms ease;
}

.product-title-link:hover,
.product-title-link:focus-visible {
  color: var(--deep-emerald);
}

.product-dosage {
  margin: 0 0 8px;
  color: var(--cool-gray);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-summary {
  max-width: 300px;
  min-height: 72px;
  margin: 0 auto 14px;
  display: -webkit-box;
  color: #60707c;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-price {
  margin: 0 0 18px;
  color: var(--deep-emerald);
  font-size: 1.25rem;
  font-weight: 900;
}

.add-to-cart,
.product-details-button {
  width: min(190px, 100%);
  min-height: 44px;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  background: var(--deep-emerald);
  border: 1px solid var(--deep-emerald);
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-details-button {
  display: inline-flex;
  margin-bottom: 10px;
}

.product-details-button:hover,
.product-details-button:focus-visible {
  color: var(--deep-emerald);
  background: transparent;
  border-color: var(--deep-emerald);
  transform: translateY(-1px);
}

body.modal-open {
  overflow: hidden;
}

.product-details-modal[hidden] {
  display: none;
}

.product-details-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.product-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 26, 0.58);
  backdrop-filter: blur(8px);
}

.product-details-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(720px, calc(100svh - 44px));
  overflow: auto;
  padding: 34px;
  color: var(--deep-slate);
  background: var(--warm-white);
  border: 1px solid rgba(36, 52, 71, 0.16);
  box-shadow: var(--shadow);
}

.product-details-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--deep-slate);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.product-details-dialog h2 {
  margin: 0 36px 10px 0;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.product-details-dosage {
  margin: 0 0 18px;
  color: var(--deep-emerald);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-details-text {
  margin: 0 0 20px;
  color: #52616d;
  font-size: 0.98rem;
  line-height: 1.75;
}

.product-details-list {
  margin: 0 0 24px;
  padding-left: 18px;
  color: #52616d;
  line-height: 1.7;
}

.product-details-list li + li {
  margin-top: 8px;
}

.product-details-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: var(--warm-white);
  background: #156754;
  border: 1px solid #156754;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-section {
  padding: 84px max(24px, calc((100vw - 1180px) / 2));
  background: var(--warm-white);
  color: var(--deep-slate);
  border-top: 1px solid var(--line);
}

.content-section p {
  max-width: 760px;
  color: #4f5d68;
  line-height: 1.8;
}

.quality-section {
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
  background: var(--soft-ivory);
  border-top: 1px solid var(--line);
}

.quality-flow {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--warm-white);
  border: 1px solid var(--line);
}

.flow-heading,
.quality-flow article {
  padding: 36px 30px;
}

.quality-flow article {
  border-left: 1px solid var(--line);
}

.quality-flow article span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--deep-emerald);
  border: 1px solid var(--sage);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.quality-flow h3 {
  margin: 0 0 10px;
  color: var(--deep-slate);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quality-flow p {
  margin: 0;
  color: #60707c;
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-section {
  background: var(--warm-white);
}

.telegram-link {
  color: #229ed9;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pdp-main {
  background: var(--soft-ivory);
}

.product-detail {
  padding: 76px max(24px, calc((100vw - 1180px) / 2)) 64px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.pdp-gallery {
  min-height: 560px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--warm-white), #edf1ed);
  border: 1px solid var(--line);
}

.pdp-gallery img {
  width: min(360px, 78%);
  height: auto;
  filter: drop-shadow(0 32px 28px rgba(36, 52, 71, 0.2));
}

.pdp-panel {
  color: var(--deep-slate);
}

.pdp-panel h1 {
  max-width: 640px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.pdp-dosage {
  margin: 18px 0 22px;
  color: var(--deep-emerald);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdp-summary {
  max-width: 640px;
  margin: 0 0 18px;
  color: #4f5d68;
  font-size: 1rem;
  line-height: 1.8;
}

.pdp-benefits {
  max-width: 640px;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.pdp-benefits li {
  position: relative;
  padding-left: 22px;
  color: #4f5d68;
  line-height: 1.65;
}

.pdp-benefits li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--deep-emerald);
}

.pdp-note {
  max-width: 640px;
  margin: 0 0 26px;
  color: #60707c;
  line-height: 1.75;
}

.pdp-price {
  margin: 0 0 24px;
  color: var(--deep-emerald);
  font-size: 1.8rem;
  font-weight: 900;
}

.pdp-stock {
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 12px;
  color: #4f5d68;
  background: #edf1ed;
  border: 1px solid #c8d0ca;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdp-stock.is-unavailable {
  color: #59645f;
  background: #e5ebe6;
  border-color: #b9c3bd;
}

.pdp-purchase {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.dosage-label,
.quantity-label {
  display: grid;
  gap: 7px;
  color: var(--cool-gray);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dosage-select,
.quantity-input {
  width: 96px;
  min-height: 48px;
  padding: 0 12px;
  color: var(--deep-slate);
  background: var(--warm-white);
  border: 1px solid var(--light-stone);
}

.dosage-select {
  border-radius: 0;
}

.dosage-select:disabled {
  color: var(--deep-slate);
  opacity: 1;
  cursor: default;
}

.quantity-input:disabled {
  color: #6a746f;
  background: #eef1ee;
  cursor: not-allowed;
}

.pdp-add-to-cart {
  min-width: 300px;
  min-height: 52px;
}

.pdp-add-to-cart.is-unavailable,
.pdp-add-to-cart.is-unavailable:hover,
.pdp-add-to-cart.is-unavailable:focus-visible {
  color: #f8faf8;
  background: #7f8b85;
  border-color: #7f8b85;
  cursor: not-allowed;
  transform: none;
}

.product-info-hub {
  padding: 0 max(24px, calc((100vw - 1180px) / 2)) 84px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.info-block {
  padding: 34px 30px;
  background: var(--warm-white);
  border: 1px solid var(--line);
}

.info-block h2 {
  margin: 0 0 14px;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
}

.info-block p {
  margin: 0;
  color: #60707c;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cart-main {
  min-height: calc(100vh - 76px);
}

.cart-hero {
  padding: 74px max(24px, calc((100vw - 1180px) / 2)) 38px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}

.cart-hero h1 {
  margin: 8px 0 18px;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.cart-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: #566570;
  font-size: 1rem;
  line-height: 1.8;
}

.cart-layout {
  padding: 48px max(24px, calc((100vw - 1180px) / 2)) 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.cart-items-panel,
.cart-summary,
.checkout-panel {
  background: var(--warm-white);
  border: 1px solid var(--line);
}

.cart-items-panel {
  padding: 30px;
}

.cart-side {
  display: grid;
  gap: 20px;
}

.cart-summary,
.checkout-panel {
  padding: 26px;
}

.cart-section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cart-section-heading h2,
.cart-summary h2,
.checkout-panel h2 {
  margin: 0;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.cart-status {
  padding-top: 5px;
  color: var(--deep-emerald);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-items {
  display: grid;
  gap: 1px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto minmax(126px, auto);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cart-item:first-child {
  border-top: 0;
}

.cart-item-media {
  width: 88px;
  height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #edf1ec;
  border: 1px solid rgba(36, 52, 71, 0.08);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-body h3 {
  margin: 0 0 8px;
  color: var(--deep-slate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.15;
}

.cart-item-body p,
.cart-item-body span {
  margin: 0;
  color: #60707c;
  font-size: 0.93rem;
  line-height: 1.6;
}

.quantity-stepper {
  width: 116px;
  min-height: 38px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity-stepper button {
  width: 36px;
  height: 38px;
  color: var(--deep-slate);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.quantity-stepper span {
  display: grid;
  place-items: center;
  color: var(--deep-slate);
  font-weight: 900;
}

.cart-line-total {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.cart-line-total span {
  color: var(--deep-slate);
  font-weight: 900;
}

.cart-line-total button {
  padding: 0;
  color: #7b4f4f;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.cart-empty {
  margin: 0;
  padding: 28px;
  color: #60707c;
  background: var(--soft-ivory);
  border: 1px dashed var(--line);
  text-align: center;
}

.promo-form {
  margin: 20px 0 24px;
}

.promo-form label,
.checkout-form label,
.checkout-form legend {
  display: grid;
  gap: 8px;
  color: var(--deep-slate);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.promo-row input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--deep-slate);
  background: var(--soft-ivory);
  border: 1px solid var(--line);
  border-radius: 0;
}

.checkout-form textarea {
  resize: vertical;
}

.promo-row button,
.checkout-submit {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #60707c;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list dd {
  color: var(--deep-slate);
  font-weight: 900;
}

.summary-total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
}

.price-request-note,
.form-message {
  margin: 14px 0 0;
  color: #60707c;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--deep-emerald);
}

.form-message.is-error {
  color: #8d3b3b;
}

.checkout-form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.checkout-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group label {
  min-height: 42px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-slate);
  background: var(--soft-ivory);
  border: 1px solid var(--line);
  letter-spacing: 0;
  text-transform: none;
}

.checkout-submit {
  width: 100%;
  margin-top: 4px;
}

.save-banner {
  display: none !important;
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 13px 18px;
  color: var(--warm-white);
  background: var(--deep-emerald);
  border: 1px solid var(--deep-emerald);
  box-shadow: var(--shadow);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.save-banner button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--warm-white);
  background: transparent;
  border: 1px solid rgba(251, 250, 247, 0.8);
  cursor: pointer;
}

.site-footer {
  padding: 28px 24px;
  color: rgba(251, 250, 247, 0.78);
  text-align: center;
  background: var(--deep-emerald);
  border-top: 1px solid rgba(251, 250, 247, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-media img,
  .hero-button,
  .add-to-cart,
  .product-details-button,
  .icon-button {
    transition: none;
  }

  .product-card:hover,
  .product-card:focus-within,
  .product-card:hover .product-media img,
  .product-card:focus-within .product-media img,
  .hero-button:hover,
  .hero-button:focus-visible,
  .add-to-cart:hover,
  .add-to-cart:focus-visible,
  .product-details-button:hover,
  .product-details-button:focus-visible,
  .icon-button:hover,
  .icon-button:focus-visible {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 76px) !important;
    padding: 58px 18px 42px !important;
    display: flex;
    align-items: flex-start;
    background: var(--deep-slate);
  }

  .hero::before {
    display: none;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(8, 18, 26, 0.5) 0%, rgba(8, 18, 26, 0.28) 34%, rgba(8, 18, 26, 0.68) 100%),
      linear-gradient(90deg, rgba(8, 18, 26, 0.42) 0%, rgba(8, 18, 26, 0.1) 58%, rgba(8, 18, 26, 0.42) 100%);
    pointer-events: none;
  }

  .hero-picture,
  .hero-picture img {
    width: 100%;
    height: 100%;
  }

  .hero-picture img {
    object-fit: cover;
    object-position: 75% center !important;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(100svh - 176px);
    display: flex;
    flex-direction: column;
  }

  .hero .eyebrow,
  .hero h1 {
    color: var(--warm-white);
    text-shadow: 0 2px 18px rgba(8, 18, 26, 0.34);
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.85rem, 13vw, 4.2rem);
    line-height: 0.96;
  }

  .hero-copy {
    display: none;
  }

  .hero-actions {
    position: relative;
    z-index: 2;
    margin-top: auto;
  }

  .hero-button {
    width: 100%;
  }

  .hero-actions .secondary-button {
    color: var(--warm-white);
    border-color: rgba(251, 250, 247, 0.72);
  }

  .product-body {
    padding-top: 12px;
  }

  .product-summary {
    margin-bottom: 12px;
  }

  .product-price {
    margin-bottom: 10px;
  }

  .product-details-button {
    display: inline-flex;
  }

  .product-details-modal {
    align-items: end;
    padding: 14px;
  }

  .product-details-dialog {
    width: 100%;
    max-height: calc(100svh - 28px);
    padding: 28px 22px 24px;
  }
}

@media (max-width: 1020px) {
  .navbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 12px 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-icons {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    padding-top: 76px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.96) 48%, rgba(251, 250, 247, 0.58) 100%);
  }

  .hero-picture img {
    object-position: 64% center;
  }

  .research-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-pillar:nth-child(2) {
    border-right: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail,
  .product-info-hub {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    min-height: 420px;
  }

  .quality-flow {
    grid-template-columns: 1fr;
  }

  .quality-flow article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-header,
  .catalog-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-side {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .cart-side {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-item-media {
    width: 74px;
    height: 96px;
  }

  .quantity-stepper,
  .cart-line-total {
    grid-column: 1 / -1;
  }

  .cart-line-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .promo-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .navbar {
    width: min(100% - 24px, 1180px);
  }

  .logo small {
    letter-spacing: 0.22em;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-picture img {
    object-position: 70% center;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .product-detail {
    padding-top: 44px;
  }

  .pdp-gallery {
    min-height: 340px;
  }

  .pdp-purchase,
  .pdp-add-to-cart {
    width: 100%;
  }

  .research-section,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .research-pillar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-pillar:last-child {
    border-bottom: 0;
  }

  .cart-hero,
  .cart-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cart-items-panel,
  .cart-summary,
  .checkout-panel {
    padding: 22px 18px;
  }
}

/* Выравниваем стили внутренних абзацев под единый стандарт хаба */
.product-specs-wrapper p {
  margin: 0 0 16px 0; /* Создаем аккуратный отступ между характеристиками */
  color: #60707c; /* Синхронизируем цвет текста с соседними блоками */
  font-size: 0.95rem;
  line-height: 1.7;
}
