/* Дополнения к style.min.css: утилиты, страница 404, HTML-карта сайта, виджет отзывов. */

/* Скрыто визуально, но остаётся в дереве доступности */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Виджет отзывов Яндекс Карт ---------- */

.yandex-reviews-section {
  padding: 24px 0 56px;
}

.yandex-reviews-title {
  margin: 0 0 24px;
  font-weight: bold;
  font-size: 24px;
  line-height: 30px;
  color: #4b4b4b;
}

.yandex-reviews {
  width: 100%;
  max-width: 560px;
  margin-bottom: 40px;
}

.yandex-reviews-frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Ссылка на карточку обязательна по условиям использования виджета. */
.yandex-reviews-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #8a8a8a;
  text-decoration: none;
}

.yandex-reviews-link:hover {
  color: #384487;
  text-decoration: underline;
}

@media (max-width: 780px) {
  .yandex-reviews-section {
    padding: 16px 0 32px;
  }

  .yandex-reviews-title {
    font-size: 20px;
    line-height: 26px;
  }

  .yandex-reviews {
    margin-bottom: 28px;
  }

  .yandex-reviews-frame {
    height: 560px;
  }
}

/* ---------- HTML-карта сайта ---------- */

.sitemap {
  padding-bottom: 80px;
}

.sitemap-section {
  margin-top: 48px;
}

.sitemap-section-title {
  margin: 0 0 20px;
  font-weight: bold;
  font-size: 24px;
  line-height: 30px;
  color: #4b4b4b;
}

.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-links a {
  font-size: 16px;
  line-height: 26px;
  color: #384487;
  text-decoration: none;
}

.sitemap-links a:hover {
  text-decoration: underline;
}

.sitemap-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.sitemap-cat .sitemap-links {
  display: block;
}

.sitemap-cat-title {
  margin: 0 0 10px;
  font-weight: bold;
  font-size: 18px;
  line-height: 24px;
}

.sitemap-cat-title a {
  color: #4b4b4b;
  text-decoration: none;
}

.sitemap-cat-title a:hover {
  color: #384487;
}

@media (max-width: 780px) {
  .sitemap {
    padding-bottom: 48px;
  }

  .sitemap-section {
    margin-top: 32px;
  }

  .sitemap-section-title {
    font-size: 20px;
    line-height: 26px;
  }

  .sitemap-links {
    display: block;
  }

  .sitemap-cats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Страница 404 ---------- */

.error404 {
  padding: 80px 0;
}

.error404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error404-head {
  position: relative;
}

/* Декоративная «404» шрифтом сайта, заголовок слегка заходит на неё снизу */
.error404-ghost {
  display: block;
  margin-bottom: -22px;
  font-weight: bold;
  font-size: 150px;
  line-height: 0.9;
  letter-spacing: 4px;
  color: #384487;
  opacity: 0.14;
  user-select: none;
  pointer-events: none;
}

.error404-title {
  position: relative;
  margin: 0;
  font-weight: bold;
  font-size: 32px;
  line-height: 38px;
  color: #4b4b4b;
}

.error404-desc {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: #4b4b4b;
}

.error404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.error404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 28px;
  border: 1px solid #384487;
  border-radius: 25px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error404-btn--primary {
  background: #384487;
  color: #ffffff;
}

.error404-btn--primary:hover {
  background: #2b3569;
  border-color: #2b3569;
  color: #ffffff;
}

.error404-btn--secondary {
  background: transparent;
  color: #384487;
}

.error404-btn--secondary:hover {
  background: #384487;
  color: #ffffff;
}

.error404-subtitle {
  margin: 56px 0 0;
  font-weight: bold;
  font-size: 22px;
  line-height: 28px;
  color: #4b4b4b;
}

.error404-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.error404-cats a {
  display: inline-block;
  padding: 9px 19px;
  border: 1px solid #384487;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.error404-cats a:hover {
  background: #384487;
  color: #ffffff;
}

.error404-search {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 48px;
}

.error404-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d7d9e6;
  border-radius: 40px;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: #4b4b4b;
}

.error404-search input:focus {
  outline: none;
  border-color: #384487;
}

.error404-search button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 28px;
  border: 1px solid #384487;
  border-radius: 40px;
  background: #384487;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error404-search button:hover {
  background: #2b3569;
  border-color: #2b3569;
}

@media (max-width: 780px) {
  .error404 {
    padding: 48px 0;
  }

  .error404-ghost {
    margin-bottom: -14px;
    font-size: 92px;
    letter-spacing: 2px;
  }

  .error404-title {
    font-size: 24px;
    line-height: 30px;
  }

  .error404-actions {
    flex-direction: column;
    align-self: stretch;
    gap: 12px;
  }

  .error404-btn {
    width: 100%;
    min-width: 0;
  }

  .error404-subtitle {
    margin-top: 40px;
    font-size: 18px;
    line-height: 24px;
  }

  .error404-cats a {
    font-size: 15px;
    line-height: 22px;
    padding: 4px 13px;
  }
}
