:root {
  --bg: #f5f4f1;
  --site-header-top: 16px;
  --site-header-height: 76px;
  --site-header-space: 36px;
  --site-header-offset: calc(var(--site-header-top) + var(--site-header-height) + var(--site-header-space));
  --bg-soft: #edeae4;
  --surface: #ffffff;
  --surface-muted: #f2f0ea;
  --text: #1d1b17;
  --muted: #6b6659;
  --line: rgba(29, 27, 23, 0.09);
  --amber: #d9741a;
  --amber-soft: #fbecd7;
  --concrete: #928c7e;
  --concrete-dark: #4b463c;
  --accent: #dd7a1c;
  --shadow: 0 20px 60px rgba(45, 38, 24, 0.08);
  --shadow-strong: 0 32px 80px rgba(45, 38, 24, 0.14);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "Golos Text", Arial, sans-serif;
  --font-heading: "Golos Text", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden],
.admin-only:not(.is-visible) {
  display: none !important;
}

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

@supports (overflow-x: clip) {
  html {
    overflow-x: clip;
  }
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(217, 112, 22, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 112, 22, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(221, 122, 28, 0.06), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(146, 140, 126, 0.14), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 6%, rgba(217, 112, 22, 0.1), transparent 42vmin),
    radial-gradient(circle at 6% 78%, rgba(146, 140, 126, 0.08), transparent 38vmin),
    radial-gradient(circle at 48% 100%, rgba(217, 112, 22, 0.05), transparent 50vmin),
    radial-gradient(circle at 18% 32%, rgba(217, 112, 22, 0.04), transparent 45vmin);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: var(--site-header-offset);
}

.site-header {
  position: fixed;
  top: var(--site-header-top);
  left: 50%;
  z-index: 1000;
  isolation: isolate;
  transform: translateX(-50%) translateZ(0);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-header .brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark img[data-brand-logo] {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(217, 112, 22, 0.18);
}

.brand-mark svg {
  width: 34px;
  fill: none;
  stroke: white;
  stroke-width: 3.6;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small,
.footer-brand small {
  display: none !important;
}

.main-nav {
  grid-column: 2;
  grid-row: 1;
  position: static;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  justify-self: center;
  pointer-events: auto;
}

.main-nav a {
  position: relative;
  padding: 10px 12px;
  font-weight: 500;
  transition:
    color 0.35s var(--ease-out-expo),
    font-weight 0.35s var(--ease-out-expo);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-expo);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: transparent;
  font-weight: 700;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(221, 122, 28, 0.28);
  background: var(--amber-soft);
}

.nav-toggle-icon {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-dialog {
  width: min(100vw, 100%);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.mobile-nav-dialog::backdrop {
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(3px);
}

.mobile-nav-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100%, 320px);
  height: 100%;
  margin-left: auto;
  background: var(--surface);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-head strong {
  font-size: 1rem;
}

.mobile-nav-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 14px 24px;
  overflow-y: auto;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--accent);
  background: var(--amber-soft);
}

.mobile-nav-cta {
  margin-top: 8px;
  text-align: center;
  color: #fff !important;
  background: var(--accent) !important;
}

body.mobile-nav-open {
  overflow: hidden;
}

.site-header .header-actions {
  display: contents;
}

.site-header .nav-toggle {
  display: none;
  grid-column: 3;
  grid-row: 1;
}

.site-header .account-link {
  grid-column: 3;
  grid-row: 1;
}

.site-header .cart-link {
  grid-column: 4;
  grid-row: 1;
}

.site-header .header-cta {
  grid-column: 5;
  grid-row: 1;
}

.site-header .header-actions > .header-cta:first-child:last-child {
  grid-column: 3;
}

.site-header .header-actions > .button {
  grid-column: 4;
  grid-row: 1;
}

