:root {
  --bg: #ffffff;
  --text: #2f3740;
  --muted: #4e5965;
  --primary: #2d7dd8;
  --surface: #ffffff;
  --surface-soft: #e4f0fc;
  --halo: #e3f1fd;
  --border-pink: #ff46c0;
  --border-violet: #a657ff;
  --border-lime: #c2d82e;
  --border-coral: #ff5c6b;
  --border-cyan: #1ec7d8;
  --border-orange: #ffb600;
  --shadow: 2px 3px 20px rgba(12, 50, 85, 0.29);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

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

.page {
  min-height: calc(100vh - 72px);
}

.hero {
  width: min(1246px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 100px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero__content {
  flex: 1 1 583px;
  min-width: 0;
  max-width: 583px;
  align-self: stretch;
}

.hero__logo {
  display: block;
  width: 203px;
  height: auto;
  margin-bottom: 148px;
}

.hero__copy {
  max-width: 583px;
}

.hero__eyebrow {
  margin: 0 0 18px;
  max-width: 470px;
  font-size: 38px;
  line-height: 1.22;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 30px;
  max-width: 460px;
  color: var(--primary);
  font-size: 64px;
  line-height: 1.06;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__features {
  margin: 0 0 54px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 450px;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 500;
  color: var(--muted);
}

.hero__features li::before {
  content: "→";
  color: var(--primary);
  line-height: 1;
  font-size: 30px;
  transform: translateY(-2px);
}

.hero__contacts {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  margin-bottom: 56px;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.22;
  font-weight: 500;
}

.contact__icon,
.footer__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

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

.button {
  height: 58px;
  padding: 20px 24px;
  border-radius: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 500;
}

.button--primary {
  min-width: 285px;
  color: #fff;
  background: var(--primary);
}

.button--secondary {
  min-width: 188px;
  color: var(--text);
  background: var(--surface-soft);
}

.button__chevron {
  width: 24px;
  height: 24px;
}

.hero__visual {
  position: relative;
  min-height: 682px;
  width: min(100%, 677px);
  max-width: 677px;
  flex: 1 1 677px;
  margin-left: -14px;
}

.hero__glow {
  position: absolute;
  inset: 45px 20px 0 20px;
  border-radius: 50%;
  background: var(--halo);
}

.hero__photo {
  position: absolute;
  left: 54px;
  bottom: 0;
  width: min(590px, calc(100% - 87px));
  height: auto;
}

.service-card {
  position: absolute;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-card__label {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 500;
}

.service-card--health {
  top: 0;
  left: 211px;
  width: 260px;
  min-height: 144px;
  padding: 24px;
  align-items: center;
  text-align: center;
  border-color: var(--border-violet);
}

.service-card--health .service-card__icon {
  width: 32px;
  height: 32px;
}

.service-card--tax {
  top: 160px;
  left: 72px;
  width: 237px;
  min-height: 152px;
  padding: 24px;
  border-color: var(--border-lime);
}

.service-card--social {
  top: 160px;
  left: 367px;
  width: 237px;
  min-height: 152px;
  padding: 24px;
  align-items: flex-end;
  text-align: right;
  border-color: var(--border-pink);
}

.service-card--social .service-card__label {
  max-width: 150px;
}

.service-card--care {
  top: 328px;
  left: 0;
  width: 244px;
  min-height: 128px;
  padding: 24px;
  border-color: var(--border-coral);
}

.service-card--friend {
  top: 328px;
  left: 440px;
  width: 237px;
  min-height: 128px;
  padding: 24px;
  align-items: flex-end;
  text-align: right;
  border-color: var(--border-cyan);
}

.service-card--urgent {
  top: 472px;
  left: 16px;
  width: 219px;
  min-height: 152px;
  padding: 24px;
  border-color: var(--border-orange);
}

.service-card--urgent .service-card__label {
  max-width: 170px;
}

.service-card--help {
  top: 472px;
  left: 456px;
  width: 201px;
  min-height: 152px;
  padding: 24px;
  align-items: flex-end;
  text-align: right;
  border-color: var(--border-violet);
}

.footer {
  background: #f6f8fa;
}

.footer__inner {
  width: min(1204px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6c7782;
  font-size: 16px;
  line-height: 1.22;
}

.footer__inner p {
  margin: 0;
}

.footer__inner p:first-child {
  flex: 0 0 auto;
}

.footer__inner p:nth-child(2) {
  flex: 1 1 auto;
  justify-content: center;
}

.footer__inner p:last-child {
  flex: 0 0 auto;
}

.footer__inner p:nth-child(2),
.footer__inner p:nth-child(3) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 64px;
  }

  .hero__logo {
    margin-bottom: 64px;
  }

  .hero__copy {
    max-width: 680px;
  }

  .hero__content {
    max-width: 680px;
  }

  .hero__visual {
    width: min(677px, 100%);
    margin: 0 auto;
    flex: none;
    max-width: 677px;
  }

  .footer__inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    gap: 12px;
    padding: 20px 0;
  }
}

@media (max-width: 720px) {
  .page {
    min-height: auto;
  }

  .hero {
    width: min(100% - 24px, 390px);
    padding: 20px 0 36px;
    gap: 64px;
  }

  .hero__logo {
    width: 167px;
    margin-bottom: 64px;
  }

  .hero__copy {
    max-width: 350px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
    max-width: 350px;
    font-size: 24px;
    line-height: 1.22;
  }

  .hero__title {
    margin-bottom: 22px;
    max-width: 350px;
    font-size: 48px;
    line-height: 0.98;
  }

  .hero__features {
    margin-bottom: 40px;
    gap: 18px;
  }

  .hero__features li,
  .contact {
    font-size: 16px;
    line-height: 1.22;
  }

  .hero__features li {
    max-width: 320px;
    gap: 16px;
  }

  .hero__features li::before {
    font-size: 24px;
  }

  .hero__contacts {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .button {
    height: 58px;
    padding: 18px 24px;
    font-size: 16px;
  }

  .button--primary {
    min-width: 285px;
  }

  .button--secondary {
    min-width: 188px;
  }

  .hero__visual {
    width: 350px;
    min-height: 353px;
    margin-left: 0;
  }

  .hero__glow {
    inset: 23px 10px 0 10px;
  }

  .hero__photo {
    left: 28px;
    bottom: 0;
    width: 305px;
  }

  .service-card {
    border-width: 1px;
    border-radius: 10px;
    box-shadow: 1px 2px 10px rgba(12, 50, 85, 0.29);
    gap: 8px;
  }

  .service-card__icon {
    width: 21px;
    height: 21px;
  }

  .service-card__label {
    font-size: 10px;
    line-height: 1.22;
  }

  .service-card--health {
    top: -7px;
    left: 109px;
    width: 134px;
    min-height: 74px;
    padding: 10px 12px;
  }

  .service-card--tax {
    top: 83px;
    left: 37px;
    width: 123px;
    min-height: 80px;
    padding: 12px;
  }

  .service-card--social {
    top: 83px;
    left: 190px;
    width: 123px;
    min-height: 80px;
    padding: 12px;
  }

  .service-card--social .service-card__label {
    max-width: 98px;
  }

  .service-card--care {
    top: 170px;
    left: 0;
    width: 126px;
    min-height: 67px;
    padding: 12px;
  }

  .service-card--friend {
    top: 170px;
    left: 227px;
    width: 134px;
    min-height: 67px;
    padding: 12px;
  }

  .service-card--urgent {
    top: 244px;
    left: 8px;
    width: 113px;
    min-height: 80px;
    padding: 12px;
  }

  .service-card--help {
    top: 244px;
    left: 236px;
    width: 104px;
    min-height: 79px;
    padding: 12px;
  }

  .footer__inner {
    width: min(390px, 100%);
    min-height: auto;
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 20px;
    font-size: 14px;
  }

  .footer__icon {
    width: 24px;
    height: 24px;
    transform: translateY(1px);
  }
}
