:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-dark: #050611;
  --text: #050611;
  --muted: #505156;
  --line: #e4e7eb;
  --brand: #d93434;
  --brand-dark: #bf2e2e;
  --w: calc(100vw / 1200);
  --u: calc(min(100vw, 1200px) / 1200);
  --container: 1000px;
  --radius: 0;
  --shadow: 0 18px 45px rgba(5, 6, 17, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

/* Live T1084 — page scrollbar (right edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #fcfcfc;
}

::-webkit-scrollbar-track {
  background-color: #fcfcfc;
}

::-webkit-scrollbar-thumb {
  background-color: #d93434;
  border-radius: 0;
  border: 0 solid #fcfcfc;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #911414;
}

@supports (-moz-appearance: none) {
  :root,
  body,
  * {
    scrollbar-width: thin;
    scrollbar-color: #d93434 #fcfcfc;
  }
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

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

button,
input,
textarea {
  font: inherit;
}

/* Same width as header/footer: 1000px artboard inset (100px) scaled with --w */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(100 * var(--w));
  padding-right: calc(100 * var(--w));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: none;
  backdrop-filter: none;
}

.header-top {
  background: #fafafa;
  border-bottom: none;
  font-size: 12px;
}

.header-top__inner,
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-top__inner {
  min-height: 32px;
}

.header-top__contacts,
.header-top__links,
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-main__inner {
  min-height: 74px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 170px;
}

.header-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  border: 1px solid var(--brand);
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.header-search svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: 0 0 auto;
}

.catalog-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  transition: 0.2s ease;
}

.catalog-button:hover,
.button:hover {
  background: var(--brand);
  color: #fff;
}

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

.button--solid:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.header-nav {
  font-size: 12px;
}

.hero {
  padding: 56px 0 32px;
  background:
    linear-gradient(90deg, rgba(5, 6, 17, 0.88) 0%, rgba(5, 6, 17, 0.7) 45%, rgba(5, 6, 17, 0.12) 100%),
    url("../../images/tild6538-3233-4532-a533-663464366366__image.png") center/cover no-repeat;
  color: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 436px);
  gap: 36px;
  align-items: center;
  min-height: 540px;
}

.hero__eyebrow,
.section__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.section__eyebrow {
  color: var(--brand);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: calc(30 * var(--w));
  line-height: 1.15;
  font-weight: 600;
}

.hero p {
  margin: 0 0 18px;
  max-width: 680px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero p {
  margin: 0 0 18px;
  max-width: 680px;
  font-size: 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__visual {
  align-self: end;
}

.hero__visual img {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--soft {
  background: var(--bg-soft);
}

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

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.section__lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-card,
.info-card,
.product-card,
.project-card,
.doc-card {
  border: 1px solid var(--line);
  background: #fff;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.category-card__media {
  min-height: 220px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
}

.category-card__media img {
  max-height: 136px;
}

.category-card__body,
.product-card__body,
.project-card__body,
.doc-card__body {
  padding: 24px;
}

.category-card h3,
.product-card h3,
.project-card h3,
.doc-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.category-card p,
.product-card p,
.project-card p,
.doc-card p,
.stats__text,
.rich-text p,
.rich-text li {
  margin: 0;
  color: var(--muted);
}

.category-card__link,
.product-card__link,
.project-card__link {
  margin-top: 18px;
  color: var(--brand);
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 24px;
}

.stats__value {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.page-hero {
  padding: 48px 0 28px;
  /* Live Zero Blocks are white — no soft-grey band under the header */
  background: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: calc(11 * var(--w));
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: start;
}

.product-gallery {
  border: 1px solid var(--line);
  background: #f1f3f5;
  padding: 28px;
}

.product-gallery img {
  width: 100%;
}

.product-meta {
  display: grid;
  gap: 20px;
}

.product-panel {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fff;
}

.product-panel h2,
.product-panel h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.doc-list {
  display: grid;
  gap: 14px;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-card__icon {
  flex: 0 0 auto;
  width: 22px;
}

.doc-card__meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.rich-text {
  display: grid;
  gap: 16px;
}

.rich-text ul {
  margin: 0;
  padding-left: 18px;
}

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.dealer-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.news-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.news-card__media {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef0f2;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dealer-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #050611;
}

.news-card h3 a { color: #050611; }
.news-card h3 a:hover { color: var(--brand); }

.dealer-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dealer-card__icon {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  vertical-align: -2px;
}

.news-card time {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #8a8b90;
}

.project-card h3 a {
  color: inherit;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
}

textarea.field {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e8e8ea;
  padding: 0;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 200px;
  padding: 22px 100px 24px;
  background: #fff;
}

.footer-brand {
  width: 172px;
  margin-right: 28px;
  flex: 0 0 auto;
}

.footer-company {
  width: 72px;
  margin-right: 16px;
  flex: 0 0 auto;
}

.footer-catalog {
  width: 420px;
  flex: 0 0 auto;
}

.footer-contacts {
  width: 275px;
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-logo {
  display: block;
  width: 170px;
  height: 30px;
  margin-bottom: 9px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-copy {
  margin: 0 0 13px;
  font-size: 10px;
  line-height: 1.15;
  color: #505156;
}

.footer-accent {
  display: block;
  margin: 0 0 10px;
  font-size: 9px;
  line-height: 1.15;
  color: #d93434;
}

.footer-accent:hover { opacity: 0.5; }

.footer-title {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #505156;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  font-size: 9px;
  line-height: 1.35;
  color: #050611;
}

.footer-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  position: static;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-links a:hover { opacity: 0.5; }

.footer-catalog__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  align-items: start;
}

.footer-catalog__cols .footer-links {
  min-width: 0;
}

.footer-contacts {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-contact {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  font-size: 9px;
  line-height: 1.15;
  color: #050611;
}

.footer-contact img {
  width: 10px;
  height: 10px;
  margin-top: 1px;
}

.footer-contact--address { max-width: 275px; }
.footer-contact:hover { opacity: 0.5; }

.button--footer {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  margin-top: 10px;
  width: 94px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  padding: 1px 0 0;
  gap: 0;
  border: 1px solid #d93434;
  background: transparent;
  color: #d93434;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 0;
  clip-path: none;
}

.button--footer::before,
.button--footer::after {
  content: none;
  display: none;
}

.button--footer:hover {
  background: #d93434;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .header-main__inner,
  .header-top__inner,
  .header-nav,
  .header-top__links,
  .header-top__contacts {
    flex-wrap: wrap;
  }

  .hero__inner,
  .product-layout,
  .contact-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .catalog-grid,
  .projects-grid,
  .stats,
  .dealer-grid,
  .news-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section,
  .page-hero {
    padding: 40px 0;
  }

  .header-main__inner {
    min-height: auto;
    padding: 14px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero__inner {
    min-height: auto;
  }

  .cards-grid,
  .catalog-grid,
  .projects-grid,
  .feature-grid,
  .stats,
  .form-row,
  .dealer-grid,
  .news-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section__header {
    align-items: start;
  }
}
