@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-merged.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-merged.woff2") format("woff2");
}

:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-strong: #f8f5ee;
  --ink: #111111;
  --muted: #59554f;
  --line: #d7d0c7;
  --accent: #c93126;
  --accent-soft: rgba(201, 49, 38, 0.1);
  --solid-dark: #111111;
  --solid-light: #fffdf8;
  --hero-shell: #111111;
  --page-grid: rgba(17, 17, 17, 0.04);
  --page-grid-mobile: rgba(17, 17, 17, 0.03);
  --topbar-border: rgba(17, 17, 17, 0.08);
  --topbar-bg: rgba(244, 241, 234, 0.88);
  --nav-pill: rgba(17, 17, 17, 0.06);
  --hero-control-border: rgba(255, 255, 255, 0.34);
  --hero-control-bg: rgba(255, 255, 255, 0.08);
  --scroller-control-border: rgba(17, 17, 17, 0.16);
  --scroller-control-bg: rgba(255, 253, 248, 0.9);
  --scroller-control-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
  --media-fill: #eae5db;
  --placeholder-stripe: rgba(17, 17, 17, 0.05);
  --placeholder-pill: rgba(255, 255, 255, 0.82);
  --field-bg: #ffffff;
  --field-disabled-bg: #f0ebe2;
  --field-disabled-ink: #8c857b;
  --b24-border: rgba(17, 17, 17, 0.14);
  --footer-border: rgba(17, 17, 17, 0.1);
  --theme-toggle-bg: rgba(255, 253, 248, 0.72);
  --theme-toggle-hover: rgba(17, 17, 17, 0.06);
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  --radius: 24px;
  --wrap: min(1320px, calc(100vw - 32px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --surface: #1c1917;
    --surface-strong: #26211e;
    --ink: #f4efe7;
    --muted: #b7aea4;
    --line: #3a332f;
    --accent: #ff6e57;
    --accent-soft: rgba(255, 110, 87, 0.14);
    --solid-dark: #f4efe7;
    --solid-light: #151210;
    --hero-shell: #0f0d0c;
    --page-grid: rgba(255, 248, 240, 0.06);
    --page-grid-mobile: rgba(255, 248, 240, 0.05);
    --topbar-border: rgba(255, 248, 240, 0.1);
    --topbar-bg: rgba(19, 17, 16, 0.88);
    --nav-pill: rgba(255, 248, 240, 0.08);
    --hero-control-border: rgba(255, 255, 255, 0.24);
    --hero-control-bg: rgba(255, 255, 255, 0.1);
    --scroller-control-border: rgba(255, 248, 240, 0.14);
    --scroller-control-bg: rgba(28, 25, 23, 0.92);
    --scroller-control-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    --media-fill: #2b2521;
    --placeholder-stripe: rgba(255, 248, 240, 0.06);
    --placeholder-pill: rgba(28, 25, 23, 0.88);
    --field-bg: #221d1a;
    --field-disabled-bg: #2b2521;
    --field-disabled-ink: #877d74;
    --b24-border: rgba(255, 248, 240, 0.16);
    --footer-border: rgba(255, 248, 240, 0.12);
    --theme-toggle-bg: rgba(28, 25, 23, 0.82);
    --theme-toggle-hover: rgba(255, 248, 240, 0.08);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
    color-scheme: dark;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #131110;
  --surface: #1c1917;
  --surface-strong: #26211e;
  --ink: #f4efe7;
  --muted: #b7aea4;
  --line: #3a332f;
  --accent: #ff6e57;
  --accent-soft: rgba(255, 110, 87, 0.14);
  --solid-dark: #f4efe7;
  --solid-light: #151210;
  --hero-shell: #0f0d0c;
  --page-grid: rgba(255, 248, 240, 0.06);
  --page-grid-mobile: rgba(255, 248, 240, 0.05);
  --topbar-border: rgba(255, 248, 240, 0.1);
  --topbar-bg: rgba(19, 17, 16, 0.88);
  --nav-pill: rgba(255, 248, 240, 0.08);
  --hero-control-border: rgba(255, 255, 255, 0.24);
  --hero-control-bg: rgba(255, 255, 255, 0.1);
  --scroller-control-border: rgba(255, 248, 240, 0.14);
  --scroller-control-bg: rgba(28, 25, 23, 0.92);
  --scroller-control-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --media-fill: #2b2521;
  --placeholder-stripe: rgba(255, 248, 240, 0.06);
  --placeholder-pill: rgba(28, 25, 23, 0.88);
  --field-bg: #221d1a;
  --field-disabled-bg: #2b2521;
  --field-disabled-ink: #877d74;
  --b24-border: rgba(255, 248, 240, 0.16);
  --footer-border: rgba(255, 248, 240, 0.12);
  --theme-toggle-bg: rgba(28, 25, 23, 0.82);
  --theme-toggle-hover: rgba(255, 248, 240, 0.08);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(to right, var(--page-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid var(--topbar-border);
  backdrop-filter: blur(16px);
  background: var(--topbar-bg);
}

.topbar__inner,
.section,
.hero,
.category-hero,
.footer__inner {
  width: var(--wrap);
  margin: 0 auto;
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  grid-column: 1;
  grid-row: 1;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--solid-dark);
  color: var(--solid-light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__contact {
  display: grid;
  justify-items: end;
  gap: 4px;
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.topbar__contact a,
.topbar__contact span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.topbar__contact svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.topbar__contact a:hover {
  color: var(--ink);
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  grid-column: 3;
  grid-row: 2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  grid-column: 1 / 3;
  grid-row: 2;
  overflow: visible;
  padding-bottom: 0;
  touch-action: manipulation;
}

.nav__item {
  position: relative;
  flex: 0 1 auto;
}

.nav__item > a,
.nav > a,
.nav__dropdown-item > a {
  flex: 0 1 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav__item > a:hover,
.nav__item > a.is-active,
.nav > a:hover,
.nav > a.is-active,
.nav__dropdown-item > a:hover,
.nav__dropdown-item > a.is-active {
  color: var(--ink);
  background: var(--nav-pill);
}

.nav__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 1300;
  display: grid;
  min-width: 250px;
  max-width: min(340px, calc(100vw - 32px));
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav__dropdown--nested {
  left: calc(100% + 8px);
  top: 0;
}

.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown,
.nav__dropdown-item:hover > .nav__dropdown,
.nav__dropdown-item:focus-within > .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__dropdown-item {
  position: relative;
}

.nav__dropdown-item > a {
  display: flex;
  justify-content: space-between;
  white-space: normal;
  line-height: 1.25;
}

.button,
.button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--solid-dark);
  transition: transform 0.2s ease, background 0.2s ease;
}

.topbar__actions > .button {
  width: auto;
  min-width: 220px;
  padding: 0 24px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  color: var(--ink);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--theme-toggle-hover);
}

.theme-toggle__icon {
  font-size: 15px;
  line-height: 1;
}

.button {
  background: var(--solid-dark);
  color: var(--solid-light);
}

.button--ghost {
  background: transparent;
}

.button:hover,
.button--ghost:hover {
  transform: translateY(-1px);
}

.breadcrumbs {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 18px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover,
.breadcrumbs__link.is-current {
  color: var(--ink);
}

.breadcrumbs__link span {
  overflow-wrap: anywhere;
}

.hero {
  display: grid;
  gap: 16px;
  padding-top: 24px;
}

.hero__main {
  position: relative;
  min-height: 76svh;
  border-radius: 34px;
  overflow: hidden;
  background: var(--hero-shell);
  box-shadow: var(--shadow);
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
}

.hero-slide__media picture,
.hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide__media img {
  object-fit: cover;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.22) 0%, rgba(17, 17, 17, 0.82) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.04) 60%);
}

.hero-slide__content {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-slide__content p,
.hero-slide__content span {
  margin: 0;
  font-size: 14px;
}

.hero-slide__content h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__controls button,
.scroller__controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--hero-control-border);
  border-radius: 999px;
  background: var(--hero-control-bg);
  color: #fff;
}

