:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #696969;
  --line: #dfdfd8;
  --accent: #e3001b;
  --accent-dark: #b90016;
  --steel: #2d353b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.45;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(245, 245, 242, 0.92);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.header-contacts,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.main-nav {
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  color: #383838;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.header-contacts a:hover {
  color: var(--accent);
}

.header-contacts {
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.link-button,
.footer-link {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px) 120px;
  overflow: hidden;
  background: linear-gradient(112deg, #f5f5f2 0%, #f5f5f2 52%, #eceae4 52%, #eceae4 100%);
}

.hero-content {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5.7vw, 72px);
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-secondary:hover,
.button-dark {
  color: #fff;
  background: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo {
  align-self: center;
  min-height: 420px;
}

.hero-photo img {
  width: 100%;
  height: min(66vh, 640px);
  min-height: 420px;
  object-fit: contain;
  background: #fff;
  border-radius: 0 0 0 72px;
  box-shadow: 0 28px 70px rgba(25, 25, 25, 0.18);
}

.hero-strip {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 36px;
  left: clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.1);
}

.hero-strip div {
  min-height: 112px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
}

.hero-strip span {
  color: var(--muted);
  font-size: 14px;
}

.quick-request {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 58px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--steel);
}

.quick-request h2 {
  max-width: 640px;
  margin-bottom: 0;
}

.request-form,
.modal-form {
  display: grid;
  gap: 12px;
}

.request-form {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  align-items: end;
}

label span {
  display: block;
  margin: 0 0 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 0, 27, 0.16);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: inherit;
  line-height: 1.35;
}

.consent-check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
}

.consent-check span {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
}

.consent-check a {
  color: #fff;
  text-decoration: underline;
}

.section,
.process {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 0.66fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 38px;
}

.section-head h2 {
  max-width: 780px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.catalog-grid article {
  min-height: 260px;
  padding: 26px;
  background: var(--surface);
}

.catalog-grid span,
.process-list span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
}

.catalog-grid p,
.benefit-item p,
.process-list p,
.address-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.benefit-item {
  min-height: 360px;
  padding: 34px;
  background: #fff;
}

.benefit-item img {
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  object-fit: contain;
}

.works {
  background: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.works-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.works-grid img:first-child {
  grid-row: span 2;
}

.works-grid img:nth-child(3) {
  grid-column: span 2;
}

.process {
  background: #efefe9;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  counter-reset: process;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list div {
  min-height: 220px;
  padding: 28px;
  background: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  padding: clamp(64px, 8vw, 100px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.contacts-copy h2 {
  max-width: 620px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
}

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

.address-list {
  columns: 2 240px;
  column-gap: 34px;
  padding-top: 8px;
}

.address-list h3 {
  column-span: all;
}

.address-list p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  break-inside: avoid;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #bdbdbd;
  background: #0d0d0d;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border-radius: 8px;
  background: #fff;
}

.modal-panel p {
  color: var(--muted);
}

.modal-form input {
  border-color: var(--line);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 15px;
  left: 9px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--ink);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-contacts {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-contacts {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .quick-request,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .request-form,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .hero {
    padding-bottom: 32px;
    background: var(--bg);
  }

  .hero-photo img {
    height: 330px;
    min-height: 330px;
    border-radius: 0 0 0 38px;
  }

  .hero-strip {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .quick-request,
  .section,
  .process,
  .contact-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-head,
  .catalog-grid,
  .benefits,
  .request-form,
  .process-list {
    grid-template-columns: 1fr;
  }

  .benefits {
    padding: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .works-grid img:first-child,
  .works-grid img:nth-child(3) {
    grid-row: auto;
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
