/* ==========================================================================
   MACHT — one-page site. Tokens mirror the Macht Core corporate reference.
   ========================================================================== */

:root {
  --bg-dark: #141414;
  --bg-card: #151515;
  --bg-hover: #1c1c1c;
  --text-white: #ffffff;
  --text-body: rgba(230, 230, 230, 1);
  --text-second: #bcbcbc;
  --text-muted: #9a9a9a;
  --text-muted-2: rgba(152, 152, 152, 1);
  --text-dark-grey: #515151;
  --accent: #f3f3f3;
  --accent-text: #3c3c3c;
  --border-color: #433f3f;
  --card-border: rgba(255, 255, 255, 0.12);
  --error: #d14343;
  --steel: #5b7c99;
  --steel-light: #9fb6c9;

  --font-body: 'Myriad Pro', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-brand: 'Big John PRO', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --text-size: 16px;
  --text-line-height: 27px;
  --text-letter-spacing: -0.01em;
  --text-weight: 300;

  --h1-size: 56px;
  --h1-line-height: 58px;
  --h2-size: 30px;

  --section-gap: 93px;
  --header-h: 85px;
  --container-pad: 156px;
  --radius-card: 22px;
  --radius-pill: 45px;
  --hero-height: 879px;
  --card-height: 547px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  background-color: var(--bg-dark);
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: var(--text-weight);
  font-size: var(--text-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  word-spacing: 0.04em;
  color: var(--text-body);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--steel-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.site {
  position: relative;
  z-index: 1;
}

/* Sections sit on a plain grid with the reference's 93px gap (no extra padding) */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--section-gap);
}

.main > section {
  min-width: 0;
}

/* Typography */

h1,
.hero-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--h1-size);
  line-height: var(--h1-line-height);
  letter-spacing: -0.05em;
  word-spacing: 0.06em;
  color: var(--text-white);
}

h2,
.section-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--h2-size);
  line-height: 97%;
  letter-spacing: -0.05em;
  word-spacing: 0.08em;
  color: var(--text-white);
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 400;
}

p,
li {
  font-size: var(--text-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
}

.subtitle {
  font-weight: 400;
  color: var(--text-body);
}

.section-desc {
  color: var(--text-body);
  opacity: 0.8;
  max-width: 470px;
}

.text-link {
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.75;
}

/* Language switch / reveal */

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* .lang-animating is present only for the duration of the swap, so nothing keeps a transform afterwards */
.lang-animating [data-en] {
  animation: langFadeIn 0.4s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Page-wide subtle echo of the hero effect (fixed, behind everything)
   -------------------------------------------------------------------------- */

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* film-grain dither on top of the glows so the 8-bit gradient steps do not read as rings */
.page-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

.page-glow span {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 124, 153, 0.08), rgba(91, 124, 153, 0.03) 38%, rgba(91, 124, 153, 0) 64%);
  will-change: transform;
  animation: glowDrift 52s ease-in-out infinite alternate;
}

.page-glow-a {
  top: -25vmax;
  right: -20vmax;
}

.page-glow-b {
  bottom: -35vmax;
  left: -25vmax;
  animation-duration: 67s;
  animation-direction: alternate-reverse;
  background: radial-gradient(closest-side, rgba(159, 182, 201, 0.055), rgba(159, 182, 201, 0.02) 38%, rgba(159, 182, 201, 0) 64%);
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8vw, 6vh, 0) scale(1.15); }
}

/* --------------------------------------------------------------------------
   Buttons, tags
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-outline,
.btn-submit {
  font-family: var(--font-body);
  font-weight: var(--text-weight);
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--accent-text);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.header .btn-primary {
  min-width: 132px;
  height: 39px;
}

.btn-primary--lg {
  height: 41px;
  padding: 10px 24px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 10px 20px;
  border: 1px solid #fff5f5;
  border-radius: var(--radius-pill);
  color: var(--text-white);
  background-color: transparent;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--accent-text);
  border-color: var(--text-white);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px var(--text-white);
  background: transparent;
  font-weight: 400;
  font-size: 12px;
  line-height: 25px;
  letter-spacing: 0;
  color: var(--text-white);
  white-space: nowrap;
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  padding-bottom: 23px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  color: var(--text-white);
}

.logo-text {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 25.9px;
  line-height: 28px;
  letter-spacing: 0.03em;
}

.logo-sub {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 7.55px;
  line-height: 100%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
  margin-left: auto;
}

.nav-link {
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--text-body);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-phone {
  color: var(--text-white);
}

.lang-switch {
  display: flex;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
}

.lang-switch span {
  color: var(--text-second);
  transition: color 0.3s ease;
}

.lang-switch .active {
  color: var(--text-white);
}

/* Burger + mobile menu */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 4;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-menu-dialog {
  position: relative;
  width: 80%;
  max-width: 360px;
  height: 100%;
  padding: 64px 28px 32px;
  background: var(--accent);
  color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-dialog {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--bg-dark);
}

