/* ==========================================================================
   YOU-ONE Fastening Systems — design system
   ========================================================================== */

:root {
  /* Palette — cool steel base, single warm industrial accent */
  --ink:        #0a0f14;
  --steel-950:  #0d141c;
  --steel-900:  #121b25;
  --steel-800:  #1b2836;
  --steel-700:  #2b3b4d;
  --steel-500:  #5a6b7e;
  --steel-400:  #7d8c9d;
  --steel-300:  #a9b5c1;
  --steel-200:  #d3dae1;
  --steel-100:  #e9edf1;
  --steel-50:   #f5f7f9;
  --white:      #ffffff;

  --accent:      #ff6a13;
  --accent-dark: #d9500a;
  --accent-soft: #fff1e8;

  /* Type */
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
               "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--steel-900);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section--dark {
  background: var(--steel-950);
  color: var(--steel-300);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section--muted { background: var(--steel-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section--dark .eyebrow { color: var(--accent); }

.h-display { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-section { font-size: clamp(1.65rem, 3.2vw, 2.6rem); }
.h-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--steel-500);
  max-width: 62ch;
}
.section--dark .lead { color: var(--steel-300); }

.section-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--steel-900);
  border-color: var(--steel-200);
}
.btn--ghost:hover {
  background: var(--steel-900);
  border-color: var(--steel-900);
  color: var(--white);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--steel-900);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: var(--steel-400);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  white-space: nowrap;
}
.topbar__meta { display: flex; align-items: center; gap: 22px; flex: none; }
.topbar__inner > .topbar__tag { overflow: hidden; text-overflow: ellipsis; }
.topbar a { transition: color 0.2s; }
.topbar a:hover { color: var(--white); }
.topbar__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--steel-100);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 8px 30px -18px rgba(10, 15, 20, 0.4); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand img { height: 38px; width: auto; max-width: 100%; object-fit: contain; }
.brand__text { display: none; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: 4px; }

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel-700);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--steel-900); background: var(--steel-50); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link .chev { width: 9px; height: 9px; transition: transform 0.25s var(--ease); opacity: 0.55; }
.nav__item:hover .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(940px, calc(100vw - 48px));
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(10, 15, 20, 0.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease), visibility 0.22s;
}
.nav__item:hover .mega, .nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.mega__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--steel-100);
}
.mega__col a {
  display: block;
  padding: 7px 10px;
  margin-inline: -10px;
  font-size: 0.875rem;
  color: var(--steel-500);
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}
.mega__col a:hover { color: var(--steel-900); background: var(--steel-50); }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header__cta .btn { padding: 12px 22px; font-size: 0.86rem; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  color: var(--steel-900);
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-bottom, 114px);
  z-index: 99;
  background: var(--white);
  overflow-y: auto;
  padding: 8px var(--gut) 60px;
  border-top: 1px solid var(--steel-100);
}
.mobile-nav.is-open { display: block; }
body.nav-open { overflow: hidden; }

.mobile-nav details { border-bottom: 1px solid var(--steel-100); }
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel-900);
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details ul { padding: 0 2px 18px; }
.mobile-nav details ul a {
  display: block;
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--steel-500);
}
.mobile-nav > a.mobile-nav__top {
  display: block;
  padding: 18px 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel-900);
  border-bottom: 1px solid var(--steel-100);
}
.mobile-nav .btn { width: 100%; margin-top: 26px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.4) contrast(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 15, 20, 0.96) 8%, rgba(10, 15, 20, 0.7) 52%, rgba(10, 15, 20, 0.5) 100%),
    radial-gradient(1200px 500px at 12% 110%, rgba(255, 106, 19, 0.16), transparent 70%);
}
.hero__inner {
  padding: clamp(76px, 12vw, 148px) 0 0;
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  color: var(--white);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: var(--steel-300);
  max-width: 60ch;
  margin-bottom: 38px;
}
.hero .btn-row { margin-bottom: clamp(56px, 8vw, 96px); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stat {
  background: rgba(10, 15, 20, 0.55);
  padding: 26px 22px 30px;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 4px;
}
.hero__stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--steel-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 72%);
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -220px;
  background: radial-gradient(circle, rgba(255, 106, 19, 0.18), transparent 65%);
}
.page-hero h1 { color: var(--white); max-width: 20ch; margin-bottom: 18px; }
.page-hero .lead { color: var(--steel-300); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--steel-400); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ==========================================================================
   Category cards
   ========================================================================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 22px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--steel-200);
  box-shadow: 0 24px 50px -28px rgba(10, 15, 20, 0.34);
}
.cat-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--steel-50);
  overflow: hidden;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: rgba(10, 15, 20, 0.82);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.cat-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cat-card__body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.cat-card__body p { font-size: 0.9rem; color: var(--steel-500); margin-bottom: 18px; }
.cat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.cat-card__tags li {
  padding: 4px 10px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--steel-500);
}

/* ==========================================================================
   Feature / value grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--steel-950);
  padding: 34px 30px 38px;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 106, 19, 0.4);
  border-radius: var(--radius);
  color: var(--accent);
  background: rgba(255, 106, 19, 0.08);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.04rem; margin-bottom: 10px; }
.feature p { font-size: 0.9rem; color: var(--steel-400); }

/* Light variant */
.feature-grid--light { background: var(--steel-100); border-color: var(--steel-100); }
.feature-grid--light .feature { background: var(--white); }
.feature-grid--light .feature p { color: var(--steel-500); }

