@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap");

:root {
  --font-main: "Playfair Display", Georgia, "Times New Roman", serif;
  --fs-xl: 2rem;
  --fs-md: 1rem;
  --fs-sm: 0.62rem;
  --bg-primary: #21112f;
  --gold-main: #c3a24a;
  --gold-hover: #d2b663;
  --text-light: #ffffff;
  --text-dark: #222222;
  --gray-light: #f4f4f4;
  --gray-divider: #dfdfdf;
  --card-bg: #c9c5bb;
  --surface-muted: #c9c5bb;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.16);
  --transition-main: 0.28s ease;
  --container: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: #21112f;
  line-height: 1.55;
  caret-color: transparent;
}

body > main,
body > .section {
  flex: 1 0 auto;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  margin: 0 0 0.5em;
  color: var(--bg-primary);
}

h1 {
  font-size: var(--fs-xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-xl);
}

p {
  margin: 0 0 1rem;
  font-size: var(--fs-md);
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #21112f;
  color: var(--gold-main);
  border-bottom: none;
  padding-bottom: 0.6rem;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.34rem;
  height: 1px;
  background:
    linear-gradient(rgba(210, 182, 99, 0.45), rgba(210, 182, 99, 0.45)) left center / calc(50% - 140px) 1px no-repeat,
    linear-gradient(rgba(210, 182, 99, 0.45), rgba(210, 182, 99, 0.45)) right center / calc(50% - 140px) 1px no-repeat;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  width: 100px;
  height: 70px;
  background: url("images/Лапка.png") center/contain no-repeat;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(210, 182, 99, 0.3));
}

.header-inner {
  position: relative;
  min-height: 132px;
  padding: 0.6rem 0 1.4rem;
}

.logo {
  font-family: var(--font-main);
  letter-spacing: 0.16em;
  font-size: var(--fs-xl);
  color: var(--gold-main);
}

.site-header .logo {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  line-height: 1;
  text-align: center;
}

.site-header .logo::after {
  content: "МАГАЗИН УКРАШЕНИЙ ОТ СЕМЕЙНОГО БРЕНДА";
  display: block;
  margin-top: 0.95rem;
  font-family: var(--font-main);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: rgba(210, 182, 99, 0.82);
}

.nav {
  position: absolute;
  top: 3.8rem;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  min-width: 220px;
  background: #21112f;
  border: 1px solid rgba(210, 182, 99, 0.28);
  border-radius: 12px;
  padding: 0.7rem;
  z-index: 40;
}

.nav a {
  color: var(--gold-main);
  font-size: var(--fs-md);
  padding: 0.25rem 0.45rem;
  transition: all var(--transition-main);
}

.nav.open {
  display: flex;
}

.header-icons {
  position: absolute;
  right: 0;
  top: 5.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn,
.btn,
.card,
.interactive {
  transition: transform var(--transition-main), filter var(--transition-main), box-shadow var(--transition-main), background-color var(--transition-main), color var(--transition-main);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(210, 182, 99, 0.45);
  color: var(--gold-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  line-height: 1;
  font-family: var(--font-main);
}

.icon-btn:hover,
.nav a:hover,
.interactive:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.3rem;
  font-size: var(--fs-md);
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-gold {
  background: var(--gold-hover);
  color: #2f1f00;
}

.btn-gold:hover {
  background: var(--gold-main);
  transform: translateY(-3px);
  filter: brightness(0.97);
}

.add-to-cart-btn.is-active {
  background: var(--gold-main);
  color: #2f1f00;
}

.btn-outline {
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  background: transparent;
}

.btn-outline:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
  background: rgba(207, 174, 50, 0.08);
}

.home-glow-zone,
.page-glow-zone {
  --mx: 50%;
  --my: 45%;
  --tiltX: 0;
  --tiltY: 0;
  position: relative;
  overflow: hidden;
}

.home-glow-zone::before,
.page-glow-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    700px circle at var(--mx) var(--my),
    rgba(210, 182, 99, 0.14) 0%,
    rgba(210, 182, 99, 0.07) 38%,
    rgba(33, 17, 47, 0) 78%
  );
  opacity: 0;
}

