:root {
  --coal: #2b2a27;
  --coal-2: #191817;
  --copper: #d79a45;
  --copper-2: #b8792d;
  --sand: #f3e7d4;
  --paper: #f8f1e8;
  --cream: #fffaf2;
  --steel: #6f7477;
  --line: #e4d7c5;
  --ink: #242321;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(43, 42, 39, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 310px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #41403d;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--copper-2);
}

.nav__phone {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--coal);
  color: var(--white);
}

.nav__phone:hover {
  background: var(--copper-2);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 24, 23, 0.88) 0%, rgba(25, 24, 23, 0.5) 42%, rgba(25, 24, 23, 0.06) 78%),
    url("hero-systems.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, var(--paper), rgba(248, 241, 232, 0));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 720px;
  align-items: center;
  padding: 86px 0 84px;
}

.hero__content {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--sand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--copper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: #f2e7d9;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--copper);
  border-radius: 4px;
  background: var(--copper);
  color: var(--coal-2);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button:hover {
  background: #e4ad61;
  border-color: #e4ad61;
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(215, 154, 69, 0.14);
  color: var(--white);
}

.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 46px;
}

.hero-card {
  padding: 18px;
  border: 1px solid rgba(243, 231, 212, 0.28);
  border-radius: 8px;
  background: rgba(25, 24, 23, 0.5);
}

.hero-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--copper);
  font-size: 24px;
}

.hero-card span {
  color: #f0e4d4;
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section--white {
  background: var(--cream);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.section__head p {
  margin-bottom: 0;
  color: var(--steel);
}

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

.service {
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(43, 42, 39, 0.07);
}

.service:nth-child(2) {
  color: var(--white);
  background: var(--coal);
}

.service:nth-child(2) p {
  color: #eadfce;
}

.service__mark {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border-radius: 4px;
  background: var(--sand);
  color: var(--copper-2);
  font-weight: 900;
}

.service:nth-child(2) .service__mark {
  background: rgba(215, 154, 69, 0.16);
  color: var(--copper);
}

.service h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.service p {
  margin-bottom: 0;
  color: var(--steel);
}

.objects {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}

.objects__panel {
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--coal), #3d3328);
}

.objects__panel p {
  color: #eadfce;
}

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

.object-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.object-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--copper-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.object-item h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.object-item p {
  margin-bottom: 0;
  color: var(--steel);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.flow__item {
  min-height: 225px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.flow__item:last-child {
  border-right: 0;
}

.flow__item strong {
  display: block;
  margin-bottom: 38px;
  color: var(--copper);
  font-size: 34px;
  line-height: 1;
}

.flow__item h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.flow__item p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 15px;
}

.contacts {
  color: var(--white);
  background: var(--coal);
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 34px;
  align-items: center;
  padding: 74px 0;
}

.contacts h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.contacts p {
  color: #eadfce;
}

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

.contact-card {
  padding: 22px;
  border: 1px solid rgba(243, 231, 212, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--white);
  font-size: 20px;
}

.footer {
  background: var(--coal-2);
  color: #eadfce;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 0;
}

.footer img {
  width: 238px;
}

.footer small {
  color: #b8aa97;
}

@media (max-width: 980px) {
  .header__inner,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero__inner {
    min-height: auto;
    padding: 70px 0 76px;
  }

  .section__head,
  .objects,
  .contacts__inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .flow__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow__item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 236px;
  }

  .nav {
    gap: 14px;
    font-size: 15px;
  }

  .nav__phone,
  .button {
    width: 100%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(25, 24, 23, 0.9), rgba(25, 24, 23, 0.56)),
      url("hero-systems.png") center / cover no-repeat;
  }

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

  .section {
    padding: 60px 0;
  }
}
