/* Подвал сайта */

.gm-footer {
  --gf-blue: #0069d9;
  --gf-ink: #20242b;
  --gf-muted: #626b77;
  --gf-line: #dce2ea;

  padding: 60px 0 24px;
  border-top: 1px solid var(--gf-line);

  color: var(--gf-ink);
  background: #f3f5f8;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

.gm-footer,
.gm-footer * {
  box-sizing: border-box;
}

.gm-footer a {
  text-decoration: none;
}

.gm-footer a:focus-visible {
  outline: 3px solid var(--gf-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Колонки */

.gm-footer .gf-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(0, 0.8fr)
    minmax(0, 1.2fr)
    minmax(0, 0.9fr);
  gap: 40px;

  padding-bottom: 42px;
}

.gm-footer .gf-grid > * {
  min-width: 0;
}

.gm-footer .gf-heading {
  margin: 0 0 18px;

  color: var(--gf-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Компания */

.gm-footer .gf-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

.gm-footer .gf-logo img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.gm-footer .gf-company__description {
  max-width: 280px;
  margin: 20px 0 14px;

  color: var(--gf-muted);
  font-size: 13px;
  line-height: 1.8;
}

.gm-footer .gf-project-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;

  color: var(--gf-blue);
  font-size: 14px;
  font-weight: 500;
}

/* Навигация */

.gm-footer .gf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-footer .gf-list li {
  margin: 0;
  padding: 0;
}

.gm-footer .gf-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;

  color: var(--gf-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Контакты */

.gm-footer .gf-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;

  color: var(--gf-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.gm-footer .gf-email {
  display: flex;
  align-items: center;
  min-height: 44px;

  color: var(--gf-muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gm-footer .gf-contact-note {
  max-width: 260px;
  margin: 16px 0 8px;

  color: var(--gf-muted);
  font-size: 12px;
  line-height: 1.75;
}

.gm-footer .gf-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;

  color: var(--gf-blue);
  font-size: 12px;
  line-height: 1.5;
}

/* Мессенджеры и видео */

.gm-footer .gf-social__list a {
  display: flex;
  gap: 12px;
  width: 100%;
}

.gm-footer .gf-social__list i {
  flex-shrink: 0;
  width: 20px;

  color: var(--gf-blue);
  font-size: 19px;
  text-align: center;
}

.gm-footer .gf-external {
  margin-left: auto;
  color: var(--gf-muted);
  font-size: 16px;
}

.gm-footer .gf-social__note {
  margin: 16px 0 0;

  color: var(--gf-muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Нижняя строка */

.gm-footer .gf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;

  padding-top: 24px;
  border-top: 1px solid var(--gf-line);
}

.gm-footer .gf-bottom p,
.gm-footer .gf-bottom__description {
  margin: 0;

  color: var(--gf-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Наведение */

@media (hover: hover) and (pointer: fine) {
  .gm-footer .gf-list a:hover,
  .gm-footer .gf-phone:hover,
  .gm-footer .gf-email:hover {
    color: var(--gf-blue);
  }

  .gm-footer .gf-project-link:hover,
  .gm-footer .gf-contact-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* Планшет */

@media (max-width: 1199px) {
  .gm-footer .gf-grid {
    gap: 26px;
  }

  .gm-footer .gf-phone {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .gm-footer .gf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 40px;
  }

  .gm-footer .gf-social__list {
    max-width: 240px;
  }
}

/* Телефон */

@media (max-width: 575px) {
  .gm-footer {
    padding: 40px 0 22px;
  }

  .gm-footer .gf-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }

  .gm-footer .gf-grid > * + * {
    padding-top: 24px;
    border-top: 1px solid var(--gf-line);
  }

  .gm-footer .gf-company__description {
    max-width: 360px;
  }

  .gm-footer .gf-navigation .gf-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .gm-footer .gf-phone {
    font-size: 22px;
  }

  .gm-footer .gf-social__list {
    max-width: none;
  }

  .gm-footer .gf-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
  }
}