.home-glow-zone.is-glow-active::before,
.page-glow-zone.is-glow-active::before {
  opacity: 1;
}

.home-glow-zone::after,
.page-glow-zone::after {
  content: "";
  position: absolute;
  inset: -6%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    linear-gradient(113deg, rgba(210, 182, 99, 0.22) 0%, rgba(210, 182, 99, 0) 54%),
    linear-gradient(101deg, rgba(255, 232, 167, 0.18) 0%, rgba(255, 232, 167, 0) 40%),
    repeating-linear-gradient(
      108deg,
      rgba(205, 174, 89, 0.22) 0px,
      rgba(205, 174, 89, 0.22) 1px,
      rgba(205, 174, 89, 0) 1px,
      rgba(205, 174, 89, 0) 20px
    ),
    repeating-linear-gradient(
      72deg,
      rgba(248, 226, 165, 0.17) 0px,
      rgba(248, 226, 165, 0.17) 1px,
      rgba(248, 226, 165, 0) 1px,
      rgba(248, 226, 165, 0) 26px
    );
  mask-image: radial-gradient(
    460px circle at var(--mx) var(--my),
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.66) 38%,
    rgba(0, 0, 0, 0.12) 62%,
    transparent 82%
  );
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: opacity 120ms ease-out, transform 170ms ease-out, filter 170ms ease-out;
  filter: blur(0.15px) saturate(0.95);
  animation: metallic-lines-drift 7.5s ease-in-out infinite;
  animation-play-state: paused;
}

.home-glow-zone.is-glow-active::after,
.page-glow-zone.is-glow-active::after {
  opacity: 0.85;
  transform: perspective(900px)
    rotateX(calc(var(--tiltY) * 2.8deg))
    rotateY(calc(var(--tiltX) * -2.8deg))
    scale(1.008);
  filter: saturate(1.08) drop-shadow(0 0 11px rgba(210, 182, 99, 0.23));
  animation-play-state: running;
}

@keyframes metallic-lines-drift {
  0% {
    background-position: 0% 0%, 0% 0%, 0px 0px, 0px 0px;
    filter: blur(0.15px) saturate(1.03);
  }
  33% {
    background-position: 1.2% -0.8%, -1% 1.1%, 4px -6px, -5px 4px;
    filter: blur(0.18px) saturate(1.07);
  }
  66% {
    background-position: -1% 0.9%, 1.1% -1%, -3px 5px, 4px -4px;
    filter: blur(0.14px) saturate(1.02);
  }
  100% {
    background-position: 0% 0%, 0% 0%, 0px 0px, 0px 0px;
    filter: blur(0.15px) saturate(1.03);
  }
}

.cursor-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 234, 173, 0.95) 0%, rgba(210, 182, 99, 0.8) 45%, rgba(210, 182, 99, 0) 100%);
  box-shadow: 0 0 12px rgba(210, 182, 99, 0.45);
  animation: sparkle-fade 620ms ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

.hero {
  background: #21112f;
  color: var(--text-light);
  padding: 5.3rem 0 4.3rem;
}

.home-glow-zone > .hero .container,
.home-glow-zone > .section .container,
.page-glow-zone > .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.hero-copy {
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  color: var(--gold-hover);
  letter-spacing: 0.18em;
  font-size: var(--fs-sm);
  margin-bottom: 1.1rem;
  opacity: 0.9;
}

.hero-copy h1 {
  color: var(--surface-muted);
  margin-bottom: 1rem;
  font-family: var(--font-main);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 1.9rem;
  color: var(--surface-muted);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 2rem;
}

.hero .cta-group .btn {
  width: 190px;
  white-space: nowrap;
}

