/*
 * Счастье и К. — стили публичной части магазина.
 *
 * Правила организованы по компонентам: базовая типографика, шапка,
 * каталог, карточки товаров, формы, подвал и адаптивные состояния.
 */

:root {
  --navy: #122a52;
  --purple: #9573ec;
  --purple2: #b99bf3;
  --pink: #ff88a8;
  --mint: #63c9c3;
  --yellow: #ffc857;
  --bg: #fbfaff;
  --line: #e7e1f7;
  --shadow: 0 20px 55px rgba(75,54,140,.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background: #fbfaff url('../background.png') top center/cover fixed no-repeat;
  min-height: 100vh;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.68);
  z-index: -1;
}

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

.container {
  width: min(1220px,calc(100% - 40px));
  margin: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(145,112,232,.08);
}

.nav-wrap {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 220px;
  height: 100%;
}

.brand img {
  display: block;
  width: 205px;
  height: 100px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-weight: 800;
  font-size: 15px;
  position: relative;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--purple);
}

.nav a.active:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  transform: translateX(-50%);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
}

.icon-link,
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 1px solid rgba(149,115,236,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: var(--purple);
  box-shadow: 0 10px 26px rgba(121,93,194,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.icon-link:hover,
.cart-link:hover {
  transform: translateY(-1px);
  border-color: rgba(149,115,236,.24);
  background: #f7f2ff;
  box-shadow: 0 14px 28px rgba(121,93,194,.15);
}

.icon-link svg,
.cart-link svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-link span {
  position: absolute;
  right: -5px;
  top: -5px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255,136,168,.32);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 30px;
  color: var(--navy);
  margin-left: auto;
}

.flash {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.flash-success {
  border-left: 5px solid #41bfae;
}

.flash-error {
  border-left: 5px solid #e45578;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 555px;
  background: radial-gradient(circle at 75% 52%,rgba(215,204,255,.54),transparent 34%),radial-gradient(circle at 8% 17%,rgba(225,215,255,.75),transparent 15%),rgba(255,255,255,.66);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 550px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--purple);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin: 0 0 12px;
}

.hero h1,
.section-head h2,
.how h2,
.reviews h2,
.page-title {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  margin: 0;
  color: var(--navy);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  max-width: 650px;
}

.hero h1 span {
  display: block;
  color: var(--purple2);
  margin-top: 8px;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  max-width: 580px;
  margin: 24px 0 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 900;
  transition: .2s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg,#a686f1,#7b59df);
  box-shadow: 0 12px 28px rgba(123,89,223,.28);
}

.btn-secondary {
  background: #fff;
  border: 1px solid #e7e0fb;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(75,54,140,.09);
}

.btn-ozon {
  background: #1769ff;
  color: #fff;
}

.btn-wb {
  background: linear-gradient(135deg,#cb11ab,#8b2bd2);
  color: #fff;
}

.btn-danger {
  background: #ffe5eb;
  color: #a7163b;
}

.btn-small {
  padding: 9px 15px;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-2px);
}

.gift {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 25px;
  border-left: 1px dashed #d8cff5;
}

.gift span {
  font-size: 28px;
  background: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.gift p {
  margin: 0;
  font-size: 14px;
}

.hero-art {
  height: 440px;
  position: relative;
}

.card-stack,
.face-card {
  position: absolute;
  width: 230px;
  height: 290px;
  border-radius: 28px;
  right: 125px;
  top: 90px;
}

.back-two {
  background: #ff96b7;
  transform: rotate(22deg);
  right: 80px;
}

.back-one {
  background: #ffc963;
  transform: rotate(12deg);
  right: 100px;
}

.back-three {
  background: #63c9c3;
  transform: rotate(-5deg);
  right: 150px;
}

.face-card {
  background: #fff;
  border: 9px solid #9c84e9;
  transform: rotate(8deg);
  box-shadow: 0 28px 45px rgba(76,52,155,.22);
  z-index: 3;
}

.eye {
  position: absolute;
  width: 34px;
  height: 48px;
  background: #122a52;
  border-radius: 50%;
  top: 105px;
}

.eye:after {
  content: "";
  position: absolute;
  width: 9px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  right: 7px;
  top: 7px;
}

.eye.left {
  left: 56px;
}

.eye.right {
  right: 52px;
}

.cheek {
  position: absolute;
  width: 28px;
  height: 14px;
  background: #ff8fb2;
  border-radius: 50%;
  top: 158px;
}

.c-left {
  left: 42px;
}

.c-right {
  right: 38px;
}

.mouth {
  position: absolute;
  width: 42px;
  height: 22px;
  border: 8px solid #122a52;
  border-top: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 40px 40px;
  left: 50%;
  top: 156px;
  transform: translateX(-50%);
}

.sun {
  position: absolute;
  left: 65px;
  top: 25px;
  font-size: 70px;
  color: #ffc857;
}

.mini-heart,
.mini-star {
  position: absolute;
  font-size: 36px;
  color: var(--pink);
}

.mini-heart {
  right: 15px;
  top: 115px;
}

.mini-star {
  left: 20px;
  top: 180px;
  color: #ff769c;
}

.book {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 130px;
  color: #a78ee9;
  transform: rotate(180deg);
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 95px;
  background: linear-gradient(180deg,rgba(224,215,255,.7),#fff);
  clip-path: ellipse(80% 60% at 70% 100%);
}

.decor {
  position: absolute;
  z-index: 1;
}

.star {
  color: #ff85a7;
  font-size: 28px;
}

.s1 {
  left: 5%;
  top: 165px;
}

.s2 {
  right: 8%;
  bottom: 110px;
  color: #ffc857;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8c76e7;
}

.d1 {
  left: 9%;
  top: 205px;
}

.d2 {
  right: 15%;
  top: 180px;
  background: #69c8c5;
}

.benefits {
  position: relative;
  margin-top: -28px;
  z-index: 5;
}

.benefits-grid {
  background: rgba(255,255,255,.96);
  border-radius: 28px;
  padding: 24px 34px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  box-shadow: var(--shadow);
}

.benefits article {
  display: flex;
  gap: 16px;
  padding: 5px 22px;
  border-right: 1px dashed #ddd5f3;
}

.benefits article:last-child {
  border-right: 0;
}

.benefits h3 {
  margin: 5px 0 3px;
  font-size: 16px;
}

.benefits p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.ico {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.purple {
  background: #ede7ff;
}

.pink {
  background: #ffe4ec;
}

.mint {
  background: #dff7f5;
}

.yellow {
  background: #fff2cb;
}

.catalog-section {
  padding: 70px 0 45px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2,
.how h2,
.reviews h2,
.page-title {
  font-size: 34px;
}

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

.topic-card {
  background: rgba(255,255,255,.97);
  border-radius: 25px;
  text-align: center;
  padding: 13px 13px 18px;
  box-shadow: 0 12px 34px rgba(54,40,115,.08);
  transition: .2s;
}

.topic-card:hover {
  transform: translateY(-6px);
}

.topic-img {
  height: 150px;
  border-radius: 50% 50% 42% 58% / 50% 42% 58% 50%;
  display: grid;
  place-items: center;
  font-size: 72px;
  overflow: hidden;
}

.topic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card:nth-child(4n+1) .topic-img {
  background: #eee8ff;
}

.topic-card:nth-child(4n+2) .topic-img {
  background: #ffe4ec;
}

.topic-card:nth-child(4n+3) .topic-img {
  background: #def7f5;
}

.topic-card:nth-child(4n) .topic-img {
  background: #fff1d2;
}

.topic-card h3 {
  font-size: 16px;
  min-height: 43px;
  margin: 14px 0 10px;
}

.topic-card .arrow {
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.how {
  padding: 65px 0;
  background: linear-gradient(135deg,rgba(250,248,255,.95),rgba(255,255,255,.95));
}

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

.how p {
  font-size: 17px;
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow);
}

.steps span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee8ff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  flex: 0 0 48px;
}

.steps h3 {
  margin: 1px 0 4px;
}

.steps p {
  margin: 0;
  font-size: 14px;
}

.reviews {
  padding: 70px 0;
}

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

.reviews blockquote {
  margin: 0;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  font-size: 17px;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.reviews blockquote footer {
  margin-top: 16px;
  font-weight: 900;
  color: var(--purple);
}

.service-bar {
  padding: 0 0 55px;
}

.service-grid {
  background: #fff;
  border-radius: 27px;
  box-shadow: var(--shadow);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.service-grid>div {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px dashed #ddd5f3;
  padding: 0 22px;
}

.service-grid>div:last-child {
  border: 0;
}

.service-grid span {
  font-size: 28px;
}

.service-grid p {
  margin: 0;
  font-size: 14px;
}

.content-section {
  padding: 55px 0 70px;
}

.panel {
  background: rgba(255,255,255,.97);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 32px;
}

.filter-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
}

.filter-link.active {
  background: var(--purple);
  color: #fff;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.search-form input {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
}

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

.product-card {
  background: #fff;
  border-radius: 25px;
  padding: 15px;
  box-shadow: 0 12px 34px rgba(54,40,115,.09);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card-image {
  height: 230px;
  border-radius: 19px;
  overflow: hidden;
  background: #f3efff;
  display: grid;
  place-items: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 16px 0 7px;
}

.product-card h3 a:hover {
  color: var(--purple);
}

.sku {
  font-size: 13px;
  color: #74809a;
  margin: 0 0 12px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

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

.old-price {
  text-decoration: line-through;
  color: #8f96a8;
  font-size: 14px;
}

.stock {
  font-size: 13px;
  font-weight: 800;
  color: #2c9a85;
}

.out-stock {
  color: #bd3f5e;
}

.product-card .btn {
  margin-top: 15px;
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.product-view {
  display: grid;
  grid-template-columns: minmax(390px,.9fr) minmax(560px,1.25fr);
  gap: 42px;
  align-items: start;
}

.product-image {
  background: #fff;
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 18px;
}

.product-info {
  background: #fff;
  border-radius: 28px;
  padding: 38px 42px;
  box-shadow: var(--shadow);
}

.product-info h1 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 36px;
  margin: 0 0 16px;
}

.product-description {
  max-width: none;
  width: 100%;
  font-size: 18px;
  line-height: 1.76;
}

.buy-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}

.qty-input {
  width: 85px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  text-align: center;
  font: inherit;
}

.market-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.breadcrumbs {
  font-size: 14px;
  color: #6f7891;
  margin-bottom: 22px;
}

.breadcrumbs a:hover {
  color: var(--purple);
}

.form-card {
  background: #fff;
  padding: 30px;
  border-radius: 26px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-card h1 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field small {
  display: block;
  color: #78829a;
  margin-top: 5px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cart-table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.cart-table th,
.cart-table td {
  padding: 16px;
  border-bottom: 1px solid #eee9f8;
  text-align: left;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 72px;
  height: 72px;
  border-radius: 13px;
  object-fit: cover;
  background: #f2edff;
}

.cart-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}

.cart-total strong {
  font-size: 27px;
}

.notice {
  padding: 16px 18px;
  border-radius: 15px;
  margin: 15px 0;
  background: #f2edff;
}

.notice-success {
  background: #e5faf5;
}

.notice-warning {
  background: #fff4da;
}

.page-article {
  background: #fff;
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1.7;
}

.page-article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.page-article h1,
.page-article h2,
.page-article h3 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.footer {
  background: #172a4d;
  color: #fff;
  padding: 55px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
}

.footer-brand img {
  width: 210px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 24px;
  padding: 6px;
}

.footer p {
  color: #cbd5e8;
}

.footer h3 {
  margin-top: 0;
}

.footer-grid>div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #c9baf8;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 35px;
  padding-top: 20px;
  color: #cbd5e8;
  font-size: 14px;
}

@media (max-width:1120px) {
  .nav {
    gap: 17px;
  }
  .nav a {
    font-size: 14px;
  }
  .brand {
    flex-basis: 190px;
  }
  .brand img {
    width: 180px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .benefits-grid,
  .service-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
  }
  .benefits article:nth-child(2),
  .service-grid>div:nth-child(2) {
    border-right: 0;
  }
  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width:900px) {
  .nav-icons {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open {
    display: flex;
  }
  .nav a.active:after {
    display: none;
  }
  .hero-grid,
  .how-grid,
  .product-view {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-top: 60px;
  }
  .hero-art {
    height: 420px;
  }
  .benefits {
    margin-top: 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }
  .product-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .search-form {
    width: 100%;
    margin-left: 0;
  }
  .search-form input {
    flex: 1;
    width: auto;
  }
}

@media (max-width:600px) {
  .container {
    width: min(100% - 24px,1220px);
  }
  .nav-wrap {
    height: 86px;
  }
  .brand {
    min-width: auto;
    flex: 0 0 150px;
  }
  .brand img {
    width: 145px;
    height: 76px;
  }
  .nav {
    top: 78px;
  }
  .hero {
    min-height: auto;
  }
  .hero-grid {
    min-height: auto;
  }
  .hero h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 16px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .gift {
    border-left: 0;
    padding-left: 0;
  }
  .hero-art {
    height: 340px;
    transform: scale(.76);
    transform-origin: center top;
  }
  .benefits-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .benefits article,
  .service-grid>div {
    border-right: 0;
    border-bottom: 1px dashed #ddd5f3;
    padding: 16px 0;
  }
  .benefits article:last-child,
  .service-grid>div:last-child {
    border-bottom: 0;
  }
  .section-head {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .section-head h2,
  .how h2,
  .reviews h2,
  .page-title {
    font-size: 28px;
  }
  .catalog-grid,
  .product-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .topic-img {
    height: 125px;
    font-size: 58px;
  }
  .product-card-image {
    height: 165px;
  }
  .product-card h3 {
    font-size: 15px;
  }
  .price {
    font-size: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid>div:first-child {
    grid-column: auto;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .panel,
  .product-info,
  .form-card,
  .page-article {
    padding: 21px;
  }
  .product-info h1 {
    font-size: 29px;
  }
  .buy-form {
    align-items: stretch;
    flex-direction: column;
  }
  .qty-input {
    width: 100%;
  }
  .cart-total {
    align-items: flex-end;
    flex-direction: column;
  }
  .btn {
    padding: 13px 20px;
  }
  .catalog-section {
    padding-top: 45px;
  }
}

@media (max-width:380px) {
  .catalog-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-socials a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
}

.order-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 17px;
  border-radius: 16px;
  background: #f5f1ff;
}

.order-summary>div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order-summary-total {
  padding-top: 10px;
  border-top: 1px solid #ddd5f3;
  font-size: 20px;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.cart-summary-text {
  display: grid;
  gap: 3px;
  text-align: right;
}

.cart-summary-text small {
  color: #74809a;
}

.btn.disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.delivery-fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}

.delivery-fieldset legend {
  font-weight: 900;
  margin-bottom: 10px;
}

.delivery-options {
  display: grid;
  gap: 10px;
}

.delivery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid #e8e1f4;
  border-radius: 16px;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: .2s;
}

.delivery-option:hover,
.delivery-option:has(input:checked) {
  border-color: var(--purple);
  box-shadow: 0 8px 24px rgba(102,75,173,.1);
}

.delivery-option input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
}

.delivery-option span {
  display: grid;
  gap: 3px;
}

.delivery-option small {
  color: #68748c;
}

.delivery-option em {
  font-style: normal;
  font-size: 12px;
  color: var(--purple);
  font-weight: 800;
}

.delivery-option>strong {
  white-space: nowrap;
  color: var(--navy);
}

@media (max-width:560px) {
  .delivery-option {
    grid-template-columns: auto 1fr;
  }
  .delivery-option>strong {
    grid-column: 2;
  }
}

/* v5: поиск, сменные изображения и управляемый футер */

.search-toggle {
  cursor: pointer;
  font-family: Arial,sans-serif;
}

.search-open {
  overflow: hidden;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 30px;
}

.site-search-overlay.open {
  display: flex;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16,31,60,.52);
  backdrop-filter: blur(8px);
}

.site-search-dialog {
  position: relative;
  width: min(760px,100%);
  max-height: calc(100vh - 150px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(17,31,66,.3);
}

.site-search-dialog h2 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 30px;
  margin: 0 50px 22px 0;
}

.site-search-close {
  position: absolute;
  right: 20px;
  top: 17px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f0ebff;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.site-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.site-search-form input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}

.site-search-hint {
  font-size: 13px;
  color: #778198;
  margin: 12px 3px;
}

.site-search-suggestions {
  display: grid;
  gap: 8px;
}

.site-search-result {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #eee9f7;
  border-radius: 17px;
  transition: .18s;
}

.site-search-result:hover {
  border-color: var(--purple);
  background: #fbf9ff;
  transform: translateY(-1px);
}

.site-search-result-media {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f0ebff;
  display: grid;
  place-items: center;
  font-size: 26px;
  overflow: hidden;
}

.site-search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-search-result-copy {
  display: grid;
  min-width: 0;
}

.site-search-result-copy small {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 900;
}

.site-search-result-copy b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-search-result-copy span {
  font-size: 13px;
  color: #788198;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-search-result i {
  font-style: normal;
  font-size: 26px;
  color: var(--purple);
}

.site-search-empty {
  padding: 24px;
  text-align: center;
  background: #f8f5ff;
  border-radius: 16px;
  color: #6e7890;
}

.site-search-all {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--purple);
  font-weight: 900;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 850px;
  margin: 25px 0 32px;
}

.search-total {
  margin: 0 0 28px;
  color: #66718a;
}

.search-group {
  margin-top: 50px;
}

.search-group:first-of-type {
  margin-top: 20px;
}

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

.search-link-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow);
}

.search-link-card:hover {
  transform: translateY(-3px);
}

.search-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0ebff;
  font-size: 30px;
  overflow: hidden;
}

.search-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-link-card>span:nth-child(2) {
  display: grid;
}

.search-link-card small {
  color: #778198;
  margin-top: 3px;
}

.search-link-card i {
  font-size: 28px;
  color: var(--purple);
  font-style: normal;
}

.search-page-list {
  display: grid;
  gap: 14px;
}

.search-page-list>a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 21px 24px;
  box-shadow: var(--shadow);
}

.search-page-list h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.search-page-list p {
  margin: 0;
  color: #68748c;
}

.search-page-list>a>span {
  white-space: nowrap;
  color: var(--purple);
  font-weight: 900;
}

.search-empty .btn {
  margin-top: 12px;
}

.hero-custom-image {
  position: absolute;
  inset: 20px 0 20px 20px;
  width: calc(100% - 20px);
  height: calc(100% - 40px);
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(79,55,155,.16));
}

