/* ===== Круг доверия: динамические блоки ===== */

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.5;
}

.notice--ok {
  border-color: rgba(56, 122, 79, 0.25);
  background: var(--green-tint);
  color: var(--green-deep);
}

.notice--error {
  border-color: rgba(190, 50, 40, 0.25);
  background: rgba(226, 59, 46, 0.07);
  color: #a72a20;
}

.header__admin {
  margin-right: 10px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__logout {
  margin-left: 4px;
}

.header__actions .header__auth {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-locked {
  overflow: hidden;
}

/* ---- страница организации: форма отзыва ---- */

.org-write {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.org-write__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.org-write__head .h3 {
  margin: 5px 0 0;
}

.org-write__login {
  padding: 18px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.org-write__login p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.simple-review--inline .form-card {
  box-shadow: none;
  border: 1px solid var(--line);
}

.simple-review--inline .form-card + .form-card {
  margin-top: 12px;
}

.simple-review--inline .simple-review__actions {
  margin-top: 14px;
}

/* ---- ЛК: мои отзывы ---- */

.lk-reviews {
  display: grid;
  gap: 10px;
}

.lk-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.lk-review__org {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lk-review__org .orgmark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 16px;
  flex: 0 0 40px;
}

.lk-review__org a {
  display: block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.lk-review__org .badge {
  margin-top: 4px;
}

.lk-review__text {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.lk-review__reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  font-size: 13px;
}

.lk-review__reply b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--accent);
}

.lk-review__reply p {
  margin: 0;
  color: var(--muted);
}

.lk-review__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.badge--warn {
  background: #fbf0d9;
  color: #8b6417;
}

/* ---- админка ---- */

.admin {
  padding-top: 44px;
  padding-bottom: 80px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-head h1 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
}

.admin-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.admin-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.admin-tabs a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.admin-tabs a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.admin-review__head a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.admin-review__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.admin-review h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.admin-review p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-subtitle {
  margin: 34px 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.admin-messages {
  display: grid;
  gap: 8px;
}

.admin-message {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.admin-message p {
  margin: 7px 0 0;
  color: var(--muted);
}

/* ---- бизнес и документы ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.feature-card__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.legal {
  max-width: 820px;
}

.legal article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal article:first-child {
  padding-top: 0;
}

.legal h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.05;
}

.legal p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-form--done {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 26px;
}

.contact-form--done h3 {
  margin: 0;
}

.contact-form--done p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- адаптив ---- */

@media (max-width: 760px) {
  .admin {
    padding-top: 26px;
  }

  .admin-head {
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
  }

  .admin-stat b {
    font-size: 22px;
  }

  .admin-stat span {
    margin: 0;
  }

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

  .org-write {
    padding: 16px;
  }

  .org-write__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lk-review__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .lk-review__top {
    align-items: flex-start;
  }
}

/* ---- фиксы живого MODX-сайта ---- */
.catalog-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 38px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b5b55' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}

.lk-reply__form {
  display: block !important;
  margin-top: 10px;
}

.lk-reply__form textarea {
  width: 100%;
  min-height: 78px;
  margin-bottom: 8px;
}

.page-head {
  padding-bottom: 26px;
}

.auth-simple__form .form-field + .form-field {
  margin-top: 10px;
}

.auth-simple__form .check {
  margin: 12px 0;
}

.auth-simple__form .btn {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .catalog-select {
    width: 100%;
  }
}
.admin-orgs {
  display: grid;
  gap: 8px;
}

.admin-org {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-org b {
  display: block;
  font-size: 14px;
}

.admin-org span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-org__managers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-org__managers .badge {
  margin: 0;
}

.admin-assign {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.admin-assign .btn {
  margin-bottom: 1px;
}

@media (max-width: 900px) {
  .admin-org,
  .admin-assign {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .header__actions .header__auth--user,
  .header__actions .header__admin,
  .header__actions .header__logout {
    display: none;
  }
}
.lk-reply__done {
  display: block !important;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
/* ===== Восстановленные компоненты ===== */

/* Обложки и печати */
.cover--red {
  --cv-a: #f0604f;
  --cv-b: #d63426;
  --cv-c: #9d2016;
}
.cover--blue {
  --cv-a: #6f8d99;
  --cv-b: #46626d;
  --cv-c: #243942;
}
.cover--green {
  --cv-a: #97a26c;
  --cv-b: #596b43;
  --cv-c: #3c4425;
}
.orgmark--blue {
  --om-bg: #46626d;
}
.orgmark--green {
  --om-bg: #596b43;
}

/* Бейджи-фильтры */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hsearch__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.hsearch__chips-label {
  color: var(--muted);
  font-size: 12px;
  margin-right: 2px;
}

/* FAQ-аккордеон */
.acc {
  max-width: 880px;
  border-top: 1px solid var(--line);
}
.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.acc__head svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.acc__head:hover {
  color: var(--red-700);
}
.acc.is-open .acc__head svg {
  transform: rotate(180deg);
}
.acc__body {
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.acc__body[hidden] {
  display: none;
}
.acc__body p {
  margin: 0;
}
.acc__body p + p {
  margin-top: 10px;
}
.acc__body a {
  color: var(--red-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Контактный блок «Для бизнеса» */
.contact-box__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.contact-box__text .h2 {
  margin-top: 12px;
}
.contact-box__text > p {
  max-width: 42ch;
}

/* Документы: выравниваем по сетке страницы */
.legal {
  max-width: 880px;
  margin-inline: auto;
}

/* Пункты мобильного меню */
.drawer__body > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.drawer__body > a:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.drawer__contacts {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .acc {
    max-width: none;
  }
  .acc__head {
    padding: 16px 0;
    font-size: 16px;
  }
  .contact-box__text {
    justify-content: flex-start;
  }
}
/* Правила на странице помощи */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rules-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.rules-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.rules-card__label .icon {
  width: 20px;
  height: 20px;
}
.rules-card--ok .rules-card__label {
  color: var(--green-deep);
}
.rules-card--no .rules-card__label {
  color: var(--red-700);
}
.rules-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules-card li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.rules-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-soft);
}
.rules-card--ok li::before {
  background: var(--green);
}
.rules-card--no li::before {
  background: var(--accent);
}

/* Плотнее страницы, которые состоят из секций, но не главная */
.page-help .section,
.page-business .section,
.page-legal .section {
  padding-block: clamp(38px, 4vw, 62px);
}
.page-help .section--tight,
.page-business .section--tight,
.page-legal .section--tight {
  padding-block: clamp(28px, 3.2vw, 46px);
}
.page-help .page-head,
.page-business .page-head,
.page-legal .page-head {
  padding-bottom: 24px;
}
.page-catalog .section--tight {
  padding-top: 26px;
}

@media (max-width: 760px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .rules-card {
    padding: 18px;
  }
  .page-help .section,
  .page-business .section,
  .page-legal .section {
    padding-block: 34px;
  }
  .page-help .section--tight,
  .page-business .section--tight,
  .page-legal .section--tight {
    padding-block: 24px;
  }
}
/* Настройки личного кабинета */
.lk-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}
.lk-subtitle {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}
.contact-box__text {
  align-self: stretch;
}
/* Главная: меньше «воздуха» между секциями */
.page-home .section {
  padding-block: clamp(42px, 5vw, 76px);
}
.page-home .home-section {
  padding-block: clamp(28px, 3.5vw, 46px);
}

/* Планшет: фильтры каталога в две колонки */
@media (max-width: 900px) and (min-width: 501px) {
  .catalog-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .catalog-tools .catalog-search {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .catalog-tools .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* Иконка мобильного меню: центрируем полосы внутри круга */
.burger {
  align-items: center;
  justify-content: center;
  padding: 0;
}
.burger span {
  flex: 0 0 1.7px;
  margin: 0;
}
/* На телефоне карточки организаций повторяют десктопный вертикальный вид */
@media (max-width: 760px) {
  .home-orgs .ocard,
  .ocards--three .ocard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    grid-template-columns: none;
  }

  .home-orgs .ocard__cover {
    width: 100%;
    height: 116px;
    min-height: 0;
  }
  .ocards--three .ocard__cover {
    width: 100%;
    height: 118px;
    min-height: 0;
  }

  .home-orgs .ocard__cover .cover__mono {
    font-size: 116px;
  }
  .ocards--three .ocard__cover .cover__mono {
    font-size: 120px;
  }

  .home-orgs .ocard__cover .cover__icon,
  .ocards--three .ocard__cover .cover__icon {
    width: 36px;
    height: 36px;
    right: 62px;
    top: 16px;
  }

  .home-orgs .ocard__logo,
  .ocards--three .ocard__logo {
    display: block;
  }

  .home-orgs .ocard__verified,
  .ocards--three .ocard__verified {
    display: inline-flex;
  }

  .home-orgs .ocard__body,
  .ocards--three .ocard__body {
    padding: 28px 15px 14px;
  }

  .home-orgs .ocard__title,
  .ocards--three .ocard__title {
    font-size: 17px;
  }

  .home-orgs .ocard__quote,
  .ocards--three .ocard__quote {
    font-size: 12px;
  }

  .home-orgs .ocard__foot,
  .ocards--three .ocard__foot {
    gap: 10px;
    font-size: 10px;
  }
}