/* Новая главная CLER. Стили ограничены .cler-home. */
.cler-home {
  --ch-bg: #f7f4ed;
  --ch-surface: #fff;
  --ch-green: #173a29;
  --ch-green-dark: #0f2a1d;
  --ch-burgundy: #8a1734;
  --ch-burgundy-dark: #71122a;
  --ch-text: #20251f;
  --ch-muted: #565d54;
  --ch-gold: #b18a43;
  --ch-gold-text: #7d5b25;
  --ch-line: #e3ded2;
  --ch-radius: 16px;
  --ch-shadow: 0 12px 30px rgba(32, 37, 31, .09);
  --ch-font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ch-text);
  font-family: var(--ch-font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ch-bg);
}
.cler-home * { box-sizing: border-box; }
.cler-home img { max-width: 100%; height: auto; display: block; }
.cler-home a { color: var(--ch-green); }
.cler-home h1, .cler-home h2, .cler-home h3, .cler-home h4 {
  margin: 0 0 .5em; line-height: 1.18; color: var(--ch-green); font-family: var(--ch-font);
}
.cler-home h1 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.02em; }
.cler-home h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.01em; }
.cler-home h3 { font-size: 20px; }
.cler-home p { margin: 0 0 1em; }
.cler-home ul { margin: 0 0 1em; padding-left: 1.1em; }
.cler-home li + li { margin-top: .25em; }
.cler-home button, .cler-home input, .cler-home select, .cler-home textarea { font: inherit; color: inherit; }
.cler-home :focus-visible { outline: 3px solid var(--ch-burgundy); outline-offset: 3px; }

.cler-home .ch-container { width: min(100%, 1280px); margin: 0 auto; padding: 0 32px !important; }
.cler-home .ch-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Кнопки */
.cler-home .ch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 18px; border-radius: 8px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600; line-height: 1.2; text-align: center;
}
.cler-home .ch-btn--primary { background: var(--ch-burgundy); color: #fff; }
.cler-home .ch-btn--primary:hover { background: var(--ch-burgundy-dark); color: #fff; }
.cler-home .ch-btn--outline { background: transparent; color: var(--ch-green); border-color: var(--ch-green); }
.cler-home .ch-btn--outline:hover { background: var(--ch-green); color: #fff; }
.cler-home .ch-btn--green { background: var(--ch-green); color: #fff; }
.cler-home .ch-btn--green:hover { background: var(--ch-green-dark); color: #fff; }
.cler-home .ch-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ch-burgundy);
  font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.cler-home .ch-link:hover { color: var(--ch-burgundy-dark); }
.cler-home .ch-link--button { background: none; border: 0; border-bottom: 1px solid; padding: 0; font-weight: 600; color: var(--ch-burgundy); }

/* Первый экран */
.cler-home .ch-hero {
  position: relative; overflow: hidden; background: #f7f4ed;
  border-radius: 0; margin: 0;
  height: clamp(430px, 42vw, 600px);
  min-height: 0;
}
.cler-home .ch-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.cler-home .ch-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 237, .78) 0%, rgba(247, 244, 237, .42) 42%, rgba(247, 244, 237, .04) 68%, rgba(23, 58, 41, 0) 100%);
}
.cler-home .ch-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 100%; padding: 46px 0; }
.cler-home .ch-hero__copy { max-width: 56%; }
.cler-home .ch-hero h1 { max-width: 20ch; margin-bottom: 16px; }
.cler-home .ch-hero__lead { max-width: 52ch; color: var(--ch-muted); font-size: clamp(16px, 1.5vw, 18px); }
.cler-home .ch-hero__features {
  display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 22px 0 0; padding: 0;
}
.cler-home .ch-hero__features li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ch-green); max-width: 190px; }
.cler-home .ch-hero__features svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--ch-green); }