.how-custom-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 22px;
  margin: 0 0 18px;
  background: rgba(255,255,255,.72);
  padding: 10px;
}

.footer-grid.cols-1 {
  grid-template-columns: 1fr;
}

.footer-grid.cols-2 {
  grid-template-columns: 1.4fr 1fr;
}

.footer-grid.cols-3 {
  grid-template-columns: 2fr 1fr 1.5fr;
}

.footer-grid.cols-4 {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-social-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-social-column .footer-socials {
  display: grid;
  align-items: start;
}

.footer-social-column .footer-socials a {
  width: max-content;
}

@media (max-width:900px) {
  .site-search-overlay {
    padding-top: 90px;
  }
  .site-search-dialog {
    max-height: calc(100vh - 110px);
  }
  .search-link-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .footer-grid.cols-3,
  .footer-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid.cols-3>div:first-child,
  .footer-grid.cols-4>div:first-child {
    grid-column: 1/-1;
  }
}

@media (max-width:600px) {
  .site-search-overlay {
    padding: 75px 10px 12px;
  }
  .site-search-dialog {
    padding: 23px 17px;
    border-radius: 22px;
    max-height: calc(100vh - 90px);
  }
  .site-search-dialog h2 {
    font-size: 24px;
  }
  .site-search-form,
  .search-page-form {
    grid-template-columns: 1fr;
  }
  .site-search-form .btn,
  .search-page-form .btn {
    width: 100%;
  }
  .site-search-result {
    grid-template-columns: 48px 1fr auto;
  }
  .site-search-result-media {
    width: 48px;
    height: 48px;
  }
  .search-link-grid {
    grid-template-columns: 1fr;
  }
  .search-page-list>a {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid.cols-2,
  .footer-grid.cols-3,
  .footer-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid.cols-3>div:first-child,
  .footer-grid.cols-4>div:first-child {
    grid-column: auto;
  }
  .hero-custom-image {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width:900px) {
  .nav-icons {
    display: flex;
    margin-left: 0;
    gap: 7px;
  }
  .menu-btn {
    margin-left: auto;
  }
  .icon-link,
  .cart-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }
  .icon-link svg,
  .cart-link svg {
    width: 20px;
    height: 20px;
  }
}

.product-characteristics {
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid rgba(149,115,236,.18);
}

.product-characteristics div {
  display: grid;
  grid-template-columns: minmax(140px,1fr) 1.2fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(149,115,236,.14);
}

.product-characteristics dt {
  font-weight: 800;
}

.product-characteristics dd {
  margin: 0;
}

.home-section-hidden {
  display: none !important;
}

/* v7: CMS-страницы */

.container-wide {
  width: min(1380px,calc(100% - 32px));
  margin-inline: auto;
}

.page-featured-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 28px;
  margin: 0 0 28px;
  box-shadow: 0 16px 44px rgba(57,36,110,.12);
}

.page-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
}

.page-article th,
.page-article td {
  border: 1px solid rgba(113,85,179,.18);
  padding: 12px;
  text-align: left;
}

.page-article blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--primary,#9573ec);
  background: rgba(149,115,236,.08);
  border-radius: 0 16px 16px 0;
}

.page-article img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.page-template-landing .page-article {
  padding-top: 0;
}

/* v7: страницы CMS и настройка карточки товара */

.container-wide {
  width: min(1500px,calc(100% - 40px));
}

.page-article {
  background: rgba(255,255,255,.96);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  line-height: 1.75;
}

.page-article>h1:first-child {
  margin-top: 0;
}

.page-featured-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 0 28px;
}


.page-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.page-article th,
.page-article td {
  border: 1px solid var(--line);
  padding: 11px;
}

.page-article blockquote {
  margin: 20px 0;
  padding: 18px 22px;
  background: #f5f0ff;
  border-left: 5px solid var(--purple);
  border-radius: 0 14px 14px 0;
}

.page-template-landing .page-article {
  padding-top: 32px;
}

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

.product-view-no-image .product-info {
  max-width: 850px;
  margin: auto;
  width: 100%;
}

@media (max-width:650px) {
  .page-article {
    padding: 24px;
  }
  .container-wide {
    width: min(100% - 24px,1500px);
  }
}

