:root {
  --bg: #090807;
  --bg-soft: #11100f;
  --card: #161311;
  --text: #eee7db;
  --muted: #9d9489;
  --gold: #d79a45;
  --gold-light: #f5cb84;
  --fire: #c94819;
  --line: rgba(236, 205, 156, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  isolation: isolate;
}

body.no-scroll,
body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 12%, rgba(166, 61, 14, 0.18), transparent 25%),
    radial-gradient(circle at 18% 78%, rgba(123, 42, 12, 0.1), transparent 30%),
    linear-gradient(135deg, #080706 0%, #0d0b0a 48%, #080706 100%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(222, 173, 99, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 173, 99, 0.025) 1px, transparent 1px);
  background-size: 85px 85px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

main,
.collection,
.constructor,
.contacts,
.footer {
  background: transparent;
}

.section {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 130px 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h2 {
  margin-top: 15px;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

h1 em,
h2 em {
  color: var(--gold-light);
  font-style: italic;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: 0.3s ease;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button--fire {
  background: linear-gradient(135deg, #e1a64e, #a63b15);
  color: #16100b;
}

.button--fire:hover {
  box-shadow: 0 0 28px rgba(227, 127, 41, 0.42);
  transform: translateY(-3px);
}

.button--ghost {
  border-color: rgba(245, 203, 132, 0.45);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--gold-light);
  background: rgba(215, 154, 69, 0.1);
}

/* Окно 18+ */
.age-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(185, 71, 20, 0.18), transparent 30%),
    rgba(5, 5, 5, 0.97);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.age-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.age-modal__content {
  width: min(540px, 100%);
  text-align: center;
}

.age-modal__symbol {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 35px;
}

.age-modal h1 {
  margin: 16px 0;
  font-size: clamp(45px, 8vw, 68px);
  line-height: 0.9;
}

.age-modal p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.age-modal__buttons {
  display: flex;
  margin-top: 32px;
  justify-content: center;
  gap: 12px;
}

/* Заставка */
.intro {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  background: #050505;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94vw;
  height: 94vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #050505;
  transform: translate(-50%, -50%);
}

.intro__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.2)
  );
}

/* Шапка */
.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  padding: 24px max(25px, calc((100vw - 1380px) / 2));
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.brand__mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 154, 69, 0.7);
  border-radius: 50%;
  background: #0b0908;
  box-shadow: 0 0 18px rgba(218, 104, 25, 0.16);
}

.brand__mark img,
.header .brand__logo {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
  border: 1px solid rgba(215, 154, 69, 0.7);
  border-radius: 50%;
  background: #0b0908;
  box-shadow: 0 0 18px rgba(218, 104, 25, 0.16);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: grid;
  gap: 8px;
}

.brand__text strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 0.65;
}

.brand__text small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.language-switcher {
  position: relative;
  z-index: 110;
  margin-left: auto;
  margin-right: 18px;
}

.language-switcher select {
  min-width: 66px;
  padding: 11px 27px 11px 13px;
  border: 1px solid rgba(245, 203, 132, 0.45);
  border-radius: 22px;
  outline: none;
  background: rgba(10, 8, 7, 0.78);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher select option {
  background: #15100d;
  color: var(--gold-light);
}

.language-button {
  display: flex;
  min-width: 68px;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(245, 203, 132, 0.35);
  background: rgba(8, 7, 6, 0.8);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 145px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #11100f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.language-switcher.is-open .language-dropdown {
  display: grid;
}

.language-option {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  text-align: left;
}

.language-option:hover,
.language-option.is-active {
  background: rgba(215, 154, 69, 0.12);
  color: var(--gold-light);
}

.header .header__account {
  display: flex;
  flex: 0 0 auto;
  margin: 0 18px;
  align-items: center;
  gap: 10px;
}

.header .header__account-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 203, 132, 0.4);
  background: rgba(8, 7, 6, 0.8);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.25s ease;
}

.header .header__account-link:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.header .header__account-link--register {
  border-color: var(--gold);
  background: rgba(215, 154, 69, 0.12);
  color: var(--gold-light);
}

.header .header__account-link--logout {
  color: #e7a26a;
}

.menu-toggle {
  position: relative;
  z-index: 102;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  gap: 6px;
  place-content: center;
  border: 1px solid rgba(245, 203, 132, 0.45);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.38);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold-light);
  transition: 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Меню */
.menu {
  position: fixed;
  z-index: 101;
  top: 0;
  right: 0;
  display: flex;
  width: min(520px, 100vw);
  height: 100vh;
  height: 100dvh;
  padding: 115px 66px 48px;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 5%, rgba(189, 76, 18, 0.17), transparent 32%),
    #11100f;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1), visibility 0.45s ease;
}

.menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.menu__close {
  position: absolute;
  top: 28px;
  right: 42px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 33px;
}

.menu__caption {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.menu__link {
  display: flex;
  min-height: 56px;
  padding: 17px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 45px);
  text-decoration: none;
  transition: color 0.25s ease, padding 0.25s ease;
}

.menu__link > span:last-child {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.menu__link:hover {
  padding-left: 12px;
  color: var(--gold-light);
}

.menu__bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.menu__bottom p {
  margin-bottom: 7px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 26px;
}

#menu .menu__link:empty,
#menu .menu__link:has(> span:only-child) {
  display: none;
}

#menu .menu__link,
#menu a[data-menu],
#menu a[data-route] {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  opacity: 1;
  visibility: visible;
}

#menu .menu__link:hover,
#menu a[data-menu]:hover,
#menu a[data-route]:hover {
  color: var(--gold-light);
}

#menu .menu__link > span[data-menu] {
  color: inherit;
  font-family: var(--serif);
  font-size: inherit;
  letter-spacing: normal;
}

/* Первый экран */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 max(40px, calc((100vw - 1280px) / 2));
  align-items: center;
  overflow: hidden;
}

.hero {
  box-shadow: inset 0 -2px #090807;
}


.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #080706 12%, rgba(8, 7, 6, 0.82) 45%, rgba(8, 7, 6, 0.25) 100%),
    radial-gradient(circle at 78% 60%, rgba(173, 62, 14, 0.27), transparent 24%);
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(4%, calc((100vw - 1280px) / 2));
  content: "ФЕНИКС";
  color: rgba(245, 191, 109, 0.055);
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 340px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.7;
  pointer-events: none;
  text-shadow:
    0 0 35px rgba(211, 80, 17, 0.14),
    0 0 90px rgba(207, 73, 13, 0.08);
  transform: translateY(-50%);
  white-space: nowrap;
}

@media (max-width: 950px) {
  .hero::after {
    right: -14%;
    font-size: clamp(100px, 19vw, 230px);
  }
}

@media (max-width: 600px) {
  .hero::after {
    top: 23%;
    right: auto;
    left: 50%;
    font-size: clamp(42px, 13vw, 72px);
    letter-spacing: 0.08em;
    opacity: 0.8;
    transform: translate(-50%, -50%);
  }
}



.hero__content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding-top: 65px;
}

.hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(62px, 8vw, 122px);
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.hero__description {
  max-width: 445px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 13px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(225, 166, 88, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 166, 88, 0.13) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent, black 60%);
}

.hero__fire {
  position: absolute;
  right: 5%;
  bottom: -30%;
  width: 58vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(219, 80, 15, 0.25), transparent 65%);
  filter: blur(20px);
}

.hero__knife {
  position: absolute;
  right: 12%;
  width: min(35vw, 510px);
  height: min(68vh, 680px);
  transform: rotate(21deg);
}

.hero__knife-glow {
  position: absolute;
  inset: 15% -30%;
  background: radial-gradient(ellipse, rgba(246, 145, 35, 0.24), transparent 62%);
  filter: blur(20px);
}

