/* ===== Страницы услуг: новый макет (.usl). Подключается в шаблоне «Услуга — новый макет» ===== */
@charset "UTF-8";
.usl {
  --usl-ink: #17212b;
  --usl-muted: #4d5864;
  --usl-navy: #102a43;
  --usl-navy-2: #0b1f33;
  --usl-gold: #a8834f;
  --usl-mist: #f2f4f6;
  --usl-line: #d8dde3;
  color: var(--usl-ink);
  font-size: 17px;
  line-height: 1.65;
  background: #fff;
}
.usl *, .usl *::before, .usl *::after { box-sizing: border-box; }
.usl p { margin: 0 0 14px; }
.usl a { color: var(--usl-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.usl a:hover { color: var(--usl-gold); }
.usl a:focus-visible, .usl button:focus-visible, .usl summary:focus-visible { outline: 2px solid var(--usl-gold); outline-offset: 3px; }
.usl [id] { scroll-margin-top: 90px; }

.usl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.usl-section { padding: 72px 0; }
.usl-section--mist { background: var(--usl-mist); }

.usl h1, .usl h2, .usl h3 { font-family: 'Roboto Slab', Georgia, serif; color: var(--usl-ink); margin: 0; }
.usl .usl-h2 { font-size: 32px; line-height: 1.2; font-weight: 500; margin-bottom: 32px; max-width: 28ch; }
.usl h3 { font-size: 20px; line-height: 1.3; font-weight: 500; margin-bottom: 10px; }

/* Кнопки: фирменный золотой стиль сайта из custom.css, здесь только отступы */
.usl .usl-btn.header-button { margin: 0 !important; border-radius: 6px !important; cursor: pointer; }
.usl .usl-link { font-weight: 500; }

/* Первый экран */
.usl-hero { padding: 48px 0 64px; border-bottom: 1px solid var(--usl-line); }
.usl-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.usl .usl-hero__title { font-size: 46px; line-height: 1.12; font-weight: 500; margin-bottom: 20px; max-width: 18ch; }
.usl-hero__lead { font-size: 19px; color: var(--usl-muted); max-width: 56ch; }
.usl-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 28px 0 18px; }
.usl-hero__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }
.usl-hero__contacts a { color: var(--usl-ink); }
.usl-facts { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--usl-line); display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 15px; color: var(--usl-muted); }
.usl-facts li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--usl-line); }
.usl-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.usl-consult { background: var(--usl-navy); color: #fff; padding: 32px 32px 28px; border-radius: 6px; }
.usl-consult__title { font-family: 'Roboto Slab', Georgia, serif; font-size: 22px; margin: 0 0 2px; color: #fff; }
.usl-consult__price { font-size: 17px; color: #d9c6a4; margin-bottom: 20px; }
.usl-consult__steps { list-style: none; counter-reset: c; margin: 0 0 20px; padding: 0; }
.usl-consult__steps li { counter-increment: c; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid rgba(255,255,255,.18); font-size: 16px; line-height: 1.5; }
.usl-consult__steps li::before { content: counter(c); position: absolute; left: 0; top: 12px; font-family: 'Roboto Slab', Georgia, serif; font-size: 22px; color: #d9c6a4; }
.usl-consult__note { font-size: 14px; color: rgba(255,255,255,.78); margin: 0; }

/* Что осложняет раздел */
.usl-problems { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--usl-navy); }
.usl-problem { padding: 24px 28px 8px 0; }
.usl-problem + .usl-problem { padding-left: 28px; border-left: 1px solid var(--usl-line); }
.usl-problem p { color: var(--usl-muted); font-size: 16px; }

/* Две колонки: заголовок + содержание */
.usl-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.usl-split__head p { color: var(--usl-muted); font-size: 16px; max-width: 44ch; }

/* Шаги */
.usl-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.usl-steps li { counter-increment: s; position: relative; padding: 22px 0 10px 64px; border-top: 1px solid var(--usl-line); }
.usl-steps li:first-child { border-top: 2px solid var(--usl-navy); }
.usl-steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; font-family: 'Roboto Slab', Georgia, serif; font-size: 30px; line-height: 1; color: var(--usl-gold); }
.usl-steps p { color: var(--usl-muted); font-size: 16px; }

/* Цены */
.usl-price { width: 100%; border-collapse: collapse; font-size: 17px; }
.usl-price th, .usl-price td { padding: 14px 0; border-bottom: 1px solid var(--usl-line); text-align: left; vertical-align: top; font-weight: 400; }
.usl-price tr:first-child th, .usl-price tr:first-child td { border-top: 2px solid var(--usl-navy); }
.usl-price td { text-align: right; white-space: nowrap; font-weight: 500; padding-left: 20px; font-variant-numeric: tabular-nums; }
.usl-small { font-size: 14px; color: var(--usl-muted); margin-top: 14px; }

/* Практика */
.usl-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.usl-case { background: #fff; padding: 32px; border-top: 3px solid var(--usl-gold); }
.usl-case p { font-size: 16px; }
.usl-case__meta { font-size: 14px; color: var(--usl-muted); margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--usl-line); }

/* Разъяснения */
.usl-guide { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.usl-toc { position: sticky; top: 90px; }
.usl-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--usl-line); }
.usl-toc li { margin: 0; }
.usl-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--usl-muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.usl-toc a:hover { color: var(--usl-navy); border-left-color: var(--usl-gold); }
.usl-text { max-width: 70ch; }
.usl-text h3 { font-size: 23px; margin: 40px 0 14px; }
.usl-text h3:first-child { margin-top: 0; }

/* Позиции ВС */
.usl-positions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.usl-positions li { padding: 22px 0 10px; border-top: 1px solid var(--usl-line); }
.usl-positions li:nth-child(-n+2) { border-top: 2px solid var(--usl-navy); }
.usl-positions p { font-size: 16px; color: var(--usl-muted); }
.usl-positions__ref { font-size: 14px !important; color: var(--usl-ink) !important; font-weight: 500; }

/* FAQ */
.usl-faq { max-width: 860px; }
.usl-faq details { border-bottom: 1px solid var(--usl-line); }
.usl-faq details:first-child { border-top: 2px solid var(--usl-navy); }
.usl-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: 'Roboto Slab', Georgia, serif; font-size: 19px; font-weight: 500; }
.usl-faq summary::-webkit-details-marker { display: none; }
.usl-faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; line-height: 1; color: var(--usl-gold); }
.usl-faq details[open] summary::after { content: '−'; }
.usl-faq details p { color: var(--usl-muted); padding-bottom: 12px; max-width: 70ch; }

