:root {
  --v2-bg: #f7f7f4;
  --v2-ink: #151515;
  --v2-muted: #6f706b;
  --v2-line: #deded6;
  --v2-card: #ffffff;
  --v2-soft: #f0f4ef;
  --v2-accent: #1b6b5f;
  --v2-accent-dark: #114b43;
  --v2-warm: #c84e3f;
  --v2-shadow: 0 18px 44px rgba(24, 28, 25, 0.09);
}

.v2-shell {
  background: var(--v2-bg);
  color: var(--v2-ink);
  font-family: var(--v2-font-family, Inter, "Segoe UI", Arial, sans-serif);
  overflow-x: hidden;
  padding-bottom: 0;
}

.v2-shell,
.v2-shell *,
.v2-shell *::before,
.v2-shell *::after {
  box-sizing: border-box;
}

.v2-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.v2-service {
  background: #151515;
  color: #ffffff;
  font-size: 0.84rem;
}

.v2-service__inner,
.v2-header__main,
.v2-category-nav,
.v2-actions,
.v2-hero__actions,
.v2-hero__facts,
.v2-section__head,
.v2-product__meta,
.v2-product-card__foot,
.v2-chip-row,
.v2-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-service__inner {
  min-height: 34px;
  justify-content: space-between;
}

.v2-service nav,
.v2-actions,
.v2-category-nav {
  flex-wrap: wrap;
}

.v2-service a,
.v2-category-nav a,
.v2-section__head a,
.v2-actions a,
.v2-breadcrumbs a,
.v2-product__meta a {
  color: inherit;
  font-weight: 800;
}

.v2-service a,
.v2-category-nav a,
.v2-category-row a,
.v2-actions a,
.v2-catalog-button,
.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.v2-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(16px);
}

.v2-header__main {
  min-height: 74px;
}

.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.v2-brand span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--v2-ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.v2-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.v2-catalog-button,
.v2-button,
.v2-add-to-cart button,
.v2-sticky-buy button {
  min-height: 44px;
  border-radius: 999px;
  background: var(--v2-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 10px 18px;
  font-weight: 900;
}

.v2-button--light,
.v2-catalog-button {
  border: 1px solid var(--v2-line);
  background: #ffffff;
  color: var(--v2-ink);
}

.v2-search {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
}

.v2-search input,
.v2-catalog-search input,
.v2-catalog-search select,
.v2-filter-panel input,
.v2-filter-panel select,
.v2-add-to-cart input {
  border-radius: 999px;
}

.v2-category-nav {
  min-height: 42px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.v2-category-nav a,
.v2-category-row a,
.v2-chip-row a {
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  white-space: nowrap;
}

.v2-main {
  min-height: 70vh;
}

.v2-hero {
  padding: 34px 0;
}

.v2-hero__grid,
.v2-home-hero__grid,
.v2-product,
.v2-catalog-layout,
.v2-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.v2-home-hero__promo,
.v2-promo-card,
.v2-news-card,
.v2-constructor-promo {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--v2-shadow);
}

.v2-home-hero__promo {
  min-height: 520px;
  display: grid;
  align-content: end;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: clamp(22px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.96)),
    url("/static/img/products/demo-labret.png") center 16% / min(86%, 420px) no-repeat,
    #ffffff;
}

.v2-home-hero__promo h2,
.v2-promo-card h3,
.v2-news-card h3,
.v2-constructor-promo h2 {
  margin: 0;
}

.v2-home-hero__promo p,
.v2-promo-card p,
.v2-news-card p,
.v2-constructor-promo p {
  color: var(--v2-muted);
}

.v2-home-hero__promo a {
  font-weight: 900;
}

.v2-hero__copy {
  min-height: 520px;
  min-width: 0;
  max-width: 100%;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(27, 107, 95, 0.88), rgba(21, 21, 21, 0.72)),
    url("/static/img/storefront-hero.png") center / cover;
  color: #ffffff;
  display: grid;
  align-content: end;
  padding: clamp(24px, 5vw, 54px);
}