.hero__knife-blade {
  position: absolute;
  top: 0;
  left: 47%;
  width: 32%;
  height: 66%;
  transform: translateX(-50%);
  clip-path: polygon(48% 0, 80% 10%, 100% 96%, 53% 100%, 0 86%, 24% 12%);
  background: linear-gradient(90deg, #34302c, #e0d2bf 44%, #605d58 55%, #161616);
  box-shadow: 0 0 25px rgba(248, 191, 95, 0.32);
}

.hero__knife-handle {
  position: absolute;
  bottom: 1%;
  left: 47%;
  width: 32%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 15px 15px 28px 28px;
  background: repeating-linear-gradient(78deg, #19110d, #19110d 8px, #392117 9px, #20130d 14px);
  box-shadow: inset 3px 0 5px #6e3a1f, inset -4px 0 7px #050505;
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: max(40px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.hero__scroll i {
  display: block;
  width: 45px;
  height: 1px;
  background: var(--gold);
}

/* Витрина и карточки товаров */
.section-heading {
  display: flex;
  margin-bottom: 55px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.text-link {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span:last-child {
  margin-left: 12px;
  font-size: 18px;
}

.knife-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.knife-card,
.product-card {
  position: relative;
  min-width: 0;
}

.knife-card__image,
.product-card__image {
  position: relative;
  height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(175, 74, 23, 0.22), transparent 30%),
    linear-gradient(145deg, #2a2723, #0d0c0b);
}

.knife-card__image::after,
.product-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, 0.72));
  pointer-events: none;
}

.knife-card__image img,
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.knife-card:hover img,
.product-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.knife-card__number {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(245, 203, 132, 0.4);
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.55);
  color: var(--gold-light);
  font-size: 21px;
}

.favorite-button.is-active,
.product-favorite.is-active {
  color: #f1a046;
}

.knife-card__info,
.product-card__info {
  padding-top: 20px;
}

.knife-card__info p,
.product-card__info > p {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.knife-card__info h3,
.product-card__info h3 {
  margin: 9px 0 15px;
  font-size: 34px;
  line-height: 0.9;
}

.knife-card__info > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.add-cart {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Видео */
.video-section {
  max-width: 1400px;
}

.video-placeholder {
  position: relative;
  display: flex;
  min-height: 630px;
  padding: 65px;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 42%, rgba(255, 125, 20, 0.35), transparent 6%),
    radial-gradient(circle at 77% 46%, rgba(168, 48, 11, 0.28), transparent 25%),
    linear-gradient(125deg, #1c1611, #080808 66%);
}

.video-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.23;
  background-image: linear-gradient(120deg, transparent 48%, #e7a452 49%, transparent 50%);
  background-size: 60px 60px;
}

.video-placeholder__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 6, 0.85), transparent 80%);
}

.video-placeholder__forge {
  position: absolute;
  top: 50%;
  right: 8%;
  color: rgba(249, 206, 133, 0.1);
  font-family: var(--serif);
  font-size: clamp(45px, 8vw, 120px);
  letter-spacing: 0.1em;
  transform: translateY(-50%);
}

.video-placeholder__text {
  position: relative;
  z-index: 2;
}

.video-placeholder h2 {
  max-width: 570px;
  font-size: clamp(50px, 6.5vw, 92px);
}

.play-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.42);
  color: var(--gold-light);
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.play-button:hover {
  background: var(--gold);
  box-shadow: 0 0 35px rgba(229, 150, 48, 0.5);
  color: #120d08;
}

/* Конструктор: основная сетка */
.constructor__heading {
  align-items: end;
}

.constructor__description {
  max-width: 310px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.constructor-app {
  display: grid;
  min-height: 670px;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 16, 14, 0.88), rgba(11, 10, 9, 0.88));
}

.constructor-steps {
  display: flex;
  padding: 30px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.step {
  display: flex;
  padding: 14px 0;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(236, 205, 156, 0.08);
  background: transparent;
  color: #70675d;
  font-family: var(--serif);
  font-size: 21px;
  text-align: left;
  transition: 0.25s ease;
}

.step > span:first-child {
  padding-top: 6px;
  color: inherit;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.step.is-active {
  color: var(--gold-light);
}

.constructor-main {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: stretch;
}

/* Предпросмотр ножа и кнопок слоёв */
.constructor-preview {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 670px;
  padding: 35px 24px 22px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(183, 65, 14, 0.16), transparent 33%),
    #0c0b0a;
}

.preview-fire {
  position: absolute;
  bottom: -100px;
  left: 5%;
  width: 90%;
  height: 45%;
  background: radial-gradient(ellipse, rgba(210, 72, 15, 0.3), transparent 65%);
  filter: blur(22px);
  pointer-events: none;
}

.custom-knife-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 700px;
  max-height: 470px;
  flex: 1 1 auto;
  overflow: visible;

  transform: rotate(28deg);
  transform-origin: center;
}


.constructor-preview__layers,
.constructor-layers {
  position: relative;
  z-index: 5;
  top: auto;
  left: auto;
  display: flex;
  width: 100%;
  max-width: 700px;
  margin-top: 12px;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.constructor-layers__title {
  width: 100%;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}

.constructor-preview__layers .constructor-layer,
.constructor-layers .constructor-layer {
  display: inline-flex;
  min-height: 32px;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(215, 154, 69, 0.35);
  background: rgba(12, 10, 8, 0.88);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.constructor-preview__layers .constructor-layer.is-visible,
.constructor-layers .constructor-layer.is-visible {
  border-color: rgba(215, 154, 69, 0.7);
  color: var(--gold-light);
}

.constructor-layer__eye {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  font-size: 8px;
}

.constructor-preview__title {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgba(245, 203, 132, 0.45);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-align: center;
}

/* Панель конструктора */
.constructor-controls {
  display: flex;
  min-width: 0;
  min-height: 670px;
  padding: 55px 45px 27px;
  flex-direction: column;
}

.control-panel {
  display: none;
  animation: panelIn 0.35s ease;
}

.control-panel.is-active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.control-panel h3 {
  margin: 12px 0 31px;
  font-size: 46px;
  line-height: 0.85;
}

.options-grid {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  padding: 15px 17px;
  gap: 5px;
  border: 1px solid rgba(236, 205, 156, 0.15);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  text-align: left;
  transition: 0.25s ease;
}

.option strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 0.8;
}

.option span {
  color: var(--muted);
  font-size: 9px;
}

.option:hover,
.option.is-selected {
  border-color: var(--gold);
  background: rgba(194, 113, 38, 0.1);
}

.engraving-label {
  display: grid;
  gap: 11px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.engraving-label input,
.engraving-label textarea {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: 28px;
}

.engraving-label input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-hint,
.constructor-result-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.skip-engraving {
  margin-top: 25px;
  padding-bottom: 5px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.summary-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.summary-list li {
  display: flex;
  padding: 14px 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.summary-list strong {
  color: var(--gold-light);
  font-weight: 500;
  text-align: right;
}

#sendRequest,
#sendCustomRequest {
  width: 100%;
  margin-top: 25px;
}

.constructor-navigation {
  display: flex;
  margin-top: auto;
  padding-top: 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav-button {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Карточки материалов рукояти */
.constructor-materials-grid {
  display: grid;
  width: 100%;
  max-height: 445px;
  padding: 2px 5px 12px 0;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.constructor-material-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  flex-direction: column;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 69, 23, 0.12), transparent 42%),
    rgba(17, 15, 13, 0.76);
}

.constructor-material-card .material-card__photo {
  width: auto;
  height: 125px;
  margin: -16px -16px 16px;
  overflow: hidden;
  background: #17130f;
}

.constructor-material-card .material-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.constructor-material-card h2 {
  margin: 13px 0 9px;
  font-size: 25px;
  line-height: 0.95;
}

.constructor-material-card p {
  min-height: 40px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.constructor-material-select {
  width: 100%;
  min-height: 36px;
  margin-top: 15px;
  border: 1px solid rgba(215, 154, 69, 0.55);
  background: rgba(215, 154, 69, 0.08);
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.constructor-material-select:hover,
.constructor-material-select.is-selected {
  border-color: var(--gold-light);
  background: rgba(215, 154, 69, 0.2);
  color: #fff;
}

.constructor-material-card .material-card__open {
  width: 100%;
  min-height: 28px;
  margin-top: 10px;
  font-size: 8px;
}

.constructor-material-card .material-card__open:disabled {
  border-color: rgba(157, 148, 137, 0.35);
  color: var(--muted);
  cursor: not-allowed;
}

/* Общая сетка материалов */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.material-card {
  position: relative;
  display: flex;
  min-height: 245px;
  padding: 25px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 69, 23, 0.12), transparent 42%),
    rgba(17, 15, 13, 0.76);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.material-card::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(215, 154, 69, 0.08);
  border-radius: 50%;
  content: "";
}

.material-card:hover {
  border-color: rgba(215, 154, 69, 0.55);
  transform: translateY(-3px);
}

.material-card[hidden] {
  display: none !important;
}

.material-card__photo {
  position: relative;
  height: 155px;
  margin: -25px -25px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(171, 82, 31, 0.2), transparent 55%),
    #17130f;
}

.material-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.material-card:hover .material-card__photo img {
  opacity: 1;
  transform: scale(1.04);
}

.material-card__photo--empty {
  display: grid;
  padding: 15px;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.material-card__index,
.material-card__tag {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.material-card h2 {
  margin: 20px 0 12px;
  font-size: 34px;
  line-height: 0.9;
}

.material-card p {
  max-width: 390px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.material-card__tag {
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.material-card__open {
  width: fit-content;
  margin-top: 14px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.material-card__open:hover {
  color: #fff;
}

/* Модальное окно галереи материалов */
.material-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.material-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.84);
  backdrop-filter: blur(8px);
}

.material-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  padding: 38px;
  overflow: auto;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 69, 23, 0.15), transparent 38%),
    #100e0c;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
}

.material-modal__close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.6);
  color: var(--gold-light);
  font-size: 28px;
  line-height: 1;
}

.material-modal__dialog h2 {
  margin: 15px 55px 10px 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.9;
}

