:root {
  --container: 1120px;
  --pad: 24px;

  --text: #111;
  --muted: #555;
  --brand: #e31e24;

  --bg: #fff;
  --soft: #eeeeee;
  --line: #e5e5e5;
  --footer: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  min-height: 54px;
  display: grid;
  grid-template-columns: 220px 1fr 210px;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: 190px;
  max-height: 38px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav__link {
  white-space: nowrap;
}

.header__contacts {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-size: 12px;
  line-height: 1.25;
}

/* MOBILE NAV */
.nav-toggle {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 500px;
  height: 58vw;
  max-height: 620px;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12));
}

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__title {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* COMMON */
.section-title {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ABOUT */
.about {
  padding: 26px 0 34px;
  background: var(--soft);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-card {
  background: transparent;
}

.about-card__logo {
  height: 54px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.about-card__logo img {
  max-height: 46px;
  width: auto;
}

.about-card__logo--huier img {
  max-height: 92px;
}

.about-card p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.48;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* EQUIPMENT */
.equipment {
  padding: 34px 0 42px;
}

.equipment-block {
  margin-bottom: 24px;
}

.equipment-block__title,
.gallery-row h3 {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.product-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: #e9e9e9;
  overflow: hidden;
  border-radius: 12px;
  padding: 10px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: 10px;
}

.product-card__body {
  padding: 12px 6px 4px;
}

.product-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.product-card p {
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  line-height: 1.42;
}

.product-card p:last-child {
  margin-bottom: 0;
}

.equipment-gallery {
  display: grid;
  gap: 18px;
}

.gallery-row {
  background: #e9e9e9;
  padding: 14px;
  border-radius: 18px;
}

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

.gallery-row__images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: 10px;
}

/* SERVICE */
.service {
  padding: 34px 0 44px;
  background: #fff;
}

.service .container {
  padding: 0 var(--pad);
}

.service__card {
  background: #e9e9e9;
  border-radius: 18px;
  padding: 18px;
}

.service .section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.service__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  background: #e9e9e9;
  border-radius: 18px;
}

.service__content {
  background: transparent;
  padding: 0;
}

.service__lead {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.service__list {
  margin: 0 0 20px;
  padding-left: 20px;
  display: grid;
  gap: 2px;
  font-size: 16px;
  line-height: 1.2;
}

.service__content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.25;
}

.service__link {
  display: inline-flex;
  margin-top: 2px;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand), #080808);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.service__link:hover {
  text-decoration: none;
}

.service__media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: 10px;
}

/* CONTACTS */
.contacts {
  padding: 34px 0 46px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  margin-bottom: 36px;
}

.contacts__main {
  display: grid;
  gap: 22px;
}

.contacts__group h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
}

.contacts__group a,
.contacts__group p {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.contacts__map {
  min-height: 340px;
  overflow: hidden;
  border-radius: 14px;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.requisites {
  padding-top: 8px;
}

.requisites p {
  max-width: 980px;
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

/* FOOTER */
.footer {
  position: relative;
  background: #000;
  color: #fff;
  padding: 26px 0 18px;
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 40px;

  background: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0),
    rgba(255, 0, 0, 0.9)
  );

  filter: blur(6px);
}

.footer__logo {
  width: 170px;
  max-height: 48px;
  object-fit: contain;
}

.footer__brandtext {
  margin-top: 4px;
  font-weight: 700;
}

.footer__contacts {
  display: grid;
  gap: 8px;
  color: #f3f3f3;
  font-weight: 700;
}

.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contacts a::before {
  content: "\f5c1";
  font-family: "bootstrap-icons";
  color: #ff2b2b;
  font-size: 18px;
}

.footer__email a {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;
  font-weight: 700;
}

.footer__email a::before {
  content: "\f32f";
  font-family: "bootstrap-icons";
  color: #ff2b2b;
  font-size: 18px;
}

.footer__small {
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.45;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
  }

  .brand {
    justify-self: start;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 38px;
    height: 34px;
    padding: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    background: #111;
    border-radius: 999px;
    transition: 0.25s ease;
  }

  .nav,
  .header__contacts {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    padding: 0;
    border-top: 0;

    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .header__inner.menu-open .nav {
    max-height: 240px;
    opacity: 1;
    padding: 14px 0 8px;
    border-top: 1px solid var(--line);

    display: grid;
    gap: 12px;
    justify-items: center;
  }

  .header__inner.menu-open .header__contacts {
    max-height: 120px;
    opacity: 1;
    padding: 8px 0 14px;

    display: grid;
    justify-items: center;
    text-align: center;
  }

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

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

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

  .about-card__logo {
    justify-content: center;
  }

  .about__grid,
  .service__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .product-grid--three,
  .product-grid--two {
    grid-template-columns: 1fr 1fr;
  }

  .service .container {
    border-radius: 0;
  }

  .service__media img {
    min-height: 260px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
    justify-items: center;
  }

  .footer__brand,
  .footer__contacts,
  .footer__email,
  .footer__small {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__logo {
    margin: 0 auto;
  }

  .footer__contacts a,
  .footer__email a {
    justify-content: center;
  }

  .footer__small {
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }

  .hero {
    min-height: 360px;
    height: 70vh;
  }

  .hero__title {
    font-size: 44px;
  }

  .product-grid--three,
  .product-grid--two,
  .gallery-row__images {
    grid-template-columns: 1fr;
  }

  .gallery-row__images img {
    aspect-ratio: 16 / 8;
  }

  .contacts__group a,
  .contacts__group p {
    font-size: 18px;
  }
}