/* Секции */
.cler-home .ch-section { padding: 50px 0; }
.cler-home .ch-section--tight { padding-top: 42px; }
.cler-home .ch-head { text-align: center; margin-bottom: 28px; }
.cler-home .ch-head--left { text-align: left; }
.cler-home .ch-head__kicker { margin: 0 0 8px; color: var(--ch-gold-text); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cler-home .ch-head__title { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; }
.cler-home .ch-head__title::before, .cler-home .ch-head__title::after {
  content: ""; height: 1px; width: min(120px, 12vw); background: var(--ch-gold); opacity: .7;
}
.cler-home .ch-head--left .ch-head__title { justify-content: flex-start; }
.cler-home .ch-head--left .ch-head__title::before, .cler-home .ch-head--left .ch-head__title::after { display: none; }
.cler-home .ch-head__lead { margin: 10px auto 0; max-width: 62ch; color: var(--ch-muted); }

/* Задачи */
.cler-home .ch-tasks { position: relative; }
.cler-home .ch-task-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch;
}
.cler-home .ch-card {
  order: 0; position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; background: var(--ch-surface); border: 1px solid var(--ch-line);
  border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(32, 37, 31, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer; min-height: 100%;
}
.cler-home .ch-card:hover { transform: translateY(-2px); box-shadow: var(--ch-shadow); }
.cler-home .ch-card__media { position: relative; }
.cler-home .ch-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cler-home .ch-card__icon {
  position: absolute; left: 14px; bottom: -19px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ch-green); color: #fff;
  border: 3px solid var(--ch-surface);
}
.cler-home .ch-card__icon svg { width: 20px; height: 20px; }
.cler-home .ch-card__body { display: flex; flex-direction: column; gap: 8px; padding: 28px 14px 14px; flex: 1; }
.cler-home .ch-card__title { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ch-green); }
.cler-home .ch-card__text { font-size: 12.5px; color: var(--ch-muted); line-height: 1.4; flex: 1; }
.cler-home .ch-card__arrow { position: absolute; right: 14px; bottom: 12px; color: var(--ch-green); font-size: 18px; line-height: 1; }
.cler-home .ch-card.is-active { border-color: var(--ch-burgundy); box-shadow: 0 0 0 2px var(--ch-burgundy) inset, var(--ch-shadow); }
.cler-home .ch-card.is-active .ch-card__icon { background: var(--ch-burgundy); }
.cler-home .ch-card.is-active .ch-card__title { color: var(--ch-burgundy); }
.cler-home .ch-card__state { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid var(--ch-burgundy); }
.cler-home .ch-card__state::before, .cler-home .ch-card__state::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ch-burgundy); transform: translate(-50%, -50%);
}
.cler-home .ch-card__state::before { width: 12px; height: 2px; }
.cler-home .ch-card__state::after { width: 2px; height: 12px; }
.cler-home .ch-card.is-active .ch-card__state::after { display: none; }

/* Панель маршрута */
.cler-home .ch-panel {
  grid-column: 1 / -1; margin-top: 18px; position: relative;
  background: var(--ch-surface); border: 1px solid var(--ch-burgundy); border-radius: 16px;
  scroll-margin-top: 110px;
}
.cler-home .ch-panel[hidden] { display: none; }
.cler-home .ch-panel::before {
  content: ""; position: absolute; top: -11px; left: var(--ch-arrow-left, 18%); width: 20px; height: 20px;
  background: var(--ch-surface); border-left: 1px solid var(--ch-burgundy); border-top: 1px solid var(--ch-burgundy);
  transform: rotate(45deg);
}
.cler-home .ch-panel__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding: 22px; }
.cler-home .ch-panel__media {
  width: 300px; height: 225px; border-radius: 10px; background: #e8ece7 center / cover no-repeat;
}
.cler-home .ch-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cler-home .ch-panel__badge { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ch-gold-text); }
.cler-home .ch-panel__close { border: 0; background: none; color: var(--ch-green); font-weight: 600; text-decoration: underline; padding: 4px 0; }
.cler-home .ch-panel h3 { margin-bottom: 10px; }
.cler-home .ch-panel__intro { color: var(--ch-muted); font-size: 14px; }
.cler-home .ch-panel__cols { display: grid; grid-template-columns: 1.05fr 1fr .95fr; gap: 18px; margin: 14px 0 16px; }
.cler-home .ch-panel__cols h4 { margin: 0 0 6px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ch-green); }
.cler-home .ch-panel__cols ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ch-muted); }
.cler-home .ch-panel__cols p { font-size: 13px; color: var(--ch-muted); }
.cler-home .ch-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cler-home .ch-panel__actions .ch-link { margin-left: auto; border-bottom: 0; }