.material-modal__description {
  max-width: 650px;
  margin: 16px 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.material-modal__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.material-gallery-item {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.material-gallery-item__image {
  height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(171, 82, 31, 0.2), transparent 55%),
    #17130f;
}

.material-gallery-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-gallery-item__image--empty {
  display: grid;
  padding: 12px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.material-gallery-item__caption {
  padding: 12px;
  color: var(--gold-light);
  font-size: 10px;
  line-height: 1.5;
}

.material-gallery-item .constructor-material-select {
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 0 8px;
}

/* Каталог, поиск, общие страницы */
.page-main {
  min-height: 70vh;
  padding-top: 130px;
}

.catalog-hero {
  margin-bottom: 50px;
}

.catalog-hero h1,
.search-page h1,
.favorites-page h1,
.cart-page h1,
.request-page h1 {
  margin: 18px 0;
  font-size: clamp(58px, 8vw, 100px);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.catalog-hero__text,
.search-help,
.request-content__text {
  max-width: 600px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.catalog-results__top,
.favorites-top {
  display: flex;
  margin: 25px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.filter-reset,
.cart-clear {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
  text-transform: uppercase;
}

.search-box {
  position: relative;
  max-width: 720px;
  margin: 35px 0 15px;
}

.search-box input,
.materials-search input {
  width: 100%;
  height: 50px;
  padding: 0 45px 0 16px;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(14, 12, 10, 0.72);
  color: var(--text);
  font-size: 12px;
}

.search-box input:focus,
.materials-search input:focus {
  border-color: var(--gold);
}

.search-box > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--gold-light);
  font-size: 22px;
  transform: translateY(-50%);
}

.empty-state {
  padding: 80px 0;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 18px 0 30px;
}

.search-page,
.catalog-page,
.favorites-page,
.cart-page,
.product-page,
.request-page {
  padding-bottom: 100px;
}

/* Фильтры каталога */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 35px;
}

.catalog-filters {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.catalog-filters h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.catalog-filter-group {
  display: grid;
  margin-bottom: 22px;
  gap: 10px;
}

.catalog-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-filter-group input {
  accent-color: var(--gold);
}

.catalog-filter-group select,
.catalog-sort select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #12100e;
  color: var(--text);
}

.catalog-categories {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-category-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.catalog-category-button.is-active,
.catalog-category-button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

/* Карточки товаров */
.product-card__info {
  padding: 18px;
}

.product-card__info h3 {
  font-size: 29px;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.product-card__price {
  color: var(--gold-light);
  font-weight: 700;
}

.product-card__actions {
  display: flex;
  margin-top: 15px;
  align-items: center;
  gap: 12px;
}

.product-card__actions button {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
}

/* Страница товара */
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold-light);
  font-size: 10px;
  text-transform: uppercase;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 55px;
}

.product-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #13100e;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.product-visual__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(196, 84, 20, 0.22), transparent 55%);
}

.product-visual__number {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  color: var(--gold-light);
}

.product-content h1 {
  margin: 15px 0 25px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.88;
}

.product-content__description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.product-price {
  display: flex;
  margin: 30px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  color: var(--muted);
}

.product-price strong {
  color: var(--gold-light);
  font-size: 20px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-favorite {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 11px;
}

.product-specs {
  margin-top: 45px;
}

.product-specs__row {
  display: flex;
  padding: 13px 0;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.product-specs__row strong {
  color: var(--text);
  text-align: right;
}

.product-related {
  padding-top: 30px;
}

/* Избранное и корзина */
.empty-state .button {
  margin-top: 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 35px;
}

.cart-list {
  display: grid;
  gap: 15px;
}

.cart-item {
  position: relative;
  display: grid;
  padding: 15px;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.cart-item__image {
  height: 150px;
  overflow: hidden;
  background: #17130f;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__content > p,
.cart-item__steel {
  color: var(--muted);
  font-size: 10px;
}

.cart-item__content h3 {
  margin: 8px 35px 6px 0;
  font-size: 28px;
}

.cart-item__bottom {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
}

.cart-item__bottom > strong {
  color: var(--gold-light);
}

.cart-item__remove {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 24px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
}

.cart-summary {
  height: fit-content;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.cart-summary__row {
  display: flex;
  padding: 16px 0;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.cart-summary__row strong {
  color: var(--text);
}

.cart-summary__row--total strong {
  color: var(--gold-light);
}

.cart-summary .button {
  width: 100%;
  margin-top: 20px;
}

.cart-clear {
  margin-top: 14px;
}

/* Форма заявки */
.request-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
}

.request-summary {
  margin-top: 35px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.request-summary__item {
  display: flex;
  padding: 12px 0;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.request-summary__item strong {
  color: var(--gold-light);
  text-align: right;
}

.request-form-wrap {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.request-form-wrap h2 {
  margin: 12px 0 25px;
  font-size: 45px;
}

.request-form {
  display: grid;
  gap: 18px;
}

.request-form > label:not(.consent-check) {
  display: grid;
  gap: 8px;
  color: var(--gold-light);
  font-size: 10px;
  text-transform: uppercase;
}

.request-form input:not([type="checkbox"]),
.request-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(8, 7, 6, 0.7);
  color: var(--text);
}

.request-form textarea {
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.consent-check input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.request-success__text {
  max-width: 500px;
  margin: 0 auto 25px;
  color: var(--muted);
  line-height: 1.8;
}

/* Контакты и подвал */
.contacts {
  padding-bottom: 100px;
  text-align: center;
}

.contacts__grid {
  display: grid;
  margin-top: 55px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contacts__grid a {
  padding: 29px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
  transition: 0.25s ease;
}

.contacts__grid a:hover {
  background: rgba(208, 126, 41, 0.12);
}

.footer {
  display: grid;
  width: min(1280px, calc(100% - 80px));
  margin: auto;
  padding: 35px 0 55px;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.footer strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.1em;
}

.footer__legal {
  max-width: 460px;
}

.footer > span {
  align-self: end;
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Профиль */
.profile-page {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 170px 0 100px;
}

.profile-welcome {
  padding-bottom: 65px;
  border-bottom: 1px solid var(--line);
}

.profile-welcome h1 {
  margin: 18px 0;
  font-size: clamp(58px, 8vw, 100px);
  line-height: 0.85;
}

.profile-welcome h1 em {
  color: var(--gold-light);
}

.profile-welcome > p:last-child {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.profile-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.profile-section__heading {
  display: flex;
  margin-bottom: 30px;
  align-items: center;
  justify-content: space-between;
}

.profile-section__heading h2 {
  font-size: clamp(44px, 6vw, 68px);
}

.profile-count {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
}

.profile-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-product {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.78);
}

.profile-product__image {
  height: 240px;
  background: #15110e;
}

.profile-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-product__info {
  padding: 20px;
}

.profile-product__info h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.profile-product__info p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.profile-product__remove {
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-product__quantity {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.profile-product__quantity button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
}

.profile-empty {
  padding: 25px 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-order {
  margin-top: 28px;
}

/* Страница материалов */
.materials-page {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 145px;
}

.materials-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 25px;
}

.materials-nav a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.materials-nav a:hover,
.materials-nav a[aria-current="page"] {
  color: var(--gold-light);
}

.materials-hero {
  max-width: 850px;
  padding: 75px 0 110px;
}

.materials-hero h1 {
  margin: 22px 0;
  font-size: clamp(72px, 12vw, 150px);
  font-weight: 500;
  line-height: 0.75;
  letter-spacing: -0.06em;
}

.materials-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.materials-hero__description {
  max-width: 560px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.materials-toolbar {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.materials-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.materials-filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.72);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.materials-filter:hover,
.materials-filter.is-active {
  border-color: var(--gold);
  background: rgba(215, 154, 69, 0.12);
  color: var(--gold-light);
}

.materials-search {
  position: relative;
  flex: 0 0 230px;
}

.materials-search input {
  height: 40px;
  padding-left: 13px;
  font-size: 11px;
}

.materials-search input::placeholder {
  color: #80776e;
}

.materials-search > span:last-child {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--gold-light);
  font-size: 20px;
  transform: translateY(-55%);
}

.materials-results {
  min-height: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}

.materials-empty {
  padding: 50px 0;
  color: var(--muted);
  font-size: 13px;
}

.materials-note {
  max-width: 760px;
  margin: 75px 0 100px;
  padding: 25px 28px;
  border-left: 2px solid var(--gold);
  background: rgba(215, 154, 69, 0.06);
}

.materials-note p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Админка */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 35px;
}

.admin-form,
.admin-products {
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(17, 15, 13, 0.75);
}

.admin-form h2,
.admin-products__heading h2 {
  margin: 0 0 25px;
  font-size: 34px;
}

.admin-form label {
  display: grid;
  margin-bottom: 16px;
  gap: 7px;
  color: var(--gold-light);
  font-size: 10px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(8, 7, 6, 0.75);
  color: var(--text);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-products__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.admin-products__heading span {
  color: var(--gold-light);
  font-size: 11px;
}

.admin-product {
  display: flex;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.admin-product > div:first-child {
  display: grid;
  gap: 6px;
}

.admin-product strong {
  font-family: var(--serif);
  font-size: 21px;
}

.admin-product span,
.admin-empty {
  color: var(--muted);
  font-size: 10px;
}

.admin-product__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.admin-product__actions a,
.admin-product__actions button {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 9px;
}

/* Пепел */
.ash {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  overflow: hidden;
  pointer-events: none;
}

.ash--intro {
  position: absolute;
  z-index: 5;
  height: 290px;
}

.ash span {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(213, 195, 166, 0.7);
  box-shadow: 0 0 4px rgba(250, 164, 73, 0.35);
  animation: ashRise linear infinite;
}

.ash span:nth-child(3n) {
  width: 2px;
  height: 2px;
  background: rgba(249, 181, 92, 0.85);
}

.ash span:nth-child(4n) {
  width: 5px;
  height: 2px;
  border-radius: 50% 40% 50% 30%;
  background: rgba(132, 118, 98, 0.66);
}

.ash span:nth-child(1) { left: 2%; animation-duration: 10s; animation-delay: 0s; }
.ash span:nth-child(2) { left: 6%; animation-duration: 12s; animation-delay: 3s; }
.ash span:nth-child(3) { left: 9%; animation-duration: 8s; animation-delay: 1s; }
.ash span:nth-child(4) { left: 13%; animation-duration: 14s; animation-delay: 5s; }
.ash span:nth-child(5) { left: 17%; animation-duration: 9s; animation-delay: 2s; }
.ash span:nth-child(6) { left: 21%; animation-duration: 13s; animation-delay: 7s; }
.ash span:nth-child(7) { left: 25%; animation-duration: 11s; animation-delay: 4s; }
.ash span:nth-child(8) { left: 29%; animation-duration: 8s; animation-delay: 6s; }
.ash span:nth-child(9) { left: 33%; animation-duration: 15s; animation-delay: 0s; }
.ash span:nth-child(10) { left: 37%; animation-duration: 10s; animation-delay: 3s; }
.ash span:nth-child(11) { left: 41%; animation-duration: 12s; animation-delay: 8s; }
.ash span:nth-child(12) { left: 45%; animation-duration: 9s; animation-delay: 2s; }
.ash span:nth-child(13) { left: 49%; animation-duration: 14s; animation-delay: 5s; }
.ash span:nth-child(14) { left: 53%; animation-duration: 8s; animation-delay: 1s; }
.ash span:nth-child(15) { left: 57%; animation-duration: 11s; animation-delay: 7s; }
.ash span:nth-child(16) { left: 61%; animation-duration: 13s; animation-delay: 3s; }
.ash span:nth-child(17) { left: 65%; animation-duration: 9s; animation-delay: 6s; }
.ash span:nth-child(18) { left: 69%; animation-duration: 15s; animation-delay: 1s; }
.ash span:nth-child(19) { left: 73%; animation-duration: 10s; animation-delay: 5s; }
.ash span:nth-child(20) { left: 77%; animation-duration: 12s; animation-delay: 2s; }
.ash span:nth-child(21) { left: 81%; animation-duration: 8s; animation-delay: 7s; }
.ash span:nth-child(22) { left: 84%; animation-duration: 14s; animation-delay: 4s; }
.ash span:nth-child(23) { left: 87%; animation-duration: 10s; animation-delay: 0s; }
.ash span:nth-child(24) { left: 90%; animation-duration: 13s; animation-delay: 6s; }
.ash span:nth-child(25) { left: 93%; animation-duration: 9s; animation-delay: 3s; }
.ash span:nth-child(26) { left: 96%; animation-duration: 15s; animation-delay: 8s; }
.ash span:nth-child(27) { left: 12%; animation-duration: 11s; animation-delay: 5s; }
.ash span:nth-child(28) { left: 32%; animation-duration: 13s; animation-delay: 1s; }
.ash span:nth-child(29) { left: 51%; animation-duration: 8s; animation-delay: 4s; }
.ash span:nth-child(30) { left: 70%; animation-duration: 14s; animation-delay: 7s; }
.ash span:nth-child(31) { left: 88%; animation-duration: 10s; animation-delay: 2s; }
.ash span:nth-child(32) { left: 23%; animation-duration: 12s; animation-delay: 8s; }
.ash span:nth-child(33) { left: 43%; animation-duration: 9s; animation-delay: 0s; }
.ash span:nth-child(34) { left: 63%; animation-duration: 15s; animation-delay: 3s; }
.ash span:nth-child(35) { left: 79%; animation-duration: 11s; animation-delay: 6s; }
.ash span:nth-child(36) { left: 5%; animation-duration: 13s; animation-delay: 4s; }
.ash span:nth-child(37) { left: 38%; animation-duration: 8s; animation-delay: 2s; }
.ash span:nth-child(38) { left: 58%; animation-duration: 14s; animation-delay: 5s; }
.ash span:nth-child(39) { left: 74%; animation-duration: 10s; animation-delay: 1s; }
.ash span:nth-child(40) { left: 99%; animation-duration: 12s; animation-delay: 7s; }

@keyframes ashRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.55);
  }

  12% {
    opacity: 0.86;
  }

  55% {
    transform: translate3d(24px, -125px, 0) rotate(140deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-38px, -265px, 0) rotate(320deg) scale(1.55);
  }
}

.embers {
  position: fixed;
  z-index: 79;
  right: 0;
  bottom: 0;
  left: 0;
  height: 360px;
  overflow: hidden;
  pointer-events: none;
}

.embers i {
  position: absolute;
  bottom: -15px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #f5aa50;
  box-shadow: 0 0 7px #e85e17;
  opacity: 0;
  animation: emberFloat 6s ease-in infinite;
}

.embers i:nth-child(1) { left: 5%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 13%; animation-delay: 1.3s; }
.embers i:nth-child(3) { left: 20%; animation-delay: 3.2s; }
.embers i:nth-child(4) { left: 29%; animation-delay: 0.6s; }
.embers i:nth-child(5) { left: 38%; animation-delay: 2.4s; }
.embers i:nth-child(6) { left: 46%; animation-delay: 4.2s; }
.embers i:nth-child(7) { left: 55%; animation-delay: 1.8s; }
.embers i:nth-child(8) { left: 61%; animation-delay: 3.8s; }
.embers i:nth-child(9) { left: 68%; animation-delay: 0.9s; }
.embers i:nth-child(10) { left: 74%; animation-delay: 2.8s; }
.embers i:nth-child(11) { left: 80%; animation-delay: 4.6s; }
.embers i:nth-child(12) { left: 87%; animation-delay: 1.1s; }
.embers i:nth-child(13) { left: 94%; animation-delay: 3.5s; }
.embers i:nth-child(14) { left: 33%; animation-delay: 5s; }
.embers i:nth-child(15) { left: 51%; animation-delay: 2s; }
.embers i:nth-child(16) { left: 17%; animation-delay: 4s; }
.embers i:nth-child(17) { left: 72%; animation-delay: 5.3s; }
.embers i:nth-child(18) { left: 43%; animation-delay: 0.3s; }
.embers i:nth-child(19) { left: 90%; animation-delay: 2.1s; }
.embers i:nth-child(20) { left: 8%; animation-delay: 4.8s; }

@keyframes emberFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.5);
  }

  15% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate3d(55px, -330px, 0) scale(1.3);
  }
}

/* Уведомления */
.toast {
  position: fixed;
  z-index: 1300;
  right: 25px;
  bottom: 25px;
  max-width: 290px;
  padding: 15px 18px;
  border: 1px solid var(--gold);
  background: #1a130d;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  color: var(--gold-light);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимации заставки */
@keyframes pulse {
  50% {
    opacity: 0.65;
    transform: scale(1.15);
  }
}

@keyframes logoBreathe {
  50% {
    filter: brightness(1.25) drop-shadow(0 0 18px rgba(229, 147, 58, 0.32));
  }
}

@keyframes burnAway {
  0% {
    clip-path: inset(0);
    opacity: 1;
    filter: brightness(1);
  }

  45% {
    filter: brightness(2.2) saturate(1.5);
  }

  100% {
    clip-path: polygon(0 100%, 8% 60%, 16% 90%, 23% 42%, 32% 85%, 42% 20%, 54% 78%, 65% 35%, 75% 92%, 88% 48%, 100% 100%);
    opacity: 0;
    transform: translateY(90px) scale(1.06);
    filter: brightness(2.7) blur(5px);
  }
}

/* Планшеты */
@media (max-width: 1050px) {
  .constructor-app,
  .constructor-main {
    grid-template-columns: 1fr;
  }

  .constructor-steps {
    display: grid;
    padding: 15px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step {
    justify-content: center;
    font-size: 16px;
  }

  .step > span:first-child {
    display: none;
  }

  .constructor-preview {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .constructor-controls {
    min-width: 0;
  }

  .profile-products,
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .materials-search {
    width: min(100%, 360px);
    flex-basis: auto;
  }

  .materials-nav {
    gap: 13px;
  }

  .materials-nav a {
    font-size: 8px;
  }

  .knife-grid,
  .product-grid {
    max-width: 520px;
    margin: auto;
    grid-template-columns: 1fr;
  }

  .knife-card__image,
  .product-card__image {
    height: 500px;
  }

  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__knife {
    right: -5%;
    opacity: 0.55;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* Телефоны и небольшие окна */
@media (max-width: 700px) {
  .header .header__account {
    margin-left: auto;
    margin-right: 10px;
    gap: 6px;
  }

  .header .header__account-link {
    min-height: 38px;
    padding: 0 9px;
    font-size: 8px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 650px) {
  .material-modal {
    padding: 12px;
  }

  .material-modal__dialog {
    padding: 28px 18px;
  }

  .material-modal__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .material-gallery-item__image {
    height: 145px;
  }
}

@media (max-width: 600px) {
  .section {
    width: min(100% - 38px, 1280px);
    padding: 85px 0;
  }

  .header {
    left: 0;
    width: 100%;
    padding: 18px 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark,
  .header .brand__logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__text {
    gap: 5px;
  }

  .brand__text strong {
    font-size: 24px;
  }

  .brand__text small {
    font-size: 5px;
  }

  .language-switcher {
    margin-right: 10px;
  }

  .language-switcher select {
    min-width: 52px;
    padding: 8px 6px;
    font-size: 9px;
  }

  .language-button {
    min-width: 58px;
    min-height: 38px;
    padding: 0 9px;
    font-size: 10px;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .menu {
    padding: 100px 28px 35px;
  }

  .menu__close {
    right: 28px;
  }

  .age-modal__buttons,
  .hero__buttons {
    flex-direction: column;
  }

  .age-modal__buttons .button,
  .hero__buttons .button {
    width: 100%;
  }

  .hero {
    min-height: 100svh;
    padding: 80px 19px 70px;
    align-items: end;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 78px);
  }

  .hero__knife {
    top: 95px;
    right: -25%;
    width: 75vw;
    height: 440px;
    opacity: 0.4;
  }

  .hero__scroll {
    display: none;
  }

  h2 {
    font-size: 58px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    display: inline-block;
    margin-top: 30px;
  }

  .knife-card__image,
  .product-card__image {
    height: 390px;
  }

  .video-section {
    width: 100%;
  }

  .video-placeholder {
    min-height: 500px;
    padding: 30px;
  }

  .play-button {
    width: 65px;
    height: 65px;
  }

  .constructor__description {
    margin-top: 25px;
  }

  .constructor-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .constructor-preview {
    min-height: 390px;
    padding: 24px 14px 18px;
  }

  .custom-knife-svg {
    max-height: 280px;
  }

  .constructor-preview__layers,
  .constructor-layers {
    gap: 6px;
  }

  .constructor-preview__layers .constructor-layer,
  .constructor-layers .constructor-layer {
    padding: 6px 8px;
    font-size: 9px;
  }

  .constructor-controls {
    min-height: 540px;
    padding: 38px 22px 22px;
  }

  .control-panel h3 {
    font-size: 38px;
  }

  .constructor-materials-grid {
    max-height: 420px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .constructor-material-card .material-card__photo {
    height: 120px;
  }

  .contacts__grid,
  .footer,
  .admin-layout,
  .request-layout,
  .product-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .footer {
    width: calc(100% - 38px);
    gap: 20px;
  }

  .profile-page,
  .materials-page {
    width: calc(100% - 38px);
  }

  .profile-page {
    padding-top: 130px;
  }

  .profile-products,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .profile-product__image {
    height: 280px;
  }

  .profile-section {
    padding: 50px 0;
  }

  .materials-page {
    padding-top: 110px;
  }

  .materials-nav {
    display: none;
  }

  .materials-hero {
    padding: 65px 0 75px;
  }

  .materials-hero h1 {
    font-size: clamp(72px, 18vw, 105px);
  }

  .materials-hero__description {
    font-size: 12px;
  }

  .material-card {
    min-height: 220px;
  }

  .materials-note {
    margin: 55px 0 75px;
  }

  .material-modal__gallery {
    grid-template-columns: 1fr;
  }

  .material-gallery-item__image {
    height: 200px;
  }

  .product-visual,
  .product-visual img {
    min-height: 380px;
  }

  .cart-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item__image {
    height: 120px;
  }

  .request-form-wrap {
    padding: 22px;
  }

  .admin-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toast {
    right: 19px;
    bottom: 19px;
    left: 19px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .material-modal__gallery {
    grid-template-columns: 1fr;
  }

  .material-gallery-item__image {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ash span,
  .ash::before {
    animation: none;
  }

  .ash span {
    opacity: 0.35;
  }
}

/* =========================================
   PHOENIX — АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ
   Добавить в конец style.css
========================================= */

html,
body {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

#app,
.site,
main {
  width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  /* Общие отступы и заголовки */
  .section {
    width: calc(100% - 36px);
    padding: 76px 0;
  }

  .hero {
    width: 100%;
    min-height: 100svh;
    padding: 105px 20px 70px;
    align-items: end;
  }

  .hero__content {
    width: 100%;
    padding-top: 0;
  }

  .hero h1,
  .catalog-hero h1,
  .product-content h1,
  .request-content h1 {
    font-size: clamp(48px, 12vw, 76px);
    overflow-wrap: anywhere;
  }

  .hero__description,
  .catalog-hero__text,
  .request-content__text {
    max-width: 100%;
    font-size: 13px;
  }

  .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__buttons .button {
    width: 100%;
  }

  .hero__knife {
    top: 90px;
    right: -18%;
    width: 65vw;
    height: 42vh;
    opacity: 0.42;
    pointer-events: none;
  }

  .hero__scroll {
    display: none;
  }

  /* Шапка и раскрывающееся меню */
  .header {
    width: calc(100% - 32px);
    padding: 14px 0;
  }

  .menu {
    top: 0;
    right: -100%;
    width: min(420px, 100%);
    height: 100vh;
    height: 100dvh;
    padding: 90px 28px 28px;
    overflow-y: auto;
  }

  .menu.is-open {
    right: 0;
  }

  .menu__close {
    top: 18px;
    right: 24px;
  }

  .menu__link {
    font-size: clamp(28px, 8vw, 38px);
  }

  /* Карточки коллекции и каталога */
  .knife-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .knife-card__image {
    height: min(112vw, 470px);
  }

  .knife-card__info h3 {
    font-size: 30px;
  }

  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 32px;
  }

  .text-link {
    display: inline-flex;
  }

  /* Видео */
  .video-section.section {
    width: 100%;
  }

  .video-placeholder {
    min-height: 440px;
    padding: 28px 20px;
  }

  .video-placeholder h2 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .video-placeholder__forge {
    right: 5%;
    font-size: clamp(34px, 10vw, 65px);
  }

  .play-button {
    width: 64px;
    height: 64px;
  }

  /* Конструктор: шаги, предпросмотр и управление */
  .constructor-app {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .constructor-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .constructor-steps .step {
    min-width: 0;
    justify-content: center;
    padding: 10px 4px;
    font-size: 15px;
    text-align: center;
  }

  .constructor-steps .step span {
    display: none;
  }

  .constructor-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .constructor-preview {
    width: 100%;
    min-width: 0;
    min-height: clamp(250px, 68vw, 390px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* SVG масштабируется целиком — пропорции ножа и рукояти сохраняются */
  .custom-knife-svg {
    display: block;
    width: min(100%, 620px);
    height: auto;
    max-height: 390px;
    margin: auto;
  }

  .constructor-preview__layers {
    display: flex;
    max-width: calc(100% - 20px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .constructor-layer {
    padding: 6px 8px;
    font-size: 10px;
  }

  .constructor-controls {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 30px 18px 22px;
  }

  .control-panel h3 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .constructor-materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .material-card {
    min-width: 0;
  }

  .material-card__photo {
    width: 100%;
    overflow: hidden;
  }

  .material-card__photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .constructor-navigation {
    gap: 12px;
    align-items: center;
  }

  .constructor-navigation .nav-button {
    min-height: 42px;
  }

  /* Каталог и фильтры */
  .catalog-categories {
    display: flex;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .catalog-category {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-filters {
    width: 100%;
    min-width: 0;
  }

  .catalog-results,
  .catalog-results #catalogProducts {
    min-width: 0;
  }

  .catalog-results__top {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Страницы товара, корзины и заявки */
  .product-layout,
  .cart-layout,
  .request-layout,
  .admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-visual {
    min-height: 280px;
  }

  .product-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-actions .button {
    width: 100%;
  }

  .cart-item {
    min-width: 0;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .cart-item__image {
    width: 82px;
    height: 92px;
  }

  .cart-item__bottom {
    flex-wrap: wrap;
    gap: 10px;
  }

  .request-form-wrap,
  .request-form,
  .admin-form {
    min-width: 0;
    width: 100%;
  }

  .request-form input,
  .request-form textarea,
  .admin-form input,
  .admin-form textarea,
  .admin-form select {
    max-width: 100%;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .contacts__grid a {
    overflow-wrap: anywhere;
  }

  .footer {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Модальное окно фотографий материалов */
  .material-modal {
    padding: 12px;
  }

  .material-modal__dialog {
    width: 100%;
    max-height: 90dvh;
    padding: 24px 16px;
    overflow-y: auto;
  }

  .material-modal__gallery {
    grid-template-columns: 1fr;
  }

  /* Возрастное окно и заставка */
  .age-modal {
    padding: 18px;
  }

  .age-modal__content {
    width: 100%;
  }

  .age-modal__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .age-modal__buttons .button {
    width: 100%;
  }

  .intro__logo-wrap {
    width: min(82vw, 420px);
  }

  .introVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Уменьшаем движение для устройств с настройкой reduced motion */
  .ash {
    height: 110px;
  }
}

@media (max-width: 420px) {
  .section {
    width: calc(100% - 28px);
    padding: 62px 0;
  }

  .constructor-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .constructor-controls {
    padding-right: 14px;
    padding-left: 14px;
  }

  .constructor-layer {
    font-size: 9px;
  }

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .cart-item__image {
    width: 68px;
    height: 78px;
  }

  .video-placeholder {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Исправление позиционирования шапки и навигации */
.header {
  position: fixed !important;
  z-index: 2000 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px max(16px, calc((100vw - 1380px) / 2)) !important;
  transform: none !important;
}

/* Кнопка открытия меню */
#menuToggle {
  position: relative !important;
  z-index: 2002 !important;
  display: grid !important;
  flex: 0 0 50px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Закрытое боковое меню */
#menu {
  position: fixed !important;
  z-index: 2001 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  width: min(420px, 100vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 90px 28px 28px !important;
  box-sizing: border-box !important;
  flex-direction: column !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #11100f !important;

  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(105%) !important;

  transition:
    transform 0.35s ease,
    visibility 0.35s ease !important;
}

/* Открытое боковое меню — класс добавляется из app.js */
#menu.is-open {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

/* Пункты навигации */
#menu .menu__link {
  display: flex !important;
  min-height: 54px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #eee7db !important;
}

/* Содержимое пунктов, включая переведённые подписи */
#menu .menu__link span {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #d79a45 !important;
}

/* На телефоне панель занимает всю ширину */
  .header__account {
    display: none !important;
  }

  #menu {
    width: 100vw !important;
    padding: 86px 24px 28px !important;
  }

  #menu .menu__link {
    min-height: 56px !important;
    font-size: 30px !important;
  }
}

.products-message {
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

#cartCount,
#favoriteCount,
#favoritesCount {
  display: none !important;
}

/* Скрыть счётчики только у пунктов корзины и избранного */
#menu #cartCount,
#menu #favoriteCount,
#menu #favoritesCount,
#menu .menu__link[data-action="cart"] > span,
#menu .menu__link[data-action="favorites"] > span,
#menu .menu__link[data-action="favorite"] > span,
#menu .menu__link[data-menu="cart"] > span,
#menu .menu__link[data-menu="favorites"] > span,
#menu .menu__link[data-route="cart"] > span,
#menu .menu__link[data-route="favorites"] > span {
  display: none !important;
}

/* Временно скрываем лишний декор рукояти, больстер оставляем */
#customKnife #customHandleHighlight,
#customKnife #customRivets,
#customKnife #customRivet1Center,
#customKnife #customRivet2,
#customKnife #customRivet2Center,
#customKnife #customRivet3,
#customKnife #customRivet3Center,
#customKnife circle[cx="504"][cy="220"][r="2"],
#customKnife circle[cx="614"][cy="133"][r="2"] {
  display: none !important;
}

.hero__knife-image {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 8%;
  width: min(38vw, 620px);
  height: min(78vh, 820px);
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 35px rgba(217, 105, 27, 0.22));
  pointer-events: none;
}

@media (max-width: 950px) {
  .hero__knife-image {
    right: -3%;
    width: min(48vw, 500px);
    opacity: 0.75;
  }
}

@media (max-width: 600px) {
  .hero__knife-image {
    top: 15%;
    right: -12%;
    width: 78vw;
    height: 48vh;
    opacity: 0.55;
    transform: none;
  }
}

/* Финальные мобильные поправки */
@media (max-width: 600px) {
  /* Шапка: помещаем элементы в одну строку */
  .header {
    left: 0;
    width: 100%;
    padding: 10px 12px !important;
    gap: 8px;
    transform: none;
    background: rgba(9, 8, 7, 0.94);
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand__mark,
  .brand__mark img,
  .header .brand__logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand__text strong {
    font-size: 18px;
    line-height: 1;
  }

  .brand__text small {
    font-size: 5px;
    letter-spacing: 0.1em;
  }

  .header .header__account {
    display: none;
  }

  .language-switcher {
    margin-right: 4px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  /* Первый экран */
  #app .hero {
    min-height: 100svh;
    padding: 100px 18px 45px;
    align-items: flex-end;
  }

  #app .hero__content {
    z-index: 4;
    width: 100%;
    max-width: none;
  }

  #app .hero h1 {
    font-size: clamp(42px, 11.5vw, 60px);
    line-height: 0.92;
  }

  #app .hero__description {
    max-width: 100%;
    font-size: 13px;
  }

  #app .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #app .hero__buttons .button {
    width: 100%;
  }

  /* Карусель ножей — на случай, если она используется в renderHome() */
  #app .hero__carousel {
    position: absolute;
    z-index: 1;
    top: 72px;
    right: 0;
    left: 0;
    width: 100%;
    height: 46%;
    opacity: 0.8;
    transform: none;
  }

  #app .hero__carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  #app .hero__carousel-dots {
    bottom: 0;
    z-index: 2;
  }

  /* Одиночное изображение, если карусель пока не подключена */
  #app .hero__knife-image {
    top: 72px;
    right: 0;
    width: 100%;
    height: 46%;
    object-fit: contain;
    object-position: center;
    opacity: 0.8;
    transform: none;
  }

  /* Внутренние страницы, формируемые через #app */
  #app .catalog-page,
  #app .search-page,
  #app .favorites-page,
  #app .cart-page,
  #app .product-page,
  #app .product-related,
  #app .admin-page {
    width: calc(100% - 36px);
    max-width: none;
  }

  #app .catalog-page,
  #app .search-page,
  #app .favorites-page,
  #app .cart-page {
    padding-top: 115px;
  }

  #app .catalog-layout,
  #app .product-layout,
  #app .cart-layout,
  #app .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .catalog-page .knife-grid,
  #app .search-page .knife-grid,
  #app .product-related .knife-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .catalog-page .knife-card__image,
  #app .search-page .knife-card__image,
  #app .product-related .knife-card__image {
    height: clamp(300px, 100vw, 410px);
  }

  /* Конструктор */
  #app .constructor-app,
  #app .constructor-main {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .constructor-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  #app .constructor-preview {
    min-height: 300px;
    padding: 12px;
  }

  #app .custom-knife-svg {
    width: 100%;
    height: auto;
  }

  #app .constructor-controls {
    min-height: 0;
    padding: 28px 16px 20px;
  }

  #app .constructor-materials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  /* Компактная шапка */
  .header {
    left: 0 !important;
    width: 100% !important;
    min-height: 64px;
    padding: 8px 12px !important;
    gap: 8px;
    transform: none !important;
    background: rgba(9, 8, 7, 0.96);
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand__mark,
  .brand__mark img,
  .header .brand__logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand__text strong {
    font-size: 18px;
    line-height: 1;
  }

  .brand__text small {
    font-size: 5px;
  }

  .header .header__account {
    display: none !important;
  }

  .language-switcher {
    margin: 0 4px 0 auto;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  /* Главный экран */
  #app .hero {
    min-height: 100svh;
    padding: 100px 18px 42px;
    align-items: flex-end;
  }

  #app .hero__content {
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    max-width: none;
    visibility: visible;
    opacity: 1;
  }

  #app .hero h1 {
    font-size: clamp(42px, 11.5vw, 60px);
    line-height: 0.92;
  }

  #app .hero__description {
    max-width: 100%;
    font-size: 13px;
  }

  #app .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  /* Карусель: целое изображение помещается в экран */
  #app .hero__carousel {
    top: 72px;
    right: 0;
    left: 0;
    width: 100%;
    height: 44%;
    opacity: 0.8;
    transform: none;
  }

  #app .hero__carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  /* Если вместо карусели используется одиночный PNG */
  #app .hero__knife-image {
    top: 72px;
    right: 0;
    width: 100%;
    height: 44%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
}

@media (max-width: 600px) {
  /* Компактная шапка */
  .header {
    left: 0 !important;
    width: 100% !important;
    min-height: 64px;
    padding: 8px 12px !important;
    gap: 8px;
    transform: none !important;
    background: rgba(9, 8, 7, 0.96);
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand__mark,
  .brand__mark img,
  .header .brand__logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand__text strong {
    font-size: 18px;
    line-height: 1;
  }

  .brand__text small {
    font-size: 5px;
  }

  .header .header__account {
    display: none !important;
  }

  .language-switcher {
    margin: 0 4px 0 auto;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  /* Главный экран */
  #app .hero {
    min-height: 100svh;
    padding: 100px 18px 42px;
    align-items: flex-end;
  }

  #app .hero__content {
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    max-width: none;
    visibility: visible;
    opacity: 1;
  }

  #app .hero h1 {
    font-size: clamp(42px, 11.5vw, 60px);
    line-height: 0.92;
  }

  #app .hero__description {
    max-width: 100%;
    font-size: 13px;
  }

  #app .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  /* Карусель: целое изображение помещается в экран */
  #app .hero__carousel {
    top: 72px;
    right: 0;
    left: 0;
    width: 100%;
    height: 44%;
    opacity: 0.8;
    transform: none;
  }

  #app .hero__carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  /* Если вместо карусели используется одиночный PNG */
  #app .hero__knife-image {
    top: 72px;
    right: 0;
    width: 100%;
    height: 44%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
}

@media (max-width: 600px) {
  /* Шапка: оставляем логотип, язык и кнопку меню */
  .header {
    left: 0 !important;
    width: 100% !important;
    padding: 8px 12px !important;
    gap: 8px;
    transform: none !important;
    background: rgba(9, 8, 7, 0.96);
  }

  .header .header__account {
    display: none !important;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand__mark,
  .brand__mark img,
  .header .brand__logo {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  .brand__text strong {
    font-size: 18px !important;
    line-height: 1;
  }

  .brand__text small {
    font-size: 5px !important;
    letter-spacing: 0.1em;
  }

  .language-switcher {
    flex: 0 0 auto;
    margin: 0 4px 0 auto !important;
  }

  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  /* Главный экран и порядок слоёв */
  #app .hero {
    width: 100%;
    min-height: 100svh;
    padding: 96px 18px 38px !important;
    align-items: flex-end;
    overflow: hidden;
  }

  #app .hero::before {
    z-index: 0;
  }

  #app .hero__fire,
  #app .hero__grid {
    z-index: 0;
    pointer-events: none;
  }

  /* В renderHome() используется именно .hero__carousel */
  #app .hero__carousel {
    position: absolute;
    z-index: 1;
    top: 72px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 42% !important;
    opacity: 0.78;
    transform: none !important;
    pointer-events: none;
  }

  #app .hero__carousel-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
  }

  #app .hero__carousel-dots {
    z-index: 2;
    bottom: 0 !important;
    pointer-events: auto;
  }

  /* Текст и кнопки поверх изображения */
  #app .hero__content {
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    visibility: visible;
    opacity: 1;
  }

  #app .hero__content h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 10.5vw, 48px) !important;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  #app .hero__description {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
  }

  #app .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  #app .hero__buttons .button {
    width: 100%;
    min-height: 46px;
  }

  #app .hero__scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Шапка: оставляем логотип, язык и кнопку меню */
  .header {
    left: 0 !important;
    width: 100% !important;
    padding: 8px 12px !important;
    gap: 8px;
    transform: none !important;
    background: rgba(9, 8, 7, 0.96);
  }

  .header .header__account {
    display: none !important;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand__mark,
  .brand__mark img,
  .header .brand__logo {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  .brand__text strong {
    font-size: 18px !important;
    line-height: 1;
  }

  .brand__text small {
    font-size: 5px !important;
    letter-spacing: 0.1em;
  }

  .language-switcher {
    flex: 0 0 auto;
    margin: 0 4px 0 auto !important;
  }

  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  /* Главный экран и порядок слоёв */
  #app .hero {
    width: 100%;
    min-height: 100svh;
    padding: 96px 18px 38px !important;
    align-items: flex-end;
    overflow: hidden;
  }

  #app .hero::before {
    z-index: 0;
  }

  #app .hero__fire,
  #app .hero__grid {
    z-index: 0;
    pointer-events: none;
  }

  /* В renderHome() используется именно .hero__carousel */
  #app .hero__carousel {
    position: absolute;
    z-index: 1;
    top: 72px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 42% !important;
    opacity: 0.78;
    transform: none !important;
    pointer-events: none;
  }

  #app .hero__carousel-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
  }

  #app .hero__carousel-dots {
    z-index: 2;
    bottom: 0 !important;
    pointer-events: auto;
  }

  /* Текст и кнопки поверх изображения */
  #app .hero__content {
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    visibility: visible;
    opacity: 1;
  }

  #app .hero__content h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 10.5vw, 48px) !important;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  #app .hero__description {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
  }

  #app .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  #app .hero__buttons .button {
    width: 100%;
    min-height: 46px;
  }

  #app .hero__scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Шапка в две строки: бренд и управление сверху, аккаунт снизу */
  .header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand language menu"
      "account account account";
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    width: calc(100% - 24px) !important;
    padding: 8px 0 !important;
  }

  .header > .brand {
    grid-area: brand;
    min-width: 0;
  }

  .header > .language-switcher {
    position: relative;
    grid-area: language;
    margin: 0 !important;
  }

  .header > .menu-toggle {
    grid-area: menu;
    width: 38px !important;
    height: 38px !important;
  }

  /* Показываем вход/регистрацию либо профиль/выход */
  .header > .header__account {
    grid-area: account;
    display: flex !important;
    visibility: visible !important;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .header__account-link {
    display: inline-flex !important;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 203, 132, 0.4);
    color: var(--text);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .header__account-link--register {
    border-color: var(--gold);
    color: var(--gold-light);
  }

  /* Делаем список языков шире и не переносим названия */
  .language-dropdown {
    position: absolute;
    z-index: 200;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 205px !important;
    min-width: 205px !important;
    max-width: calc(100vw - 24px);
    max-height: 60vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .language-option {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px !important;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Цена товара и скидка */
.product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
}

.product-price__current {
  color: var(--gold-light, #f5cb84);
  font-size: 18px;
  font-weight: 700;
}

.product-price__old {
  color: #9d9489;
  font-size: 13px;
  text-decoration: line-through;
}

.product-price__badge {
  padding: 5px 8px;
  border: 1px solid rgba(201, 72, 25, 0.65);
  background: rgba(201, 72, 25, 0.16);
  color: #ffb16a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 12px 0;
}

.product-price__current {
  color: var(--gold-light, #f5cb84);
  font-size: 18px;
  font-weight: 700;
}

.product-price__old {
  color: var(--muted, #9d9489);
  font-size: 13px;
  text-decoration: line-through;
}

.product-price__badge {
  padding: 4px 8px;
  border: 1px solid rgba(201, 72, 25, .65);
  background: rgba(201, 72, 25, .16);
  color: #ffb16a;
  font-size: 10px;
  font-weight: 700;
}

.product-detail-price {
  display: grid;
  gap: 5px;
  margin: 24px 0;
}

.product-detail-price__label {
  color: var(--muted, #9d9489);
  font-size: 12px;
}

.product-detail-price .product-price {
  margin: 0;
}

/* Цена на странице товара — крупная и контрастная */
.product-detail-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 30px 0 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(236, 205, 156, 0.22);
  border-bottom: 1px solid rgba(236, 205, 156, 0.22);
}

.product-detail-price__label {
  color: var(--text, #eee7db);
  font-size: 15px;
}

.product-detail-price .product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0;
}

.product-detail-price .product-price__current {
  color: var(--gold-light, #f5cb84);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.product-detail-price .product-price__old {
  color: #c2b5a5;
  font-size: 16px;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-detail-price .product-price__badge {
  padding: 5px 9px;
  border: 1px solid rgba(255, 158, 76, 0.75);
  background: rgba(201, 72, 25, 0.25);
  color: #ffc080;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Цены в карточках каталога */
.knife-card__info .product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: baseline;
  margin: 12px 0;
}

.knife-card__info .product-price__current {
  color: var(--gold-light, #f5cb84);
  font-family: var(--serif, Georgia, serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.knife-card__info .product-price__old {
  color: #b9aea2;
  font-size: 14px;
  text-decoration: line-through;
}

.knife-card__info .product-price__badge {
  padding: 4px 7px;
  border: 1px solid rgba(255, 158, 76, 0.75);
  background: rgba(201, 72, 25, 0.25);
  color: #ffc080;
  font-size: 11px;
  font-weight: 700;
}

/* Компактная раскладка на телефоне */
@media (max-width: 600px) {
  .product-detail-price {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-detail-price .product-price {
    justify-content: flex-start;
  }
}

/* Цена со скидкой на странице товара */
#app .product-detail-price {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 24px;
  margin: 28px 0 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(236, 205, 156, 0.25);
  border-bottom: 1px solid rgba(236, 205, 156, 0.25);
}

#app .product-detail-price__label {
  color: #eee7db;
  font-size: 16px;
  font-weight: 500;
}

#app .product-detail-price .product-price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  margin: 0;
}

#app .product-detail-price .product-price__current {
  color: #ffd18b !important;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#app .product-detail-price .product-price__old {
  color: #b9aea2 !important;
  font-size: 16px !important;
  text-decoration: line-through;
  white-space: nowrap;
}

#app .product-detail-price .product-price__badge {
  padding: 7px 10px;
  border: 1px solid #d97837;
  background: rgba(201, 72, 25, 0.25);
  color: #ffc080 !important;
  font-size: 13px !important;
  font-weight: 700;
  white-space: nowrap;
}

/* Цена в карточках каталога */
#app .knife-card__info .product-price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 12px 0;
}

#app .knife-card__info .product-price__current {
  color: #ffd18b !important;
  font-size: 24px !important;
  font-weight: 700;
}

#app .knife-card__info .product-price__old {
  color: #b9aea2 !important;
  font-size: 14px !important;
  text-decoration: line-through;
}

#app .knife-card__info .product-price__badge {
  padding: 5px 8px;
  border: 1px solid #d97837;
  background: rgba(201, 72, 25, 0.25);
  color: #ffc080 !important;
  font-size: 11px !important;
  font-weight: 700;
}

@media (max-width: 600px) {
  #app .product-detail-price {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #app .product-detail-price .product-price {
    justify-content: flex-start;
  }
}

.knife-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.buy-now {
  color: var(--gold-light);
}

.knife-card__actions .buy-now {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.knife-card__actions .buy-now:hover {
  color: #fff0d6;
}

@media (max-width: 600px) {
  .knife-card__actions {
    justify-content: flex-start;
  }
}

/* Галерея товара: фиксированная область и PNG целиком */
#app .product-visual.product-gallery {
  display: flex;
  width: 100%;
  height: 560px;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
}

#app .product-gallery__main {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  overflow: hidden;
}

