/* Точечные улучшения v7: поиск, подборка и читаемые CTA. */

/* Печать больше не перекрывает подпись в нижнем углу фотографии. */
.home-hero__seal {
  top: 5%;
  right: -1%;
  bottom: auto;
}
.home-hero__scene figcaption strong { font-size: 13px; }

/* Поиск конкретной иконы прямо в первом экране главной. */
.home-icon-search {
  max-width: 650px;
  margin-top: 27px;
  padding: 13px;
  color: #173a32;
  text-align: left;
  background: rgba(250, 246, 236, .98);
  border: 1px solid rgba(233, 207, 139, .8);
  border-radius: 4px 22px 4px 4px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}
.home-icon-search label { display: block; }
.home-icon-search__label {
  display: block;
  margin: 0 2px 8px;
  color: #755b25;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .025em;
}
.home-icon-search__field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 5px 5px 5px 15px;
  background: #fff;
  border: 2px solid #b99a54;
  border-radius: 3px 15px 3px 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-icon-search:focus-within .home-icon-search__field {
  border-color: #dfbd62;
  box-shadow: 0 0 0 4px rgba(215, 183, 101, .2);
}
.home-icon-search__icon { display: grid; color: #8e6b27; }
.home-icon-search__icon svg { width: 23px; height: 23px; }
.home-icon-search input {
  min-width: 0;
  height: 46px;
  padding: 0;
  color: #173a32;
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: 0;
  outline: 0;
}
.home-icon-search input::placeholder { color: #79766f; opacity: 1; }
.home-icon-search button {
  min-height: 46px;
  padding: 0 23px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  background: #173a32;
  border: 0;
  border-radius: 3px 12px 3px 3px;
  cursor: pointer;
}
.home-icon-search button:hover { background: #235348; }

/* Каталожный поиск выделен как главное действие, а не как обычный фильтр. */
.catalog-search-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0 11px;
  color: #173a32;
}
.catalog-search-intro__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #173a32;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 58, 50, .18);
}
.catalog-search-intro__icon svg { width: 23px; height: 23px; }
.catalog-search-intro strong { display: block; font-size: 21px; line-height: 1.2; }
.catalog-search-intro small { display: block; margin-top: 4px; color: #777167; font-size: 13px; }
.catalog .catalog__toolbar {
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: #f3ecdd;
  border: 1px solid #dfd1b8;
  border-radius: 4px 22px 4px 4px;
  box-shadow: 0 12px 30px rgba(67, 48, 20, .08);
}
.catalog-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 430px;
  min-width: 310px;
}
.catalog-search-field > span {
  position: absolute;
  z-index: 1;
  left: 18px;
  display: grid;
  color: #97752f;
  pointer-events: none;
}
.catalog-search-field > span svg { width: 24px; height: 24px; }
.catalog-search-field .catalog__search {
  width: 100%;
  min-height: 60px;
  padding: 0 18px 0 54px;
  color: #173a32;
  font-size: 17px;
  font-weight: 590;
  background: #fff;
  border: 2px solid #b99a54;
  border-radius: 3px 16px 3px 3px;
  outline: 0;
}
.catalog-search-field .catalog__search::placeholder { color: #77746d; opacity: 1; }
.catalog-search-field .catalog__search:focus {
  border-color: #173a32;
  box-shadow: 0 0 0 4px rgba(23, 58, 50, .12);
}

/* Полоса преимуществ читается с обычного расстояния. */
.catalog-proof-v5 { grid-template-columns: repeat(3, 1fr) minmax(220px, .86fr); }
.catalog-proof-v5 > span {
  gap: 13px;
  min-height: 90px;
  padding: 19px 28px;
}
.catalog-proof-v5 > span b { font-size: 22px; }
.catalog-proof-v5 > span strong { font-size: 16px; line-height: 1.25; }
.catalog-proof-v5 > button { min-height: 90px; font-size: 15px; }

/* Telegram и MAX одинакового размера, с узнаваемыми знаками брендов. */
.msgband-v5__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.msgband-v5__telegram,
.msgband-v5__max {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 84px;
  padding: 14px 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 4px 20px 4px 4px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}
.msgband-v5__telegram { background: linear-gradient(135deg, #2aabee, #188dca); }
.msgband-v5__max { background: linear-gradient(135deg, #8b5cf6, #6840d9); }
.msgband-v5__telegram:hover,
.msgband-v5__max:hover { color: #fff; transform: translateY(-1px); }
.msgband-v5__icon { display: grid; }
.msgband-v5__icon svg { width: 34px; height: 34px; }
.msgband-v5__telegram strong,
.msgband-v5__max strong { font-size: 13px; font-weight: 700; line-height: 1.25; }
.msgband-v5__arrow { font-size: 20px; opacity: .8; }

/* Универсальный поиск в объёмных справочных разделах. */
.portal-list-search {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.28fr);
  align-items: center;
  gap: 16px 28px;
  margin: 29px 0 34px;
  padding: 22px 24px;
  color: #173a32;
  background: linear-gradient(135deg, #f7f1e5, #efe3cd);
  border: 1px solid #ddc9a5;
  border-radius: 4px 26px 4px 4px;
  box-shadow: 0 14px 32px rgba(67, 48, 20, .08);
}
.portal-list-search__copy { display: flex; align-items: center; gap: 14px; }
.portal-list-search__mark {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #173a32;
  border-radius: 50%;
}
.portal-list-search__mark svg { width: 23px; height: 23px; }
.portal-list-search__copy strong { display: block; font-size: 19px; line-height: 1.2; }
.portal-list-search__copy small { display: block; margin-top: 3px; color: #746e63; font-size: 12px; }
.portal-list-search__form { display: flex; align-items: center; gap: 9px; }
.portal-list-search__form label { flex: 1 1 auto; }
.portal-list-search__form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: #173a32;
  font: inherit;
  font-size: 16px;
  background: #fff;
  border: 2px solid #b99a54;
  border-radius: 3px 15px 3px 3px;
  outline: 0;
}
.portal-list-search__form input::placeholder { color: #79756e; opacity: 1; }
.portal-list-search__form input:focus {
  border-color: #173a32;
  box-shadow: 0 0 0 4px rgba(23, 58, 50, .12);
}
.portal-list-search__form button {
  min-height: 58px;
  padding: 0 17px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: #173a32;
  border: 0;
  border-radius: 3px 13px 3px 3px;
  cursor: pointer;
}
.portal-list-search__status {
  grid-column: 2;
  margin: -9px 0 0;
  color: #777066;
  font-size: 11px;
}
.portal-list-search.is-empty .portal-list-search__status { color: #9b3d31; font-weight: 680; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 960px) {
  .home-hero__seal { top: 4%; right: 1%; bottom: auto; }
  .home-icon-search { margin-right: auto; margin-left: auto; }
  .catalog-proof-v5 { grid-template-columns: repeat(3, 1fr); }
  .catalog-proof-v5 > button { min-height: 66px; }
  .msgband-v5__actions { max-width: 620px; }
  .portal-list-search { grid-template-columns: 1fr; }
  .portal-list-search__status { grid-column: 1; margin-top: -7px; }
}

@media (max-width: 640px) {
  .home-hero__seal {
    top: 12px;
    right: 9px;
    bottom: auto;
    width: 80px;
    height: 80px;
  }
  .home-hero__seal span { top: 8px; font-size: 12px; }
  .home-hero__seal strong { padding-top: 15px; font-size: 9px; }
  .home-hero__scene figcaption { right: 9px; bottom: 9px; max-width: calc(100% - 18px); }
  .home-hero__scene figcaption strong { font-size: 10px; }
  .home-icon-search { margin-top: 24px; padding: 10px; }
  .home-icon-search__field { grid-template-columns: 21px minmax(0, 1fr); padding: 6px 11px; }
  .home-icon-search__icon svg { width: 20px; height: 20px; }
  .home-icon-search input { height: 42px; font-size: 14px; }
  .home-icon-search button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .catalog-search-intro { align-items: flex-start; margin-top: 24px; }
  .catalog-search-intro__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .catalog-search-intro strong { font-size: 17px; }
  .catalog-search-intro small { font-size: 11px; line-height: 1.4; }
  .catalog .catalog__toolbar { padding: 11px; }
  .catalog-search-field { flex-basis: 100%; min-width: 0; width: 100%; }
  .catalog-search-field .catalog__search { min-height: 56px; padding-left: 48px; font-size: 14px; }
  .catalog-proof-v5 { grid-template-columns: 1fr; }
  .catalog-proof-v5 > span { min-height: 61px; padding: 14px 19px; }
  .catalog-proof-v5 > span b { font-size: 19px; }
  .catalog-proof-v5 > span strong { font-size: 14px; }
  .catalog-proof-v5 > button { min-height: 58px; font-size: 14px; }
  .msgband-v5__actions { grid-template-columns: 1fr; max-width: none; }
  .msgband-v5__telegram,
  .msgband-v5__max { min-height: 70px; }
  .portal-list-search { gap: 17px; margin: 24px 0 29px; padding: 18px 15px; }
  .portal-list-search__copy { align-items: flex-start; }
  .portal-list-search__mark { flex-basis: 40px; width: 40px; height: 40px; }
  .portal-list-search__copy strong { font-size: 17px; }
  .portal-list-search__form { align-items: stretch; flex-direction: column; }
  .portal-list-search__form input { min-height: 55px; font-size: 14px; }
  .portal-list-search__form button { min-height: 45px; }
  .portal-list-search__status { margin-top: -9px; }
}
