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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111111;
  background-color: #f8f5f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 72px;
}

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

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

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
  box-sizing: border-box;
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: #f1ebe3;
}

.page-main {
  padding-top: 16px;
}

.page-header-section {
  padding-top: 24px;
  padding-bottom: 32px;
}

body[data-page="catalog"] .page-main,
body[data-page="cart"] .page-main,
body[data-page="reviews"] .page-main,
body[data-page="checkout"] .page-main {
  padding-top: 0;
}

body[data-page="catalog"] .page-header-section,
body[data-page="cart"] .page-header-section,
body[data-page="reviews"] .page-header-section,
body[data-page="checkout"] .page-header-section {
  padding-top: 20px;
}

.page-header-inner h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 12px 0 12px;
}

.page-intro {
  max-width: 640px;
  color: #5f5b55;
  font-size: 15px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #9b9184;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background-color: #111111;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-small {
  padding: 10px 18px;
  font-size: 12px;
}

.link-underline {
  font-size: 13px;
  color: #5f5b55;
  position: relative;
  padding-bottom: 2px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #c7b9a5;
  transform-origin: left;
  transform: scaleX(0.5);
  transition: transform 0.2s ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  padding: 8px 16px;
  font-size: 14px;
  background-color: #fdfaf6;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input:focus {
  border-color: #b29a7e;
  box-shadow: 0 0 0 1px rgba(178, 154, 126, 0.35);
  background-color: #ffffff;
}