#app .product-gallery__main > img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 28px;
  object-fit: contain;
  object-position: center;
}

/* У прозрачных PNG не обрезаем края и сохраняем пропорции */
#app .product-gallery__main.product-gallery__main--png > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

/* Кнопки переключения фотографий */
#app .product-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(245, 203, 132, 0.55);
  border-radius: 50%;
  background: rgba(8, 7, 6, 0.72);
  color: #f5cb84;
  font-size: 23px;
  line-height: 1;
  transform: translateY(-50%);
}

#app .product-gallery__arrow--prev {
  left: 16px;
}

#app .product-gallery__arrow--next {
  right: 16px;
}

#app .product-gallery__counter {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(245, 203, 132, 0.3);
  background: rgba(8, 7, 6, 0.72);
  color: #f5cb84;
  font-size: 11px;
}

/* Мобильный размер галереи */
@media (max-width: 700px) {
  #app .product-visual.product-gallery {
    height: 360px;
  }

  #app .product-gallery__main > img,
  #app .product-gallery__main.product-gallery__main--png > img {
    padding: 18px;
  }

  #app .product-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  #app .product-gallery__arrow--prev {
    left: 10px;
  }

  #app .product-gallery__arrow--next {
    right: 10px;
  }
}

/* Каталог: показываем изображение целиком и отключаем обрезающее увеличение */
#app .knife-card__image {
  position: relative;
  display: grid;
  width: 100%;
  height: 360px;
  place-items: center;
  overflow: hidden;
}

