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

:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-strong: #f8f5ee;
  --ink: #111111;
  --muted: #59554f;
  --line: #d7d0c7;
  --accent: #c93126;
  --accent-soft: rgba(201, 49, 38, 0.1);
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  --radius: 24px;
  --wrap: min(1320px, calc(100vw - 32px));
}

*,
*::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, rgba(17, 17, 17, 0.04) 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: 50;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(16px);
  background: rgba(244, 241, 234, 0.88);
}

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

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

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

.brand__mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  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;
}

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

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

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.06);
}

.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(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.button {
  background: var(--ink);
  color: #fff;
}

.button--ghost {
  background: transparent;
}

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

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

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

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

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

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

.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 rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.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 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: flex;
  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;
  touch-action: pan-x pinch-zoom;
  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: #eae5db;
}

.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, rgba(17, 17, 17, 0.05) 0 10px, transparent 10px 20px),
    #eae5db;
}

.product-card__placeholder span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  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__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;
}

.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: #fff;
  color: var(--ink);
}

.field:disabled {
  background: #f0ebe2;
  color: #8c857b;
}

.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 rgba(17, 17, 17, 0.14);
  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 rgba(17, 17, 17, 0.1);
  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 {
    grid-template-columns: 1fr 1fr;
  }

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

  .scroller__controls {
    display: none;
  }

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

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

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

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

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

  .nav {
    grid-column: auto;
  }

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

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

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

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

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

  .hero__headline {
    inset: auto 16px 16px 16px;
  }

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

  .hero__headline h1,
  .category-hero__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%;
  }

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

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