/* =========================================================================
   accident.css — компоненты страницы «Возмещение ущерба после ДТП».
   Общее со страницами услуг (первый экран, лента конкретики, квиз,
   финальный призыв, подвал) берётся из service.css.
   ========================================================================= */

/* ----------------------------- 1. Ситуации -------------------------------- */
/* Секция тёмная, карточки внутри — белые (по правке заказчика) */
.situations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.situation {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--r-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.situation:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.situation__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.situation__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--c-accent);
}

.situation__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  background: #e8eeff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-accent);
  white-space: nowrap;
}

.situation__title {
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.situation__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.situation__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-muted);
}

.situation__text {
  font-size: var(--fs-small);
  line-height: 1.42;
  color: var(--c-muted);
}

/* Что делаем — на подложке */
.situation__answer {
  padding: 16px;
  background: #e8eeff;
  border-radius: 13px;
}

.situation__answer .situation__text {
  color: var(--c-text);
}

/* Фотография внизу карточки — прижата к нижнему краю,
   чтобы снимки соседних карточек стояли на одной линии */
.situation__img {
  width: 100%;
  height: auto;
  margin-top: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 13px;
  background: var(--c-panel);
}

/* ------------------------- 2. Шаги возмещения ----------------------------- */
.route {
  display: flex;
  flex-direction: column;
}

.route__step {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--c-line);
}

.route__step:last-child {
  border-bottom: 0;
}

.route__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-accent);
  font-size: 15px;
  font-weight: 700;
}

.route__step--accent .route__num {
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.route__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.route__term {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--c-accent);
}

.route__title {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
}

.route__text {
  font-size: var(--fs-small);
  line-height: 1.42;
  color: var(--c-muted);
}

.route__result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  flex: none;
  padding: 14px 16px;
  background: #e8eeff;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.route__result .ic {
  flex: none;
  color: var(--c-accent);
}

/* --------------------------- 3. Ведущий юрист ----------------------------- */
.lawyer {
  display: flex;
  align-items: stretch;
  gap: 34px;
}

.lawyer__photo {
  position: relative;
  width: 470px;
  flex: none;
  min-height: 520px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.lawyer__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.lawyer__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-2xs);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-on-dark-80);
}

.lawyer__badge .ic {
  color: var(--c-on-dark);
}

.lawyer__name {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.028em;
}

.lawyer__role {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--c-on-dark-60);
}

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

.lawyer__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 13px;
}

.lawyer__value {
  font-size: clamp(21px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.lawyer__caption {
  font-size: 13px;
  color: var(--c-on-dark-60);
}

.lawyer__quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--c-accent);
  border-radius: 13px;
}

.lawyer__quote p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-on-dark);
}

.lawyer__quote p + p {
  color: var(--c-on-dark-80);
}

.lawyer__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.lawyer__note {
  font-size: 13px;
  color: var(--c-on-dark-60);
}

/* ------------------------------ 4. Кейсы ---------------------------------- */
.cases-osago {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-os {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--c-surface);
  border-radius: var(--r-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.case-os:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-os__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-os__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--c-accent);
}

.case-os__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--c-bg);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-muted);
}

.case-os__car {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-os__model {
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.case-os__hit {
  font-size: 13px;
  color: var(--c-muted);
}

/* Было → стало */
.swap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--c-bg);
  border-radius: 13px;
}

.swap__side {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.swap__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-muted);
}

.swap__value {
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -0.024em;
}

.swap__side--after .swap__value {
  color: var(--c-accent);
}

.swap__arrow {
  flex: none;
  color: var(--c-accent);
}

.case-os__text {
  font-size: var(--fs-small);
  line-height: 1.42;
  color: var(--c-muted);
}

/* Строки состава взыскания */
.breakdown {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-line);
}

.breakdown > div:last-child {
  border-bottom: 0;
}

.breakdown dt {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.breakdown dd {
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: right;
}

.case-os__total {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: #e8eeff;
  border-radius: 13px;
  font-size: var(--fs-small);
  font-weight: 600;
}

.case-os__total .ic {
  flex: none;
  color: var(--c-accent);
}

/* ------------------------- 5. Финальный перерасчёт ------------------------ */
.cta-final__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-2xs);
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-on-dark);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--c-on-dark-80);
}

.checks .ic {
  flex: none;
  color: var(--c-on-dark);
}

/* Быстрый контакт под формой */
.quick {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.quick__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-muted);
}

.quick__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  transition: color var(--t-fast);
}

.quick__phone:hover {
  color: var(--c-accent);
}

.quick__phone .ic {
  color: var(--c-accent);
}

/* ------------------------------- 6. Подвал -------------------------------- */
.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer__links-col a {
  font-size: var(--fs-small);
  color: var(--c-footer-muted);
  transition: color var(--t-fast);
}

.footer__links-col a:hover {
  color: var(--c-accent);
}

/* ============================== АДАПТАЦИЯ ================================= */

/* ------------------------------ ≤ 1180 px -------------------------------- */
@media (max-width: 1180px) {
  .route__result {
    width: 230px;
  }

  .lawyer__photo {
    width: 40%;
  }
}

/* ------------------------------ ≤ 1024 px -------------------------------- */
@media (max-width: 1024px) {
  .situations,
  .cases-osago {
    grid-template-columns: minmax(0, 1fr);
  }

  .lawyer {
    flex-direction: column;
  }

  .lawyer__photo {
    width: 100%;
    min-height: 380px;
  }
}

/* ------------------------------- ≤ 860 px -------------------------------- */
@media (max-width: 860px) {
  .situation,
  .case-os {
    padding: 20px;
  }

  /* Шаг: номер сверху, результат — отдельной плашкой снизу */
  .route__step {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
  }

  .route__num {
    width: 46px;
    height: 46px;
  }

  .route__body {
    flex: 1 1 200px;
  }

  .route__result {
    width: 100%;
  }

  .lawyer__metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lawyer__quote {
    padding: 18px;
  }
}

/* ------------------------------- ≤ 640 px -------------------------------- */
@media (max-width: 640px) {
  .situation,
  .case-os {
    padding: 18px;
  }

  .situation__head,
  .case-os__head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .situation__tag,
  .case-os__tag {
    height: auto;
    padding: 5px 9px;
    white-space: normal;
  }

  .situation__text,
  .route__text,
  .case-os__text {
    font-size: 14px;
  }

  /* «Было → стало» встаёт столбиком и выравнивается по центру карточки */
  .swap {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
  }

  .swap__side {
    flex: none;
    align-items: center;
    text-align: center;
  }

  .swap__arrow {
    transform: rotate(90deg);
  }

  .breakdown > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .breakdown dd {
    text-align: left;
  }

  .quick {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