.input-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.input-select {
  border-radius: 999px;
  background-image: linear-gradient(45deg, transparent 50%, #9b9184 50%),
    linear-gradient(135deg, #9b9184 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
}

.textarea {
  border-radius: 20px;
  resize: vertical;
}

.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9b9184;
  margin-bottom: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 245, 240, 0.9);
  border-bottom: 1px solid rgba(217, 207, 194, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

.header-nav a {
  position: relative;
  padding-bottom: 2px;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #b29a7e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-button:hover {
  background-color: #f0e7db;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.cart-count {
  position: absolute;
  right: -6px;
  top: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background-color: #111111;
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}

.icon-svg {
  width: 16px;
  height: 16px;
  stroke: #111111;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.cart-button .icon-svg {
  width: 17px;
  height: 17px;
}

.icon-search::before {
  content: "";
  position: absolute;
  inset: 2px 2px 6px 2px;
  border-radius: 999px;
  border: 1.6px solid #111111;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.6px;
  border-radius: 999px;
  background-color: #111111;
  right: 0;
  bottom: 0;
  transform: rotate(45deg) translate(0, 1px);
  transform-origin: right bottom;
}

.icon-bag::before {
  content: "";
  position: absolute;
  inset: 4px 2px 1px 2px;
  border-radius: 6px 6px 10px 10px;
  border: 1.6px solid #111111;
}

.icon-bag::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 5px;
  border-radius: 999px;
  border: 1.6px solid #111111;
  border-bottom: none;
}

.icon-truck::before,
.icon-truck::after {
  content: "";
  position: absolute;
}

.icon-truck::before {
  inset: 4px 6px 4px 1px;
  border-radius: 5px;
  border: 1.6px solid #111111;
}

.icon-truck::after {
  right: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  border: 1.6px solid #111111;
}

.icon-leaf::before,
.icon-leaf::after {
  content: "";
  position: absolute;
}

.icon-leaf::before {
  inset: 2px 5px 2px 2px;
  border-radius: 14px 0 14px 0;
  border: 1.6px solid #111111;
  transform: rotate(-18deg);
}

.icon-leaf::after {
  left: 6px;
  right: 6px;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  border-left: 1.4px solid #111111;
}

.icon-shield::before,
.icon-shield::after {
  content: "";
  position: absolute;
}

.icon-shield::before {
  inset: 2px 4px 6px 4px;
  border-radius: 7px 7px 10px 10px;
  border: 1.6px solid #111111;
}

.icon-shield::after {
  inset: 5px 7px 7px 7px;
  border-radius: 5px;
  border-bottom: 1.4px solid #111111;
}

.icon-refresh::before,
.icon-refresh::after {
  content: "";
  position: absolute;
}

.icon-refresh::before {
  inset: 3px 3px 3px 3px;
  border-radius: 999px;
  border: 1.6px solid #111111;
  border-right-color: transparent;
}

.icon-refresh::after {
  right: 2px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  border-top: 1.4px solid #111111;
  border-right: 1.4px solid #111111;
  transform: rotate(45deg);
}

.header-burger {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.header-burger span {
  width: 14px;
  height: 1.6px;
  border-radius: 999px;
  background-color: #111111;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-burger.is-open span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.header-burger.is-open span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 54px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 10px 0 14px;
}

.hero-subtitle {
  max-width: 420px;
  color: #5f5b55;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  position: relative;
  border-radius: 32px;
  min-height: 300px;
  background-image: linear-gradient(130deg, #f0e5d5 0%, #e0d0be 45%, #f8f5f0 100%);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-letters {
  position: absolute;
  /* Совпадает с овалом (::after): inset 40px 18% */
  inset: 40px 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #2c2824;
  z-index: 1;
  text-transform: uppercase;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 40px 18%;
  border-radius: 999px;
  background-image: radial-gradient(circle at 30% 0%, #ffffff 0, transparent 60%),
    radial-gradient(circle at 90% 110%, #d5c0a4 0, transparent 60%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.24);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  min-width: 0;
}

.section-header h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: 28px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  border-color: #ccb79d;
}

.product-card-image {
  border-radius: 22px;
  height: 190px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.product-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.product-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover .product-card-image::after {
  opacity: 1;
}

.product-image-1 {
  background-image: linear-gradient(135deg, #f4e7d7 0%, #d7c4ae 50%, #f9f5ef 100%);
}

.product-image-2 {
  background-image: linear-gradient(145deg, #ded7cf 0%, #f1e5da 45%, #f8f5f0 100%);
}

.product-image-3 {
  background-image: linear-gradient(155deg, #f0e5dd 0%, #c7b8aa 48%, #f7f3ec 100%);
}

.product-image-4 {
  background-image: linear-gradient(135deg, #e9ded2 0%, #f5ece3 50%, #fdf8f2 100%);
}

.product-image-5 {
  background-image: linear-gradient(150deg, #f3e8de 0%, #d1c1b0 55%, #f8f4ee 100%);
}

.product-image-6 {
  background-image: linear-gradient(135deg, #eee4d6 0%, #e0cfbf 50%, #faf6f0 100%);
}

.product-image-7 {
  background-image: linear-gradient(145deg, #f6ece1 0%, #ccb9a6 48%, #f7f2ec 100%);
}

.product-image-8 {
  background-image: linear-gradient(145deg, #f3e7d9 0%, #d7c3ae 50%, #fbf7f0 100%);
}

.product-image-9 {
  background-image: linear-gradient(135deg, #f4e6d7 0%, #c9b6a2 50%, #f7f2ec 100%);
}

.product-image-10 {
  background-image: linear-gradient(140deg, #efe5d9 0%, #d4c1ae 54%, #f7f2ec 100%);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 500;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b655d;
}

.product-card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: #f9f4ee;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary.btn-small {
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-ghost:hover {
  background-color: #f2e7da;
  border-color: #cbb9a5;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  border-radius: 26px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  border-color: #ccb79d;
}

.category-image {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.category-image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-image-tote {
  background-image: url("images/1.jpg");
}

.category-image-crossbody {
  background-image: url("images/3.jpg");
}

.category-image-backpack {
  background-image: url("images/2.jpg");
}

.category-image-mini {
  background-image: url("images/8.jpg");
}

.category-info {
  padding: 16px 18px 18px;
}

.category-info h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.category-info p {
  font-size: 13px;
  color: #6b655d;
  margin: 0;
}

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

.adv-card {
  border-radius: 22px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  padding: 18px 18px 20px;
}

.adv-card h3 {
  font-size: 15px;
  margin: 10px 0 5px;
}

.adv-card p {
  font-size: 13px;
  color: #6b655d;
  margin: 0;
}

.adv-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: #f1e6d7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 16px;
}

.gallery-item {
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-item-1 {
  grid-row: span 2;
  background-image: linear-gradient(135deg, #f0e2d3 0%, #ccb39c 50%, #f7f1ea 100%);
}

.gallery-item-2 {
  background-image: linear-gradient(145deg, #f5e8d7 0%, #d1b8a2 58%, #fbf6ef 100%);
}

.gallery-item-3 {
  background-image: linear-gradient(135deg, #efe3d7 0%, #c3ae98 54%, #f8f3ec 100%);
}

.gallery-item-4 {
  grid-row: span 2;
  background-image: linear-gradient(150deg, #f3e5d7 0%, #d7c2a8 50%, #fbf6ef 100%);
}

.gallery-item-5 {
  background-image: linear-gradient(145deg, #f4e8dc 0%, #ccb8a2 50%, #f8f3ed 100%);
}

.gallery-item-6 {
  background-image: linear-gradient(135deg, #f3e6d7 0%, #d0bcaa 55%, #f8f3ec 100%);
}

.newsletter {
  border-radius: 28px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.newsletter-text p {
  font-size: 14px;
  color: #5f5b55;
  margin-bottom: 10px;
}

.newsletter-text h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  margin: 10px 0 12px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form .btn-primary {
  align-self: center;
}

.newsletter-note {
  font-size: 12px;
  color: #8a847c;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
}

.contacts-text p {
  font-size: 14px;
  color: #5f5b55;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 14px;
  color: #5f5b55;
}

.contacts-form {
  border-radius: 24px;
  padding: 18px 18px 20px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
}


.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.reviews-grid.reviews-grid--carousel {
  display: block;
}

.review-card {
  border-radius: 22px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  padding: 16px 16px 18px;
  font-size: 14px;
  color: #5f5b55;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow: visible;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.review-header > div:first-child {
  min-width: 0;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: break-word;
}

.review-city {
  font-size: 12px;
  color: #8a847c;
}

.review-rating {
  font-size: 14px;
  letter-spacing: 0.18em;
}

.review-text {
  margin: 0 0 8px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  min-width: 0;
}

.review-date {
  font-size: 12px;
  color: #8a847c;
}

/* Carousel (data-reviews="carousel") */
.reviews-carousel {
  position: relative;
  width: 100%;
}
.reviews-carousel-viewport {
  overflow: hidden;
  margin: 0 -4px;
  width: 100%;
}
.reviews-carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.reviews-carousel .review-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
}
.reviews-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 4px;
}
.reviews-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #e0d4c5;
  background: #fff;
  color: #2c2824;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.reviews-carousel-btn:hover:not(:disabled) {
  background: #fdfaf6;
  border-color: #c4b8a8;
}
.reviews-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  padding: 0 4px;
}
.reviews-carousel-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  border: none;
  background: #e0d4c5;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.reviews-carousel-dot:hover {
  background: #c4b8a8;
}
.reviews-carousel-dot.is-active {
  background: #2c2824;
  transform: scale(1.2);
}

/* Планшет: 2 карточки */
@media (max-width: 900px) and (min-width: 769px) {
  .reviews-carousel .review-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 768px) {
  .section:has(#reviews-heading) {
    overflow-x: hidden;
  }
  .reviews-carousel-viewport {
    margin: 0;
    /* Явная ширина карточки, чтобы текст переносился и не обрезался */
    --carousel-card-width: min(100%, calc(100vw - 40px));
  }
  .reviews-carousel-track {
    gap: 12px;
    padding-inline: 0;
    width: calc(10 * var(--carousel-card-width) + 9 * 12px);
    min-width: 100%;
    box-sizing: content-box;
  }
  .reviews-carousel .review-card {
    flex: 0 0 var(--carousel-card-width);
    min-width: var(--carousel-card-width);
    max-width: var(--carousel-card-width);
    width: var(--carousel-card-width);
    box-sizing: border-box;
  }
  .reviews-carousel-nav {
    margin-top: 16px;
    padding: 0;
  }
  .reviews-carousel-dots {
    margin-top: 10px;
    padding: 0;
  }
  /* Сетка с карточками (compact/full) — только когда нет карусели */
  .reviews-grid:not(.reviews-grid--carousel) {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    margin: 0;
    padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-grid:not(.reviews-grid--carousel) > .review-card {
    min-width: 80%;
    scroll-snap-align: start;
  }
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 4, 0.45);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-panel {
  width: 100%;
  max-width: 720px;
  border-radius: 32px;
  background: rgba(253, 250, 246, 0.98);
  border: 1px solid #e0d4c5;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #b29a7e;
  box-shadow: 0 0 0 1px rgba(178, 154, 126, 0.35);
  background-color: #ffffff;
}

.search-input-placeholder {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #b1a69a;
}

.search-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-close-btn span {
  position: relative;
  width: 12px;
  height: 12px;
}

.search-close-btn span::before,
.search-close-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.4px;
  border-radius: 999px;
  background-color: #111111;
}

.search-close-btn span::before {
  transform: rotate(45deg);
}

.search-close-btn span::after {
  transform: rotate(-45deg);
}

.search-results {
  max-height: 340px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e5dbcf;
  overflow: auto;
}

.search-empty {
  font-size: 13px;
  color: #8a847c;
  padding: 10px 4px 6px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 2px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.search-result-item:hover {
  background-color: #f5ede2;
  transform: translateY(-1px);
}

.search-result-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f3e6d7;
}

.search-result-thumb-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.search-result-name {
  font-size: 14px;
  margin-bottom: 2px;
}

.search-result-meta {
  font-size: 12px;
  color: #8a847c;
}

.search-result-price {
  font-size: 13px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-col {
  flex: 1;
}

body[data-page="checkout"] .contacts-form .form-row {
  flex-direction: column;
}

body[data-page="checkout"] .contacts-form .form-col {
  width: 100%;
}

body[data-page="checkout"] #checkout-address-row .form-row {
  flex-direction: row;
}

@media (max-width: 640px) {
  body[data-page="checkout"] #checkout-address-row .form-row {
    flex-direction: column;
  }
}

.ops-select {
  position: relative;
}

.ops-select-trigger {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  padding: 8px 40px 8px 16px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.ops-select-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9b9184;
  border-bottom: 1.5px solid #9b9184;
  transform: translateY(-60%) rotate(45deg);
}

.ops-select-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin-top: 6px;
  border-radius: 16px;
  background-color: #fdfaf6;
  border: 1px solid #d8d1c7;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  display: none;
}

.ops-select-panel.is-open {
  display: block;
}

.ops-select-search {
  padding: 6px 14px;
}

.ops-select-search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  padding: 7px 12px;
  font-size: 13px;
  background-color: #ffffff;
}

.ops-select-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.ops-select-option {
  width: 100%;
  padding: 6px 16px;
  font-size: 13px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.ops-select-option:hover,
.ops-select-option.is-active {
  background-color: #f0e7db;
}

.phone-input-wrapper {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #111111;
  pointer-events: none;
}

.phone-input-wrapper .input {
  padding-left: 64px;
}

.phone-input-wrapper .input::placeholder {
  color: #b9b0a3;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid #e0d4c5;
  padding-top: 32px;
  background-color: #f8f5f0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 2fr;
  gap: 28px;
  font-size: 13px;
}

.footer-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9b9184;
  margin: 0 0 10px;
}

.footer-col p,
.footer-col a {
  color: #6b655d;
}

.footer-col a {
  display: block;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #2e2a26;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #e0d4c5;
  padding: 16px 0 22px;
}

.footer-bottom-inner {
  font-size: 12px;
  color: #8a847c;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.footer-legal {
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.footer-legal p {
  margin: 0 0 2px;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-legal-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.catalog-layout.filters-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-filters {
  border-radius: 24px;
  border: 1px solid #e0d4c5;
  padding: 10px 16px;
  background-color: #fdfaf6;
}

.catalog-filters.is-open {
  padding: 18px 18px 20px;
}

.catalog-filters-toggle {
  width: 100%;
  padding: 0;
  margin: 0 0 14px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.catalog-filters-body {
  display: none;
}

.catalog-filters.is-open .catalog-filters-body {
  display: block;
  margin-top: 8px;
}

.catalog-filters-toggle-icon {
  font-size: 16px;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.catalog-filters.is-open .catalog-filters-toggle-icon {
  transform: rotate(180deg);
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group h3 {
  font-size: 13px;
  margin: 0 0 6px;
}

.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: #fdfaf6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  color: #6b655d;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.filter-tag.is-active {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
}

.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-filters {
    margin-bottom: 16px;
  }

  .catalog-filters-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .catalog-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .catalog-filters {
    padding: 18px 18px 20px;
  }

  .catalog-filters-body {
    display: block;
    margin-top: 8px;
  }

  .catalog-filters-toggle {
    display: none;
  }
}

.catalog-color-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.catalog-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.catalog-color-dot:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  border-color: #111111;
}

.catalog-sort {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.catalog-sort .input-select {
  width: auto;
  min-width: 0;
  display: inline-block;
  padding-right: 40px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-main-wrapper {
  position: relative;
}

.product-main-image {
  border-radius: 30px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  min-height: 340px;
  background-size: cover;
  cursor: pointer;
  background-position: center;
}

.product-main-img-el {
  width: 100%;
  min-height: 340px;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.product-zoom-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.product-zoom-btn .icon-svg {
  width: 18px;
  height: 18px;
}

.product-zoom-btn:hover {
  transform: translateY(-1px);
  background-color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.product-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.product-zoom-dialog {
  max-width: min(900px, 96vw);
  max-height: min(700px, 90vh);
  width: 96vw;
  background-color: #fdfaf6;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  position: relative;
}

.product-zoom-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.product-zoom-arrow {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.product-zoom-arrow span {
  border: solid #111111;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 6px;
}

.product-zoom-arrow--prev span {
  transform: rotate(135deg);
}

.product-zoom-arrow--next span {
  transform: rotate(-45deg);
}

.product-zoom-image {
  border-radius: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: min(620px, 80vh);
}

.product-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  background-color: transparent;
  color: #111111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 2;
  transition: transform 0.16s ease, color 0.16s ease;
}

.product-zoom-close:hover {
  transform: scale(1.06);
  color: #000000;
}

.product-zoom-close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
  transform: none;
}

.product-thumbs-wrap {
  position: relative;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
  display: none;
}

.product-thumb {
  border-radius: 16px;
  background-color: #fdfaf6;
  border: 1px solid #e0d4c5;
  height: 70px;
  min-width: 90px;
  width: 90px;
  flex: 0 0 90px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: opacity 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.product-thumb-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.product-thumb.is-active {
  opacity: 1;
  border-color: #b29a7e;
  transform: translateY(-1px);
}

.product-thumbs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  background-color: rgba(253, 250, 246, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.product-thumbs-wrap.has-overflow .product-thumbs-nav-btn {
  display: inline-flex;
}

.product-thumbs-nav-btn--prev {
  left: 6px;
}

.product-thumbs-nav-btn--next {
  right: 6px;
}

.product-thumbs-nav-btn span {
  border: solid #111111;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
}

.product-thumbs-nav-btn--prev span {
  transform: rotate(135deg);
}

.product-thumbs-nav-btn--next span {
  transform: rotate(-45deg);
}

.product-thumbs-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.product-info h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 26px;
  margin: 10px 0 6px;
}

.product-price {
  font-size: 18px;
  margin: 4px 0 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.color-options {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  position: relative;
  cursor: pointer;
}

.color-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
}

.color-dot[data-color="Black"]::after {
  background-color: #111111;
}

.color-dot[data-color="Sand"]::after {
  background-color: #d0b193;
}

.color-dot[data-color="Taupe"]::after {
  background-color: #85796c;
}

.color-dot[data-color="Clay"]::after {
  background-color: #b78468;
}

.color-dot.is-active {
  border-color: #111111;
}

.color-variant-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0d4c5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.color-variant-thumb-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.color-variant-thumb.is-active {
  border-color: #111111;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.product-description h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.product-description p {
  font-size: 14px;
  color: #5f5b55;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: #5f5b55;
}

.product-specs h3 {
  font-size: 13px;
  margin: 0 0 4px;
}

.product-trust {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e0d4c5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #5f5b55;
}

.product-trust-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: flex-start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  border-radius: 20px;
  border: 1px solid #e0d4c5;
  background-color: #fdfaf6;
  padding: 14px 14px 16px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cart-item-image {
  border-radius: 16px;
  height: 96px;
  background-size: cover;
  background-position: center;
  background-color: #f3e6d7;
}

.cart-item-image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.cart-item-info {
  font-size: 14px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 13px;
  color: #6b655d;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d8d1c7;
  overflow: hidden;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background-color: #fdfaf6;
  cursor: pointer;
  font-size: 16px;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
}

.cart-item-price {
  font-size: 14px;
}

.btn-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #8a847c;
  text-decoration: underline;
  cursor: pointer;
}

.cart-summary {
  border-radius: 22px;
  border: 1px solid #e0d4c5;
  background-color: #fdfaf6;
  padding: 18px 18px 20px;
  font-size: 14px;
}

.cart-summary h2 {
  font-size: 16px;
  margin: 0 0 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-row-total {
  padding-top: 8px;
  border-top: 1px solid #e0d4c5;
  margin-top: 8px;
  font-weight: 500;
}

.summary-note {
  margin-top: 8px;
  font-size: 12px;
  color: #8a847c;
}

.cart-empty {
  padding: 18px 18px 20px;
  border-radius: 20px;
  border: 1px dashed #d8d1c7;
  background-color: #fdfaf6;
  font-size: 14px;
  color: #6b655d;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translate(-50%, 8px);
  padding: 12px 18px;
  border-radius: 999px;
  background-color: #111111;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 45;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.mini-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px 14px;
  background-color: rgba(248, 245, 240, 0.97);
  border-top: 1px solid #e0d4c5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  z-index: 40;
}

.mini-cart-bar.is-visible {
  transform: translateY(0);
}

.mini-cart-price {
  font-size: 15px;
  font-weight: 500;
}

.mini-cart-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a847c;
}

.mini-cart-cta {
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .mini-cart-bar {
    display: none;
  }
}

@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    border-radius: 18px;
    padding: 12px 16px;
    background-color: rgba(248, 245, 240, 0.96);
    border: 1px solid #e0d4c5;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .header-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-burger {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-image {
    min-height: 260px;
  }

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

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

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

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

  .catalog-sort {
    justify-content: flex-start;
  }

  .product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .cart-item-actions {
    flex-direction: row;
    justify-content: space-between;
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 44px 0;
  }

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

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

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

  .gallery-grid {
    grid-auto-rows: 120px;
  }

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

  .newsletter {
    padding: 22px 18px;
  }

  .contacts-form {
    margin-top: 10px;
  }

}