.mobile-menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  padding: 16px 0;
  font-size: 16px;
  color: var(--bg-dark);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  transition: opacity 0.2s ease;
}

.mobile-menu-link:hover {
  opacity: 0.7;
}

.mobile-menu-lang {
  align-self: flex-start;
  gap: 14px;
}

.mobile-menu-lang .active {
  color: var(--bg-dark);
}

.mobile-menu-lang span:not(.active) {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hero + animated background
   -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: var(--hero-height);
  overflow: hidden;
  /* no opaque background: the tail of the hero composites over the fixed .page-glow + grain
     like every section below it, so there is no lighter band / hard step at the fold */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* fade canvas, shards and shade together into the page backdrop */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.is-webgl .hero-canvas {
  opacity: 1;
  transition: none; /* the shader shows at once under the gradient, which fades out over it */
}

/* CSS fallback (no WebGL / reduced motion): layered radial gradients */

.hero-css-bg {
  position: absolute;
  inset: -20%;
  display: none;
  background:
    radial-gradient(60% 55% at 72% 22%, rgba(91, 124, 153, 0.32), rgba(91, 124, 153, 0) 70%),
    radial-gradient(45% 50% at 30% 80%, rgba(60, 64, 70, 0.55), rgba(60, 64, 70, 0) 70%),
    radial-gradient(50% 45% at 85% 75%, rgba(159, 182, 201, 0.10), rgba(159, 182, 201, 0) 70%),
    radial-gradient(70% 60% at 50% 40%, #24272c, #0f1012 80%);
  transition: opacity 1.2s ease;
}

.hero-bg.is-css .hero-css-bg,
.hero-bg.is-static .hero-css-bg {
  display: block;
}

/* the static gradient covers the canvas (later sibling) while the shader calibrates,
   then cross-fades out once the first frame is drawn */
.hero-bg.is-webgl .hero-css-bg {
  opacity: 0;
}

.hero-bg.is-css .hero-css-bg {
  animation: cssSmoke 26s ease-in-out infinite alternate;
}

@keyframes cssSmoke {
  0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(2%, 3%, 0) rotate(2deg) scale(1.06); }
  100% { transform: translate3d(4%, -3%, 0) rotate(-1.5deg) scale(1.02); }
}

/* Glass shards: skewed translucent panes with 1px borders, parallax by JS */

.hero-shards {
  position: absolute;
  inset: 0;
}

.shard {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  will-change: transform;
}

.shard i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 35%, rgba(159, 182, 201, 0.05) 70%, rgba(255, 255, 255, 0.07) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: skewX(var(--r)) translateZ(0);
  animation: shardFloat var(--d) ease-in-out infinite alternate;
}

.shard i::after {
  content: '';
  position: absolute;
  top: 6%;
  left: 12%;
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22) 40%, rgba(255, 255, 255, 0));
}

/* Backdrop blur is expensive over a canvas that repaints every frame: only the three largest panes get it */
.shard:nth-child(-n+3) i {
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
}

.shard--sm i {
  border-color: rgba(255, 255, 255, 0.09);
}

@keyframes shardFloat {
  from { transform: skewX(var(--r)) translate3d(0, -10px, 0); }
  to { transform: skewX(var(--r)) translate3d(0, 14px, 0); }
}

/* Shade: keeps the copy readable and fades the hero into the page */

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.2) 35%, rgba(20, 20, 20, 0) 60%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0) 22%, rgba(20, 20, 20, 0) 70%, rgba(20, 20, 20, 0) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  padding-top: var(--header-h);
  padding-bottom: 44px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  max-width: 740px;
  margin-top: 120px;
  margin-bottom: auto;
}

.hero-content .subtitle {
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-facts li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-second);
}

.hero-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--steel-light);
}

.hero-br {
  display: inline;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 40px;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  min-width: 0;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.about-col p {
  color: #e6e6e6;
  opacity: 0.8;
  letter-spacing: -0.16px;
}

/* --------------------------------------------------------------------------
   Products (list + card slider)
   -------------------------------------------------------------------------- */

.products-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 60px;
}

.products-body {
  display: flex;
  gap: 50px;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 334px;
  flex-shrink: 0;
}

