/* Олимп — производство, металлообработка (фирменный стиль под логотип) */
:root {
  --bg: #eef0f2;
  --bg-elevated: #f7f8f9;
  --bg-card: #ffffff;
  --ink: #1c1f24;
  --ink-muted: #5a6169;
  --border: #d0d4d9;
  --accent: #2a2d33;
  --accent-hover: #15171b;
  --accent-soft: rgba(42, 45, 51, 0.08);
  --steel: #3e6d8a;
  --steel-soft: rgba(62, 109, 138, 0.12);
  --success: #1e6f4e;
  --header-h: 58px;
  --radius: 4px;
  --shadow: 0 14px 36px rgba(28, 31, 36, 0.1);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --img-watermark: url("../img/watermark-olimp.svg");
  --img-watermark-size: 360px 160px;
  --grid-line: rgba(42, 45, 51, 0.045);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 28%, var(--bg) 100%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior-x: none;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

@media (max-width: 1100px) {
  body {
    background-attachment: scroll;
  }
}

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

a {
  color: var(--steel);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}

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

.container {
  width: min(1440px, calc(100% - 1.5rem));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  padding: 0.3rem 0;
  line-height: 1.35;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.topbar__sep {
  opacity: 0.55;
}

.footer__muted {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.footer .footer__muted {
  color: rgba(255, 255, 255, 0.45);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0.35rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo:hover .logo__img {
  opacity: 0.92;
}

.logo__img {
  height: 42px;
  width: auto;
  display: block;
}

.page-home .header__inner {
  min-height: 76px;
}

.page-home .header .logo__img {
  height: 58px;
}

@media (max-width: 720px) {
  .page-home .header .logo__img {
    height: 46px;
  }

  .page-home .header__inner {
    min-height: 64px;
  }
}

.page-home .footer__brand .logo__img {
  height: 52px;
}

@media (max-width: 720px) {
  .page-home .footer__brand .logo__img {
    height: 44px;
  }
}

.logo__mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.06em;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 0.65rem;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 1101px) {
  .nav > a {
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
  }

  .nav > a:hover {
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(42, 45, 51, 0.12);
  }

  .nav > a.is-active {
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(42, 45, 51, 0.18);
    font-weight: 600;
  }
}

.nav-dropdown {
  position: relative;
}

/* Лазер и механо: подпись — ссылка на страницу, ▼ — только раскрытие подменю */
.nav-dropdown__split {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.nav-dropdown__page-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.65rem 0.25rem 0.25rem 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-dropdown__page-link:hover {
  color: var(--accent);
}

.nav-dropdown__page-link:focus {
  outline: none;
}

.nav-dropdown__page-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
  width: auto;
  flex-shrink: 0;
  justify-content: center;
  gap: 0;
  padding: 0.65rem 0.2rem 0.25rem 0.35rem;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0 0.25rem;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-dropdown__toggle:hover {
  color: var(--accent);
}

.nav-dropdown__toggle:focus {
  outline: none;
}

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

.nav-dropdown__toggle-label {
  flex: 1;
  min-width: 0;
}

.nav-dropdown__chevron {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.5rem;
  line-height: 1;
  color: var(--ink-muted);
  background: rgba(20, 22, 26, 0.06);
  border-radius: 50%;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease,
    color 0.18s ease;
}

.nav-dropdown.is-expanded .nav-dropdown__chevron {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent);
}

/* По умолчанию подменю скрыто — раскрытие только по .is-expanded (клик + JS) */
.nav-dropdown__menu {
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dropdown.is-expanded .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: none;
  font-size: 0.88rem;
}

.nav-dropdown.is-active > .nav-dropdown__toggle {
  color: var(--accent);
}

.nav-dropdown.is-active > .nav-dropdown__toggle .nav-dropdown__chevron {
  color: var(--accent);
}

.nav-dropdown.is-active > .nav-dropdown__split > .nav-dropdown__page-link {
  color: var(--accent);
}

.nav-dropdown.is-active > .nav-dropdown__split > .nav-dropdown__toggle--icon-only {
  color: var(--accent);
}

.nav-dropdown__menu a.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* «Запрос КП и расчет» — в стиле основной кнопки (.btn--primary) */
#nav-request-toggle {
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

#nav-request-toggle:hover {
  color: #fff;
  background: var(--accent-hover);
}

#nav-request-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#nav-request-toggle .nav-dropdown__chevron {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

#nav-request-toggle:hover .nav-dropdown__chevron {
  color: #fff;
  background: rgba(255, 255, 255, 0.32);
}

.nav-dropdown.is-active > #nav-request-toggle {
  color: #fff;
  background: var(--accent);
}