.v2-eyebrow {
  margin: 0 0 10px;
  color: var(--v2-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v2-hero__copy .v2-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.v2-hero h1,
.v2-catalog-head h1,
.v2-product h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
}

.v2-hero p,
.v2-catalog-head p,
.v2-panel p,
.v2-trust-grid p,
.v2-product-tabs p,
.v2-review-grid p,
.v2-footer p {
  color: var(--v2-muted);
}

.v2-hero__copy p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.v2-hero__copy > * {
  min-width: 0;
  max-width: 100%;
}

.v2-hero__actions,
.v2-hero__facts {
  flex-wrap: wrap;
}

.v2-hero h1 {
  overflow-wrap: anywhere;
}

.v2-hero__facts span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
}

.v2-section {
  padding: 26px 0;
}

.v2-section__head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.v2-section__head h2,
.v2-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.v2-category-grid,
.v2-product-grid,
.v2-promo-grid,
.v2-news-grid,
.v2-trust-grid,
.v2-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.v2-promo-card,
.v2-news-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
}

.v2-promo-card span {
  width: max-content;
  border-radius: 999px;
  background: var(--v2-warm);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.v2-promo-card small,
.v2-news-card time {
  color: var(--v2-muted);
  font-weight: 800;
}

.v2-constructor-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
}

.v2-product-grid--small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-category-tile,
.v2-panel,
.v2-trust-grid article,
.v2-empty,
.v2-filter-panel,
.v2-product__summary,
.v2-product-tabs details,
.v2-review-grid article {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: var(--v2-card);
  box-shadow: var(--v2-shadow);
  padding: 18px;
}

.v2-category-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 118px;
  align-items: center;
}

.v2-category-tile span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v2-category-tile small,
.v2-product-card p,
.v2-product-card small,
.v2-buy-box span,
.v2-variant-box span,
.v2-delivery-mini span {
  color: var(--v2-muted);
}

.v2-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--v2-shadow);
}

.v2-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--v2-soft);
}

.v2-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-badge,
.v2-favorite {
  position: absolute;
  z-index: 2;
}

.v2-badge {
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: var(--v2-warm);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.v2-favorite {
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--v2-ink);
  padding: 0;
}

.v2-favorite--inline {
  position: static;
}

.v2-product-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.v2-product-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.v2-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v2-product-card__tags span {
  border-radius: 999px;
  background: var(--v2-soft);
  color: var(--v2-accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 8px;
}

.v2-product-card__foot {
  justify-content: space-between;
  align-items: end;
}

.v2-product-card__foot strong,
.v2-buy-box strong,
.v2-sticky-buy span {
  display: block;
  font-size: 1.18rem;
}

.v2-product-card__foot span {
  color: var(--v2-muted);
  text-decoration: line-through;
}

.v2-split {
  align-items: stretch;
}

.v2-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 260px;
}

.v2-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: end;
  padding: 34px 0 18px;
}

.v2-catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.6fr) auto;
  gap: 10px;
  align-items: end;
}

.v2-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.v2-catalog-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  padding-bottom: 34px;
}

.v2-filter-panel {
  position: sticky;
  top: 136px;
  align-self: start;
  max-height: calc(100vh - 156px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.v2-filter-panel form {
  display: grid;
  gap: 12px;
}

.v2-filter-panel fieldset {
  border: 0;
  border-top: 1px solid var(--v2-line);
  margin: 0;
  padding: 12px 0 0;
}

.v2-filter-panel legend,
.v2-filter-panel__head h2 {
  font-weight: 900;
}

.v2-filter-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.v2-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.v2-check input {
  width: auto;
  min-height: auto;
}

.v2-catalog-results {
  display: grid;
  gap: 14px;
}

.v2-chip-row {
  flex-wrap: wrap;
}

.v2-pagination {
  justify-content: center;
  margin-top: 18px;
}

.v2-breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--v2-muted);
  padding: 18px 0;
}

.v2-product {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
}

.v2-gallery {
  position: sticky;
  top: 150px;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--v2-shadow);
}

.v2-gallery .product-gallery__stage {
  min-height: 560px;
}

.v2-product__summary {
  display: grid;
  gap: 18px;
}

.v2-product__meta {
  flex-wrap: wrap;
  color: var(--v2-muted);
}

.v2-buy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr) auto;
  gap: 12px;
  align-items: center;
}

.v2-variant-box {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
  padding: 16px 0;
}