.hero-frame {
  border-color: #2a2d32;
  background: rgba(255, 255, 255, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-frame .card-content h3 {
  font-family: var(--font-main);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--surface-muted);
}

.hero-frame .card-content .card-meta {
  color: var(--surface-muted);
  line-height: 1.5;
}

.hero-frame .card-content {
  padding: 1.15rem 1.2rem 1.25rem;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.2px),
    radial-gradient(circle at 74% 66%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.2px),
    radial-gradient(circle at 48% 82%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.2px),
    linear-gradient(145deg, #2a2d32, #1c1f23);
  background-size: 18px 18px, 22px 22px, 26px 26px, 100% 100%;
}

.hero-photo {
  width: 100%;
  height: 360px;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.section {
  padding: 3.2rem 0;
  background: #21112f;
}

.section-title {
  margin-bottom: 1.3rem;
  text-align: center;
}

body[data-page="home"] .section-title {
  color: var(--gold-main);
  font-family: var(--font-main);
  font-size: var(--fs-xl);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

#home-collections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

body[data-page="catalog"] #catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--gray-divider);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-7px);
  filter: brightness(0.92);
  box-shadow: var(--shadow-hover);
}

.card-link-wrap {
  display: block;
}

.card-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-media {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(120deg, #efe7f8, #fefdf7);
  display: block;
}

video.card-media {
  background: #21112f;
}

.card-content {
  padding: 1.05rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  flex: 1;
  background: #c9c5bb;
}

.card-content h3 {
  margin-bottom: 0.25rem;
}

.card-content .price {
  margin-top: auto;
}

.showcase-card .card-media {
  height: 360px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.showcase-card .card-content {
  padding: 1.1rem 1.15rem 1.2rem;
  gap: 0.4rem;
  flex: 1;
  align-content: start;
  background: #c9c5bb;
}

.showcase-card .card-content h3 {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.2;
}

.showcase-card .card-meta {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: #191919;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-card .price {
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #191919;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.favorite-toggle {
  margin-top: 0.65rem;
  width: 100%;
}

.favorite-toggle.is-active {
  background: rgba(195, 162, 74, 0.2);
  border-color: var(--gold-main);
}

.card-meta {
  font-size: var(--fs-sm);
  color: #666;
}

.price {
  color: var(--bg-primary);
  font-weight: 700;
  margin: 0.45rem 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.product-panel,
.panel {
  background: var(--surface-muted);
  border: 1px solid var(--gray-divider);
  border-radius: 16px;
  padding: 1.2rem;
}

#product-main-media .card-media {
  height: 470px;
}

body[data-page="product"] .product-panel {
  text-align: left;
  --product-text-align-offset: 1.3rem;
}

body[data-page="product"] .product-panel h1,
body[data-page="product"] .product-panel p,
body[data-page="product"] .product-panel h3 {
  text-align: left;
  padding-left: var(--product-text-align-offset);
}

body[data-page="product"] .product-panel .btn {
  text-align: center;
}

body[data-page="product"] .product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  padding-left: 0;
  margin: 0.9rem 0 0;
}

body[data-page="product"] .product-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

body[data-page="product"] .favorite-toggle-product {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-page="product"] .product-cart-btn {
  width: auto;
}

body[data-page="product"] .product-panel > .panel h3,
body[data-page="product"] .product-panel > .panel p {
  padding-left: 0.2rem;
}

body[data-page="favorites"] .section h1,
body[data-page="favorites"] .section > .container > p:first-of-type {
  color: var(--gold-main);
}

body[data-page="favorites"] #favorites-empty.panel {
  background: #c9c5bb;
  border-color: #b8b4aa;
  color: #191919;
  font-style: italic;
}

body[data-page="review"] .section h2 {
  color: var(--gold-main);
}

body[data-page="checkout"] .section h1 {
  color: var(--gold-main);
}

body[data-page="cart"] .section h1 {
  color: var(--gold-main);
}

body[data-page="catalog"] .catalog-search-wrap {
  background: #c9c5bb;
  border-color: #b8b4aa;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

body[data-page="catalog"] .catalog-search-wrap label {
  color: #191919;
  margin: 0;
  white-space: nowrap;
}

body[data-page="catalog"] #catalog-search {
  width: auto;
  flex: 1;
  height: 40px;
  border: 1px solid #b1ada3;
  background: #c9c5bb;
  color: #191919;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}

body[data-page="catalog"] #catalog-search::placeholder {
  color: rgba(25, 25, 25, 0.65);
  font-style: italic;
}

body[data-page="catalog"] .catalog-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  margin-top: 0.75rem;
}

body[data-page="catalog"] .catalog-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

.media-thumb {
  padding: 0.25rem;
  cursor: pointer;
}

.media-thumb .card-media {
  height: 130px;
  border-radius: 10px;
}

.zoomable-media {
  cursor: zoom-in;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.media-lightbox.open {
  display: block;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.media-lightbox-content {
  position: relative;
  width: min(1100px, 94vw);
  height: min(88vh, 820px);
  margin: 5vh auto;
  background: #0f0f14;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}

.lightbox-controls {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.lightbox-media-slot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 2rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-page .content {
  max-width: 760px;
  margin-inline: auto;
  background: #c9c5bb;
  border: 1px solid #b8b4aa;
  border-radius: 16px;
  padding: 2rem;
}

.service-page p {
  margin-bottom: 1.35rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
}

.about-copy h1 {
  margin-bottom: 0.6rem;
  color: var(--surface-muted);
}

.about-copy > p:not(.hero-kicker) {
  color: var(--surface-muted);
}

.about-photo-wrap {
  overflow: hidden;
}

.about-photo {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.about-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-md);
}

input,
select,
textarea {
  padding: 0.78rem 0.85rem;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font: inherit;
  background: var(--surface-muted);
}

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

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--gray-divider);
  border-radius: 12px;
  background: var(--surface-muted);
  cursor: pointer;
}

.cart-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background: linear-gradient(110deg, #f2e8ff, #fff6d0);
  object-fit: cover;
  display: block;
}

.cart-remove-btn {
  width: auto;
  min-width: 120px;
}

.site-footer {
  margin-top: 2.2rem;
  background: #21112f;
  color: #f2f2f2;
  padding: 2rem 0;
}

.site-footer .logo {
  justify-self: start;
  display: inline-block;
}

.footer-demo-note {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem 1.8rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem 1.2rem;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
}

.footer-links a {
  display: block;
  color: #ddd;
  font-size: var(--fs-md);
  white-space: nowrap;
  line-height: 1.35;
  padding-block: 0.15rem;
}

.footer-links a:hover {
  color: var(--gold-hover);
  transform: translateY(-4px);
  filter: brightness(0.92);
}

.burger {
  display: inline-flex;
  position: absolute;
  right: 124px;
  top: 5.25rem;
  background: transparent;
  border: 1px solid rgba(210, 182, 99, 0.45);
  color: var(--gold-main);
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: var(--fs-md);
  line-height: 1;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

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

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

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

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

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

  .about-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .burger {
    display: inline-flex;
    justify-self: start;
    order: 1;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    background: #21112f;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    z-index: 40;
  }

  .nav.open {
    display: flex;
  }

  .logo {
    justify-self: center;
  }

  .hero .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .header-icons {
    order: 3;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  body[data-page="product"] .product-actions .btn,
  body[data-page="catalog"] .catalog-actions .btn {
    width: auto;
  }

  body[data-page="catalog"] .catalog-search-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  body[data-page="catalog"] .catalog-search-wrap label {
    white-space: normal;
  }

  #product-main-media .card-media {
    height: 340px;
  }

  .showcase-card .card-media {
    height: 300px;
  }

  .footer-links {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .footer-links a {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  p,
  li {
    font-size: var(--fs-md);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-bottom: 1.25rem;
  }

  .site-header::before {
    bottom: -2.1rem;
  }

  .site-header::after {
    background:
      linear-gradient(rgba(210, 182, 99, 0.45), rgba(210, 182, 99, 0.45)) left center / calc(50% - 95px) 1px no-repeat,
      linear-gradient(rgba(210, 182, 99, 0.45), rgba(210, 182, 99, 0.45)) right center / calc(50% - 95px) 1px no-repeat;
  }

  .site-header .logo {
    font-size: 1.6rem;
  }

  .site-header .logo::after {
    font-size: 0.56rem;
  }

  .header-inner {
    min-height: 148px;
  }

  .burger {
    top: 5.55rem;
    right: 120px;
    width: 30px;
    height: 30px;
  }

  .header-icons {
    top: 5.55rem;
    right: 0;
    gap: 0.35rem;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .hero-photo,
  .showcase-card .card-media {
    height: 260px;
  }

  #product-main-media .card-media {
    height: 285px;
  }

  .service-page .content {
    padding: 1rem;
  }
}