#app .knife-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

/* При наведении не увеличиваем PNG за границы карточки */
#app .knife-card:hover .knife-card__image img {
  transform: none !important;
}

@media (max-width: 600px) {
  #app .knife-card__image {
    height: 300px;
  }

  #app .knife-card__image img {
    padding: 14px;
  }
}

.auth-card .password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-card .password-toggle svg.password-toggle__eye-off {
    display: none;
}

.auth-card .password-toggle[aria-pressed="true"] svg.password-toggle__eye {
    display: none;
}

.auth-card .password-toggle[aria-pressed="true"] svg.password-toggle__eye-off {
    display: block;
}

.profile-form {
  display: grid;
  width: min(100%, 620px);
  gap: 18px;
  margin-top: 24px;
}

.profile-form label {
  display: grid;
  gap: 8px;
}

.profile-form label span {
  color: var(--gold-light, #f5cb84);
  font-size: 12px;
}

.profile-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(236, 205, 156, 0.25);
  background: rgba(9, 8, 7, 0.8);
  color: var(--text, #eee7db);
}

.profile-form input:focus {
  border-color: var(--gold, #d79a45);
  outline: none;
}

.profile-form input[readonly] {
  color: #9d9489;
  cursor: not-allowed;
}

.profile-form__message {
  width: min(100%, 620px);
  margin-top: 16px;
  font-size: 13px;
}

.profile-form__message--success {
  color: #b9d49a;
}

.profile-form__message--error {
  color: #f1a08b;
}

/* Меню по умолчанию закрыто */
#menu {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;

  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.4s ease,
    visibility 0.4s ease;
}

/* Открытое состояние */
#menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Кнопка открытия должна быть выше панели */
#menuToggle {
  position: relative;
  z-index: 201;
}