/* v7.4 — доступные способы доставки товара */

.product-delivery-box {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #ebe5fb;
  border-radius: 18px;
  background: #fbf9ff;
}

.product-delivery-box>b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.product-delivery-box ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-delivery-box li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 7px;
  border-top: 1px dashed #e2daf6;
}

.product-delivery-box li:first-child {
  padding-top: 0;
  border-top: 0;
}

.product-delivery-box strong {
  white-space: nowrap;
  color: #6f50c9;
}

.product-delivery-box p {
  margin: 0;
  color: #6e7890;
}

/* Checkout required-field validation */

.form-card .field.has-error input,
.form-card .field.has-error textarea,
.form-card .field.has-error select {
  border-color: #e54868 !important;
  box-shadow: 0 0 0 3px rgba(229,72,104,.14) !important;
  background: #fff8fa;
}

.form-card .field.has-error label {
  color: #c92f50;
}

.form-card .field-error {
  display: block;
  margin-top: 7px;
  color: #c92f50;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.form-card .field input:focus,
.form-card .field textarea:focus,
.form-card .field select:focus {
  outline: none;
}

/* v7.5 — отзывы покупателей */

.review-stars {
  color: #f4b63c;
  letter-spacing: 1px;
  font-weight: 900;
  white-space: nowrap;
}

.reviews blockquote .review-stars {
  font-size: 18px;
  margin-bottom: 10px;
}

.reviews blockquote footer {
  display: grid;
  gap: 4px;
}

.reviews blockquote footer a {
  font-size: 13px;
  color: #6d50c8;
}

.product-rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
  width: max-content;
  max-width: 100%;
  color: var(--navy);
}

.product-rating-summary b {
  font-size: 14px;
}

.product-rating-summary small {
  color: #6e7890;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 10px;
  font-size: 12px;
}

.product-card-rating small {
  color: #6e7890;
}

.product-reviews-section {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid rgba(116,82,194,.15);
}

.product-reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 25px;
}

.product-reviews-head h2 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 34px;
  margin: 0;
}

.product-reviews-total {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 10px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-reviews-total .review-stars {
  grid-column: 1/-1;
}

.product-reviews-total b {
  font-size: 25px;
}

.product-reviews-total small {
  color: #6e7890;
}

.product-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr);
  gap: 24px;
  align-items: start;
}

.product-reviews-layout.without-form {
  grid-template-columns: 1fr;
}

.product-review-list {
  display: grid;
  gap: 14px;
}

.product-review-card {
  background: #fff;
  border-radius: 21px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(56,39,112,.07);
}

.product-review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.product-review-card-head>div {
  display: grid;
  gap: 4px;
}

.product-review-card-head time {
  font-size: 13px;
  color: #7a849a;
  white-space: nowrap;
}

.product-review-card p {
  margin: 16px 0 0;
  line-height: 1.65;
}

.product-review-form-card {
  position: sticky;
  top: 120px;
  background: #fff;
  border-radius: 23px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-review-form-card h3 {
  font-size: 24px;
  margin: 0 0 7px;
}

.product-review-form-card>p {
  margin: 0 0 20px;
  color: #68748c;
  font-size: 14px;
  line-height: 1.5;
}

.product-review-form .field input,
.product-review-form .field textarea {
  width: 100%;
  border: 1px solid #e5def3;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.review-rating-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.review-rating-field>span {
  font-weight: 900;
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-input label {
  font-size: 31px;
  color: #ddd3ef;
  cursor: pointer;
  line-height: 1;
  transition: .15s;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
  color: #f4b63c;
  transform: translateY(-1px);
}

.review-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.product-review-form .btn {
  width: 100%;
}

@media (max-width:900px) {
  .product-reviews-layout {
    grid-template-columns: 1fr;
  }
  .product-review-form-card {
    position: static;
  }
  .product-reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width:600px) {
  .product-reviews-head h2 {
    font-size: 28px;
  }
  .product-reviews-total {
    width: 100%;
  }
  .product-review-card-head {
    flex-direction: column;
  }
  .product-review-form-card,
  .product-review-card {
    padding: 19px;
  }
}

/* v8.0 — галерея фотографий товара */

.product-gallery {
  display: grid;
  gap: 13px;
  align-self: start;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(149,115,236,.18);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.product-gallery-main {
  position: relative;
  border: 2px solid rgba(149,115,236,.22);
  padding: 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  cursor: zoom-in;
  aspect-ratio: 1/1;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px;
}

.product-gallery-main span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(42,32,75,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: .2s;
}

.product-gallery-main:hover span {
  opacity: 1;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 9px;
}

.product-gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 6px 18px rgba(50,35,92,.06);
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.product-site-lightbox[hidden] {
  display: none;
}

.product-site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(14,10,26,.92);
  display: grid;
  place-items: center;
  padding: 40px 78px;
}

.product-site-lightbox figure {
  margin: 0;
  display: grid;
  gap: 10px;
  place-items: center;
  max-width: min(1160px,90vw);
  max-height: 90vh;
}

.product-site-lightbox figure img {
  max-width: 100%;
  max-height: 83vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}

.product-site-lightbox figcaption {
  color: #fff;
  font-weight: 800;
}

.product-site-lightbox-close,
.product-site-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.13);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.product-site-lightbox-close {
  right: 22px;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 31px;
}

.product-site-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  border-radius: 17px;
  font-size: 48px;
}

.product-site-lightbox-nav.prev {
  left: 18px;
}

.product-site-lightbox-nav.next {
  right: 18px;
}

.product-lightbox-open {
  overflow: hidden;
}

@media (max-width:900px) {
  .product-gallery-thumbs {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .product-site-lightbox {
    padding: 68px 12px 22px;
  }
  .product-site-lightbox-nav {
    width: 42px;
    height: 58px;
    font-size: 36px;
  }
  .product-site-lightbox-nav.prev {
    left: 7px;
  }
  .product-site-lightbox-nav.next {
    right: 7px;
  }
}

@media (max-width:600px) {
  .product-gallery-thumbs {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
  .product-gallery-main span {
    opacity: 1;
    font-size: 10px;
  }
  .product-site-lightbox-close {
    right: 10px;
    top: 10px;
  }
}

/* v8.2.4 — форма добавления отзыва расположена перед отзывами */

.product-review-form-before {
  position: static;
  top: auto;
  margin-bottom: 28px;
}

.product-review-form-before .product-review-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 18px;
  align-items: start;
}

.product-review-form-before .review-rating-field,
.product-review-form-before .field-review-text,
.product-review-form-before .review-honeypot,
.product-review-form-before .btn {
  grid-column: 1/-1;
}

.product-review-form-before .btn {
  width: auto;
  min-width: 220px;
  justify-self: start;
}

.product-review-list-block {
  display: grid;
  gap: 16px;
}

.product-review-list-heading {
  font-size: 24px;
  margin: 0;
}

@media (max-width:700px) {
  .product-review-form-before .product-review-form {
    grid-template-columns: 1fr;
  }
  .product-review-form-before .review-rating-field,
  .product-review-form-before .field,
  .product-review-form-before .review-honeypot,
  .product-review-form-before .btn {
    grid-column: 1;
  }
  .product-review-form-before .btn {
    width: 100%;
    min-width: 0;
  }
}

/* v8.6 — уведомление cookie и политика конфиденциальности */

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 0 24px;
  font-size: 13px;
  font-weight: 800;
  color: #69758d;
}

.footer-legal a,
.footer-legal button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--purple);
  text-decoration: underline;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  z-index: 10020;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1120px,calc(100% - 32px));
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(149,115,236,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 80px rgba(45,31,94,.24);
  backdrop-filter: blur(18px);
}

.cookie-banner-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eee8ff;
  color: var(--purple);
  font-size: 34px;
  font-weight: 900;
}

.cookie-banner-copy h2 {
  margin: 0 0 5px;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 20px;
}

.cookie-banner-copy p {
  margin: 0;
  color: #5f6d86;
  line-height: 1.48;
  font-size: 14px;
}

.cookie-banner-copy a {
  color: var(--purple);
  font-weight: 900;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-banner-actions .btn {
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 13px;
}

.cookie-consent-open {
  overflow: hidden;
}

.privacy-page {
  padding-top: 42px;
}

.privacy-article {
  max-width: 1040px;
  margin: 0 auto;
}

.privacy-hero {
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}

.privacy-hero h1 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 42px;
  margin: 0 0 18px;
}

.privacy-intro {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.65;
  color: #4e5e79;
}

.privacy-updated {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f1edff;
  color: #6d55bd;
  font-size: 13px;
  font-weight: 900;
}

.privacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 24px 0;
}

.privacy-nav a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.privacy-nav a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.privacy-section {
  scroll-margin-top: 135px;
  padding: 25px 0;
  border-top: 1px solid #eeeaf8;
}

.privacy-section:first-of-type {
  border-top: 0;
}

.privacy-section h2 {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 26px;
  margin: 0 0 15px;
}

.privacy-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.privacy-section p,
.privacy-section li {
  font-size: 16px;
  line-height: 1.68;
  color: #40516e;
}

.privacy-section ul {
  margin: 10px 0 0;
  padding-left: 23px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.privacy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfaff;
}

.privacy-card ul {
  margin-bottom: 0;
}