.cler-home .ch-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--ch-bg); border-radius: 8px; margin: 6px 0 14px; }
.cler-home .ch-switch__btn {
  border: 0; background: none; border-radius: 6px; padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--ch-muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.cler-home .ch-switch__btn[aria-pressed="true"] { background: var(--ch-green); color: #fff; }
.cler-home .ch-switch__btn[aria-pressed="true"]::before { content: "✓"; font-size: 12px; }

.cler-home .ch-note { font-size: 12.5px; color: var(--ch-muted); background: var(--ch-bg); border-left: 3px solid var(--ch-gold); padding: 9px 12px; border-radius: 0 8px 8px 0; }

/* Все разделы */
.cler-home .ch-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cler-home .ch-group {
  display: flex; gap: 12px; padding: 16px 18px; background: rgba(255,255,255,.55);
  border: 1px solid var(--ch-line); border-radius: 12px;
}
.cler-home .ch-group__icon { flex: 0 0 auto; width: 34px; height: 34px; color: var(--ch-green); }
.cler-home .ch-group h3 { font-size: 16px; margin-bottom: 4px; }
.cler-home .ch-group p { margin: 0 0 6px; font-size: 12.5px; color: var(--ch-muted); }
.cler-home .ch-group a { font-size: 12.5px; color: var(--ch-green); text-decoration: none; border-bottom: 1px solid transparent; }
.cler-home .ch-group a:hover { border-color: currentColor; }

/* Результаты */
.cler-home .ch-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cler-home .ch-result { background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: 14px; overflow: hidden; }
.cler-home .ch-result__media { position: relative; }
.cler-home .ch-result__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cler-home .ch-result__tag {
  position: absolute; left: 12px; bottom: -10px; background: #fff; border: 1px solid var(--ch-line);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--ch-muted);
}
.cler-home .ch-result__body { padding: 22px 16px 16px; }
.cler-home .ch-result h3 { font-size: 17px; margin-bottom: 6px; }
.cler-home .ch-result p { font-size: 13px; color: var(--ch-muted); min-height: 3.6em; }
.cler-home .ch-result .ch-link { font-size: 13px; }

/* Форма */
.cler-home .ch-contact {
  position: relative; overflow: hidden; background: var(--ch-green); color: #fff; padding: 34px 0; scroll-margin-top: 100px;
}
.cler-home .ch-contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cler-home .ch-contact__inner { position: relative; z-index: 1; }
.cler-home .ch-contact h2 { color: #fff; margin-bottom: 8px; }
.cler-home .ch-contact__lead { color: rgba(255,255,255,.85); font-size: 13px; max-width: 60ch; }
.cler-home .ch-contact__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; align-items: start; margin-top: 14px; }
.cler-home .ch-contact__mark { display: flex; gap: 14px; align-items: flex-start; }
.cler-home .ch-contact__mark svg { width: 46px; height: 46px; flex: 0 0 auto; color: #fff; }
.cler-home .ch-form { background: transparent; }
.cler-home .ch-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cler-home .ch-form select, .cler-home .ch-form input, .cler-home .ch-form textarea {
  width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px; background: #fff; color: var(--ch-text); font-size: 13px;
}
.cler-home .ch-form textarea { min-height: 84px; resize: vertical; }
.cler-home .ch-form__row--single { grid-template-columns: 1fr; }
.cler-home .ch-form__submit { width: 100%; margin-top: 2px; }
.cler-home .ch-form__note { color: rgba(255,255,255,.7); font-size: 11px; margin-top: 8px; }
.cler-home .ch-form__status { color: #fff; font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 1.2em; }
.cler-home .ch-form__status.is-error { color: #ffd6d6; }
.cler-home .ch-form .ch-field { margin-bottom: 10px; }
.cler-home .ch-form label { display: block; font-size: 11px; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.cler-home .ch-form .ch-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: rgba(255,255,255,.82); margin: 8px 0; }
.cler-home .ch-form .ch-consent input { width: auto; min-height: 0; margin-top: 2px; }
.cler-home .ch-form .ch-consent a { color: #fff; }
.cler-home .ch-form .ch-error { font-size: 11px; color: #ffd6d6; margin-top: 3px; }
.cler-home .ch-process { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 12px; color: rgba(255,255,255,.86); }
.cler-home .ch-process li { display: flex; align-items: center; gap: 8px; }
.cler-home .ch-process b {
  display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%; font-size: 11px; font-weight: 700;
}

/* Адаптив */
@media (max-width: 1199px) {
  .cler-home .ch-container { padding: 0 24px !important; }
  .cler-home .ch-task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cler-home .ch-panel__inner { grid-template-columns: 1fr; }
  .cler-home .ch-panel__media { width: 100%; height: 260px; }
  .cler-home .ch-panel__cols { grid-template-columns: 1fr 1fr; }
  .cler-home .ch-groups { grid-template-columns: 1fr 1fr; }
  .cler-home .ch-results { grid-template-columns: 1fr 1fr; }
  .cler-home .ch-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .cler-home .ch-hero {
    display: flex; flex-direction: column;
    height: auto; min-height: 0;
  }
  .cler-home .ch-hero__bg {
    position: static; width: 100%; height: auto;
    aspect-ratio: 1774 / 887; object-fit: cover;
  }
  .cler-home .ch-hero::after { display: none; }
  .cler-home .ch-hero__inner { min-height: 0; padding: 30px 0 32px; }
  .cler-home .ch-hero__copy { max-width: 100%; }
}
@media (max-width: 767px) {
  .cler-home .ch-container { padding: 0 16px !important; }
  .cler-home .ch-section { padding: 34px 0; }
  .cler-home .ch-task-grid { grid-template-columns: 1fr; gap: 10px; }
  .cler-home .ch-card { flex-direction: row; align-items: stretch; padding-right: 38px; }
  .cler-home .ch-card__media { flex: 0 0 92px; }
  .cler-home .ch-card__img { height: 100%; aspect-ratio: auto; }
  .cler-home .ch-card__icon { left: 8px; bottom: 8px; width: 30px; height: 30px; border-width: 2px; }
  .cler-home .ch-card__icon svg { width: 16px; height: 16px; }
  .cler-home .ch-card__body { padding: 10px 8px; }
  .cler-home .ch-card__state { display: none; }
  .cler-home .ch-card__arrow { display: none; }
  .cler-home .ch-panel { margin-top: 10px; }
  .cler-home .ch-panel::before { display: none; }
  .cler-home .ch-panel__inner { padding: 14px; }
  .cler-home .ch-panel__media { height: 190px; }
  .cler-home .ch-panel__cols { grid-template-columns: 1fr; gap: 10px; }
  .cler-home .ch-panel__actions .ch-link { margin-left: 0; }
  .cler-home .ch-groups, .cler-home .ch-results { grid-template-columns: 1fr; }
  .cler-home .ch-form__row { grid-template-columns: 1fr; }
  .cler-home .ch-head__title::before, .cler-home .ch-head__title::after { width: 40px; }
  .cler-home .ch-hero h1 { font-size: 28px; }
  .cler-home .ch-hero__features { gap: 12px; }
  .cler-home .ch-hero__features li { max-width: 100%; }
}
@media print { .cler-home .ch-panel, .cler-home .ch-form { display: none !important; } }

.cler-home .ch-hero__features li::before, .cler-home .ch-hero__features li::after { content: none !important; }
.cler-home .ch-hero__features li { list-style: none !important; }

.cler-home .ch-route[hidden], .cler-home [data-land-block][hidden] { display: none !important; }

.cler-home .ch-process li { list-style: none; }
.cler-home .ch-process li::before { content: none !important; }

#home-tasks { scroll-margin-top: 100px; }