.nav-dropdown.is-active > #nav-request-toggle:hover {
  color: #fff;
  background: var(--accent-hover);
}

.nav-dropdown.is-expanded > #nav-request-toggle {
  color: #fff;
  background: var(--accent-hover);
}

.nav-dropdown.is-expanded > #nav-request-toggle .nav-dropdown__chevron {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
}

@media (min-width: 1101px) {
  .nav-dropdown__split {
    width: auto;
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border-radius: 10px;
    vertical-align: middle;
  }

  .nav-dropdown__page-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    padding: 0.5rem 0.45rem 0.5rem 0.7rem;
    border-radius: 10px 0 0 10px;
  }

  .nav-dropdown__page-link:hover {
    color: var(--accent);
  }

  .nav-dropdown__page-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 10px 0 0 10px;
    z-index: 1;
  }

  .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    padding: 0.5rem 0.6rem 0.5rem 0.25rem;
    border-radius: 0 10px 10px 0;
  }

  .nav-dropdown__split:hover .nav-dropdown__page-link,
  .nav-dropdown__split:hover .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(42, 45, 51, 0.12);
  }

  .nav-dropdown__toggle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    padding: 0.5rem 0.6rem 0.5rem 0.7rem;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    gap: 0.35rem;
  }

  .nav-dropdown__toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(42, 45, 51, 0.12);
  }

  .nav-dropdown.is-active > .nav-dropdown__toggle {
    color: var(--accent);
  }

  .nav-dropdown.is-active > .nav-dropdown__toggle:hover {
    color: var(--accent);
  }

  .nav-dropdown.is-active > .nav-dropdown__split:hover > .nav-dropdown__page-link,
  .nav-dropdown.is-active > .nav-dropdown__split:hover > .nav-dropdown__toggle--icon-only {
    color: var(--accent);
  }

  .nav-dropdown.is-expanded > .nav-dropdown__split > .nav-dropdown__page-link,
  .nav-dropdown.is-expanded > .nav-dropdown__split > .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(42, 45, 51, 0.12);
  }

  .nav-dropdown__chevron {
    display: grid;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.42rem;
    background: rgba(20, 22, 26, 0.05);
  }

  .nav-dropdown.is-active:not(.is-expanded) .nav-dropdown__chevron {
    color: var(--accent);
  }

  #nav-request-toggle {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
  }

  #nav-request-toggle .nav-dropdown__chevron {
    width: 1.35rem;
    height: 1.35rem;
  }

  .nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 18.5rem;
    padding: 0.55rem 0.5rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 56px rgba(20, 22, 26, 0.14), 0 4px 14px rgba(20, 22, 26, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    z-index: 10020;
    border-left: none;
    margin-left: 0;
    overflow: hidden;
    gap: 0.15rem;
  }

  .nav-dropdown__menu::before {
    content: "";
    display: block;
    height: 3px;
    margin: -0.55rem -0.5rem 0.45rem;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--accent) 0%, var(--steel) 100%);
    opacity: 0.95;
  }

  .nav-dropdown__menu.nav-dropdown__menu--wide {
    min-width: 22rem;
  }

  .nav-dropdown__menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    white-space: nowrap;
    border-radius: 10px;
    margin: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }

  .nav-dropdown__menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-dropdown__menu a:active {
    transform: scale(0.99);
  }

  .nav-dropdown__menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__actions .btn {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.menu-toggle:hover {
  border-color: rgba(42, 45, 51, 0.28);
  background: var(--accent-soft);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle:active {
  transform: scale(0.96);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: background 0.15s ease, transform 0.22s ease, opacity 0.18s ease;
}

.menu-toggle:hover span {
  background: var(--accent);
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 1rem 0 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border);
  margin-left: 0.15rem;
}

.breadcrumbs a {
  color: var(--ink-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 3rem 0 3.75rem;
  background:
    linear-gradient(105deg, rgba(28, 31, 36, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-elevated) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.85rem;
}

.hero h1 {
  margin-bottom: 0.85rem;
  color: var(--ink);
  max-width: 18ch;
}

.hero__lead {
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero__cta {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #2a2d33 0%, #15171b 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 31, 36, 0.2);
}

.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: contrast(1.05) saturate(0.92);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--img-watermark),
    linear-gradient(180deg, transparent 45%, rgba(28, 31, 36, 0.35) 100%),
    radial-gradient(circle at 28% 18%, rgba(62, 109, 138, 0.28) 0%, transparent 52%);
  background-size: var(--img-watermark-size), auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
}

@keyframes olimp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes olimp-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-home .hero__brand {
  animation: olimp-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero__eyebrow {
  animation: olimp-rise 0.65s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero h1 {
  animation: olimp-rise 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero__lead,
.page-home .hero__cta {
  animation: olimp-rise 0.7s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero__visual {
  animation: olimp-fade 0.9s 0.15s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__brand,
  .page-home .hero__eyebrow,
  .page-home .hero h1,
  .page-home .hero__lead,
  .page-home .hero__cta,
  .page-home .hero__visual {
    animation: none;
  }
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section {
  padding: 3.5rem 0;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section__head h2 {
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(42, 45, 51, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #e8e5df 0%, #d4cfc4 100%);
  overflow: hidden;
}

.card__media:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, 0.35);
}

.card__media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__media:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--img-watermark);
  background-size: var(--img-watermark-size);
  background-repeat: repeat;
}

.card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.card__body h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.card__body p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--bg-card);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  background: var(--steel-soft);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.88rem;
}

.cta-band {
  background: linear-gradient(135deg, #1c1f24 0%, #2a2d33 55%, #243542 100%);
  color: #fff;
  padding: 2.9rem 0;
  margin-top: 1rem;
  border-top: 4px solid var(--steel);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn--primary:hover {
  background: #e8eaed;
  color: var(--ink);
}

.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer {
  background: #0e0f12;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand .logo__img {
  height: 44px;
}

.footer__brand .logo__sub {
  color: rgba(255, 255, 255, 0.45);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.45rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Страница услуги (карточка как у конкурента) */
.product-page {
  padding: 0 0 3rem;
}

/* Текст и галереи на всю ширину контейнера (раньше — узкие inline max-width) */
.product-page [style*="max-width: 48rem"],
.product-page [style*="max-width: 56rem"],
.product-page [style*="max-width: 42rem"] {
  max-width: none !important;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr min(360px, 38%);
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
}

.product-layout--form-only {
  grid-template-columns: 1fr;
  justify-items: end;
}

.product-layout--form-only .sidebar-card {
  width: min(400px, 100%);
}

/* Страница калькулятора: смета сверху, заявка на КП на всю ширину под ней */
.product-layout--calc-stack {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.product-layout--calc-stack .laser-request-panel {
  position: static;
  width: 100%;
  max-width: none;
}

.laser-intro-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.65rem;
}

.laser-request-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.product-layout .laser-request-panel {
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.laser-request-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.price-row--laser-bar {
  margin-bottom: 0;
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
}

.stock--laser-bar {
  margin: 0;
  flex: 0 1 auto;
  text-align: right;
  max-width: 22rem;
}

@media (max-width: 720px) {
  .laser-request-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .stock--laser-bar {
    text-align: left;
    max-width: none;
  }
}

.form-turnstile {
  margin: 0 0 0.85rem;
  min-height: 4.25rem;
}

.form.form--laser-inline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form--laser-inline textarea {
  min-height: 2.75rem;
  resize: vertical;
}

.form--laser-inline .form-hint--laser-inline {
  margin: 0;
}

.form--laser-inline .btn {
  width: 100%;
}

@media (min-width: 801px) {
  .form.form--laser-inline {
    display: grid;
    grid-template-columns: minmax(11rem, 1.2fr) minmax(0, 2.4fr) auto;
    grid-template-rows: auto auto auto auto auto;
    column-gap: 1rem;
    row-gap: 0.45rem;
    align-items: start;
  }

  .form--laser-inline > div:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .form--laser-inline > div:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .form--laser-inline > div:nth-of-type(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .form--laser-inline > div:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .form--laser-inline textarea {
    min-height: 5.5rem;
  }

  .form--laser-inline .form-hint--laser-inline {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .form--laser-inline .btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: auto;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    white-space: nowrap;
    align-self: end;
  }

  .form--laser-inline .form-success {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  /* Имя, телефон, артикул в колонке + комментарий + вложения (каталог) */
  .form.form--laser-inline.form--laser-inline--4field {
    grid-template-rows: auto auto auto auto auto auto;
  }

  .form.form--laser-inline.form--laser-inline--4field > div:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .form.form--laser-inline.form--laser-inline--4field > div:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .form.form--laser-inline.form--laser-inline--4field > div:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .form.form--laser-inline.form--laser-inline--4field > div:nth-of-type(4) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
  }

  .form.form--laser-inline.form--laser-inline--4field > div:nth-of-type(5) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .form.form--laser-inline.form--laser-inline--4field .form-hint--laser-inline {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .form.form--laser-inline.form--laser-inline--4field .btn {
    grid-column: 3;
    grid-row: 1 / span 3;
    width: auto;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    white-space: nowrap;
    align-self: end;
  }

  .form.form--laser-inline.form--laser-inline--4field .form-success {
    grid-column: 1 / -1;
    grid-row: 6;
  }
}

/* Боковая панель и блок заявки в услугах: без трёхколоночной сетки — поля столбиком */
@media (min-width: 801px) {
  .laser-request-panel .form.form--laser-inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .laser-request-panel .form.form--laser-inline > div:nth-of-type(1),
  .laser-request-panel .form.form--laser-inline > div:nth-of-type(2),
  .laser-request-panel .form.form--laser-inline > div:nth-of-type(3),
  .laser-request-panel .form.form--laser-inline > div:nth-of-type(4),
  .laser-request-panel .form.form--laser-inline > div:nth-of-type(5),
  .laser-request-panel .form.form--laser-inline > div:nth-of-type(6) {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .laser-request-panel .form.form--laser-inline .form-hint--laser-inline,
  .laser-request-panel .form.form--laser-inline .form-hint.form-hint--laser-inline {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .laser-request-panel .form.form--laser-inline .btn {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    white-space: normal;
  }

  .laser-request-panel .form.form--laser-inline .form-success {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .laser-request-panel .form.form--laser-inline textarea {
    min-height: 4.25rem;
  }
}

.laser-intro-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  align-content: start;
  align-items: stretch;
  min-width: 0;
}

@media (max-width: 1024px) {
  .laser-intro-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 0.55rem;
  }
}

.laser-intro-gallery__fig {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.laser-intro-gallery__fig img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.laser-intro-gallery__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--img-watermark);
  background-size: var(--img-watermark-size);
  background-repeat: repeat;
}

.laser-intro-gallery__note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* Три превью под разделами лазера: одинаковая ячейка 16:9, подписи с одной линии */
.sheet-cut-gallery,
.tube-cut-gallery,
.laser-weld-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
  min-width: 0;
  align-items: start;
}

.sheet-cut-gallery > figure,
.tube-cut-gallery > figure,
.laser-weld-gallery > figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.sheet-cut-gallery > figure > img,
.tube-cut-gallery > figure > img,
.laser-weld-gallery > figure > img {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  flex-shrink: 0;
}

.sheet-cut-gallery > figure::after,
.tube-cut-gallery > figure::after,
.laser-weld-gallery > figure::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius);
  background-image: var(--img-watermark);
  background-size: var(--img-watermark-size);
  background-repeat: repeat;
}

.sheet-cut-gallery figcaption,
.tube-cut-gallery figcaption,
.laser-weld-gallery figcaption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery__main {
  position: relative;
  aspect-ratio: 1;
  max-height: 520px;
  background: linear-gradient(145deg, #3a3e46 0%, #23252a 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.gallery__main:has(img[data-gallery-main]) {
  display: block;
  padding: 0;
}

.gallery__main img[data-gallery-main] {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.gallery__main:has(img[data-gallery-main])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--img-watermark);
  background-size: var(--img-watermark-size);
  background-repeat: repeat;
}

.gallery__main span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.gallery__main:has(img[data-gallery-main]) span {
  display: none;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #d8d3ca;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(20, 22, 26, 0.4);
  transition: border-color 0.15s;
  padding: 0;
  overflow: hidden;
}

.gallery__thumb:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 4px;
  background-image: var(--img-watermark);
  background-size: 100px 59px;
  background-repeat: repeat;
}

.gallery__thumb img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
  border-color: var(--accent);
}

.gallery__credit {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Механо и др.: одиночные figure с одним img (без подписи) */
.product-page figure:has(> img):not(:has(figcaption)):not(.laser-intro-gallery__fig) {
  position: relative;
}

.product-page figure:has(> img):not(:has(figcaption)):not(.laser-intro-gallery__fig) > img {
  position: relative;
  z-index: 0;
}

.product-page figure:has(> img):not(:has(figcaption)):not(.laser-intro-gallery__fig)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--img-watermark);
  background-size: var(--img-watermark-size);
  background-repeat: repeat;
}

.product-title-block {
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(30, 111, 78, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.sku {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.sku strong {
  color: var(--ink);
  font-weight: 600;
}

.sidebar-card {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.price-row {
  margin-bottom: 1rem;
}

.price-row__label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.price-row__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

.price-row__note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.stock {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 1.25rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--ink);
}

.form select {
  cursor: pointer;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form textarea {
  min-height: 88px;
  resize: vertical;
}

.form input[type="file"] {
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-attachments__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.form .form-success {
  padding: 0.75rem;
  background: rgba(30, 111, 78, 0.12);
  border-radius: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.tabs-section {
  margin-top: 2.5rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.tabs-nav button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-muted);
}

.tabs-nav button.is-active {
  background: var(--ink);
  color: #fff;
}

.tab-panel {
  display: none;
}

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

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  width: 42%;
  color: var(--ink-muted);
  font-weight: 500;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.included-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}

.included-list li:last-child {
  border-bottom: none;
}

.included-list strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

.included-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(20, 22, 26, 0.08);
  text-decoration: none;
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.related-item p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero h1 {
    max-width: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .laser-intro-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sheet-cut-gallery,
  .tube-cut-gallery,
  .laser-weld-gallery {
    grid-template-columns: 1fr;
  }

  .product-layout--form-only {
    justify-items: stretch;
  }

  .product-layout--form-only .sidebar-card {
    width: auto;
  }

  .sidebar-card,
  .product-layout .laser-request-panel {
    position: static;
  }

  .related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  /* Полноэкранное меню на весь экран (не сжимать по контенту!) */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100vw;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: max(4.25rem, calc(env(safe-area-inset-top, 0px) + 3.5rem))
      max(0.75rem, env(safe-area-inset-right, 0px))
      max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem))
      max(0.75rem, env(safe-area-inset-left, 0px));
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10001;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav > a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.55rem 0.95rem;
    margin: 0;
    border-bottom: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav > a:active {
    background: rgba(20, 22, 26, 0.06);
  }

  .nav > a:hover,
  .nav > a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
  }

  .nav > a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
  }

  .nav-dropdown {
    border-bottom: none;
    padding-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .nav-dropdown__split {
    width: 100%;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
  }

  .nav-dropdown__page-link {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0.55rem 0.5rem 0.55rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    border-radius: 0;
  }

  .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    min-height: 46px;
    padding: 0.55rem 0.85rem 0.55rem 0.35rem;
    border-radius: 0;
  }

  .nav-dropdown__split:hover .nav-dropdown__page-link,
  .nav-dropdown__split:hover .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-dropdown__toggle {
    min-height: 46px;
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    border-radius: 12px;
  }

  .nav-dropdown__toggle:hover,
  .nav-dropdown__toggle:focus-visible {
    color: var(--accent);
    background: var(--accent-soft);
    outline: none;
  }

  .nav-dropdown.is-expanded > .nav-dropdown__toggle {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-dropdown.is-expanded > .nav-dropdown__split > .nav-dropdown__page-link,
  .nav-dropdown.is-expanded > .nav-dropdown__split > .nav-dropdown__toggle.nav-dropdown__toggle--icon-only {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-dropdown__menu {
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.2rem 0 0.5rem;
    padding: 0.45rem 0.5rem 0.55rem;
    background: linear-gradient(180deg, rgba(62, 109, 138, 0.08) 0%, rgba(238, 240, 242, 0.92) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
  }

  .nav-dropdown__menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.55rem 0.75rem;
    margin: 0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .nav-dropdown__menu a:hover,
  .nav-dropdown__menu a:focus-visible {
    background: var(--bg-card);
    color: var(--accent);
    outline: none;
    text-decoration: none;
  }

  .nav-dropdown__menu a:active {
    background: rgba(255, 255, 255, 0.85);
  }

  .nav-dropdown__chevron {
    width: 2rem;
    height: 2rem;
    font-size: 0.55rem;
  }

  .header__actions .btn {
    display: none;
  }

  .header__actions .btn--primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 10004;
  }

  body.nav-open .menu-toggle {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

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

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

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

  /* Шапка поверх меню — логотип и крестик всегда на виду */
  body.nav-open .header {
    z-index: 10003;
    background: #fff;
  }

  body.nav-open .topbar {
    display: none;
  }

  body.nav-open .floating-lead {
    visibility: hidden;
    pointer-events: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Развёрнутые тексты на страницах услуг */
.service-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.service-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-toc a {
  font-weight: 600;
  font-size: 0.9rem;
}

.service-article {
  max-width: 760px;
}

.service-article > h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--ink);
}

.service-article > h2:first-child {
  margin-top: 0;
}

.service-article > h3 {
  margin-top: 1.65rem;
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.service-article h4 {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.service-article p {
  margin-bottom: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.62;
}

.service-article ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.service-article li {
  margin-bottom: 0.4rem;
}

.service-article__lead {
  font-size: 1.02rem;
  color: var(--ink);
}

/* Калькулятор металлоконструкций */
.metal-calc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.metal-calc__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.metal-calc__intro {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.metal-calc__grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 1rem;
}

.metal-calc__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0.25rem 0 1.15rem;
  cursor: pointer;
}

.metal-calc__check input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.metal-calc__result {
  margin-top: 0.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(62, 109, 138, 0.1) 0%, rgba(20, 22, 26, 0.04) 100%);
  border: 1px solid var(--border);
}

.metal-calc__result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.metal-calc__result-range {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.metal-calc__result-mid {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.metal-calc__breakdown {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin: 0;
}

.metal-calc__breakdown dt {
  float: left;
  clear: left;
  width: 46%;
  margin: 0 0 0.35rem;
  color: var(--ink-muted);
}

.metal-calc__breakdown dd {
  margin: 0 0 0.35rem 48%;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}

.metal-calc__breakdown::after {
  content: "";
  display: table;
  clear: both;
}

.metal-calc__disclaimer {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Плавающая кнопка «Оставить заявку» */
.floating-lead {
  position: fixed;
  z-index: 10000;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.floating-lead__btn {
  pointer-events: auto;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(20, 22, 26, 0.22);
  text-decoration: none !important;
  padding: 0.78rem 1.2rem;
}

.section--cta-repeat {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-consent {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

/* Regional / geo pages */
.geo-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.geo-city-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.geo-city-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.geo-city-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.geo-city-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.geo-intro-stack {
  margin-bottom: 2rem;
}

.geo-intro-stack .laser-request-panel {
  max-width: 36rem;
}

.geo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.25rem 0 0;
}

.geo-fact {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--accent) 12%);
}

.geo-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.geo-fact dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.geo-faq {
  max-width: 48rem;
}

.geo-faq__item {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.geo-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

.geo-faq__item summary::-webkit-details-marker {
  display: none;
}

.geo-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.geo-faq__item[open] summary::after {
  content: "–";
}

.geo-faq__item p {
  margin: 0.65rem 0 0.15rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.geo-delivery-table {
  width: 100%;
  max-width: 48rem;
  margin-top: 1.35rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.geo-delivery-table th,
.geo-delivery-table td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.geo-delivery-table th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.geo-delivery-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 48rem;
}

.geo-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.geo-case {
  padding: 1.1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--accent);
  border-radius: var(--radius);
}

.geo-case h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.geo-case p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.geo-direct-hint {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  background: color-mix(in srgb, var(--bg-card) 85%, var(--accent) 15%);
  border-radius: var(--radius);
  max-width: 48rem;
}

.geo-direct-hint code {
  font-size: 0.78rem;
  word-break: break-all;
}

.contacts-nap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
  text-align: left;
  max-width: 52rem;
}

.contacts-nap h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.4rem;
}

.contacts-nap p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contacts-nap a {
  color: #fff;
}

.seo-checklist {
  max-width: 42rem;
}

.seo-checklist ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.seo-checklist li {
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.seo-checklist code {
  font-size: 0.85em;
  word-break: break-all;
}

/* ——— Мобильная удобность: формы, топбар, CTA, таблицы ——— */
@media (max-width: 1100px) {
  .header__inner {
    gap: 0.75rem;
    padding-inline: 0;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo__img {
    max-width: min(168px, 52vw);
    height: auto;
    max-height: 42px;
  }

  .page-home .header .logo__img {
    max-height: 46px;
  }

  .header__actions {
    flex-shrink: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    text-align: center;
  }

  .topbar__inner > span {
    display: none;
  }

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

  .topbar__phones::before {
    content: "Пн–Пт 9:00–18:00 · ";
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
  }

  .topbar__phones a {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.2rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    padding: 1.75rem 0 2.25rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero__cta .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero__brand {
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .hero__lead {
    font-size: 1rem;
    max-width: none;
  }

  .section {
    padding-block: 2rem;
  }

  .cta-band {
    padding: 2rem 0;
  }

  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band__actions .btn,
  .cta-band > .container > .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Поля ≥16px — без автозума на iOS */
  .form input,
  .form textarea,
  .form select {
    font-size: 16px;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
  }

  .form textarea {
    min-height: 110px;
  }

  .form .btn,
  .form button[type="submit"] {
    min-height: 48px;
    width: 100%;
  }

  .form input[type="file"] {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .card:hover {
    transform: none;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .gallery__thumb {
    min-height: 64px;
  }

  .geo-delivery-table,
  .service-article table,
  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .geo-delivery-table th,
  .geo-delivery-table td {
    white-space: nowrap;
  }

  .floating-lead {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: stretch;
  }

  .floating-lead__btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(20, 22, 26, 0.28);
  }

  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer {
    padding-bottom: 1.25rem;
  }

  .contacts-nap {
    grid-template-columns: 1fr;
  }

  .breadcrumbs {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .product-page {
    padding-bottom: 2rem;
  }

  .sidebar-card,
  .laser-request-panel {
    padding: 1.1rem;
  }

  .metal-calc {
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .gallery__thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
