/* Повторяющиеся компоненты: кнопки, формы, крошки, карточки, шаги, FAQ */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px;
  font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); }
.btn--outline { background: #fff; color: var(--c-navy); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-navy); }
.btn--sm { min-height: 38px; padding: 0 19px; }
.btn--block { width: 100%; }
.btn--form { min-height: 48px; padding: 0 22px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.link { color: var(--c-navy); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { text-decoration-thickness: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--c-navy); font-size: 16px; }
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 14px; line-height: 1.5; color: var(--c-text-2); }
.input {
  width: 100%; min-height: var(--input-h); padding: 10px 12px;
  font-size: 14px; line-height: 1.5; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--c-text-3); opacity: 1; }
.input:hover { border-color: #c4ccd5; }
.input:focus { outline: 0; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(18, 51, 89, .15); }
.input--area { min-height: 88px; resize: vertical; }
.input--lg { min-height: 48px; }
.input--area.input--lg { min-height: 92px; }
.input[aria-invalid="true"], .input:user-invalid { border-color: var(--c-error); }
.field__error { font-size: 12px; color: var(--c-error); }

.check { position: relative; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check__input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.check__box {
  flex: none; width: 16px; height: 16px; margin-top: 1px; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.check__input:checked + .check__box { background: var(--c-navy); border-color: var(--c-navy); }
.check__input:checked + .check__box::after {
  content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg);
}
.check__input:focus-visible + .check__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.check__text { font-size: 12px; line-height: 1.5; color: var(--c-text-2); }
.check__text a { color: var(--c-navy); text-decoration: underline; }

.upload {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px;
  border: 1px dashed var(--c-border); border-radius: var(--radius); cursor: pointer; background: #fff;
  transition: border-color .15s, background-color .15s;
}
.upload:hover, .upload.is-drag { border-color: var(--c-navy); background: var(--c-bg-soft); }
.upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.upload__icon { width: 18px; height: 18px; color: var(--c-navy); }
.upload__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.upload__title { font-size: 15px; font-weight: 500; color: var(--c-navy); line-height: 1.2; }
.upload__hint { font-size: 12px; color: var(--c-text-3); line-height: 1.2; }
.upload__files { font-size: 12px; color: var(--c-text-2); overflow-wrap: anywhere; }

.search { position: relative; display: block; }
.search__input {
  width: 100%; height: 40px; padding: 0 44px 0 15px; font-size: 13px; font-weight: 400;
  color: var(--c-text); background: #fff; border: .5px solid var(--c-border-top); border-radius: var(--radius);
}
.search__input::placeholder { color: var(--c-placeholder); font-weight: 200; }
.search__input:focus { outline: 0; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(18, 51, 89, .15); }
.search__btn { position: absolute; right: 0; top: 0; width: 44px; height: 40px; display: grid; place-items: center; }

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: 44px; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; line-height: 18px; color: var(--c-text-3); }
.crumbs__item { display: inline-flex; align-items: center; gap: 12px; }
.crumbs__item:not(:last-child)::after { content: '\203A'; color: var(--c-text-3); }
.crumbs__link:hover { color: var(--c-navy); text-decoration: underline; }
.crumbs__item[aria-current="page"] { color: var(--c-text); }

/* ---------- Заголовок страницы ---------- */
.page-head { padding-top: 31px; padding-bottom: 2.5px; }
.page-head .h1 { margin: 0; }

/* ---------- Заголовок секции ---------- */
.section { padding-block: var(--section-py); }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-navy); color: #fff; }
.section__head { display: grid; gap: 12px; margin-bottom: 28px; }
.section__intro { font-size: 16px; line-height: 1.5; color: var(--c-text-2); max-width: 520px; }
@media (min-width: 1024px) {
  .section__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 466px); column-gap: 48px; align-items: end; margin-bottom: 40px; }
  .section__head--split .section__intro { max-width: none; }
}

/* ---------- Сетки карточек ---------- */
.grid { display: grid; gap: var(--gap-grid); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.card { display: flex; flex-direction: column; gap: 16px; padding: 26px; background: var(--c-bg-soft); border-radius: var(--radius); }
.card--white { background: #fff; }
.card__icon { width: 28px; height: 28px; color: var(--c-navy); }
.card__title { font-size: var(--fs-card-title); line-height: 1.5; font-weight: 600; color: var(--c-text); }
.card__text { font-size: 17px; line-height: 1.5; color: var(--c-text-2); }

/* ---------- Плашка-уведомление ---------- */
.notice { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--c-bg-soft); border-radius: var(--radius); color: var(--c-navy); font-size: 16px; line-height: 1.55; }
.notice__icon { width: 22px; height: 22px; flex: none; color: var(--c-navy); }
.notice--red { gap: 18px; padding: 26px; background: var(--c-notice-bg); border-left: 3px solid var(--c-accent); border-radius: 0; color: var(--c-text); font-size: 22px; font-weight: 500; line-height: 1.45; }
.notice--red .notice__icon { width: 26px; height: 26px; color: var(--c-accent); }

/* ---------- Якорная навигация ---------- */
.anchors { border-block: 1px solid var(--c-border-light); }
.anchors__list { display: flex; flex-wrap: wrap; gap: 0 42px; }
.anchors__link { display: inline-block; padding: 18px 0; font-size: 14px; line-height: 16px; color: var(--c-navy); }
.anchors__link:hover { text-decoration: underline; }

/* ---------- FAQ-аккордеон ---------- */
.faq { max-width: 1062px; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 66px; padding: 18px 22px; text-align: left; border-radius: var(--radius);
  font-size: 19px; line-height: 29.45px; font-weight: 600; color: var(--c-text); background: var(--c-bg-soft);
}
.faq__q:hover { color: var(--c-navy); }
.faq__sign { position: relative; flex: none; width: 11px; height: 11px; margin-right: -4px; }
.faq__sign::before, .faq__sign::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: currentColor; transform: translateY(-50%); transition: transform .2s; }
.faq__sign::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translateY(-50%) rotate(0deg); }
.faq__a { max-width: 945px; font-size: 16px; line-height: 24.8px; color: var(--c-text-2); }
.faq__a > p { padding-block: 0; }
@media (max-width: 767px) { .faq__q { font-size: 17px; line-height: 1.4; padding: 14px 16px; } }
