: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__phones a,
.old-link {
  text-decoration: none;
}

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

.topbar__phones {
  display: grid;
  gap: 4px;
  justify-items: end;
  line-height: 1.15;
}

.topbar__phones a {
  font-weight: 900;
  white-space: nowrap;
}

.topbar__phones span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 76px);
  background: var(--paper);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - 40px));
  margin-left: clamp(20px, 5vw, 72px);
  padding: clamp(34px, 6vw, 68px) 0;
}

.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(48px, 5.6vw, 82px);
  line-height: .95;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.02;
  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(19px, 1.8vw, 25px);
  line-height: 1.26;
}

.hero__actions {
  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: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
}

.hero__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 31%, rgba(255, 255, 255, .42) 53%, rgba(255, 255, 255, .02) 78%),
    linear-gradient(0deg, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}

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

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

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

.section-heading h2,
.contacts h2,
.offer-card h3 {
  overflow-wrap: anywhere;
}

.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;
  grid-template-rows: auto 1fr;
  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;
  grid-template-rows: 1fr;
}

.offer-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  object-fit: cover;
  object-position: 62% center;
}

.offer-card--large img {
  height: 100%;
  aspect-ratio: auto;
}

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

.offer-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
}

.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(30px, 3.2vw, 50px);
  line-height: .98;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.offer-price {
  margin-bottom: 18px;
  color: var(--red) !important;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: .92 !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;
}

.locations {
  display: grid;
  gap: 12px;
}

.location-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.location-card__label {
  margin-bottom: 10px;
  color: var(--red) !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.location-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.location-card p {
  margin-bottom: 14px;
}

.location-card__phone {
  color: var(--red);
  font-size: 24px;
  font-weight: 950;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.old-link {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

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

  .hero {
    display: grid;
    min-height: 0;
  }

  .hero__copy {
    width: min(100% - 40px, 650px);
    margin: 0 auto;
    padding: 22px 0 34px;
  }

  .hero__image {
    position: relative;
    min-height: clamp(340px, 46vw, 500px);
    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__phones {
    gap: 3px;
  }

  .topbar__phones a {
    font-size: 13px;
  }

  .topbar__phones span {
    display: none;
  }

  .logo {
    font-size: 24px;
  }

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

  .hero__image {
    min-height: clamp(250px, 52vw, 330px);
  }

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

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

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

  .offer-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .contact-actions {
    display: grid;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: clamp(38px, 11.6vw, 52px);
    line-height: .96;
  }

  h2 {
    font-size: clamp(28px, 8.2vw, 38px);
  }

  .hero__lead {
    font-size: 18px;
  }

  .offer-card h3 {
    font-size: clamp(27px, 7.8vw, 36px);
    line-height: 1.02;
  }

  .offer-price {
    font-size: clamp(54px, 16vw, 72px);
    margin-bottom: 14px;
  }

  .offer-card__body {
    padding: 22px 22px 26px;
  }

  .offer-card p:not(.offer-kicker):not(.offer-price) {
    font-size: 16px;
    line-height: 1.52;
  }

  .offer-kicker {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .contacts h2 {
    font-size: clamp(29px, 8vw, 38px);
  }
}

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

  .topbar__phones {
    justify-self: end;
    padding-top: 2px;
  }

  .topbar__phones a {
    font-size: 11px;
  }

  .hero__image {
    min-height: 230px;
  }

  .hero__copy {
    padding-top: 20px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .location-card {
    padding: 20px;
  }

  .location-card h3 {
    font-size: 21px;
  }
}