.privacy-cookie-table {
  display: grid;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.privacy-cookie-row {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) 230px;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.privacy-cookie-row:first-child {
  border-top: 0;
}

.privacy-cookie-head {
  background: #f4f0ff;
  color: #5f4ca5;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.privacy-cookie-row:not(.privacy-cookie-head) span {
  color: #53627c;
  line-height: 1.5;
}

.privacy-contact-card {
  padding: 25px;
  border: 1px solid rgba(149,115,236,.22);
  border-radius: 22px;
  background: linear-gradient(135deg,#faf8ff,#fff);
}

.privacy-contact-card a {
  color: var(--purple);
  font-weight: 900;
}

@media (max-width:900px) {
  .cookie-banner {
    grid-template-columns: auto minmax(0,1fr);
  }
  .cookie-banner-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .privacy-cookie-row {
    grid-template-columns: 150px minmax(0,1fr) 180px;
  }
}

@media (max-width:700px) {
  .cookie-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }
  .cookie-banner-icon {
    display: none;
  }
  .cookie-banner-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-banner-actions .btn {
    width: 100%;
  }
  .privacy-page {
    padding-top: 24px;
  }
  .privacy-article {
    padding: 22px;
  }
  .privacy-hero h1 {
    font-size: 32px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .privacy-cookie-table {
    border: 0;
    gap: 10px;
    overflow: visible;
  }
  .privacy-cookie-head {
    display: none;
  }
  .privacy-cookie-row {
    grid-template-columns: 1fr;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }
  .privacy-cookie-row:first-child {
    border-top: 1px solid var(--line);
  }
}

/* v8.6.2 — согласие на обработку персональных данных в форме отзыва */

.review-consent {
  grid-column: 1/-1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 4px;
  padding: 14px 16px;
  border: 1px solid #e5def3;
  border-radius: 15px;
  background: #faf8ff;
  color: #59667e;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.review-consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 1px 0 0;
  accent-color: var(--purple);
  cursor: pointer;
}

.review-consent span {
  min-width: 0;
}

.review-consent a {
  color: var(--purple);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-consent:has(input:focus-visible) {
  outline: 3px solid rgba(149,115,236,.18);
  border-color: var(--purple);
}


.checkout-consent {
  margin-top: 4px;
}

.field-consent {
  margin-top: 4px;
}

.field-consent .field-error {
  margin-top: 8px;
}

/* v9.11.76 — чекбокс согласия точно выровнен по линии текста */
.field-consent .checkout-consent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.field-consent .checkout-consent input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  align-self: center;
  vertical-align: middle;
  position: relative;
  top: 2px;
}

.field-consent .checkout-consent span {
  display: block;
  min-width: 0;
  line-height: 1.4;
}

@media (max-width:700px) {
  .review-consent {
    grid-column: 1;
    padding: 13px 14px;
  }
}

/* =============================================================================
   v9.11.19 — единая адаптивная сетка, типографика и отступы публичного сайта
   =============================================================================
   Этот финальный слой нормализует интерфейс на экранах от 320 px до широких
   мониторов. Компонентные правила выше сохраняют оформление, а данный блок
   отвечает за единый ритм, читаемость и отсутствие горизонтального выхода.
   ============================================================================= */

:root {
  --site-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --site-page-gutter: clamp(12px, 3vw, 32px);
  --site-section-space: clamp(42px, 6vw, 76px);
  --site-card-padding: clamp(17px, 2.1vw, 28px);
  --site-card-radius: clamp(18px, 2vw, 26px);
  --site-control-height: 46px;
  --site-text: clamp(15px, 0.18vw + 14.4px, 16px);
  --site-small: clamp(12px, 0.12vw + 11.6px, 13px);
}

html {
  min-width: 320px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--site-font);
}

body {
  min-width: 320px;
  overflow-x: clip;
  font-size: var(--site-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
nav,
form,
fieldset,
figure,
.admin-panel {
  min-width: 0;
}

img,
picture,
video,
canvas,
iframe,
svg {
  max-width: 100%;
}

img,
picture,
video,
canvas {
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

button,
[role="button"],
a.btn,
input[type="submit"] {
  touch-action: manipulation;
}

p,
li,
label,
small,
strong,
b,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
.hero h1,
.section-head h2,
.how h2,
.reviews h2,
.page-title,
.product-info h1,
.product-reviews-head h2,
.privacy-hero h1,
.privacy-section h2 {
  font-family: var(--site-font);
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section-head h2,
.how h2,
.reviews h2,
.page-title,
.product-reviews-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.product-info h1,
.form-card h1,
.page-article h1,
.privacy-hero h1 {
  font-size: clamp(29px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.page-article h2,
.privacy-section h2 {
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: calc(1220px + (var(--site-page-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--site-page-gutter);
}

.content-section,
.catalog-section,
.how,
.reviews {
  padding-block: var(--site-section-space);
}

.catalog-section {
  padding-bottom: clamp(36px, 5vw, 56px);
}

.section-head,
.product-reviews-head,
.cart-total,
.page-head {
  gap: clamp(12px, 2vw, 24px);
}

.panel,
.product-info,
.form-card,
.page-article,
.product-review-form-card,
.product-review-card,
.empty-state,
.privacy-card,
.privacy-contact-card {
  border-radius: var(--site-card-radius);
  padding: var(--site-card-padding);
}

.btn,
button.btn,
a.btn {
  min-height: var(--site-control-height);
  padding: 11px clamp(17px, 2vw, 24px);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.field {
  margin-bottom: clamp(14px, 1.8vw, 18px);
}

.field label {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.35;
}

.field input,
.field textarea,
.field select,
.search-form input,
.site-search-form input,
.search-page-form input,
.qty-input {
  min-height: var(--site-control-height);
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.35;
}

.field small,
.sku,
.stock,
.site-search-hint,
.product-review-card-head time {
  font-size: var(--site-small);
  line-height: 1.45;
}

/* Шапка сохраняет одинаковую высоту и корректно сжимается. */
.nav-wrap {
  min-height: clamp(82px, 8vw, 108px);
  height: auto;
  gap: clamp(12px, 2vw, 24px);
  padding-block: 6px;
}

.brand {
  flex-basis: clamp(150px, 18vw, 220px);
  min-width: 0;
}

.brand img {
  width: min(205px, 100%);
  height: clamp(70px, 8vw, 96px);
}

.nav {
  gap: clamp(14px, 2vw, 28px);
}

.nav a {
  font-size: clamp(13px, .4vw + 11px, 15px);
  line-height: 1.3;
}

.menu-btn,
.icon-link,
.cart-link {
  width: 46px;
  min-width: 46px;
  height: 46px;
}

.menu-btn {
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: #f4efff;
  cursor: pointer;
}

/* Автоматические сетки не создают слишком узкие карточки. */
.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.reviews-grid,
.service-grid,
.benefits-grid {
  gap: clamp(16px, 2vw, 24px);
}

.topic-card,
.product-card,
.reviews blockquote,
.steps article {
  border-radius: var(--site-card-radius);
}

.topic-card,
.product-card {
  padding: clamp(13px, 1.6vw, 17px);
}

.topic-img {
  height: auto;
  min-height: 132px;
  aspect-ratio: 1 / .88;
}

.product-card-image {
  height: auto;
  min-height: 190px;
  aspect-ratio: 1 / .82;
}

.product-card h3 {
  min-height: 2.5em;
  font-size: clamp(16px, .5vw + 14px, 18px);
  line-height: 1.3;
}

.price-row,
.market-buttons,
.hero-actions,
.cookie-banner-actions,
.footer-socials {
  flex-wrap: wrap;
}

.product-view {
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 44px);
}

.product-info {
  padding: clamp(23px, 3.5vw, 42px);
}

.product-description,
.page-article,
.privacy-section p,
.privacy-section li {
  font-size: clamp(15px, .3vw + 14px, 18px);
  line-height: 1.7;
}

.product-gallery {
  border-radius: var(--site-card-radius);
}

.product-gallery-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
}

.product-reviews-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.product-review-card-head > div,
.product-review-list,
.product-review-list-block {
  min-width: 0;
}

.filters {
  gap: 9px;
}

.search-form {
  min-width: min(100%, 300px);
}

.search-form input {
  width: min(310px, 100%);
}

.cart-table-wrap,
.privacy-cookie-table {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.cart-table th,
.cart-table td {
  padding: clamp(12px, 1.5vw, 17px);
}

.site-search-dialog {
  width: min(760px, 100%);
  padding: clamp(20px, 4vw, 32px);
}

.footer {
  padding-top: clamp(42px, 5vw, 64px);
}

.footer-grid {
  gap: clamp(24px, 4vw, 48px);
}

.cookie-banner {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

@supports (padding: max(0px)) {
  .header .container,
  .footer .container,
  main > .container {
    padding-left: max(var(--site-page-gutter), env(safe-area-inset-left));
    padding-right: max(var(--site-page-gutter), env(safe-area-inset-right));
  }
}

@media (max-width: 900px) {
  .nav {
    top: calc(100% + 8px);
    right: var(--site-page-gutter);
    left: var(--site-page-gutter);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .nav a {
    width: 100%;
    padding: 12px 13px;
    border-radius: 11px;
  }

  .nav a:hover,
  .nav a.active {
    background: #f6f1ff;
  }

  .menu-btn {
    display: grid;
  }

  .hero-grid,
  .how-grid,
  .product-view,
  .product-reviews-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: clamp(36px, 6vw, 58px);
  }

  .product-review-form-card {
    position: static;
  }

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

@media (max-width: 700px) {
  .section-head,
  .product-reviews-head,
  .cart-total {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions,
  .buy-form,
  .market-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .buy-form .btn,
  .market-buttons .btn,
  .cart-total .btn,
  .search-form .btn,
  .site-search-form .btn,
  .search-page-form .btn {
    width: 100%;
  }

  .qty-input,
  .search-form,
  .search-form input {
    width: 100%;
  }

  .filters {
    align-items: stretch;
  }

  .filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
  }

  .search-form,
  .site-search-form,
  .search-page-form {
    grid-template-columns: 1fr;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .product-review-form-before .product-review-form,
  .two-columns,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .review-media-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }

  .site-search-overlay {
    padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
  }

  .site-search-dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

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

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --site-page-gutter: 12px;
    --site-control-height: 44px;
  }

  .nav-wrap {
    min-height: 78px;
  }

  .brand {
    flex-basis: min(148px, 48vw);
  }

  .brand img {
    height: 68px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 38px);
  }

  .hero-art {
    width: 100%;
    height: 300px;
    transform: none;
  }

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

  .topic-img,
  .product-card-image {
    max-height: none;
  }

  .product-card h3 {
    min-height: 0;
  }

  .steps article,
  .service-grid > div,
  .benefits article {
    align-items: flex-start;
    gap: 13px;
  }

  .product-review-card-head {
    gap: 8px;
  }

  .cart-product {
    min-width: 240px;
  }

  .cookie-banner {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .brand {
    flex-basis: 128px;
  }

  .brand img {
    height: 62px;
  }

  .menu-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .panel,
  .product-info,
  .form-card,
  .page-article,
  .product-review-form-card,
  .product-review-card {
    padding: 16px;
  }
}

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

/* Единый шрифт всех текстовых интерфейсных элементов. */
body :where(button, input, select, textarea, a, p, span, div, label, small, strong, b, h1, h2, h3, h4, th, td, summary, legend) {
  font-family: var(--site-font);
}

/* =============================================================================
   v9.11.21 — финальная адаптивная система публичного сайта
   =============================================================================
   Слой устраняет расхождения между ранними компонентными правилами: задаёт
   единый шрифт, вертикальный ритм, безопасные внутренние поля и адаптивные
   сетки для телефонов, планшетов, ноутбуков и широких экранов.
   ============================================================================= */

:root {
  --site-content-width: 1220px;
  --site-gutter: clamp(14px, 3.2vw, 34px);
  --site-space-1: 6px;
  --site-space-2: 10px;
  --site-space-3: 14px;
  --site-space-4: 18px;
  --site-space-5: clamp(22px, 3vw, 32px);
  --site-space-6: clamp(34px, 5vw, 58px);
  --site-space-7: clamp(46px, 7vw, 82px);
  --site-radius-sm: 12px;
  --site-radius-md: 16px;
  --site-radius-lg: clamp(19px, 2vw, 27px);
  --site-touch-size: 46px;
  --site-body-size: clamp(15px, .2vw + 14.4px, 16px);
  --site-caption-size: clamp(12px, .12vw + 11.6px, 13px);
}

html {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-size: var(--site-body-size);
  line-height: 1.58;
}

body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--site-font);
}

main,
.header,
.footer,
.container,
.content-section,
.catalog-section,
.product-view,
.product-info,
.product-gallery,
.form-card,
.page-article,
.product-reviews-section,
.product-review-list,
.product-review-form-card {
  min-width: 0;
  max-width: 100%;
}

.container,
.container-wide {
  width: 100%;
  max-width: calc(var(--site-content-width) + (var(--site-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.container-wide {
  --site-content-width: 1500px;
}

:where(h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure) {
  margin-top: 0;
}

:where(h1, h2, h3, h4) {
  color: var(--navy);
  font-weight: 850;
  text-wrap: balance;
}

:where(p, li, dd, label, small, a, button, td, th) {
  overflow-wrap: anywhere;
}

:where(p, ul, ol, dl, blockquote):last-child {
  margin-bottom: 0;
}

.lead,
.page-article > p,
.privacy-intro,
.product-description {
  max-width: 72ch;
}

.eyebrow {
  margin-bottom: var(--site-space-3);
  font-size: var(--site-caption-size);
  line-height: 1.35;
}

.content-section,
.catalog-section,
.how,
.reviews {
  padding-block: var(--site-space-7);
}

.content-section > .container,
.catalog-section > .container,
.how > .container,
.reviews > .container {
  width: 100%;
}

.section-head,
.product-reviews-head,
.page-head,
.cart-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--site-space-5);
  margin-bottom: var(--site-space-5);
}

.section-head > *,
.product-reviews-head > *,
.page-head > *,
.cart-total > * {
  min-width: 0;
}

.panel,
.form-card,
.page-article,
.product-info,
.product-review-form-card,
.product-review-card,
.empty-state,
.privacy-card,
.privacy-contact-card,
.topic-card,
.product-card,
.reviews blockquote,
.steps article,
.service-grid {
  border-radius: var(--site-radius-lg);
}

.panel,
.form-card,
.page-article,
.product-info,
.product-review-form-card,
.product-review-card,
.empty-state,
.privacy-card,
.privacy-contact-card {
  padding: clamp(18px, 2.7vw, 34px);
}

.btn,
button.btn,
a.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--site-touch-size);
  padding: 11px clamp(17px, 2.1vw, 25px);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}


.field {
  min-width: 0;
  margin-bottom: var(--site-space-4);
}

.field label,
.delivery-fieldset legend {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.field input,
.field textarea,
.field select,
.search-form input,
.site-search-form input,
.search-page-form input,
.qty-input {
  width: 100%;
  min-width: 0;
  min-height: var(--site-touch-size);
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.4;
}

.field textarea {
  min-height: 124px;
}

.field small,
.sku,
.stock,
.site-search-hint,
.product-review-card-head time {
  font-size: var(--site-caption-size);
  line-height: 1.45;
}

/* Шапка и навигация. */
.nav-wrap {
  position: relative;
  min-height: clamp(78px, 8vw, 106px);
  height: auto;
  padding-block: 5px;
  gap: clamp(8px, 1.7vw, 22px);
}

.brand {
  flex: 0 1 clamp(138px, 17vw, 210px);
  min-width: 0;
}

.brand img {
  width: min(205px, 100%);
  height: clamp(66px, 7.6vw, 94px);
}

.nav {
  min-width: 0;
  gap: clamp(12px, 1.7vw, 26px);
}

.nav a {
  font-size: clamp(13px, .3vw + 11.5px, 15px);
  line-height: 1.3;
}

.nav-icons {
  display: flex !important;
  flex: 0 0 auto;
  gap: clamp(7px, 1vw, 12px);
  margin-left: 0;
}

.menu-btn,
.icon-link,
.cart-link {
  width: var(--site-touch-size);
  min-width: var(--site-touch-size);
  height: var(--site-touch-size);
}

.menu-btn {
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: #f4efff;
}

/* Главная страница. */
.hero,
.hero-grid {
  min-height: clamp(480px, 46vw, 570px);
}

.hero-grid {
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(28px, 5vw, 66px);
}

.hero-copy,
.hero-art,
.how-grid > *,
.service-grid > *,
.benefits-grid > * {
  min-width: 0;
}

.hero h1 {
  margin-bottom: var(--site-space-4);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
}

.hero .lead {
  font-size: clamp(16px, .4vw + 14.5px, 19px);
  line-height: 1.65;
}

.hero-actions,
.price-row,
.buy-form,
.market-buttons,
.filters,
.footer-socials,
.cookie-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--site-space-3);
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: clamp(12px, 1.7vw, 20px);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
  gap: clamp(15px, 2vw, 24px);
}

.reviews-grid,
.service-grid,
.benefits-grid {
  gap: clamp(15px, 2vw, 24px);
}

.topic-card,
.product-card {
  min-width: 0;
  padding: clamp(13px, 1.6vw, 18px);
}

.topic-img {
  height: auto;
  min-height: 130px;
  aspect-ratio: 1 / .88;
}


.product-card h3 {
  min-height: 2.55em;
  margin: 14px 0 7px;
  font-size: clamp(16px, .4vw + 14.5px, 18px);
  line-height: 1.3;
}

.product-card .price-row {
  align-items: baseline;
}

.service-grid {
  padding: clamp(18px, 2.5vw, 28px);
}

.service-grid > div {
  min-width: 0;
  padding-inline: clamp(10px, 1.6vw, 22px);
}

/* Каталог, товар и отзывы. */
.filters {
  align-items: stretch;
  margin-block: var(--site-space-5);
}

.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  line-height: 1.2;
  text-align: center;
}


.search-form input {
  width: min(320px, 100%);
}

.product-view {
  grid-template-columns: minmax(310px, .9fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 44px);
}

.product-gallery,
.product-info {
  min-width: 0;
}

.product-info h1,
.form-card h1,
.page-article h1,
.privacy-hero h1 {
  margin-bottom: var(--site-space-4);
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.15;
}

.product-description,
.page-article,
.privacy-section p,
.privacy-section li {
  font-size: clamp(15px, .3vw + 14px, 18px);
  line-height: 1.72;
}

.product-gallery-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
}

.product-reviews-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(18px, 3vw, 32px);
}

.product-review-card-head,
.product-review-list-heading {
  gap: var(--site-space-3);
}

.product-characteristics div {
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
  gap: var(--site-space-4);
}

.product-delivery-box li {
  align-items: baseline;
}

/* Формы, корзина, поиск и информационные страницы. */
.two-columns,
.privacy-grid {
  gap: var(--site-space-4);
}

.delivery-options {
  gap: var(--site-space-3);
}

.delivery-option {
  min-width: 0;
  padding: clamp(14px, 2vw, 19px);
}

.cart-table-wrap,
.privacy-cookie-table,
.page-article table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.page-article table {
  display: block;
}

.page-article table tbody,
.page-article table thead,
.page-article table tfoot {
  min-width: max-content;
}

.cart-table th,
.cart-table td,
.page-article th,
.page-article td {
  padding: clamp(10px, 1.5vw, 16px);
}

.cart-total {
  margin-block: var(--site-space-5);
}

.site-search-dialog {
  width: min(760px, 100%);
  padding: clamp(20px, 4vw, 34px);
}

.site-search-form,
.search-page-form {
  min-width: 0;
}

.site-search-result,
.search-link-card,
.search-page-list > a {
  min-width: 0;
}

.search-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: var(--site-space-4);
}

.privacy-cookie-row {
  grid-template-columns: minmax(130px, .75fr) minmax(0, 1.5fr) minmax(150px, .75fr);
}

.footer {
  padding-top: var(--site-space-6);
}

.footer-grid {
  grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(150px, 1fr));
  gap: clamp(24px, 4vw, 52px);
}

.footer-grid > div,
.footer-brand,
.footer-social-column {
  min-width: 0;
}

.footer-brand img {
  width: min(210px, 100%);
  height: auto;
  aspect-ratio: 7 / 5;
}

/* Ноутбуки и горизонтальные планшеты. */
@media (max-width: 1080px) {
  .product-view,
  .product-reviews-layout,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .product-review-form-card {
    position: static;
  }

  .service-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Меню превращается в раскрывающуюся панель раньше, чем ссылки начнут тесниться. */
@media (max-width: 960px) {
  .nav-wrap {
    flex-wrap: nowrap;
  }

  .menu-btn {
    display: grid;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--site-gutter);
    left: var(--site-gutter);
    z-index: 40;
    display: none;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 13px;
    border-radius: 11px;
    white-space: normal;
  }

  .nav a:hover,
  .nav a.active {
    background: #f6f1ff;
  }

  .nav a.active::after {
    display: none;
  }

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

  .hero-copy {
    padding-top: 0;
  }
}

/* Вертикальные планшеты и большие телефоны. */
@media (max-width: 760px) {
  :root {
    --site-gutter: clamp(12px, 4vw, 22px);
    --site-space-7: clamp(38px, 8vw, 56px);
  }

  .section-head,
  .product-reviews-head,
  .page-head,
  .cart-total {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head .btn,
  .product-reviews-head .btn,
  .page-head .btn,
  .cart-total .btn,
  .hero-actions .btn,
  .buy-form .btn,
  .market-buttons .btn,
  .search-form .btn,
  .site-search-form .btn,
  .search-page-form .btn {
    width: 100%;
  }

  .hero-actions,
  .buy-form,
  .market-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .qty-input,
  .search-form,
  .search-form input {
    width: 100%;
  }

  .search-form,
  .site-search-form,
  .search-page-form {
    grid-template-columns: 1fr;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .two-columns,
  .privacy-grid,
  .product-review-form-before .product-review-form {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .privacy-cookie-row,
  .privacy-cookie-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .privacy-cookie-head {
    display: none;
  }

  .privacy-cookie-row:not(.privacy-cookie-head) span::before {
    display: block;
    margin-bottom: 2px;
    color: #7566a4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .privacy-cookie-row:not(.privacy-cookie-head) span:nth-child(1)::before {
    content: "Файл";
  }

  .privacy-cookie-row:not(.privacy-cookie-head) span:nth-child(2)::before {
    content: "Назначение";
  }

  .privacy-cookie-row:not(.privacy-cookie-head) span:nth-child(3)::before {
    content: "Срок";
  }

  .site-search-overlay {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .site-search-dialog {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    border-radius: 20px;
  }
}

/* Телефоны. */
@media (max-width: 560px) {
  :root {
    --site-gutter: 12px;
    --site-touch-size: 44px;
  }

  .nav-wrap {
    min-height: 74px;
    gap: 7px;
  }

  .brand {
    flex-basis: min(136px, 43vw);
  }

  .brand img {
    height: 64px;
  }

  .menu-btn,
  .icon-link,
  .cart-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .nav-icons {
    gap: 5px;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-grid {
    padding-block: 34px;
  }

  .hero h1 {
    font-size: clamp(31px, 9.2vw, 39px);
  }

  .hero-art {
    width: 100%;
    height: min(78vw, 310px);
    transform: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
  }

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

  .topic-card,
  .product-card {
    padding: 13px;
  }

  .topic-card h3,
  .product-card h3 {
    min-height: 0;
  }

  .topic-img,
  .product-card-image {
    max-height: none;
  }

  .product-characteristics div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-characteristics dd {
    color: #53627c;
  }

  .product-delivery-box li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-delivery-box strong {
    white-space: normal;
  }

  .site-search-result {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .site-search-result-media {
    width: 48px;
    height: 48px;
  }

  .site-search-result > i {
    display: none;
  }

  .search-link-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .search-link-card > i {
    display: none;
  }

  .search-card-icon {
    width: 52px;
    height: 52px;
  }

  .cart-product {
    min-width: 220px;
  }

  .cookie-banner {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
}

@media (max-width: 370px) {
  :root {
    --site-gutter: 9px;
  }

  .brand {
    flex-basis: 116px;
  }

  .brand img {
    height: 58px;
  }

  .menu-btn,
  .icon-link,
  .cart-link {
    width: 39px;
    min-width: 39px;
    height: 39px;
  }

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

  .panel,
  .form-card,
  .page-article,
  .product-info,
  .product-review-form-card,
  .product-review-card,
  .empty-state,
  .privacy-card,
  .privacy-contact-card {
    padding: 15px;
  }
}

/* =============================================================================
   v9.11.22 — восстановление прежнего вида каталога
   =============================================================================
   Каталог снова использует фиксированное количество карточек по ширине экрана.
   Это не позволяет единственному товару растягиваться на всю страницу и
   возвращает прежние размеры изображений, фильтров и строки поиска.
   ============================================================================= */

.catalog-page {
  padding: 55px 0 70px;
}

.catalog-page .filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 32px;
}

.catalog-page .filter-link {
  min-height: 0;
  padding: 9px 16px;
  border-radius: 999px;
  line-height: normal;
  white-space: nowrap;
}

.catalog-page .search-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.catalog-page .search-form input {
  width: 260px;
  min-height: 0;
  padding: 12px 18px;
  border-radius: 999px;
}

.catalog-page .search-form .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 82px;
  white-space: nowrap;
}

.catalog-page .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.catalog-page .product-card {
  padding: 15px;
  border-radius: 25px;
}

.catalog-page .product-card-image {
  width: 100%;
  height: 230px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 19px;
}

.catalog-page .product-card h3 {
  min-height: 0;
  margin: 16px 0 7px;
  font-size: 18px;
  line-height: 1.25;
}

@media (max-width: 1120px) {
  .catalog-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page .search-form {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .catalog-page .search-form input {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 600px) {
  .catalog-page {
    padding-top: 45px;
  }

  .catalog-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-page .product-card-image {
    height: 165px;
  }

  .catalog-page .product-card h3 {
    font-size: 15px;
  }

  .catalog-page .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .catalog-page .search-form .btn {
    width: auto;
    min-width: 82px;
  }
}

@media (max-width: 380px) {
  .catalog-page .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-page .product-card-image {
    height: 230px;
  }
}

/* =============================================================================
   v9.11.25 — рамка фотографии товара точно по границе изображения
   ============================================================================= */
.product-gallery {
  border-color: transparent;
}

.product-gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.product-gallery-main img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
  border: 1px solid rgba(22, 44, 82, .14);
  border-radius: 12px;
  box-sizing: border-box;
}

.product-gallery-main:hover img {
  border-color: rgba(22, 44, 82, .22);
}

@media (max-width: 600px) {
  .product-gallery-main img {
    border-radius: 10px;
  }
}


/* =============================================================================
   v9.11.26 — полное изображение товара в каталоге без строки поиска
   ============================================================================= */
.catalog-page .filters {
  justify-content: flex-start;
}

.catalog-page .product-card-image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  background: #fff;
}

.catalog-page .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 600px) {
  .catalog-page .product-card-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 380px) {
  .catalog-page .product-card-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

/* =============================================================================
   v9.11.28 — переключение между отзывами товара и всеми отзывами сайта
   ============================================================================= */
.product-reviews-heading {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-review-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-review-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(124, 88, 215, .24);
  border-radius: 14px;
  background: #fff;
  color: #17345f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(66, 46, 126, .05);
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-review-tab:hover {
  border-color: rgba(124, 88, 215, .48);
  color: #7048d8;
  box-shadow: 0 10px 26px rgba(91, 58, 170, .10);
  transform: translateY(-1px);
}

.product-review-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #a076f1, #7449de);
  color: #fff;
  box-shadow: 0 11px 25px rgba(116, 73, 222, .24);
}

.product-review-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(124, 88, 215, .10);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.product-review-tab.is-active span {
  background: rgba(255, 255, 255, .20);
}

.product-review-product-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  color: #7449de;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.product-review-product-link:hover {
  text-decoration: underline;
}

.product-review-product-link.is-disabled {
  color: #7a849a;
  cursor: default;
}

@media (max-width: 700px) {
  .product-review-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .product-review-tab {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .product-review-tabs {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   v9.11.39 — все товары на главной вместо популярных тем
   ============================================================================= */
.home-products-section .section-head {
  align-items: center;
}

.home-products-section .product-card-image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  background: #fff;
}

.home-products-section .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* =============================================================================
   v9.11.44 — карусель «Наши товары» по три карточки
   ============================================================================= */
.home-products-section {
  --home-products-gap: clamp(16px, 2vw, 24px);
}

.home-products-section-head {
  align-items: center;
}

.home-products-head-actions,
.home-products-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-products-head-actions {
  margin-left: auto;
}

.home-products-slider-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ddd3f2;
  border-radius: 50%;
  background: #fff;
  color: #6847c7;
  box-shadow: 0 8px 24px rgba(54, 40, 115, .08);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.home-products-slider-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #bfaee7;
  background: #f4efff;
}

.home-products-slider-button:focus-visible {
  outline: 3px solid rgba(124, 88, 215, .2);
  outline-offset: 2px;
}

.home-products-slider-button:disabled {
  opacity: .38;
  cursor: default;
}

.home-products-slider-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-products-carousel {
  min-width: 0;
  overflow: hidden;
}

.home-products-section .home-products-track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: var(--home-products-gap) !important;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 22px;
  margin: -4px -2px -22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.home-products-section .home-products-track::-webkit-scrollbar {
  display: none;
}

.home-products-section .home-products-track:focus-visible {
  outline: 3px solid rgba(124, 88, 215, .18);
  outline-offset: 5px;
  border-radius: 24px;
}

.home-products-section .home-products-track > .product-card {
  flex: 0 0 calc((100% - (var(--home-products-gap) * 2)) / 3);
  width: calc((100% - (var(--home-products-gap) * 2)) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (max-width: 900px) {
  .home-products-section .home-products-track > .product-card {
    flex-basis: calc((100% - var(--home-products-gap)) / 2);
    width: calc((100% - var(--home-products-gap)) / 2);
  }
}

@media (max-width: 600px) {
  .home-products-section-head {
    align-items: stretch;
  }

  .home-products-head-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .home-products-section .home-products-track > .product-card {
    flex-basis: 100%;
    width: 100%;
  }
}


/* =============================================================================
   v9.11.48 — быстрое добавление товара в корзину из карточки
   ============================================================================= */
.product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  gap: 10px;
  margin-top: 15px;
}

.product-card-actions .btn {
  margin-top: 0;
}

.product-card-actions .product-card-details {
  width: 100%;
  min-width: 0;
}

.product-card-cart-form {
  display: block;
  width: 48px;
  margin: 0;
}

.product-card-actions .product-card-cart-button {
  display: inline-grid;
  place-items: center;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  border: 1px solid #dfd5f5;
  border-radius: 14px;
  background: #f1ebff;
  color: #7352cf;
  box-shadow: none;
}

.product-card-actions .product-card-cart-button:hover:not(:disabled) {
  border-color: #bda9ea;
  background: #e8dfff;
  color: #5f3dbd;
}

.product-card-actions .product-card-cart-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card-actions .product-card-cart-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.product-card-actions .product-card-details {
  min-height: 48px;
}


/* =============================================================================
   v9.11.50 — карточки товаров: активная корзина и быстрый выбор количества
   ============================================================================= */
.product-card-quantity-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 8px;
  min-height: 48px;
}

.product-card-qty-action-form,
.product-card-qty-input-form {
  margin: 0;
}

.product-card-qty-button,
.product-card-qty-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #dfd5f5;
  background: #fff;
  color: #203864;
}

.product-card-qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.product-card-qty-button:hover:not(:disabled),
.product-card-qty-input:hover {
  border-color: #bda9ea;
  background: #faf7ff;
}

.product-card-qty-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.product-card-qty-input {
  padding: 0 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.product-card-qty-input::-webkit-outer-spin-button,
.product-card-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-card-actions .product-card-cart-button.is-added {
  border-color: #7352cf;
  background: linear-gradient(135deg, #8b6cff 0%, #7352cf 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(115, 82, 207, 0.24);
}

.product-card-actions .product-card-cart-button.is-added:hover:not(:disabled) {
  border-color: #6240c3;
  background: linear-gradient(135deg, #7f60f5 0%, #6240c3 100%);
  color: #fff;
}

@media (max-width: 640px) {
  .product-card-actions {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .product-card-quantity-box {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
}

/* =============================================================================
   v9.11.50 — товары: одинаковая фактическая ширина шагов мастера
   ============================================================================= */
.product-wizard-menu {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.product-wizard-menu button {
  width: 100%;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  .product-wizard-menu {
    grid-auto-columns: minmax(168px, 1fr);
  }
}

@media (max-width: 640px) {
  .product-wizard-menu {
    grid-auto-columns: minmax(154px, 1fr);
  }
}


/* =============================================================================
   v9.11.58 — фотографии отзывов открываются как фотографии товара
   ============================================================================= */
.review-media-image {
  cursor: zoom-in;
}

.review-media-image:focus-visible {
  outline: 3px solid rgba(125, 87, 225, .24);
  outline-offset: 3px;
}

.product-site-lightbox figure img {
  object-fit: contain;
  cursor: default;
}

.product-site-lightbox-nav[hidden] {
  display: none !important;
}


/* =============================================================================
   v9.11.61 — мобильный каталог в одну колонку и всплывающие уведомления корзины
   ============================================================================= */
.product-card[id] {
  scroll-margin-top: 110px;
}

.flash.flash-toast {
  position: fixed;
  top: calc(18px + (var(--flash-index, 0) * 78px));
  right: 18px;
  z-index: 160;
  width: min(380px, calc(100vw - 24px));
  margin: 0;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 48px rgba(40, 31, 92, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: flashToastIn .26s ease;
}

.flash.flash-toast.is-hiding {
  animation: flashToastOut .24s ease forwards;
}

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes flashToastOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
}

@media (max-width: 600px) {
  .catalog-page .product-grid,
  .search-group .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .catalog-page .product-card,
  .search-group .product-card {
    padding: 14px;
  }

  .catalog-page .product-card-image,
  .search-group .product-card-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .flash.flash-toast {
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(max(10px, env(safe-area-inset-top)) + (var(--flash-index, 0) * 78px));
  }
}

/* =============================================================================
   v9.11.70 — карточка товара: блок корзины как в карточках каталога
   ============================================================================= */
.product-buy-form {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-buy-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.product-quantity-box {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: stretch;
  min-height: 56px;
}

.product-qty-button,
.product-qty-input,
.product-cart-submit {
  width: 100%;
  min-height: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #dfd5f5;
}

.product-qty-button,
.product-qty-input {
  background: #fff;
  color: #203864;
}

.product-qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.product-qty-button:hover,
.product-qty-input:hover,
.product-qty-input:focus {
  border-color: #bda9ea;
  background: #faf7ff;
}

.product-qty-input {
  padding: 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-cart-submit {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1ebff;
  color: #7352cf;
  box-shadow: none;
}

.product-cart-submit:hover:not(:disabled) {
  border-color: #bda9ea;
  background: #e8dfff;
  color: #5f3dbd;
}

.product-cart-submit.is-added {
  border-color: #7352cf;
  background: linear-gradient(135deg, #8b6cff 0%, #7352cf 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(115, 82, 207, 0.24);
}

.product-cart-submit.is-added:hover:not(:disabled) {
  border-color: #6240c3;
  background: linear-gradient(135deg, #7f60f5 0%, #6240c3 100%);
  color: #fff;
}

.product-cart-submit svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .product-buy-inline {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .product-quantity-box {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    min-height: 52px;
  }

  .product-qty-button,
  .product-qty-input,
  .product-cart-submit {
    min-height: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .product-qty-button {
    font-size: 24px;
  }

  .product-qty-input {
    font-size: 18px;
  }
}


/* =============================================================================
   v9.11.80 — визуальное центрирование иконки корзины на странице товара
   ============================================================================= */
.product-cart-submit {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
  overflow: hidden;
}

.product-cart-submit svg {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  left: 1.5px;
  transform: none;
  transform-origin: center;
  pointer-events: none;
  flex: 0 0 auto;
}

.product-cart-submit svg use {
  pointer-events: none;
}

/* =============================================================================
   v9.11.91 — минималистичные иконки на главной странице
   ============================================================================= */
.home-primary-action {
  gap: 10px;
}

.home-primary-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift .gift-icon,
.benefits .ico,
.service-grid .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gift .gift-icon svg,
.benefits .ico svg,
.service-grid .service-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift .gift-icon svg {
  width: 25px;
  height: 25px;
}

.benefits .ico {
  color: #7654d8;
}

.benefits .ico.pink {
  color: #d15b83;
}

.benefits .ico.mint {
  color: #258f89;
}

.benefits .ico.yellow {
  color: #b77a16;
}

.benefits .ico svg {
  width: 27px;
  height: 27px;
}

.service-grid .service-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid #e5dcf8;
  border-radius: 14px;
  background: #f8f5ff;
  color: #7654d8;
  font-size: 0;
}

.service-grid .service-icon svg {
  width: 23px;
  height: 23px;
}

@media (max-width: 600px) {
  .service-grid .service-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .service-grid .service-icon svg {
    width: 21px;
    height: 21px;
  }
}

/* =============================================================================
   v9.11.93 — страница доставки: способы, надёжная упаковка и возврат
   ============================================================================= */
.delivery-info-page {
  display: grid;
  gap: 24px;
}

.delivery-info-page > h1 {
  margin-bottom: 0;
}

.delivery-page-intro {
  max-width: 760px;
}

.delivery-page-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #8a61e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.delivery-page-intro h2,
.delivery-page-assurance-card h2 {
  margin: 0 0 8px;
}

.delivery-page-intro p,
.delivery-page-method-card p,
.delivery-page-assurance-card p {
  margin: 0;
  color: #6f7d98;
  line-height: 1.65;
}

.delivery-page-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-page-method-card,
.delivery-page-assurance-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5dcf7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(63, 42, 112, .07);
}

.delivery-page-method-card h3 {
  margin: 0 0 7px;
  color: #16305d;
  font-size: 19px;
}

.delivery-page-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: #f1ebff;
  color: #7956d8;
}

.delivery-page-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-page-method-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #eee8f8;
  font-size: 14px;
}

.delivery-page-method-meta span {
  color: #72809a;
}

.delivery-page-method-meta strong {
  color: #7956d8;
  text-align: right;
}

.delivery-page-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-page-assurance-card {
  background: linear-gradient(145deg, #fff 0%, #fbf8ff 100%);
}

@media (max-width: 820px) {
  .delivery-page-methods,
  .delivery-page-assurances {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .delivery-info-page {
    gap: 18px;
  }

  .delivery-page-method-card,
  .delivery-page-assurance-card {
    padding: 18px;
    border-radius: 18px;
  }

  .delivery-page-method-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .delivery-page-method-meta strong {
    text-align: left;
  }
}

/* =============================================================================
   v9.11.121 — редактируемая страница доставки и восстановленные иконки
   ============================================================================= */
.delivery-page-card-icon-package,
.delivery-page-card-icon-return {
  font-size: 0;
}

.delivery-page-card-icon-package::before,
.delivery-page-card-icon-return::before {
  display: block;
  width: 24px;
  height: 24px;
  content: "";
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.delivery-page-card-icon-package::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m4 7 8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10M8 5l8 4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m4 7 8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10M8 5l8 4'/%3E%3C/svg%3E");
}

.delivery-page-card-icon-return::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 8V4h4M4.5 4.5A9 9 0 1 1 3 14M4 4l5 5M9 12h6v5H9z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 8V4h4M4.5 4.5A9 9 0 1 1 3 14M4 4l5 5M9 12h6v5H9z'/%3E%3C/svg%3E");
}

/* =============================================================================
   v9.11.122 — редактируемая страница «О нас» и видимый заголовок меню подвала
   ============================================================================= */
.about-info-page {
  display: grid;
  gap: 24px;
}

.about-info-page > h1 {
  margin-bottom: 0;
}

.about-page-intro {
  max-width: 850px;
}

.about-page-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #8a61e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-page-intro h2,
.about-page-story h2,
.about-page-cta h2,
.about-page-value-card h3 {
  margin: 0 0 8px;
  color: #16305d;
}

.about-page-intro p,
.about-page-value-card p,
.about-page-story p,
.about-page-cta p {
  margin: 0;
  color: #6f7d98;
  line-height: 1.65;
}

.about-page-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-page-value-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5dcf7;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #fbf8ff 100%);
  box-shadow: 0 12px 32px rgba(63, 42, 112, .07);
}

.about-page-value-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: #f1ebff;
  color: #7956d8;
  font-size: 14px;
  font-weight: 900;
}

.about-page-story {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 26px;
  border-radius: 22px;
  background: #f8f4ff;
}

.about-page-story > div:last-child {
  display: grid;
  gap: 12px;
}

.about-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4efff 0%, #fff 100%);
  border: 1px solid #ded2f6;
}

.about-page-cta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.footer-navigation-column {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-direction: column;
  gap: 9px;
}

.footer-navigation-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

@media (max-width: 820px) {
  .about-page-values,
  .about-page-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-info-page {
    gap: 18px;
  }

  .about-page-value-card,
  .about-page-story,
  .about-page-cta {
    padding: 18px;
    border-radius: 18px;
  }

  .about-page-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .about-page-cta .btn {
    width: 100%;
  }
}


/* =============================================================================
   v9.11.124 — читаемые заголовки всех колонок подвала
   ============================================================================= */
.footer .footer-column-title,
.footer .footer-navigation-title,
.footer .footer-contacts-title,
.footer .footer-social-title,
.footer-grid > div > h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 5px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

/* =============================================================================
   v9.11.125 — полностью переработанная мобильная версия публичного сайта
   Правила действуют только на планшетах и смартфонах.
   ============================================================================= */
@media (max-width: 780px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  :root {
    --site-gutter: 14px;
    --site-space-7: 42px;
    --site-touch-size: 44px;
  }

  .container,
  main,
  main > *,
  section,
  article,
  form,
  fieldset {
    min-width: 0;
    max-width: 100%;
  }

  .container {
    width: 100%;
    padding-inline: var(--site-gutter);
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(116, 80, 201, .12);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
  }

  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    padding-block: 7px;
  }

  .brand {
    width: min(116px, 31vw);
    max-width: 116px;
    min-width: 0;
  }

  .brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .menu-btn {
    display: grid;
    grid-column: 2;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 14px;
  }

  .nav-icons {
    grid-column: 3;
    display: flex;
    gap: 6px;
  }

  .icon-link,
  .cart-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    z-index: 120;
    display: none;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 12px;
    border: 1px solid #e1d8f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(41, 28, 74, .16);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 13px;
    border-radius: 11px;
    white-space: normal;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-grid,
  .product-view,
  .two-columns,
  .privacy-grid,
  .how-grid,
  .service-grid,
  .benefits-grid,
  .reviews-grid,
  .product-reviews-layout,
  .about-page-values,
  .about-page-story,
  .delivery-page-methods,
  .delivery-page-assurances,
  .search-link-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-grid {
    gap: 26px;
    padding-block: 34px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1,
  .page-title,
  .page-head h1 {
    max-width: 100%;
    font-size: clamp(31px, 10vw, 42px) !important;
    line-height: 1.06 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero p,
  .page-article p,
  .product-description,
  .section-head p,
  .delivery-page-intro p,
  .about-page-intro p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-art {
    width: 100%;
    height: auto;
    min-height: 230px;
    max-height: 340px;
    transform: none;
  }

  .hero-custom-image,
  .hero-art img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
  }

  .section-head,
  .home-products-section-head,
  .product-reviews-head,
  .page-head,
  .cart-total,
  .product-review-list-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
  }

  .hero-actions,
  .home-products-head-actions,
  .buy-form,
  .market-buttons,
  .product-card-actions,
  .product-buy-inline,
  .product-buy-form,
  .cart-total,
  .cookie-banner-actions,
  .about-page-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100%;
  }

  .hero-actions > *,
  .home-products-head-actions > *,
  .buy-form > *,
  .market-buttons > *,
  .product-card-actions > *,
  .product-buy-inline > *,
  .product-buy-form > *,
  .cart-total > *,
  .cookie-banner-actions > *,
  .about-page-cta > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    max-width: 100%;
  }

  .btn,
  button,
  input:not([type="checkbox"]):not([type="radio"]),
  select {
    min-height: 44px;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .qty-input,
  .product-qty-input,
  .product-card-qty-input {
    width: 100%;
    min-width: 0;
  }

  .panel,
  .form-card,
  .page-article,
  .product-info,
  .product-gallery,
  .product-review-form-card,
  .product-review-card,
  .empty-state,
  .privacy-card,
  .privacy-contact-card,
  .delivery-page-method-card,
  .delivery-page-assurance-card,
  .about-page-value-card,
  .about-page-story,
  .about-page-cta,
  .error-card,
  .maintenance-card {
    width: 100%;
    min-width: 0;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .catalog-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .product-card,
  .topic-card {
    width: 100%;
    min-width: 0;
    padding: 14px !important;
    border-radius: 20px;
  }

  .product-card-image,
  .topic-img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .product-card-image img,
  .topic-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-products-carousel {
    width: 100%;
    overflow: hidden;
  }

  .home-products-track {
    grid-auto-columns: minmax(86%, 1fr) !important;
    gap: 14px !important;
    padding-inline: 2px;
  }

  .home-products-slider-controls {
    justify-content: flex-end;
  }

  .home-products-slider-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .product-gallery-main,
  .product-gallery-main img,
  .page-featured-image,
  .page-featured-image img,
  .review-media-image,
  .review-video-player,
  video,
  iframe,
  img,
  svg,
  canvas {
    max-width: 100%;
  }

  .product-gallery-thumbs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery-thumbs > * {
    flex: 0 0 68px;
  }

  .product-characteristics div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .product-delivery-box li,
  .delivery-page-method-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .product-review-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .product-review-tab {
    width: 100%;
  }

  .product-review-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .cart-table-wrap,
  .table-wrap,
  .page-article table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table,
  .page-article table {
    min-width: 620px;
  }

  .checkout-consent,
  .review-consent {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
  }

  .checkout-consent input,
  .review-consent input {
    margin-top: 3px;
  }

  .site-search-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .site-search-form,
  .search-page-form,
  .search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100%;
  }

  .footer {
    padding-block: 34px calc(26px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 26px !important;
  }

  .footer-grid > div,
  .footer-navigation-column,
  .footer-social-column {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand img {
    width: min(190px, 70vw);
    height: auto;
  }

  .footer .footer-column-title,
  .footer .footer-navigation-title,
  .footer .footer-contacts-title,
  .footer .footer-social-title,
  .footer-grid > div > h3 {
    margin-bottom: 10px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .footer a,
  .footer p,
  .footer button {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .footer-legal,
  .copyright {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    text-align: left;
  }

  .cookie-banner {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  :root {
    --site-gutter: 12px;
  }

  .nav-wrap {
    grid-template-columns: minmax(76px, 1fr) auto auto;
    min-height: 68px;
  }

  .brand {
    width: min(104px, 29vw);
  }

  .brand img {
    max-height: 54px;
  }

  .menu-btn,
  .icon-link,
  .cart-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero-grid {
    padding-block: 28px;
  }

  .hero h1,
  .page-title,
  .page-head h1 {
    font-size: clamp(29px, 9.5vw, 38px) !important;
  }

  .panel,
  .form-card,
  .page-article,
  .product-info,
  .product-gallery,
  .product-review-form-card,
  .product-review-card,
  .empty-state,
  .privacy-card,
  .privacy-contact-card,
  .delivery-page-method-card,
  .delivery-page-assurance-card,
  .about-page-value-card,
  .about-page-story,
  .about-page-cta,
  .error-card,
  .maintenance-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .home-products-track {
    grid-auto-columns: minmax(92%, 1fr) !important;
  }

  .footer {
    padding-top: 30px;
  }
}

/* =============================================================================
   v9.12.12 — компактная мобильная версия публичного сайта
   Десктопная версия не изменяется.
   ============================================================================= */
.hero-art-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (max-width: 780px) {
  :root {
    --site-gutter: 14px;
  }

  .header {
    box-shadow: 0 5px 18px rgba(50, 35, 90, .045);
  }

  .nav-wrap {
    grid-template-columns: minmax(72px, 1fr) 40px auto !important;
    gap: 6px !important;
    min-height: 64px !important;
    padding-block: 5px !important;
  }

  .brand {
    width: min(92px, 26vw) !important;
    max-width: 92px !important;
  }

  .brand img {
    max-height: 50px !important;
  }

  .menu-btn,
  .icon-link,
  .cart-link {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  .nav-icons {
    gap: 5px !important;
  }

  .nav {
    top: 68px !important;
    right: 10px !important;
    left: 10px !important;
    max-height: calc(100dvh - 80px) !important;
  }

  .hero-grid {
    gap: 18px !important;
    padding-block: 24px 30px !important;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1.3px;
  }

  .hero h1 {
    margin-bottom: 0 !important;
    font-size: clamp(31px, 8.8vw, 36px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.025em;
  }

  .hero h1 span {
    margin-top: 5px;
  }

  .hero .lead {
    margin: 17px 0 20px !important;
    font-size: 15.5px !important;
    line-height: 1.48 !important;
  }

  .hero-actions {
    gap: 12px !important;
  }

  .hero-actions .home-primary-action {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .gift {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100%;
    padding: 0 !important;
    border-left: 0 !important;
  }

  .gift .gift-icon {
    width: 46px !important;
    height: 46px !important;
    font-size: 22px !important;
  }

  .gift p {
    min-width: 0;
    font-size: 13px !important;
    line-height: 1.35;
  }

  /* Вся иллюстрация первого экрана уменьшается целиком и больше не обрезается. */
  .hero-art {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: none !important;
    overflow: visible;
  }

  .hero-art-inner {
    height: 440px;
    transform: scale(.72);
    transform-origin: top center;
  }

  .hero-custom-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 440px !important;
    object-fit: contain;
  }

  .wave {
    height: 42px;
  }

  .benefits,
  .catalog-section,
  .how,
  .reviews,
  .service-bar {
    padding-block: 34px;
  }

  .section-head h2,
  .how h2,
  .reviews h2,
  .page-title,
  .page-head h1 {
    font-size: clamp(27px, 7.4vw, 33px) !important;
    line-height: 1.1 !important;
  }

  .product-card,
  .topic-card,
  .panel,
  .form-card,
  .page-article,
  .product-info,
  .product-gallery {
    border-radius: 18px !important;
  }

  .footer-grid {
    gap: 24px !important;
  }
}

@media (max-width: 520px) {

  .nav-wrap {
    grid-template-columns: minmax(68px, 1fr) 40px auto !important;
    min-height: 62px !important;
  }

  .brand {
    width: min(86px, 25vw) !important;
  }

  .brand img {
    max-height: 47px !important;
  }

  .hero-grid {
    padding-block: 21px 27px !important;
  }

  .hero h1 {
    font-size: clamp(30px, 8.6vw, 34px) !important;
  }

  .hero-art {
    height: 300px !important;
    min-height: 300px !important;
  }

  .hero-art-inner {
    transform: scale(.68);
  }

  .home-products-track {
    grid-auto-columns: minmax(88%, 1fr) !important;
  }
}

@media (max-width: 370px) {
  .nav-wrap {
    grid-template-columns: minmax(60px, 1fr) 38px auto !important;
    gap: 4px !important;
  }

  .brand {
    width: 76px !important;
  }

  .menu-btn,
  .icon-link,
  .cart-link {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  .hero h1 {
    font-size: 29px !important;
  }

  .hero-art {
    height: 280px !important;
    min-height: 280px !important;
  }

  .hero-art-inner {
    transform: scale(.63);
  }
}


/* =============================================================================
   v9.12.14 — устойчивый первый экран и кнопки товара на мобильных устройствах
   ============================================================================= */
@media (max-width: 780px) {
  .hero {
    overflow: hidden !important;
  }

  .hero-grid {
    position: relative;
    isolation: isolate;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
  }

  .hero .decor {
    display: none !important;
  }

  .hero-art {
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    margin: 2px 0 0 !important;
    overflow: hidden !important;
    transform: none !important;
    contain: layout paint;
  }

  .hero-art--custom {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .hero-art--custom .hero-art-inner {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .hero-art--custom .hero-custom-image {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 320px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  .hero-art--default {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  .hero-art--default .hero-art-inner {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 440px !important;
    height: 440px !important;
    transform: translateX(-50%) scale(.68) !important;
    transform-origin: top center !important;
  }

  /* «Подробнее» и корзина всегда остаются в одной строке. */
  .product-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .product-card-actions > .product-card-details,
  .product-card-actions > .product-card-quantity-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  .product-card-actions > .product-card-cart-form {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  .product-card-actions .product-card-cart-button {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 48px !important;
  }
}

@media (max-width: 520px) {
  .hero-art--default {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }

  .hero-art--default .hero-art-inner {
    transform: translateX(-50%) scale(.64) !important;
  }
}

@media (max-width: 370px) {
  .hero-art--default {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }

  .hero-art--default .hero-art-inner {
    transform: translateX(-50%) scale(.60) !important;
  }

  .product-card-actions {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
  }

  .product-card-actions > .product-card-cart-form,
  .product-card-actions .product-card-cart-button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }
}

/* =============================================================================
   v9.13.0 — фильтры каталога, недавно просмотренные товары и мобильная корзина
   ============================================================================= */
.catalog-quick-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, .8fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0 16px;
  padding: 18px;
  border: 1px solid var(--border, #e8e1f6);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(35, 24, 74, .07);
}
.catalog-quick-filters label { display: grid; gap: 7px; min-width: 0; }
.catalog-quick-filters label > span { color: var(--muted, #7f88a0); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.catalog-quick-filters input,
.catalog-quick-filters select { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #e2daf2; border-radius: 13px; background: #fbfaff; color: #172d55; font: inherit; }
.catalog-quick-filters .catalog-stock-filter { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 12px; border: 1px solid #e2daf2; border-radius: 13px; }
.catalog-quick-filters .catalog-stock-filter input { width: 18px; height: 18px; }
.catalog-quick-filters .catalog-stock-filter span { text-transform: none; letter-spacing: 0; color: #172d55; }
.catalog-results-summary { margin: 10px 0 18px; color: var(--muted, #7f88a0); }
.catalog-results-summary strong { color: #172d55; }
.product-card { position: relative; }
.recently-viewed-section { padding: 58px 0; background: linear-gradient(180deg, rgba(248,245,255,.45), #fff); }
.recently-viewed-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.recently-viewed-card { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 13px; align-items: center; min-width: 0; padding: 12px; border: 1px solid #e8e1f6; border-radius: 18px; background: #fff; color: #172d55; text-decoration: none; scroll-snap-align: start; }
.recently-viewed-card img { width: 82px; height: 82px; padding: 4px; border-radius: 13px; background: #f8f6ff; object-fit: contain; object-position: center; }
.recently-viewed-card span { display: grid; gap: 4px; min-width: 0; }
.recently-viewed-card b { line-height: 1.25; }
.recently-viewed-card small { color: #8992aa; }
.recently-viewed-card strong { color: #7852d5; }
.mobile-cart-bar { display: none; }

@media (max-width: 1180px) {
  .catalog-quick-filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalog-quick-filters .catalog-search-field { grid-column: span 2; }
}
@media (max-width: 780px) {
  body:has(.mobile-cart-bar) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .catalog-quick-filters { grid-template-columns: 1fr 1fr; padding: 14px; border-radius: 18px; }
  .catalog-quick-filters .catalog-search-field { grid-column: 1 / -1; }
  .catalog-quick-filters .catalog-stock-filter { grid-column: 1 / -1; }
  .catalog-quick-filters .btn { width: 100%; }
  .recently-viewed-section { padding: 38px 0; }
  .recently-viewed-track { grid-auto-columns: minmax(250px, 82vw); }
  .mobile-cart-bar {
    position: fixed;
    z-index: 900;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 8px 15px 8px 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 22px;
    background: linear-gradient(135deg,#9b74ed,#7650d9);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(75,46,142,.32);
    backdrop-filter: blur(14px);
  }
  .mobile-cart-bar-icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: rgba(255,255,255,.16); }
  .mobile-cart-bar-icon svg { width: 23px; height: 23px; }
  .mobile-cart-bar-icon b { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: #ff759d; font-size: 11px; }
  .mobile-cart-bar > span:nth-child(2) { display: grid; gap: 1px; }
  .mobile-cart-bar small { opacity: .82; }
  .mobile-cart-bar strong { font-size: 18px; }
  .mobile-cart-bar i { font-style: normal; font-weight: 800; }
}
@media (max-width: 480px) {
  .catalog-quick-filters { grid-template-columns: 1fr; }
  .catalog-quick-filters .catalog-search-field,
  .catalog-quick-filters .catalog-stock-filter { grid-column: auto; }
}

/* =============================================================================
   v9.13.13 — мобильная карточка товара: количество и корзина в одной строке
   ============================================================================= */
@media (max-width: 680px) {
  .product-view .product-buy-form {
    display: block !important;
    width: 100% !important;
    margin-top: 16px !important;
  }

  .product-view .product-buy-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .product-view .product-buy-inline > .product-quantity-box {
    display: grid !important;
    grid-template-columns: 48px minmax(58px, 1fr) 48px !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .product-view .product-buy-inline > .product-cart-submit {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 52px !important;
    min-height: 52px !important;
    align-self: stretch !important;
    justify-self: end !important;
  }

  .product-view .product-qty-button,
  .product-view .product-qty-input,
  .product-view .product-cart-submit {
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 370px) {
  .product-view .product-buy-inline {
    grid-template-columns: minmax(0, 1fr) 50px !important;
    gap: 8px !important;
  }

  .product-view .product-buy-inline > .product-quantity-box {
    grid-template-columns: 44px minmax(50px, 1fr) 44px !important;
    gap: 6px !important;
  }

  .product-view .product-buy-inline > .product-cart-submit {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }
}


/* =============================================================================
 * v9.13.40 — единый фоновый стиль публичных страниц как в утверждённой версии
 * ============================================================================= */
body {
  background: #fbfaff url('../background.png') center top / cover fixed no-repeat !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.68) !important;
  z-index: -1;
}

main,
.page-main,
.site-main,
.catalog-page,
.content-section,
.content-card,
.about-section,
.contacts-section,
.delivery-section,
.privacy-section {
  background-color: transparent;
}