.site-header .header-cta {
  box-sizing: border-box;
  width: 194px;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .account-link,
.site-header .cart-link {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-header .account-link:hover,
.site-header .account-link.is-active,
.site-header .cart-link:hover,
.site-header .cart-link.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #d97016, #ef9a3a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 112, 22, 0.22);
  transform: translateY(-1px);
}

.site-header .account-link svg,
.site-header .cart-link svg {
  width: 24px;
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cart-link:hover,
.cart-link.is-active {
  border-color: rgba(221, 122, 28, 0.28);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.cart-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d97016, #ef9a3a);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #d97016, #ef9a3a);
  box-shadow: 0 12px 28px rgba(217, 112, 22, 0.26);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.hero-actions .button.ghost {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid rgba(29, 27, 23, 0.14);
  font-size: 1rem;
  color: var(--text);
  background-image:
    linear-gradient(var(--concrete), var(--concrete)),
    linear-gradient(var(--surface), var(--surface));
  background-repeat: no-repeat;
  background-position: center bottom, center;
  background-size: 100% 0%, 100% 100%;
  transition: background-size 1.35s cubic-bezier(0.45, 0, 0.15, 1);
}

.hero-actions .button.ghost::after {
  content: "";
  position: absolute;
  left: -35%;
  width: 170%;
  height: 14px;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 C20 2 40 12 60 7 S100 2 120 7 V14 H0 Z' fill='%23928c7e'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 64px 14px;
  background-position: 0 0;
  transition:
    bottom 1.35s cubic-bezier(0.45, 0, 0.15, 1),
    opacity 0.5s ease;
  animation: concreteWaveDrift 3.2s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-actions .button.ghost:hover {
  transform: none;
  background-size: 100% 100%, 100% 100%;
}

.hero-actions .button.ghost:hover::after {
  bottom: calc(100% - 7px);
  opacity: 1;
  animation-play-state: running;
}

@keyframes concreteWaveDrift {
  0%,
  100% {
    background-position-x: 0;
  }

  50% {
    background-position-x: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .button.ghost {
    transition: none;
  }

  .hero-actions .button.ghost::after {
    transition: none;
    animation: none;
  }

  .hero-actions .button.ghost:hover {
    background-size: 100% 100%, 100% 100%;
  }

  .hero-actions .button.ghost:hover::after {
    bottom: calc(100% - 7px);
    opacity: 1;
  }
}

.hero-actions .button.primary {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo);
}

.header-cta:hover,
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button.primary.is-in-cart,
.button.primary:disabled {
  cursor: default;
  background: linear-gradient(135deg, #5f8f67, #7aa883);
  box-shadow: 0 8px 20px rgba(95, 143, 103, 0.22);
  transform: none;
}

.section {
  padding: 72px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 42px;
  min-height: 620px;
  padding-top: 10px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(1.95rem, 3.72vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.043em;
}

.hero-title {
  max-width: 780px;
  min-height: 3.85em;
}

.hero-title-word {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0.08em;
  font-size: calc(1.25em * 1.35);
  line-height: 1.04;
  color: var(--accent);
  will-change: opacity, transform;
}

.hero-title-rest {
  display: block;
  font-size: 0.8em;
  line-height: 1.12;
}

.hero-title-word.is-changing {
  animation: titleWordSwap 0.52s var(--ease-out-expo);
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.hero-copy p,
.section-heading p,
.advantage-card p,
.timeline-item p,
.contact-panel p,
.product-body p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 640px;
  font-size: 1.06rem;
}

#heroTypeTitle::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.84em;
  margin-left: 0.06em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(0.08em);
}

#heroTypeTitle.is-typing::after {
  opacity: 1;
  animation: caretBlink 0.82s steps(2, start) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.contact-panel,
.catalog-stats div,
.catalog-cta-panel,
.category-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.hero-showcase {
  display: grid;
  gap: 0;
}

.showcase-frame {
  position: relative;
  height: clamp(420px, 52vw, 560px);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  border: 1px solid rgba(29, 27, 23, 0.08);
  background: #f6f4ef;
  box-shadow:
    0 40px 100px rgba(45, 38, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.showcase-pages {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-page {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.9s;
  z-index: 0;
}

.showcase-page.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-page {
    transform: none !important;
    transition: opacity 0.35s ease;
  }

  .showcase-caption {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.showcase-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 48%, rgba(15, 23, 42, 0.52) 100%);
  pointer-events: none;
}

.showcase-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.showcase-page.is-active .showcase-media img {
  transform: scale(1.02);
}

.showcase-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  color: #fff;
  background: none;
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-page.is-active .showcase-caption {
  transform: translateY(0);
  opacity: 1;
}

.showcase-num {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.showcase-caption > div {
  flex: 1;
  min-width: 0;
  min-height: 4.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-caption h3 {
  margin: 0 0 6px;
  min-height: 1.35rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.showcase-caption p {
  margin: 0;
  min-height: 2.64rem;
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.88rem;
}

.showcase-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 4;
}

.showcase-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transform-origin: left center;
}

.showcase-progress span.is-running {
  animation: showcaseProgress 5.5s linear forwards;
}

.showcase-controls {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.showcase-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.showcase-arrow svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-arrow:hover {
  transform: translateY(-2px);
  background: var(--amber-soft);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.showcase-tab:hover,
.showcase-tab.is-active {
  color: var(--text);
  border-color: rgba(221, 122, 28, 0.32);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(221, 122, 28, 0.1);
}

.marquee-section {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-block: 8px 24px;
  margin-inline: calc(50% - 50vw);
  padding-block: 18px;
  border: none;
  background:
    linear-gradient(90deg, transparent, rgba(29, 27, 23, 0.09), transparent) top center / 68% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(29, 27, 23, 0.09), transparent) bottom center / 68% 1px no-repeat,
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.34) 10%,
      rgba(255, 255, 255, 0.72) 24%,
      rgba(255, 255, 255, 0.72) 76%,
      rgba(255, 255, 255, 0.34) 90%,
      transparent 100%
    );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 36px;
}

.marquee-track span {
  flex: 0 0 auto;
  color: var(--concrete-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "◆";
  margin-right: 14px;
  color: var(--accent);
  font-size: 0.55rem;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    transform: none !important;
  }
}

@keyframes showcaseProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@keyframes titleWordSwap {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(7px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 760px;
}

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

.intro-grid .section-heading {
  grid-column: 1 / -1;
}

.advantage-card {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.advantage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 28px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  opacity: 0.4;
}

.card-number {
  display: block;
  margin-bottom: 22px;
  color: rgba(46, 41, 32, 0.1);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  transition:
    color 0.35s var(--ease-out-expo),
    text-shadow 0.35s ease;
}

.advantage-card h3 {
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.advantage-card:hover .card-number {
  color: var(--accent);
  text-shadow:
    0 0 24px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 16%, transparent);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.categories-preview {
  padding-top: 118px;
}

.services-section {
  padding-top: 118px;
}

.services-section--bottom {
  padding-top: 72px;
  padding-bottom: 88px;
}

.section-heading--center {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading--center h2 {
  margin-bottom: 10px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.services-groups {
  display: grid;
  gap: 34px;
  width: 100%;
}

.services-group-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

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

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

@media (max-width: 1100px) {
  .services-grid--items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out-expo);
}

.services-card:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  text-decoration: none;
}

.services-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-muted);
}

.services-card--service .services-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease-out-expo);
}

.services-card--item .services-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
}

.services-card--item .services-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease-out-expo);
}

.services-card:hover .services-card-media img {
  transform: scale(1.04);
}

.services-card-body {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 18px;
}

.services-card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  opacity: 0.4;
  transition:
    opacity 0.35s ease,
    width 0.35s var(--ease-out-expo);
}

.services-card:hover .services-card-body::before {
  opacity: 0.85;
  width: 36px;
}

.services-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.services-card-kind {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-card-name {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.services-card-price {
  flex-shrink: 0;
  color: var(--concrete-dark);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.35s var(--ease-out-expo);
}

.services-card:hover .services-card-price {
  color: var(--accent);
}

.services-section-action {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.services-panel,
.services-price-list,
.services-price-row {
  display: none;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(29, 27, 23, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 24, 0.72) 0%, rgba(15, 18, 24, 0.42) 34%, rgba(15, 18, 24, 0.08) 58%, rgba(15, 18, 24, 0.22) 100%);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-card:hover::after {
  opacity: 0.86;
}

.category-card strong,
.category-card span {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  font-size: 1.12rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.category-card span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.category-product {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.55s var(--ease-out-expo);
}

.category-card:hover .category-product {
  transform: scale(1.1);
}

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

.timeline-item {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transition: border-color 0.35s var(--ease-out-expo);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 28px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity 0.35s ease, width 0.35s var(--ease-out-expo);
}

.timeline-item:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.timeline-item:hover::before {
  opacity: 0.85;
  width: 40px;
}

.timeline-item span {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 20px;
  border-radius: 0;
  color: rgba(46, 41, 32, 0.1);
  background: none;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  transition:
    color 0.35s var(--ease-out-expo),
    text-shadow 0.35s ease;
}

.timeline-item:hover span {
  color: var(--accent);
  text-shadow:
    0 0 24px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 16%, transparent);
}

.timeline-item h3 {
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.catalog-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(217, 112, 22, 0.1), rgba(255, 255, 255, 0.98)),
    var(--surface);
  border: 1px solid rgba(217, 112, 22, 0.12);
}

.catalog-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(217, 112, 22, 0.24);
}

.catalog-open-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-open-btn svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 34px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-lg);
}