.scroller__controls button {
  border-color: var(--scroller-control-border);
  background: var(--scroller-control-bg);
  color: var(--ink);
  box-shadow: var(--scroller-control-shadow);
}

.scroller__controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.hero__headline {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 3;
  display: grid;
  gap: 18px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.hero__headline h1,
.category-hero__copy h1,
.section__head h2,
.contact-card h2,
.contact-form h2,
.category-search h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__headline p,
.section__head p,
.contact-card p,
.contact-form p,
.category-search__summary,
.category-hero__copy p {
  margin: 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}

.hero__actions,
.category-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta,
.advantages,
.category-grid,
.contact-layout,
.product-grid {
  display: grid;
  gap: 16px;
}

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

.stat-card,
.advantage,
.category-search,
.contact-card,
.contact-form,
.empty-state {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.stat-card p {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section {
  padding-top: 84px;
}

.section__head,
.scroller__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section__head p,
.contact-card p,
.contact-form p,
.category-search__summary,
.category-hero__copy p {
  color: var(--muted);
}

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

.advantage {
  padding: 24px;
}

.advantage strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.15;
}

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

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

.category-tile {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-tile__media picture,
.product-card__media picture,
.category-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.category-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
  padding: 26px;
  border-left: 1px solid var(--line);
}

.category-tile__body p {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-tile__body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.category-tile__body span {
  color: var(--muted);
  line-height: 1.45;
}

.scroller {
  display: grid;
  gap: 20px;
}

.scroller__controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.scroller__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.scroller__track > * {
  scroll-snap-align: start;
}

.scroller__track::-webkit-scrollbar {
  display: none;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card__media,
.category-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--media-fill);
}

.product-card__media {
  aspect-ratio: 4 / 3;
}

.product-card__media img,
.category-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__media img {
  transition: transform 0.4s ease;
}

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

.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(201, 49, 38, 0.18), transparent),
    repeating-linear-gradient(-45deg, var(--placeholder-stripe) 0 10px, transparent 10px 20px),
    var(--media-fill);
}