.product-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 4px 0;
  border: none;
  background: none;
  text-align: left;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.product-item:hover {
  color: var(--text-second);
}

.product-item.active {
  color: var(--text-white);
  transform: translateX(19px);
}

.product-line {
  flex-shrink: 0;
  width: 13px;
  height: 1px;
  margin-top: 13px; /* half the 27px line-height: the dash sits on the first line of a wrapped label */
  background: var(--text-muted);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.product-item.active .product-line {
  width: 28px;
  background: var(--text-white);
}

.product-slider {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--card-height);
  overflow: hidden;
  border-radius: 0;
}

.product-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #1a1c1f;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.product-card[hidden] {
  display: block;
}

.product-card.active {
  opacity: 1;
  visibility: visible;
}

.card-bg {
  position: absolute;
  inset: 0;
}

/* film grain: one small raster tile repeated by the compositor (same technique as .page-glow),
   instead of a per-paint feTurbulence filter inside every card SVG */
.card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../img/card-grain.png");
  background-size: 192px 192px;
  opacity: var(--grain, 0.8);
  pointer-events: none;
}

.card-art {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.04);
  transition: transform 1.2s ease-out;
}

.product-card.active .card-art {
  transform: scale(1);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 26px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--text-white);
}

.card-content h3 {
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.card-content p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.8);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  color: var(--text-white);
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Advantages
   -------------------------------------------------------------------------- */

.advantages-section .section-title,
.steps-section .section-title {
  margin-bottom: 50px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.adv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 30px 32px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.adv-card:hover {
  background-color: var(--bg-hover);
  border-color: var(--bg-hover);
}

.adv-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--text-white);
}

.adv-card h3 {
  font-size: 24px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.adv-card p {
  color: var(--text-body);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.step::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel-light);
}

.step-num {
  display: block;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 22px;
}