@media (prefers-reduced-motion: reduce) {
  #menu {
    transition: none;
  }
}

.sheaths-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.sheaths-gallery img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}

.sheath-option-card .material-card__photo {
  height: 320px;
}

.sheath-option-card .material-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheath-option-card .material-card__photo {
  height: 320px;
}

.sheath-option-card .material-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-image-item {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(236, 205, 156, .25);
    background: rgba(255, 255, 255, .025);
}

.admin-image-preview {
    display: grid;
    height: 220px;
    place-items: center;
    background: #090807;
}

.admin-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-image-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: #eee7db;
    font-size: 12px;
}

.admin-image-move {
    display: flex;
    gap: 6px;
}

.admin-image-move button {
    width: 34px;
    height: 32px;
    border: 1px solid rgba(236, 205, 156, .35);
    background: #090807;
    color: #f5cb84;
    cursor: pointer;
}

.admin-image-move button:disabled {
    opacity: .35;
    cursor: default;
}

.admin-image-remove {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.admin-image-remove input {
    accent-color: #d79a45;
}

.sheath-recommendations {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(210, 160, 80, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.sheath-recommendations h2 {
  margin: 8px 0 20px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.sheath-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.sheath-recommendation {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.sheath-recommendation__image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #17120e;
  color: #9b9187;
  font-size: 12px;
}

.sheath-recommendation__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheath-recommendation__name {
  font-size: 14px;
}

.sheath-recommendation strong {
  color: #e4ad55;
  font-size: 14px;
}

.sheath-recommendations__empty {
  color: #aaa19a;
}

@media (max-width: 600px) {
  .sheath-recommendations {
    padding: 16px;
  }

  .sheath-recommendations__grid {
    gap: 10px;
  }

  .sheath-recommendation__name {
    font-size: 12px;
  }
}

.sheath-recommendation-img {
  width: 100% !important;
  height: 230px !important;
  object-fit: contain !important;
  object-position: center !important;
}

#toast[data-action="cart"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 99999;
}

.knife-card__image:not(.knife-card__image--png) {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.knife-card__image:not(.knife-card__image--png) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.knife-card__image--jpg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.workshop-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #090807;
}

.video-placeholder--real {
  position: relative;
  overflow: hidden;
}

.video-placeholder--real .video-placeholder__text {
  pointer-events: none;
}

.workshop-video-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
}

.workshop-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
}

.workshop-video-caption {
  position: static;
  width: 100%;
  text-align: center;
}

.video-section .workshop-video-block {
  display: block;
  width: 100%;
}

.video-section .workshop-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-section .workshop-video-caption {
  position: static;
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

.video-section .workshop-video-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.video-section .workshop-video-caption {
  position: static;
  width: 100%;
  text-align: center;
}

.video-section .workshop-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.workshop-video-frame {
  position: relative;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(215, 154, 69, 0.65);
  background:
    linear-gradient(135deg, rgba(215, 154, 69, 0.12), transparent 35%),
    #100c09;
  box-shadow:
    0 0 0 1px rgba(215, 154, 69, 0.12),
    0 0 28px rgba(255, 112, 24, 0.16),
    inset 0 0 22px rgba(215, 154, 69, 0.08);
}

.workshop-video-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(215, 154, 69, 0.18);
  pointer-events: none;
}

.video-section .workshop-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
}