.contact-highlights,
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-highlights span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--concrete-dark);
}

.contact-info {
  flex-direction: column;
  gap: 6px;
}

.contact-info p {
  margin: 0;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-muted);
}

.search-box,
.filter-box,
.lead-form label {
  display: grid;
  gap: 8px;
  align-content: end;
  min-width: 0;
  color: var(--concrete-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.search-box > span,
.filter-box > span {
  min-height: 1.2em;
  line-height: 1.2;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition: 0.2s ease;
}

.select-field {
  position: relative;
  display: block;
  width: 100%;
}

.select-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--concrete-dark);
  border-bottom: 2px solid var(--concrete-dark);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s ease;
  z-index: 1;
}

.select-field:hover::after,
.select-field:focus-within::after {
  border-color: var(--accent);
}

.select-field--custom::after {
  display: none;
}

.select-field--custom .custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-select {
  position: relative;
  width: 100%;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 120;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  background-color: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(29, 27, 23, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.custom-select__trigger:hover,
.custom-select.is-open .custom-select__trigger {
  border-color: rgba(221, 122, 28, 0.28);
  background-color: var(--surface-muted);
}

.custom-select__trigger:focus-visible {
  border-color: rgba(221, 122, 28, 0.55);
  box-shadow: 0 0 0 4px rgba(221, 122, 28, 0.12);
  outline: none;
}

.custom-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--concrete-dark);
  border-bottom: 2px solid var(--concrete-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.custom-select.is-open .custom-select__chevron {
  transform: rotate(-135deg) translateY(2px);
  border-color: var(--accent);
}

.custom-select__menu[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 121;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  max-height: 280px;
  overflow-y: auto;
  animation: customSelectIn 0.18s var(--ease-out-expo);
}

.custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-select__option:hover,
.custom-select__option:focus {
  background: var(--amber-soft);
  color: var(--concrete-dark);
  outline: none;
}

.custom-select__option.is-selected {
  background: rgba(221, 122, 28, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.custom-select__option.is-selected::after {
  content: "";
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

@keyframes customSelectIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input:not([type="checkbox"]):not([type="radio"]) {
  height: 52px;
  padding: 0 16px;
}

select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.2;
  cursor: pointer;
  color-scheme: light;
  background-color: var(--surface);
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(29, 27, 23, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

select:hover {
  border-color: rgba(221, 122, 28, 0.28);
  background-color: var(--surface-muted);
}

select:active {
  transform: translateY(1px);
}

select::-ms-expand {
  display: none;
}

select option {
  color: var(--text);
  background: var(--surface);
  font-weight: 500;
}

textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: none;
  overflow-y: hidden;
  field-sizing: content;
}

.lead-form textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  resize: none;
  overflow-y: hidden;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(221, 122, 28, 0.55);
  box-shadow: 0 0 0 4px rgba(221, 122, 28, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer {
  margin-top: 24px;
  padding: 0 0 42px;
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 36px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 122, 28, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--surface-muted));
  box-shadow: var(--shadow);
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand .brand {
  align-self: start;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-brand .footer-legal {
  max-width: 360px;
}

.footer-legal {
  display: grid;
  gap: 6px;
  max-width: 920px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  color: var(--accent);
  font-weight: 600;
}

.footer-legal-link {
  margin-left: 6px;
  white-space: nowrap;
}

.requisites-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.requisites-sheet {
  max-width: 920px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.requisites-list {
  margin: 0;
}

.requisites-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.requisites-row:last-child {
  border-bottom: 0;
}

.requisites-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.requisites-row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--concrete-dark);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-nav,
.footer-contacts {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contacts a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-cta {
  width: fit-content;
  margin-top: 16px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 6px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-bottom-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.catalog-page .section.catalog-hero {
  padding-top: 16px;
}

.catalog-page .catalog-hero {
  display: block;
  max-width: 760px;
  padding: 12px 0 4px;
}

.catalog-page .catalog-hero .eyebrow,
.catalog-page .catalog-hero p {
  display: none;
}

.catalog-page .catalog-hero h1 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.08;
}

.catalog-hero-aside,
.catalog-stats {
  display: none !important;
}

.catalog-section {
  padding-top: 0;
  padding-bottom: 72px;
}

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

.catalog-stats div {
  padding: 22px;
  border-radius: 18px;
}

.catalog-stats strong {
  display: block;
  font-size: 2rem;
}

.catalog-stats span {
  color: var(--muted);
}

.catalog-controls {
  position: relative;
  z-index: 4;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-controls:has(.custom-select.is-open) {
  z-index: 120;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.search-box--primary {
  grid-column: 1 / -1;
}

.search-box--primary > span {
  margin-bottom: 2px;
  color: var(--concrete-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-input-wrap {
  position: relative;
}

.search-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(29, 27, 23, 0.1);
  border-radius: 999px;
  background: var(--surface);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-input-shell:hover {
  border-color: rgba(221, 122, 28, 0.24);
}

.search-input-shell:focus-within {
  border-color: rgba(221, 122, 28, 0.45);
  box-shadow: 0 0 0 4px rgba(221, 122, 28, 0.1);
}

.search-icon-line {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.search-input-shell:focus-within .search-icon-line {
  stroke: var(--accent);
}

.search-box--primary input {
  height: 44px;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
}

.search-box--primary input:hover,
.search-box--primary input:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.search-box--primary input::placeholder {
  color: rgba(107, 102, 89, 0.68);
}

.search-submit {
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(145deg, #d97016, #f2a24a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.search-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.search-submit:active {
  transform: translateY(0);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.category-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: 0.2s ease;
}

.category-tab:hover,
.category-tab.active {
  color: var(--text);
  border-color: rgba(221, 122, 28, 0.35);
  background: var(--amber-soft);
}

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

.catalog-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 128px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

#sidebarFilters {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#sidebarFilters::-webkit-scrollbar {
  width: 8px;
}

#sidebarFilters::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: rgba(146, 140, 126, 0.45);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.catalog-sidebar h3 {
  margin: 0;
  font-size: 1rem;
}

.sidebar-reset {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  width: auto;
  flex-shrink: 0;
}

.sidebar-reset:hover {
  background: var(--amber-soft);
}

.sidebar-note {
  display: none;
}

.sidebar-footer {
  display: none;
}

#sidebarFilters .sidebar-group + .sidebar-group {
  border-top: 1px solid var(--line);
}

.catalog-hero-copy strong {
  color: var(--concrete-dark);
}

.sidebar-group {
  padding: 10px 16px 12px;
}

.sidebar-label {
  display: block;
  margin-bottom: 8px;
  color: var(--concrete-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkbox-list-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.checkbox-list {
  display: grid;
  gap: 2px;
}

.checkbox-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-item:hover {
  background: var(--surface-muted);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  padding: 0;
  margin: 2px 0 0;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  border: 1.5px solid rgba(120, 113, 108, 0.42);
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.checkbox-item input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.checkbox-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(221, 122, 28, 0.22);
}

.checkbox-item input[type="checkbox"]:focus:checked {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(221, 122, 28, 0.22);
}

.checkbox-item input[type="checkbox"]:checked + span {
  color: var(--text);
  font-weight: 700;
}

.checkbox-item span {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  line-height: 1.35;
}

.checkbox-item em {
  grid-column: 3;
  grid-row: 1;
  margin-left: 0;
  margin-top: 1px;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--concrete-dark);
  background: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  align-self: start;
}

.checkbox-item:has(input:checked) {
  color: var(--text);
  background: var(--amber-soft);
}

.checkbox-item:has(input:checked) em {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
}

.sidebar-footer .reset-filters {
  width: 100%;
  margin: 0;
}

.results-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.filter-box select {
  font-weight: 600;
}

.product-page {
  padding-bottom: 24px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 0;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.breadcrumb-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumb-back:hover {
  border-color: rgba(221, 122, 28, 0.35);
  background: var(--amber-soft);
  text-decoration: none;
}

.breadcrumb-sep {
  color: rgba(120, 113, 108, 0.55);
  font-size: 0.82rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.product-breadcrumbs a {
  color: var(--accent);
  font-weight: 600;
}

.product-breadcrumbs a:hover {
  text-decoration: underline;
}

.product-detail {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 0;
  padding-bottom: 28px;
}

.product-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 320px;
  max-width: 320px;
  min-width: 320px;
  min-height: 320px;
  height: 320px;
  max-height: 320px;
  padding: 22px 20px 22px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-gallery-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
}

.product-gallery-frame.is-loading img {
  opacity: 0.35;
}

.product-gallery img {
  display: block;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
  max-width: 240px;
  max-height: 240px;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s ease;
}

.product-gallery img.is-ready {
  opacity: 1;
}

.product-content {
  display: grid;
  gap: 18px;
  align-content: start;
  height: auto;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-content-head {
  display: grid;
  gap: 14px;
}

.product-content-variants {
  padding-top: 0;
}

.product-content-footer {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.product-purchase-panel {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.product-purchase-panel .product-qty-label {
  grid-column: 1;
}

.product-purchase-panel .product-buy-actions {
  grid-column: 2;
}

.product-purchase-panel .product-price-bottom {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
  min-height: 0;
  width: auto;
  text-align: right;
}

.product-content .eyebrow {
  margin-bottom: 0;
}

.product-content h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.1;
}

.product-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.product-specs--characteristics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.product-specs--characteristics .product-spec {
  display: grid;
  gap: 4px;
  padding: 11px 14px;
  border: none;
  border-radius: 0;
  background: var(--surface);
}

.product-specs--characteristics .product-spec--wide {
  grid-column: 1 / -1;
  background: var(--surface);
}

.product-specs--characteristics .product-spec-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.product-specs--characteristics .product-spec-value {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(221, 122, 28, 0.14);
  border-radius: 999px;
  color: var(--concrete-dark);
  background: var(--amber-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.product-spec {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.product-tags:empty,
.product-variant-picker:empty,
.product-meta:empty,
.product-specs:empty {
  display: none;
}

.product-buy {
  display: contents;
}

.product-actions {
  display: none;
}

.product-purchase-panel .product-buy-actions {
  flex: 0 0 auto;
}

.product-purchase-panel .product-price-bottom .product-price {
  justify-content: flex-end;
  text-align: right;
}

.product-price-bottom {
  display: flex;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  min-height: 44px;
}

.product-spec-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-spec-value {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.4;
}

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

.product-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-price-bottom .product-price {
  margin: 0;
}

.product-price-qty {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.product-price-bottom .product-price-request {
  margin: 0;
}

.product-not-found {
  padding-top: 0;
}

.product-not-found-panel {
  max-width: 640px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-not-found-panel h1 {
  margin-bottom: 12px;
}

.product-not-found-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.product-buy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-cart-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 10px;
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.product-cart-remove[hidden] {
  display: none;
}

.product-cart-remove:hover {
  border-color: rgba(180, 35, 24, 0.32);
  background: rgba(180, 35, 24, 0.12);
  transform: translateY(-1px);
}

.product-content .eyebrow,
.product-tags {
  display: none;
}

.product-variant-picker {
  margin: 0;
}

.product-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-qty-stepper {
  display: grid;
  grid-template-columns: 32px auto 32px;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.product-qty-display {
  min-width: 84px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.product-qty-display.is-locked {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.product-qty-btn {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-muted);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.product-qty-btn:hover {
  border-color: rgba(221, 122, 28, 0.35);
  background: var(--amber-soft);
}

.product-content-footer .button.ghost {
  justify-self: center;
  text-align: center;
}

.product-purchase-panel .product-price-bottom .product-price {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.product-qty-btn:active {
  transform: scale(0.96);
}

.product-price-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.product-price-unit {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-qty-label {
  display: grid;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--concrete-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-qty-label > span {
  padding-left: 2px;
}

.product-qty-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.product-qty-field input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.product-qty-unit {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-qty-field:has(input:disabled) {
  background: var(--surface-muted);
}

.product-qty-field input:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface-muted);
}

.product-qty-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-qty-hint a {
  color: var(--accent);
  font-weight: 700;
}

.product-qty-note {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.cart-page .cart-hero {
  padding-top: 0;
  padding-bottom: 24px;
}

.cart-page .cart-hero h1 {
  margin-bottom: 10px;
}

.cart-page .cart-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-section {
  padding-top: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-item-image,
.cart-item-image img {
  display: block;
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-title {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item-meta {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-qty-input {
  width: 54px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.cart-item-unit {
  color: var(--concrete-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-summary h3 {
  margin: 0;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-summary-row strong {
  color: var(--text);
  font-size: 1.1rem;
}

.cart-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cart-summary .button,
.cart-clear {
  width: 100%;
}

.cart-empty {
  padding: 42px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.cart-empty h2 {
  margin-bottom: 10px;
}

.cart-empty p {
  margin: 0 0 22px;
  color: var(--muted);
}

.cart-empty .button {
  min-width: 220px;
  padding: 0 28px;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease both;
  transition:
    transform 0.28s var(--ease-out-expo),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.product-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
}

.product-card::after {
  display: none;
}

.product-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(221, 122, 28, 0.22);
  box-shadow: var(--shadow-strong);
}

body[data-site-profile="beton"] .product-card-image {
  mix-blend-mode: multiply;
}

body[data-site-profile="beton"] .product-card--service .product-card-image,
body[data-site-profile="beton"] .product-gallery--service .product-gallery-image {
  mix-blend-mode: normal;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

body[data-site-profile="beton"] .product-gallery {
  background: var(--surface);
}

body[data-site-profile="beton"] .product-gallery img {
  mix-blend-mode: multiply;
}

.product-card-image {
  order: 1;
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 188px;
  padding: 14px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform 0.45s var(--ease-out-expo);
}

.product-card:hover .product-card-image {
  transform: scale(1.04);
}

.product-card-type {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--concrete-dark);
  background: var(--amber-soft);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-type-badge {
  display: inline-block;
  width: fit-content;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--concrete-dark);
  background: var(--amber-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-variant-picker {
  margin: 0;
}

.product-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-variant-btn:hover:not(:disabled) {
  border-color: rgba(234, 88, 12, 0.35);
}

.product-variant-btn.is-disabled,
.product-variant-btn:disabled {
  cursor: not-allowed;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.38);
}

.product-variant-btn.is-active,
.product-variant-btn.is-active:disabled {
  border-color: var(--accent);
  background: rgba(234, 88, 12, 0.1);
  color: var(--concrete-dark);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.12);
}

.product-card-price {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-price {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.product-price-request {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.product-price-request:hover {
  border-color: rgba(234, 88, 12, 0.35);
  background: rgba(234, 88, 12, 0.08);
}

.product-card-head {
  order: 2;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 14px 16px 8px;
}

.product-card h3 {
  display: -webkit-box;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-info {
  order: 3;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-width: 100%;
  margin-top: auto;
  padding: 0 62px 14px 16px;
  opacity: 1;
  transform: none;
}

.product-card-info span {
  display: block;
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(221, 122, 28, 0.14);
  border-radius: 999px;
  color: var(--concrete-dark);
  background: var(--amber-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(221, 122, 28, 0.18);
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--surface-muted) 100%);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover .product-card-arrow {
  transform: translateX(4px);
  border-color: rgba(221, 122, 28, 0.35);
  background: var(--amber-soft);
  box-shadow: 0 4px 12px rgba(221, 122, 28, 0.12);
}

.product-card-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) and (max-height: 740px) {
  main > .hero.section {
    --hero-viewport-height: calc(100dvh - 84px);
    gap: 8px;
  }

  .hero-title {
    font-size: clamp(0.98rem, 3.2vw + 0.3rem, 1.45rem);
  }

  .hero-title-rest {
    font-size: clamp(0.58rem, 2vw + 0.22rem, 0.72em);
  }

  .hero-actions .button,
  .hero-actions .button.ghost {
    min-height: 38px;
    font-size: 0.76rem;
  }

  .showcase-frame {
    min-height: 100px;
  }
}

@media (max-width: 980px) {
  :root {
    --site-header-top: 10px;
    --site-header-space: 12px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .nav-toggle {
    display: inline-flex;
    grid-column: unset;
    grid-row: unset;
  }

  .site-header .account-link,
  .site-header .cart-link,
  .site-header .header-cta,
  .site-header .header-actions > .button {
    grid-column: unset;
    grid-row: unset;
  }

  .brand small {
    display: none;
  }

  .hero,
  .contact-panel,
  .catalog-hero,
  .catalog-layout,
  .catalog-cta-panel,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .site-header {
    margin-bottom: 0;
  }

  main > .hero.section {
    --hero-viewport-height: calc(100dvh - 92px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: var(--hero-viewport-height);
    max-height: var(--hero-viewport-height);
    margin-bottom: 0;
    padding: 0 0 10px;
    overflow: hidden;
  }

  .hero-copy {
    flex: 0 0 auto;
    min-height: 0;
  }

  .hero-title {
    max-width: none;
    min-height: 0;
    margin-bottom: 6px;
    font-size: clamp(1.15rem, 3.6vw + 0.45rem, 1.95rem);
    line-height: 1.12;
  }

  .hero-title-word {
    font-size: 1.2em;
    line-height: 1.05;
    margin-bottom: 0.06em;
  }

  .hero-title-rest {
    font-size: clamp(0.65rem, 2.35vw + 0.3rem, 0.82em);
    line-height: 1.2;
  }

  .hero-actions {
    margin: 8px 0 0;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .hero-actions .button,
  .hero-actions .button.ghost {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .hero-actions .catalog-open-btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-visual {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .hero-showcase {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .showcase-frame {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 100%;
    box-shadow: 0 16px 40px rgba(45, 38, 24, 0.1);
  }

  .showcase-caption {
    left: 12px;
    right: 12px;
    bottom: 10px;
    gap: 10px;
    min-height: 0;
  }

  .showcase-num {
    font-size: 1.4rem;
  }

  .showcase-caption h3 {
    font-size: 0.88rem;
    min-height: 0;
  }

  .showcase-caption p {
    font-size: 0.72rem;
    line-height: 1.35;
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .product-gallery {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    padding: 22px 20px 22px 28px;
  }

  .product-gallery img {
    max-height: 100%;
  }

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

  .product-purchase-panel {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 14px;
  }

  .product-purchase-panel .product-qty-label,
  .product-purchase-panel .product-buy-actions,
  .product-purchase-panel .product-price-bottom {
    grid-column: 1;
  }

  .product-purchase-panel .product-buy-actions {
    justify-content: flex-start;
  }

  .product-purchase-panel .product-price-bottom {
    justify-content: flex-start;
    text-align: left;
  }

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

  .requisites-row {
    grid-template-columns: 1fr;
  }

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

  .cart-summary {
    position: static;
  }

  .intro-grid,
  .category-cards,
  .timeline,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search-box--primary {
    grid-column: 1 / -1;
  }

  .catalog-sidebar {
    position: static;
    max-height: none;
  }

  #sidebarFilters {
    max-height: 420px;
  }

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

@media (max-width: 640px) {
  :root {
    --site-header-height: 72px;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    width: min(1180px, calc(100vw - 20px));
  }

  .header-cta {
    display: none;
  }

  .site-header .cart-link,
  .site-header .account-link {
    width: 44px;
    height: 44px;
  }

  .section {
    padding: 48px 0;
  }

  main > .hero.section {
    padding: 0 0 8px;
  }

  .hero-title {
    min-height: 0;
    font-size: clamp(1.05rem, 4.2vw + 0.25rem, 1.72rem);
  }

  .hero-title-rest {
    font-size: clamp(0.62rem, 2.2vw + 0.28rem, 0.78em);
  }

  .hero-title-word {
    min-width: 0;
  }

  .intro-grid,
  .category-cards,
  .timeline,
  .product-grid,
  .catalog-toolbar,
  .services-grid--services,
  .services-grid--items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .product-card-image {
    height: 112px;
    padding: 8px;
  }

  .product-card-head {
    padding: 10px 12px 6px;
  }

  .product-card h3 {
    font-size: 0.84rem;
  }

  .product-card-info {
    padding: 0 12px 12px;
  }

  .product-card-price {
    font-size: 0.82rem;
  }

  .product-card-type {
    margin-bottom: 6px;
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .advantage-card,
  .timeline-item {
    padding: 22px 16px 20px;
  }

  .card-number,
  .timeline-item span {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .services-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 14px;
  }

  .services-card-name {
    font-size: 0.86rem;
  }

  .services-card-price {
    font-size: 0.9rem;
  }

  .showcase-caption {
    left: 12px;
    right: 12px;
    bottom: 10px;
    gap: 10px;
    min-height: 0;
  }

  .showcase-num {
    flex-basis: auto;
    width: auto;
    font-size: 1.35rem;
  }

  .showcase-caption > div {
    min-height: 0;
  }

  .showcase-caption h3 {
    font-size: 0.84rem;
    min-height: 0;
  }

  .showcase-caption p {
    font-size: 0.7rem;
    min-height: 0;
  }

  .showcase-controls {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .showcase-tabs {
    order: -1;
  }

  .results-text {
    margin-bottom: 14px;
  }

  .search-input-shell {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 18px;
    padding: 8px 8px 8px 14px;
  }

  .search-submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }

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

  .product-content {
    padding: 22px;
  }

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

  .footer-panel {
    padding: 24px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta {
    width: 100%;
    justify-content: center;
  }
}

.account-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.account-link:hover,
.account-link.is-active {
  border-color: rgba(221, 122, 28, 0.28);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.account-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-link.account-link--login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 112px;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.auth-page {
  min-height: calc(100vh - 120px);
}

.auth-section {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.auth-card {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 10px 0 12px;
}

.auth-lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form input {
  min-height: 52px;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.password-toggle-icon {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-icon--hide {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--show {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--hide {
  display: block;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.auth-admin-hint {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.floating-cta {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 150;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(221, 122, 28, 0.22);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta strong {
  padding-right: 28px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.floating-cta span {
  color: var(--muted);
  line-height: 1.5;
}

.floating-cta .button {
  margin-top: 6px;
  justify-content: center;
}

.floating-cta-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.floating-cta-close:hover,
.floating-cta-close:focus-visible {
  color: var(--text);
  background: var(--surface-muted);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-note.is-error {
  color: #b42318;
}

.account-page .account-hero {
  padding-top: 0;
  padding-bottom: 24px;
}

.account-page .account-hero h1 {
  margin-bottom: 10px;
}

.account-page .account-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.account-panel,
.account-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-panel h2,
.account-card h3 {
  margin: 0 0 18px;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-actions {
  display: grid;
  gap: 10px;
}

.account-actions .button {
  width: 100%;
}

.account-logout {
  color: #b42318;
}

.account-orders-section {
  padding-top: 0;
}

.account-orders-head {
  margin-bottom: 18px;
}

.account-orders {
  display: grid;
  gap: 14px;
}

.account-order {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-order-head time {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.account-order-meta,
.account-order-message {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-orders-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--surface-muted);
}

.account-orders-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.admin-page .admin-hero {
  padding-top: 0;
}

.admin-page .admin-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-access-denied {
  max-width: 640px;
}

.admin-access-denied p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
}

.admin-access-hint {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-panel {
  padding: 0 0 72px;
}

.admin-workspace {
  min-width: 0;
}

/* ---- Minimalist admin theme ---- */
.admin-page {
  background: #ffffff;
}

.admin-page .admin-panel {
  --line: rgba(17, 17, 17, 0.1);
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --text: #111111;
  --muted: #6a6a6a;
}

.admin-page .admin-page-toolbar,
.admin-page .admin-block,
.admin-page .admin-card,
.admin-page .admin-cat-card {
  box-shadow: none;
}

.admin-page .site-header {
  position: static;
  top: auto;
}

/* ---- Fixed full-height left navigation ---- */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  background: #ffffff;
  border-right: 1px solid rgba(17, 17, 17, 0.08);
  z-index: 1200;
}

body.admin-denied .admin-sidebar {
  display: none;
}

.admin-sidebar-brand {
  display: grid;
  gap: 2px;
  padding: 0 22px 18px;
}

.admin-sidebar-brand strong {
  font-size: 1.02rem;
  color: #111;
}

.admin-sidebar-brand span {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-section-card {
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: transparent;
  color: #333;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-section-card:hover {
  background: #f5f5f5;
}

.admin-section-card.is-active {
  color: #111;
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-sidebar-logout {
  margin-top: auto;
  padding: 14px 22px;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.admin-sidebar-logout:hover {
  color: #111;
  background: #f5f5f5;
}

/* offset the whole admin page to the right of the fixed menu */
.admin-page .page-shell {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 32px 0 calc(232px + 32px);
}

.admin-catalog-layout {
  display: grid;
  gap: 16px;
}

/* ---- Sticky add bar ---- */
.admin-cat-addbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.admin-cat-addbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-cat-add {
  min-height: 42px;
  padding: 0 22px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Category groups ---- */
.admin-cat-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.admin-cat-group-head {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #111;
  color: #fff;
}

.admin-cat-group-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-cat-group-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-cat-group-items {
  display: grid;
  gap: 8px;
  padding: 10px;
  min-height: 54px;
}

/* ---- Catalog cards ---- */
.admin-cat-list {
  display: grid;
  gap: 10px;
}

.admin-cat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.admin-cat-card.is-dragging {
  opacity: 0.5;
  border-style: dashed;
}

.admin-cat-card.is-open {
  border-color: rgba(17, 17, 17, 0.25);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.admin-cat-card.is-off {
  opacity: 0.62;
}

.admin-cat-card-row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.admin-cat-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
}

.admin-cat-thumb {
  width: 56px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.admin-cat-thumb--empty {
  display: block;
}

.admin-cat-name {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-cat-name strong {
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cat-name span {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cat-edit {
  min-height: 36px;
  width: 132px;
  padding: 0 14px;
  text-align: center;
  justify-content: center;
}

.admin-cat-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-cat-delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-cat-delete:hover {
  border-color: #e0563b;
  color: #fff;
  background: #e0563b;
}

/* ---- Toggle switch ---- */
.admin-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d5d5d5;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  padding: 2px;
}

.admin-switch-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.admin-switch input:checked + .admin-switch-track {
  background: var(--accent);
}

.admin-switch input:checked + .admin-switch-track .admin-switch-thumb {
  transform: translateX(18px);
}

/* ---- Expanded editor ---- */
.admin-cat-body {
  border-top: 1px solid var(--line);
  padding: 18px 16px;
  background: var(--surface-muted);
}

.admin-cat-editor-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-cat-media {
  display: grid;
  gap: 12px;
}

.admin-cropper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #efefef;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
}

.admin-cropper:active {
  cursor: grabbing;
}

.admin-cropper-img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
  max-width: none;
}

.admin-cropper-controls {
  display: grid;
  gap: 10px;
}

.admin-cropper-zoom {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-cropper-zoom input {
  width: 100%;
}

.admin-cropper-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-cropper-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-cat-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-cat-specs h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.admin-cat-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

@media (max-width: 860px) {
  .admin-cat-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-cat-specs-grid {
    grid-template-columns: 1fr;
  }

  .admin-cat-card-row {
    grid-template-columns: auto 48px 1fr;
    row-gap: 10px;
  }

  .admin-cat-card-row .admin-switch,
  .admin-cat-card-row .admin-cat-edit,
  .admin-cat-card-row .admin-cat-delete {
    grid-column: span 1;
  }
}

.admin-import-block code {
  font-size: 0.82rem;
}

.admin-import-field input[type="file"] {
  width: 100%;
  padding: 10px 0;
}

.admin-actions--compact {
  margin-top: 0;
}

.admin-tag-block {
  margin-top: 4px;
}

.admin-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-tag-option input {
  margin: 0;
}

.admin-product-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: static;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 0;
  }

  .admin-section-card {
    width: auto;
    flex: 1 1 auto;
    border-bottom: 0;
    text-align: center;
  }

  .admin-section-card.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .admin-sidebar-logout {
    margin-top: 8px;
  }

  .admin-page .page-shell {
    padding: 0 16px;
  }

  .admin-cat-group-head {
    top: 0;
  }
}

.admin-page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-page-toolbar-copy h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.admin-page-toolbar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-page-preview {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .admin-page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.is-active {
  border-color: rgba(221, 122, 28, 0.28);
  background: var(--amber-soft);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-block h3 {
  margin: 0 0 16px;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-block-head h3 {
  margin: 0;
}

.admin-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--concrete-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-field:last-child {
  margin-bottom: 0;
}

.admin-cards {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 10px;
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-note {
  margin-top: 16px;
  color: #1f7a43;
  font-weight: 700;
}

.admin-note.is-error {
  color: #b42318;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.admin-product-rows {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.admin-product-row.is-active {
  border-color: rgba(221, 122, 28, 0.28);
  background: var(--amber-soft);
}

.admin-product-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-product-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-product-form {
  display: grid;
  gap: 6px;
  align-content: start;
  align-self: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-product-form h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.admin-product-form .admin-field {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--concrete-dark);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-product-form .admin-field > span {
  line-height: 1.2;
}

.admin-product-form .admin-field input,
.admin-product-form .admin-field textarea {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  box-sizing: border-box;
}

.admin-product-form .admin-field textarea {
  height: auto;
  min-height: 64px;
  padding: 8px 10px;
  resize: vertical;
  field-sizing: normal;
}

.admin-product-form .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.admin-product-form .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .admin-products-layout {
    grid-template-columns: 1fr;
  }
}

body.confirm-open {
  overflow: hidden;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 27, 23, 0.42);
  backdrop-filter: blur(6px);
  animation: confirmFadeIn 0.2s ease;
}

.confirm-overlay[hidden] {
  display: none !important;
}

.confirm-dialog {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  animation: confirmSlideIn 0.28s var(--ease-out-expo);
}

.confirm-dialog-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.confirm-dialog-preview-image {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.confirm-dialog-preview-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.confirm-dialog-preview-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.confirm-dialog-preview-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.confirm-dialog-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.confirm-dialog-text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-dialog-actions .button {
  width: 100%;
  min-height: 48px;
}

@keyframes confirmFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes confirmSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confirmSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .confirm-overlay {
    place-items: end center;
    padding: 0;
  }

  .confirm-dialog {
    width: 100%;
    border-radius: 22px 22px 0 0;
    animation: confirmSlideUp 0.3s var(--ease-out-expo);
  }
}

.catalog-hero-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-hero-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.page-hero-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.cart-page .cart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
}

.page-hero-image--cart img {
  height: 180px;
}

.admin-block-lead {
  margin: -6px 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-image-field {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-image-field-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-image-asset-pick {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
}

.admin-image-upload {
  position: relative;
  cursor: pointer;
}

.admin-image-preview {
  width: 100%;
  max-width: 280px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.admin-image-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-product-images {
  display: grid;
  gap: 14px;
}

.admin-product-image-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.admin-product-image-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface);
}

.admin-product-image-copy {
  grid-column: 2;
  display: grid;
  gap: 4px;
}

.admin-product-image-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-product-image-row .admin-image-field {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .cart-page .cart-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-image--cart img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .admin-product-image-row {
    grid-template-columns: 1fr;
  }

  .admin-product-image-thumb {
    width: 100%;
    height: 160px;
  }

  .admin-product-image-copy {
    grid-column: 1;
  }
}

/* ---- Mobile adaptation: shared touch, safe-area and compact layouts ---- */
.catalog-filter-toggle,
.catalog-filter-close,
.catalog-mobile-selects {
  display: none;
}

.sidebar-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-page:not(.admin-denied) .site-header {
  display: none;
}

body.admin-denied .page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
}

@media (hover: none), (pointer: coarse) {
  .showcase-controls {
    display: grid;
    margin-top: 12px;
  }

  .showcase-tab,
  .category-tab {
    min-height: 44px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-top: max(8px, env(safe-area-inset-top));
    --site-header-height: 66px;
    --site-header-space: 12px;
  }

  body {
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
  }

  button,
  .button,
  .main-nav a,
  .mobile-nav a,
  .footer-nav a,
  .footer-contacts a,
  .breadcrumb-back,
  .password-toggle,
  .product-cart-remove,
  .product-qty-btn,
  .cart-item-remove,
  .cart-qty-btn,
  .admin-remove,
  .admin-cat-delete,
  .admin-cat-edit,
  .admin-section-card {
    min-height: 44px;
  }

  .site-header {
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    min-height: var(--site-header-height);
    padding: 8px 10px;
    border-radius: 22px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand-mark,
  .site-header .brand-mark img[data-brand-logo] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .nav-toggle,
  .mobile-nav-close {
    width: 44px;
    height: 44px;
  }

  .mobile-nav-panel {
    width: min(88vw, 340px);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  main > .hero.section {
    display: grid;
    min-height: 0;
    max-height: none;
    padding-bottom: 24px;
    overflow: visible;
  }

  .hero-copy,
  .hero-visual,
  .hero-showcase {
    min-height: 0;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .button {
    flex: 1 1 210px;
  }

  .showcase-frame {
    flex: none;
    height: clamp(280px, 72vw, 430px);
    min-height: 280px;
    max-height: none;
  }

  .showcase-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    margin-top: 12px;
  }

  .showcase-arrow {
    width: 44px;
    height: 44px;
  }

  .showcase-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .catalog-controls {
    margin-bottom: 16px;
    padding: 12px;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.48fr) 48px;
    gap: 10px;
  }

  .search-box--primary {
    grid-column: 1 / -1;
  }

  .catalog-toolbar > .filter-box:not(:last-of-type),
  .category-tabs {
    display: none;
  }

  .catalog-toolbar > .filter-box:last-of-type {
    grid-column: 1 / 3;
  }

  .catalog-filter-toggle {
    position: relative;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 52px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-muted);
    font-size: 0;
    font-weight: 800;
    cursor: pointer;
  }

  .catalog-filter-toggle::before {
    content: "☰";
    font-size: 1.25rem;
  }

  .catalog-filter-count {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 0.72rem;
    line-height: 22px;
  }

  .catalog-layout {
    display: block;
  }

  .catalog-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: block;
    opacity: 0;
    background: rgba(29, 27, 23, 0.48);
    backdrop-filter: blur(3px);
    transition: opacity 0.22s ease;
  }

  .catalog-filter-backdrop[hidden] {
    display: none;
  }

  .catalog-filter-backdrop.is-open {
    opacity: 1;
  }

  .catalog-sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1500;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: 100%;
    max-height: min(86dvh, 760px);
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.25s var(--ease-out-expo), visibility 0s linear 0.25s;
  }

  .catalog-sidebar.is-open {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .catalog-filter-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-muted);
    font-size: 1.5rem;
  }

  .sidebar-reset {
    min-height: 44px;
  }

  .catalog-mobile-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 16px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }

  #sidebarFilters {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .checkbox-item {
    min-height: 44px;
    align-items: center;
  }

  .sidebar-footer {
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .sidebar-footer .button {
    width: 100%;
  }

  body.catalog-filters-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .product-gallery {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
    aspect-ratio: 1 / 1;
  }

  .product-gallery-frame,
  .product-gallery img {
    width: min(76vw, 280px);
    height: min(76vw, 280px);
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
  }

  .product-purchase-panel .product-buy-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .product-purchase-panel .product-buy-actions .button {
    width: 100%;
  }

  .product-cart-remove {
    width: 44px;
    height: 44px;
  }

  .product-qty-stepper {
    grid-template-columns: 44px minmax(76px, auto) 44px;
  }

  .product-qty-btn {
    width: 44px;
  }

  .cart-item-remove {
    width: 44px;
    height: 44px;
  }

  .cart-qty {
    width: 100%;
    justify-content: space-between;
  }

  .cart-qty-btn {
    width: 44px;
    height: 44px;
  }

  .cart-qty-input {
    min-width: 64px;
    height: 44px;
  }

  .account-panel,
  .account-card,
  .auth-card {
    padding: 22px 18px;
  }

  .footer-panel {
    gap: 26px;
  }

  .footer-nav a,
  .footer-contacts a {
    display: flex;
    align-items: center;
  }

  .floating-cta {
    right: calc(10px + env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: calc(10px + env(safe-area-inset-left));
    width: auto;
    max-height: min(58dvh, 360px);
    padding: 18px;
    overflow-y: auto;
  }

  .floating-cta-close {
    width: 44px;
    height: 44px;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding-top: env(safe-area-inset-top);
  }

  .admin-sidebar-brand {
    padding: 10px 16px;
  }

  .admin-sidebar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .admin-section-card {
    flex: 0 0 auto;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .admin-sidebar-logout {
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
  }

  .admin-page .page-shell {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .admin-cat-card-row {
    grid-template-columns: 44px 48px minmax(0, 1fr);
  }

  .admin-cat-handle {
    display: grid;
    place-items: center;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 16px);
  }

  .site-header {
    width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .site-header .brand strong {
    font-size: 0.92rem;
  }

  .site-header .account-link,
  .site-header .cart-link {
    width: 42px;
    height: 42px;
  }

  .section {
    padding: 38px 0;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .intro-grid,
  .category-cards,
  .timeline,
  .product-grid,
  .services-grid--services,
  .services-grid--items {
    grid-template-columns: 1fr;
  }

  .showcase-frame {
    height: clamp(260px, 90vw, 380px);
  }

  .showcase-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

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

  .catalog-toolbar > .filter-box:last-of-type {
    grid-column: 1;
  }

  .catalog-filter-toggle {
    grid-column: 2;
  }

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

  .search-submit {
    display: none;
  }

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

  .catalog-sidebar {
    max-height: 92dvh;
  }

  .product-card-image {
    height: 180px;
  }

  .product-card-head {
    padding: 14px 16px 8px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card-info {
    padding: 0 62px 16px 16px;
  }

  .product-content {
    padding: 18px 14px;
  }

  .product-purchase-panel {
    padding: 14px;
  }

  .product-purchase-panel .product-buy-actions {
    grid-template-columns: 1fr;
  }

  .product-cart-remove {
    width: 100%;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-summary {
    padding: 18px 14px;
  }

  .account-order-head,
  .admin-block-head,
  .admin-product-row,
  .admin-actions,
  .admin-access-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-order-head time {
    white-space: normal;
  }

  .auth-section {
    padding-top: 8px;
  }

  .auth-card {
    border-radius: 22px;
  }

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

  .footer-panel {
    padding: 22px 16px;
  }

  .footer-bottom-copy {
    display: grid;
  }

  .admin-cat-card-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-cat-thumb {
    display: none;
  }

  .admin-cat-card-row .admin-switch,
  .admin-cat-card-row .admin-cat-edit,
  .admin-cat-card-row .admin-cat-delete {
    grid-column: auto;
    width: 100%;
    min-height: 44px;
  }

  .confirm-dialog-actions {
    grid-template-columns: 1fr;
  }
}
