@font-face {
  font-weight: 400;
  font-family: 'Proxima Nova';
  src: url('fonts/Proxima-Nova_Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-weight: 600;
  font-family: 'Proxima Nova';
  src: url('fonts/Proxima-Nova_Semibold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-weight: 700;
  font-family: 'Proxima Nova';
  src: url('fonts/Proxima-Nova_Bold.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blue: #0c5bb9;
  --dark: #051a3d;
  --gray: #6a7b92;
  --yellow: #ffc225;
  --green: #1aa243;
  --tg: #2aa3e0;
  --vk: #07f;
  --bg-gray: #f5f5f7;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  font-family: 'Proxima Nova', Arial, sans-serif;
}

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

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.title {
  margin-bottom: 40px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.22;
}

.blue {
  color: var(--blue);
}

.yellow {
  color: var(--yellow);
}

/* Header */
.header__inner {
  display: flex;
  gap: 40px;
  align-items: center;
  height: 64px;
}

.header__count {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header__badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 700;
  font-size: 18px;
}

.header__count-text {
  font-size: 12px;
  line-height: 1.3;
}

/* Hero */
.hero {
  padding: 140px 0;
  background: linear-gradient(rgb(12 91 185 / 85%), rgb(12 91 185 / 85%)), url('images/hero.jpg') center / cover no-repeat;
  color: #fff;
}

.hero__title {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.22;
}

.hero__text {
  font-size: 18px;
  line-height: 1.45;
}

/* Parts */
.parts__content {
  display: flex;
  gap: 34px;
  align-items: center;
}

.parts__list {
  flex: 1;
}

.parts__item + .parts__item {
  margin-top: 25px;
}

.parts__item-title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 18px;
}

.parts__item-text {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.4;
}

.parts__img {
  width: 430px;
}

/* Consult */
.consult {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px;
  border: 1px solid #e4e7ee;
  border-radius: 32px;
}

.consult__title {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.26;
}

.consult__online {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}

.consult__online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.consult__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 430px;
}

.btn {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.btn--call {
  grid-column: 1 / -1;
  background: var(--green);
}

.btn--tg {
  background: var(--tg);
}

.btn--vk {
  background: var(--vk);
}

.btn--yellow {
  margin-top: auto;
  background: var(--yellow);
  color: var(--dark);
}

/* Photos */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photos img {
  width: 100%;
  border-radius: 24px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about__card {
  display: flex;
  flex-direction: column;
}

.about__img {
  object-fit: cover;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--bg-gray);
  aspect-ratio: 16 / 10;
}

.about__title {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 18px;
}

.about__text {
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 40px 0 60px;
  background: var(--bg-gray);
}

.footer__text {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.4;
}

/* Tablet */
@media (max-width: 991px) {
  .title {
    font-size: 32px;
  }

  .title br,
  .hero br {
    display: none;
  }

  .parts__content,
  .consult {
    flex-direction: column;
    align-items: stretch;
  }

  .parts__img {
    width: 100%;
    max-width: 484px;
    margin: 0 auto;
  }

  .consult {
    padding: 32px;
  }

  .consult__buttons {
    width: 100%;
  }

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

/* Mobile */
@media (max-width: 575px) {
  .section {
    margin-top: 64px;
    margin-bottom: 64px;
  }

  .title {
    margin-bottom: 24px;
    font-size: 26px;
  }

  .header__inner {
    gap: 16px;
  }

  .header__count-text {
    display: none;
  }

  .hero {
    padding: 80px 0;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__text {
    font-size: 16px;
  }

  .consult {
    padding: 24px;
    border-radius: 24px;
  }

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

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