.product-card__placeholder span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--placeholder-pill);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-card__eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.product-card__desc {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-height: 1.5;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.product-card__meta strong {
  font-size: 1.1rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
  padding-top: 24px;
}

.product-detail__media,
.product-detail__copy {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-detail__media {
  min-height: 420px;
  background: var(--media-fill);
}

.product-detail__media picture,
.product-detail__media img {
  width: 100%;
  height: 100%;
}

.product-detail__media img {
  object-fit: cover;
}

.product-detail__copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
}

.product-detail__category {
  justify-self: start;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-detail__copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.product-detail__description {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.product-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}

.product-detail__meta div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.product-detail__meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-detail__meta dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  padding-top: 24px;
}

.category-hero__copy,
.category-hero__media {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-hero__copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 28px;
}

.category-hero__media {
  min-height: 440px;
}

.category-search {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.field,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--ink);
}

.field:disabled {
  background: var(--field-disabled-bg);
  color: var(--field-disabled-ink);
}

.contact-form textarea {
  min-height: 128px;
  padding: 14px 16px;
  resize: vertical;
}

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

.empty-state {
  margin-top: 16px;
  padding: 24px;
}

.empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 24px;
  overflow: hidden;
}

.contact-card__meta {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-card__row span {
  color: var(--muted);
}

.contact-card__row a,
.contact-card__row strong {
  text-align: right;
  font-weight: 600;
}

.map {
  margin-top: 20px;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.contact-form__full {
  grid-column: 1 / -1;
}

.b24-form-wrap {
  margin-top: 22px;
  min-height: 240px;
  padding: 18px;
  border: 1px dashed var(--b24-border);
  border-radius: 20px;
  background: var(--surface-strong);
  overflow: hidden;
}

.footer {
  padding: 84px 0 36px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
  color: var(--muted);
}

.footer__inner strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1180px) {
  .hero__meta,
  .advantages,
  .category-grid,
  .contact-layout,
  .product-grid,
  .category-hero,
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .scroller__track {
    grid-auto-columns: calc((100% - 32px) / 3);
  }

  .category-tile {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .scroller__controls {
    display: flex;
  }
}

@media (max-width: 860px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar__contact {
    display: none;
  }

  .topbar__actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    flex-wrap: wrap;
  }

  .topbar__actions > .button {
    min-width: 0;
  }

  .button,
  .button--ghost {
    min-height: 46px;
  }

  .hero__meta,
  .advantages,
  .category-grid,
  .contact-layout,
  .product-grid,
  .category-hero,
  .product-detail,
  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .section__head,
  .scroller__head,
  .footer__inner {
    flex-direction: column;
    align-items: start;
  }

  .hero__main {
    min-height: clamp(760px, 96svh, 920px);
  }

  .hero-slide__content {
    top: 18px;
    left: 18px;
    right: 96px;
    max-width: 32rem;
  }

  .hero-slide__content h2 {
    font-size: clamp(1.25rem, 3.2vw, 1.8rem);
  }

  .hero-slide__content span {
    display: block;
    max-width: 34ch;
    line-height: 1.4;
  }

  .hero__headline {
    inset: 220px 18px 18px 18px;
    align-content: end;
    gap: 16px;
  }

  .nav {
    grid-column: auto;
    grid-row: auto;
  }

  .scroller__track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .category-hero__media {
    min-height: 320px;
  }

  .product-detail__media {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(to right, var(--page-grid-mobile) 1px, transparent 1px) 0 0 / 18px 18px,
      var(--bg);
  }

  .topbar__inner,
  .section,
  .hero,
  .category-hero,
  .product-detail,
  .footer__inner,
  .breadcrumbs {
    width: min(100vw - 20px, 100%);
  }

  .breadcrumbs {
    padding-top: 14px;
  }

  .breadcrumbs__list {
    font-size: 13px;
    gap: 8px;
  }

  .breadcrumbs__item {
    gap: 8px;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__item {
    position: static;
  }

  .nav__item > a,
  .nav > a {
    white-space: nowrap;
  }

  .nav__dropdown {
    display: none;
  }

  .hero__main,
  .category-hero__copy,
  .category-hero__media,
  .product-detail__copy,
  .product-detail__media {
    border-radius: 24px;
  }

  .hero__headline {
    inset: 210px 16px 16px 16px;
    gap: 14px;
  }

  .hero__controls {
    top: auto;
    right: 16px;
    bottom: 16px;
  }

  .hero__main {
    min-height: 820px;
  }

  .topbar__actions {
    width: 100%;
  }

  .theme-toggle,
  .topbar__actions > .button {
    flex: 1 1 auto;
  }

  .hero-slide__content {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    gap: 6px;
  }

  .hero-slide__content p,
  .hero-slide__content span {
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-slide__content h2 {
    max-width: 14ch;
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }

  .hero__headline h1,
  .category-hero__copy h1,
  .product-detail__copy h1,
  .section__head h2,
  .contact-card h2,
  .contact-form h2,
  .category-search h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .scroller__track {
    grid-auto-columns: 86%;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .button,
  .hero__actions .button--ghost {
    width: 100%;
  }

  .contact-card__row {
    flex-direction: column;
  }

  .contact-card__row a,
  .contact-card__row strong {
    text-align: left;
  }
}