/* Финальный призыв */
.usl-final { background: var(--usl-navy); color: #fff; padding: 64px 0; }
.usl-final__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.usl .usl-final__title { color: #fff; font-size: 30px; line-height: 1.2; font-weight: 500; margin-bottom: 14px; max-width: 26ch; }
.usl-final p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }
.usl-final__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.usl .usl-final__phone { color: #fff; font-size: 20px; text-decoration: none; }
.usl .usl-final__phone:hover { color: #d9c6a4; }

/* Адаптив */
@media (max-width: 991px) {
  .usl-hero__grid, .usl-split, .usl-guide, .usl-final__inner { grid-template-columns: 1fr; gap: 32px; }
  .usl-toc { position: static; }
  .usl-cases, .usl-positions { grid-template-columns: 1fr; }
  .usl-positions li:nth-child(2) { border-top: 1px solid var(--usl-line); }
}
@media (max-width: 767px) {
  .usl { font-size: 16px; }
  .usl-section { padding: 48px 0; }
  .usl-hero { padding: 28px 0 44px; }
  .usl .usl-hero__title { font-size: 32px; }
  .usl-hero__lead { font-size: 17px; }
  .usl .usl-h2 { font-size: 26px; margin-bottom: 24px; }
  .usl-problems { grid-template-columns: 1fr; }
  .usl-problem, .usl-problem + .usl-problem { padding: 20px 0 4px; border-left: 0; border-top: 1px solid var(--usl-line); }
  .usl-problem:first-child { border-top: 0; }
  .usl-consult { padding: 24px 20px 20px; }
  .usl-case { padding: 24px 20px; }
  .usl-price { font-size: 16px; }
  .usl .usl-final__title { font-size: 24px; }
  .usl .usl-btn.header-button { width: 100% !important; }
  .usl-facts { flex-direction: column; gap: 4px; }
  .usl-facts li { border-right: 0; margin-right: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .usl * { scroll-behavior: auto !important; } }
/* ===== Добавки для страницы «Развод с иностранцем» (30.09.2026) ===== */

/* Разделитель секции */
.usl-section--line { border-top: 1px solid var(--usl-line); }

/* Блок автора */
.usl-author { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.usl-author__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.usl-author .usl-h2 { margin-bottom: 16px; }
.usl-author__status { font-weight: 500; }
.usl-author__body p { max-width: 62ch; }

/* Разъяснения: краткий ответ сверху, детали приглушены */
.usl-text--answers p { color: var(--usl-muted); }
.usl-text--answers .usl-answer { font-size: 18px; color: var(--usl-ink); padding-left: 16px; border-left: 3px solid var(--usl-gold); margin-bottom: 16px; }
.usl-ol { margin: 0 0 14px; padding-left: 22px; color: var(--usl-muted); }
.usl-ol li { margin-bottom: 8px; }
.usl-check { list-style: none; margin: 0 0 14px; padding: 0; color: var(--usl-muted); }
.usl-check li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.usl-check li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--usl-gold); border-bottom: 2px solid var(--usl-gold); transform: rotate(-45deg); }

/* Практика: ситуация, что сделали, результат */
.usl-case__dl { margin: 0; }
.usl-case__dl dt { font-size: 14px; font-weight: 500; color: var(--usl-gold); margin: 14px 0 2px; }
.usl-case__dl dt:first-child { margin-top: 0; }
.usl-case__dl dd { margin: 0; font-size: 16px; }

/* Минус в открытом вопросе FAQ: код символа вместо самого символа, чтобы не зависеть от кодировки */
.usl-faq details[open] summary::after { content: '\2212'; }

@media (max-width: 767px) {
  .usl-author { grid-template-columns: 1fr; gap: 24px; }
  .usl-author__photo { max-width: 220px; }
}
/* Страница цен */
.usl-problem__price { font-family: 'Roboto Slab', Georgia, serif; font-size: 26px; line-height: 1.2; color: var(--usl-ink); margin: 6px 0 12px !important; }
.usl-prices .usl-h2 { margin: 56px 0 18px; font-size: 28px; max-width: none; }
.usl-prices .usl-h2:first-child { margin-top: 0; }
.usl-prices h3 { margin: 32px 0 10px; }
.usl-prices .usl-small { margin: 12px 0 0; }
.usl-price th small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--usl-muted); font-weight: 400; }
/* Страница адвоката: контраст кнопок, три карточки */
.usl { --usl-gold: #86652f; }
.usl .usl-btn.header-button { background: #86652f !important; color: #fff !important; }
.usl .usl-btn.header-button:hover { background: #6f5326 !important; }
.usl .usl-btn--light.header-button { background: #d9c6a4 !important; color: #102a43 !important; }
.usl .usl-btn--light.header-button:hover { background: #e8d9ba !important; }
.usl-cases--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .usl-cases--3 { grid-template-columns: 1fr; } }