.category-hero {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  padding: 70px 24px;
  background: #100c09;
  text-align: center;
}

.category-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.38);
}

.category-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.62)
  );
}

.category-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
}

.category-hero__content h1 {
  margin: 20px 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.05;
}

.category-hero__description {
  max-width: 850px;
  margin: 0 auto 40px;
  color: #f1eee9;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.5;
}

.category-hero__button {
  min-width: 260px;
  padding: 18px 30px;
  border: 0;
  background: #d5b63f;
  color: #111;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-hero__button:hover {
  background: #e3c850;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .category-hero {
    min-height: 480px;
  }

  .category-hero__button {
    width: 100%;
  }
}

.category-hero--image-only {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.category-hero--image-only .category-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-hero__image {
  opacity: 1;
  filter: brightness(1.45) contrast(1.05);
}

.filter-check--steel {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  margin: 5px 0;
  border: 1px solid rgba(190, 145, 75, 0.22);
  background: linear-gradient(110deg, rgba(190, 145, 75, 0.08), transparent 75%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-check--steel span {
  color: #c8b99e;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.filter-check--steel input {
  accent-color: #c99442;
}

.filter-check--steel:hover,
.filter-check--steel:has(input:checked) {
  border-color: rgba(201, 148, 66, 0.7);
  background: linear-gradient(110deg, rgba(190, 145, 75, 0.18), transparent 85%);
}

@media (max-width: 600px) {
  .catalog-page {
    width: 100%;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .category-hero--image-only {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .category-hero__image {
    position: static !important;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .category-hero--image-only {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
  }

  .category-hero__image {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: cover;
  }
}

/* Баннер начинается ниже логотипа и навигации */
.catalog-page.section {
  padding-top: 100px !important;
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .catalog-page.section {
    padding-top: 120px !important;
  }
}