/* ==========================================================================
   Split (image + text)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--steel-100);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }

.split__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 18px 24px;
  background: var(--accent);
  color: var(--white);
  border-top-right-radius: var(--radius-lg);
}
.split__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 3px;
}
.split__badge span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.check-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--steel-500);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .check-list li { color: var(--steel-300); }
.section--dark .check-list li::before { background-color: rgba(255, 106, 19, 0.16); }

/* ==========================================================================
   Product highlight cards
   ========================================================================== */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -26px rgba(10, 15, 20, 0.3); }
.prod-card__media {
  aspect-ratio: 3 / 2;
  background: var(--steel-50);
  overflow: hidden;
  border-bottom: 1px solid var(--steel-100);
}
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.prod-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.prod-card__body h3 { font-size: 1.06rem; margin-bottom: 9px; }
.prod-card__body p { font-size: 0.88rem; color: var(--steel-500); margin-bottom: 16px; }
.prod-card__body .link-arrow { margin-top: auto; }

/* ==========================================================================
   Catalog (products page)
   ========================================================================== */

.catalog { display: grid; grid-template-columns: 244px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.catalog__nav { position: sticky; top: 104px; }
.catalog__nav h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 14px;
}
.catalog__nav ol { border-left: 1px solid var(--steel-100); }
.catalog__nav a {
  display: block;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  color: var(--steel-500);
  transition: color 0.2s, border-color 0.2s;
}
.catalog__nav a:hover { color: var(--steel-900); }
.catalog__nav a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

.cat-block { padding-bottom: clamp(48px, 7vw, 84px); }
.cat-block + .cat-block { border-top: 1px solid var(--steel-100); padding-top: clamp(44px, 6vw, 72px); }
.cat-block__head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; margin-bottom: 34px; }
.cat-block__head > div { flex: 1 1 340px; }
.cat-block__head h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-bottom: 12px; }
.cat-block__head p { font-size: 0.95rem; color: var(--steel-500); max-width: 58ch; }
.cat-block__img {
  flex: none;
  width: 168px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--steel-100);
  background: var(--steel-50);
}
.cat-block__img img { width: 100%; height: 100%; object-fit: cover; }

.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }
.spec-group {
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
}
.spec-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--steel-200);
}
.spec-group h3 em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--steel-400);
  font-weight: 400;
}
.spec-group ul { display: grid; gap: 2px; }
.spec-group li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--steel-700);
}
.spec-group li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-800);
  aspect-ratio: 16 / 10;
}
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); }

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline { display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--steel-100);
}
.timeline li:last-child { border-bottom: 1px solid var(--steel-100); }
.timeline time, .timeline .tl-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.timeline .tl-label { font-size: 1rem; color: var(--steel-400); }
.timeline h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline p { font-size: 0.9rem; color: var(--steel-500); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 24px 60px -40px rgba(10, 15, 20, 0.35);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel-700);
  letter-spacing: 0.01em;
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--steel-900);
  padding: 12px 14px;
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.form-note { font-size: 0.78rem; color: var(--steel-400); margin: 16px 0 0; }
.form-card .btn { margin-top: 22px; width: 100%; }

.office-list { display: grid; gap: 16px; }
.office {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
}
.office h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.office h3 em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-weight: 500;
}
.office dl { display: grid; grid-template-columns: 60px 1fr; gap: 8px 14px; margin: 0; font-size: 0.875rem; }
.office dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-400);
  padding-top: 3px;
}
.office dd { margin: 0; color: var(--steel-700); }
.office dd a:hover { color: var(--accent); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta {
  position: relative;
  background: var(--accent);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, var(--accent-dark), var(--accent) 55%, #ff8442);
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 100% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 100% at 100% 0%, #000, transparent 70%);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px 40px;
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; max-width: 24ch; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 46ch; font-size: 1rem; }
.cta .btn {
  background: var(--white);
  color: var(--steel-900);
  border-color: var(--white);
}
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cta .btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.cta .btn--ghost-light:hover { background: var(--white); color: var(--accent-dark); border-color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--steel-400);
  padding: clamp(56px, 7vw, 84px) 0 0;
  font-size: 0.9rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__brand img { height: 34px; margin-bottom: 20px; }
.footer__brand p { font-size: 0.88rem; color: var(--steel-500); max-width: 34ch; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--steel-400); transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer__contact dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 12px; margin: 0; }
.footer__contact dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  padding-top: 2px;
}
.footer__contact dd { margin: 0; color: var(--steel-300); font-size: 0.86rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--steel-500);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 20px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--steel-900);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__nav { position: static; display: none; }
}

@media (max-width: 960px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .nav-toggle { display: grid; }
  .site-header__inner { gap: 16px; }
  .brand img { height: 30px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar__meta .topbar__hide-sm { display: none; }
  .site-header__inner { min-height: 66px; }
  .brand img { height: 27px; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-block__head { flex-direction: column-reverse; align-items: flex-start; }
  .cat-block__img { width: 120px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .header__cta .btn { padding: 10px 16px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .header__cta .btn { display: none; }
  .brand img { height: 24px; }
}

@media (max-width: 420px) {
  .hero__stats { grid-template-columns: 1fr; }
  .brand img { height: 21px; }
  .site-header__inner { gap: 12px; }
}
