:root {
  color-scheme: light;
  --bg: #f6f7f7;
  --paper: #ffffff;
  --ink: #0f1115;
  --muted: #636773;
  --line: #e3e5e8;
  --red: #e30613;
  --red-dark: #b8000a;
  --soft-red: #fff1f2;
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.logo {
  display: grid;
  line-height: .92;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}

.logo strong {
  color: var(--red);
}

.logo small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 800;
}

.nav a,
.topbar__phone,
.old-link {
  text-decoration: none;
}

.nav a:hover,
.topbar__phone:hover,
.old-link:hover {
  color: var(--red);
}

.topbar__phone {
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(460px, 1.22fr);
  min-height: calc(100svh - 76px);
  background: var(--paper);
  overflow: hidden;
}

.hero__copy {
  align-self: center;
  padding: clamp(38px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.eyebrow {
  position: relative;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 13px;
  background: var(--red);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .88;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 64px);
  line-height: .96;
  font-weight: 950;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.05;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.26;
}

.hero__actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

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

.button--ghost {
  background: var(--paper);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero__facts div {
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.hero__facts dt {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
}

.hero__facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
}

.hero__image {
  position: relative;
  min-height: 560px;
}

.hero__image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  z-index: 1;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.services,
.offers,
.contacts {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: .56fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 30px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.service-grid p,
.offer-card p,
.contacts p {
  color: var(--muted);
  line-height: 1.45;
}

.offers {
  border-top: 1px solid var(--line);
}

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

.offer-card {
  display: grid;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.offer-card--large {
  grid-column: 1 / -1;
  grid-template-columns: 1.05fr .95fr;
}

.offer-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: 62% center;
}

.offer-card--large img {
  object-position: center;
}

.offer-card__body {
  padding: clamp(24px, 4vw, 46px);
}

.offer-kicker {
  margin-bottom: 12px;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.offer-card h3 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 66px);
  line-height: .92;
  font-weight: 950;
  text-transform: uppercase;
}

.offer-price {
  margin-bottom: 18px;
  color: var(--red) !important;
  font-size: clamp(54px, 8vw, 118px);
  line-height: .88 !important;
  font-weight: 950;
  letter-spacing: 0;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.contacts h2 {
  max-width: 760px;
}

.contacts > div:first-child p:last-child {
  max-width: 660px;
  margin-top: 20px;
  font-size: 20px;
}

.contact-card {
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-card__phone {
  width: 100%;
  color: var(--red);
  font-size: 30px;
  font-weight: 950;
  text-decoration: none;
}

.contact-card p {
  width: 100%;
  margin-bottom: 10px;
}

.old-link {
  width: 100%;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero,
  .offer-card--large,
  .contacts,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero__copy {
    padding-bottom: 26px;
  }

  .hero__image {
    min-height: 520px;
    order: -1;
  }

  .hero__image::before {
    inset: auto 0 0 0;
    width: auto;
    height: 42%;
    background: linear-gradient(0deg, var(--paper) 0%, rgba(255, 255, 255, 0) 100%);
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: 68px;
  }

  .nav {
    display: none;
  }

  .topbar__phone {
    font-size: 14px;
  }

  .logo {
    font-size: 24px;
  }

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

  .hero__image {
    min-height: 430px;
  }

  .hero__image img {
    object-position: 64% center;
  }

  .services,
  .offers,
  .contacts {
    width: min(100% - 28px, 1220px);
    padding: 54px 0;
  }

  .offer-card {
    min-height: 0;
  }

  .offer-card img {
    min-height: 230px;
  }

  .contact-card {
    display: grid;
  }

  .contact-card__phone {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: 12px;
  }

  .topbar__phone {
    justify-self: start;
  }

  .hero__image {
    min-height: 360px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