.step h3 {
  min-height: 44px;
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.step p {
  color: var(--text-body);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 37px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.form-row.full-width {
  column-gap: 64px;
}

.form-row.full-width .form-group {
  grid-column: span 3;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.form-group .form-label {
  display: block;
  width: 100%;
  font-weight: 400;
  color: var(--text-body);
}

.form-group input {
  width: 100%;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: var(--text-weight);
  font-size: 16px;
  line-height: 27px;
  letter-spacing: var(--text-letter-spacing);
  color: var(--text-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-row.full-width .form-group input {
  padding: 14px 15px 13px;
}

.form-group input::placeholder {
  color: var(--text-body);
  opacity: 1;
}

.form-group input:focus {
  border-bottom-color: var(--text-white);
}

.form-group input:focus-visible {
  outline: none;
  border-bottom-color: var(--steel-light);
  box-shadow: 0 1px 0 0 var(--steel-light);
}

.form-group.error input {
  border-bottom-color: var(--error);
}

.form-group.error input::placeholder {
  color: var(--error);
}

.error-msg {
  display: block;
  max-height: 0;
  margin-top: 6px;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
  opacity: 0;
  visibility: hidden; /* collapsed messages leave the accessibility tree too */
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, visibility 0.3s;
}

.form-group.error .error-msg:not([data-msg]),
.form-group.error[data-error="required"] .error-msg[data-msg="required"],
.form-group.error[data-error="format"] .error-msg[data-msg="format"],
.consent-wrap.error .consent-error {
  max-height: 40px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.attach-file {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin-top: 29px;
  cursor: pointer;
}

.attach-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 25px;
  flex-shrink: 0;
  color: var(--text-body);
}

.attach-file-icon svg {
  width: 20px;
  height: 20px;
  transform: rotate(-135deg);
}

.attach-file-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attach-file-label {
  font-weight: 400;
  line-height: 27px;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.attach-file-hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.attach-file:hover .attach-file-label {
  color: var(--text-white);
}

.attach-file:focus-within {
  outline: 2px solid var(--steel-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 7px;
}

.consent-wrap {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.consent-error {
  margin-left: 30px;
}

.consent-wrap.error .checkmark {
  outline: 1px solid var(--error);
  outline-offset: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--text-muted);
}

.checkbox-label .consent-link {
  color: var(--text-second);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: #d9d9d9;
}

.checkbox-label input:focus-visible ~ .checkmark {
  outline: 2px solid var(--steel-light);
  outline-offset: 2px;
}

.checkbox-label input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-submit:hover {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  color: #8fd49a;
}

.form-status--error {
  color: #f08a8a;
}

/* Contacts block */

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}

.contacts-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.contacts-col h3 {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts-value {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--text-white);
  overflow-wrap: anywhere;
}

a.contacts-value {
  transition: opacity 0.2s ease;
}

a.contacts-value:hover {
  opacity: 0.75;
}

.contacts-note {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.accordion-item {
  border: 1px solid var(--text-dark-grey);
  border-radius: 13px;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.accordion-item:hover:not(.active) {
  background-color: var(--bg-hover);
  border-color: var(--bg-hover);
}

.accordion-title {
  font-size: inherit;
  line-height: inherit;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 40px 20px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--text-body);
  cursor: pointer;
  transition: padding 0.25s ease;
}

.accordion-header:focus-visible {
  outline-offset: -4px;
  border-radius: 13px;
}

.accordion-item.active .accordion-header {
  padding: 30px 40px 0 16px;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.accordion-icon::before {
  content: '›';
}

.accordion-item.active .accordion-icon {
  transform: rotate(-90deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-body-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden; /* collapsed answers leave the accessibility tree and find-in-page */
  transition: opacity 0.3s ease, padding 0.3s ease, visibility 0.3s;
}

.accordion-body-inner p,
.accordion-body-inner li {
  color: var(--text-body);
  opacity: 0.85;
}

.accordion-body-inner > p {
  padding-left: 18px;
}

.accordion-body-inner .faq-list {
  margin-left: 34px;
  padding-left: 1.15em;
}

.accordion-body-inner .faq-list li {
  list-style: disc;
  list-style-position: outside;
  padding-left: 4px;
}

.faq-list li + li {
  margin-top: 6px;
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-item.active .accordion-body-inner {
  padding: 24px 40px 40px 40px;
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-section {
  position: relative;
  margin-top: var(--section-gap);
  padding-block: 60px 28px;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 60%;
  height: 160%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 124, 153, 0.12), rgba(91, 124, 153, 0) 72%);
}

.footer-section .container {
  position: relative;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  margin-bottom: 42px;
}

.footer-brand {
  width: 340px;
  max-width: 340px;
  flex-shrink: 0;
}

.footer-brand .logo {
  width: 160px;
}

.footer-brand .logo-text {
  font-size: 38px;
  line-height: 41px;
}

.footer-brand .logo-sub {
  font-size: 11px;
  margin-top: 4px;
}

.footer-tagline {
  margin-top: 23px;
  font-weight: 400;
  font-size: 30px;
  line-height: 97%;
  letter-spacing: -0.05em;
  color: var(--text-body);
}

.footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  flex: 1;
  align-items: start;
  min-width: 0;
}

.footer-col h4 {
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: #f7f6f6;
  margin: 0 0 16px;
}

.footer-col:last-child > h4 {
  margin-bottom: 4px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col p,
.footer-col a:not(.footer-product) {
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: -0.01em;
  color: var(--text-muted-2);
  transition: color 0.2s ease;
}

.footer-product {
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-product:hover,
.footer-bottom a:hover {
  color: var(--text-white);
}

.footer-col .footer-col-title--gap {
  margin-top: 20px;
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom a,
.footer-bottom span {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.02em;
  color: var(--text-muted-2);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* 1224–1439: the 156px container padding still applies, so the footer columns get a tighter brand block
   and content-fitted address / contact columns (the product links column takes the rest) */
@media (max-width: 1439px) {
  .footer-top {
    gap: 48px;
  }

  .footer-brand {
    width: 300px;
    max-width: 300px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr) fit-content(200px) fit-content(170px);
    column-gap: 32px;
  }
}

@media (max-width: 1223px) {
  :root {
    --container-pad: 40px;
  }

  /* same width as the desktop list: 'Цемент и общестроительные материалы' must stay on one
     line while the active shift (19px) and the longer dash (28px) are applied */
  .products-list {
    width: 334px;
  }

  .footer-top {
    gap: 40px;
  }

  .footer-brand {
    width: 280px;
    max-width: 280px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr) fit-content(200px) fit-content(170px);
    column-gap: 32px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-pad: 40px;
    --h1-size: 48px;
    --h1-line-height: 52px;
  }

  .nav {
    gap: 24px;
  }

  .hero-content {
    margin-top: 100px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .products-body {
    gap: 24px;
  }

  .products-list {
    width: 334px;
  }

  .product-slider {
    height: 500px;
  }

  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row.full-width {
    grid-template-columns: 1fr;
  }

  .form-row.full-width .form-group,
  .form-row.full-width .attach-file {
    grid-column: 1 / -1;
  }

  .form-row.full-width .attach-file {
    margin-top: 12px;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contacts {
    gap: 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 60px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-links .footer-col {
    min-width: 180px;
  }
}

@media (max-width: 1023px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 75px;
    --container-pad: 30px;
    --h1-size: 40px;
    --h1-line-height: 46px;
    --h2-size: 26px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-section {
    min-height: 720px;
    min-height: min(100svh, 900px);
  }

  .hero-content {
    margin-top: 80px;
    max-width: 585px;
  }

  .hero-br {
    display: none;
  }

  .shard--sm {
    display: none;
  }

  .products-header {
    margin-bottom: 40px;
  }

  .products-body {
    flex-direction: column;
    gap: 28px;
  }

  /* List becomes a row of outlined pill buttons */
  .products-list {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .product-item {
    width: auto;
    height: 38px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--text-dark-grey);
    border-radius: 32px;
    font-size: 14px;
    line-height: 1;
    color: var(--text-second);
    gap: 0;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  }

  .product-item.active {
    transform: none;
    color: var(--text-white);
    border-color: var(--text-white);
  }

  .product-line {
    display: none;
  }

  .product-slider {
    flex: none;
    width: 100%;
    height: var(--card-height);
  }

  .card-content {
    padding: 24px;
    gap: 14px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.8) 32%, rgba(20, 20, 20, 0.96) 100%);
  }

  .adv-card {
    padding: 24px;
  }

  .advantages-section .section-title,
  .steps-section .section-title {
    margin-bottom: 36px;
  }

  /* Steps become a vertical timeline */
  .steps {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .step {
    padding-top: 0;
    padding-left: 28px;
    border-top: none;
  }

  .step::before {
    top: 6px;
  }

  .step::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 16px;
    bottom: -28px;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
  }

  .step:last-child::after {
    display: none;
  }

  .step-num {
    margin-bottom: 10px;
  }

  .step h3 {
    min-height: 0;
  }

  .contact-container {
    gap: 48px;
  }

  .contacts {
    grid-template-columns: 1fr 1fr;
    padding-top: 32px;
  }

  .accordion-header {
    padding: 18px 20px 18px 16px;
  }

  .accordion-item.active .accordion-header {
    padding: 24px 20px 0 16px;
  }

  .accordion-body-inner {
    padding: 0 20px;
  }

  .accordion-body-inner > p {
    padding-left: 12px;
  }

  .accordion-body-inner .faq-list {
    margin-left: 24px;
  }

  .accordion-item.active .accordion-body-inner {
    padding: 20px 20px 32px 20px;
  }

  .footer-section {
    padding-bottom: 37px;
  }

  .footer-top {
    gap: 48px;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 64px;
    --container-pad: 15px;
    --h1-size: 32px;
    --h1-line-height: 38px;
    --h2-size: 24px;
  }

  .hero-content {
    margin-top: 56px;
    gap: 14px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 22px;
  }

  .hero-actions .btn-outline,
  .hero-actions .btn-primary {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 48px;
  }

  .hero-body {
    padding-bottom: 32px;
  }

  .about-container {
    row-gap: 28px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .products-header {
    margin-bottom: 28px;
  }

  .product-item {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  /* Card becomes an art strip with the content flowing below it */
  .product-slider {
    height: auto;
    overflow: visible;
  }

  .product-card,
  .product-card[hidden] {
    position: relative;
    inset: auto;
    display: none;
    transition: none;
  }

  .product-card.active {
    display: block;
    animation: cardFadeIn 0.45s ease both;
  }

  .card-content {
    position: relative;
    margin-top: 190px;
    padding: 20px 14px 24px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.85) 22%, rgba(20, 20, 20, 0.97) 100%);
  }

  .card-content .card-link {
    margin-top: 4px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .tag {
    height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .adv-card {
    gap: 16px;
  }

  .adv-card h3 {
    font-size: 20px;
  }

  .form-row,
  .form-row.full-width {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
  }

  .form-footer .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-value {
    font-size: 18px;
    line-height: 26px;
  }

  .faq-container {
    gap: 32px;
  }

  .footer-top {
    gap: 0;
    margin-bottom: 56px;
  }

  .footer-brand {
    width: 100%;
    max-width: none;
  }

  .footer-tagline {
    font-size: 24px;
    margin-top: 16px;
    margin-bottom: 32px;
    max-width: 280px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@keyframes cardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Reduced motion: static hero gradient, no reveal / float / drift animation
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lang-animating [data-en] {
    animation: none;
  }

  .page-glow span,
  .shard i,
  .hero-css-bg {
    animation: none;
  }

  .card-art {
    transition: none;
    transform: none;
  }

  .hero-canvas {
    display: none;
  }

  .hero-css-bg {
    display: block;
  }
}