.v2-variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-variant {
  width: 58px;
  height: 58px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  padding: 4px;
}

.v2-variant--active {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px rgba(27, 107, 95, 0.16);
}

.v2-variant img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.v2-add-to-cart {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.v2-notice {
  border-radius: 18px;
  background: #fff7e7;
  color: #7c4b00;
  font-weight: 800;
  padding: 14px;
}

.v2-delivery-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v2-delivery-mini article {
  border-radius: 18px;
  background: var(--v2-soft);
  display: grid;
  gap: 5px;
  padding: 14px;
}

.v2-product-tabs {
  display: grid;
  gap: 10px;
}

.v2-product-tabs summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

.v2-product-tabs dl {
  display: grid;
  gap: 8px;
}

.v2-product-tabs dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--v2-line);
  padding-bottom: 8px;
}

.v2-review-grid article {
  display: grid;
  gap: 10px;
}

.v2-review-grid article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.v2-footer {
  border-top: 1px solid var(--v2-line);
  background: #ffffff;
  margin-top: 40px;
  padding: 34px 0;
}

.v2-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}

.v2-footer a {
  display: block;
  color: var(--v2-muted);
  font-weight: 800;
  margin: 8px 0;
}

.v2-bottom-nav,
.v2-sticky-buy {
  display: none;
}

@media (max-width: 900px) {
  .v2-shell {
    padding-bottom: 72px;
  }

  .v2-service,
  .v2-actions,
  .v2-category-nav {
    display: none;
  }

  .v2-header__main,
  .v2-hero__grid,
  .v2-home-hero__grid,
  .v2-catalog-head,
  .v2-catalog-layout,
  .v2-product,
  .v2-split,
  .v2-constructor-promo,
  .v2-footer__grid {
    grid-template-columns: 1fr;
  }

  .v2-header__main {
    min-height: 66px;
    gap: 10px;
  }

  .v2-brand strong,
  .v2-catalog-button {
    display: none;
  }

  .v2-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-search button {
    display: none;
  }

  .v2-hero__copy {
    min-height: 440px;
    border-radius: 22px;
  }

  .v2-home-hero__promo {
    min-height: 360px;
  }

  .v2-hero__copy,
  .v2-home-hero__promo {
    width: 100%;
  }

  .v2-catalog-search,
  .v2-add-to-cart,
  .v2-buy-box,
  .v2-delivery-mini {
    grid-template-columns: 1fr;
  }

  .v2-filter-panel,
  .v2-gallery {
    position: static;
  }

  .v2-filter-panel {
    order: 2;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .v2-gallery .product-gallery__stage {
    min-height: 420px;
  }

  .v2-bottom-nav {
    position: fixed;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 30;
    width: 100vw;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--v2-line);
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 8px 10px;
    backdrop-filter: blur(16px);
  }

  .v2-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    color: var(--v2-muted);
    font-size: 0.76rem;
    font-weight: 900;
    padding: 8px 4px;
    text-align: center;
  }

  .v2-bottom-nav a:hover {
    background: var(--v2-soft);
    color: var(--v2-accent-dark);
  }

  .v2-sticky-buy {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 66px;
    z-index: 31;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--v2-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--v2-shadow);
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .v2-wrap {
    width: min(100% - 20px, 1220px);
  }

  .v2-hero h1,
  .v2-catalog-head h1 {
    font-size: 2.2rem;
  }

  .v2-product h1 {
    font-size: 1.85rem;
    line-height: 1.04;
  }

  .v2-product-grid,
  .v2-category-grid,
  .v2-promo-grid,
  .v2-news-grid,
  .v2-trust-grid,
  .v2-review-grid,
  .v2-product-grid--small {
    grid-template-columns: 1fr;
  }

  .v2-category-tile {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .site-icon--tile {
    width: 42px;
    height: 42px;
  }

  .v2-bottom-nav {
    padding: 8px 6px 10px;
  }

  .v2-bottom-nav a {
    padding: 8px 2px;
  }

  .v2-bottom-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .v2-section__head,
  .v2-product-tabs dl div,
  .v2-review-grid article div {
    align-items: start;
    flex-direction: column;
  }

  .v2-gallery .product-gallery__stage {
    min-height: 320px;
  }
}
