/* ---------- страница услуги ---------- */
.svc-hero { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-hero h1 { margin-top: 18px; font-size: clamp(2.125rem, 1.3rem + 3vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.svc-lead { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-soft); max-width: 60ch; }
.svc-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__img { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; max-width: 100%; box-shadow: var(--shadow-2); }
.svc-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.svc-body { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 88px); }
.svc-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-text { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; max-width: 760px; }
.svc-text h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); font-weight: 760; line-height: 1.08; letter-spacing: -0.028em; margin-bottom: 16px; }
.svc-text > section > p { font-size: 1.0625rem; color: #33393E; max-width: 66ch; }
.svc-text > section > p + * { margin-top: 18px; }

.svc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-points li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.svc-points li::before {
  content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px;
  border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}
.svc-points h3, .svc-steps h3 { font-family: var(--f-text); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.svc-points p, .svc-steps p { margin-top: 6px; color: var(--ink-soft); }

.svc-figure { margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.svc-figure img { width: 100%; height: 100%; object-fit: cover; }

.svc-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.svc-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.svc-steps li::before {
  content: counter(st); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: #8F3207; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem;
}
.svc-steps li > * { grid-column: 2; }
.svc-steps h3 { padding-top: 9px; }

.svc-mats { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-mats a {
  display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2);
  text-decoration: none; transition: border-color .15s, background-color .15s;
}
.svc-mats a:hover { border-color: var(--accent); background: var(--surface); }
.svc-mats b { font-family: var(--f-display); font-weight: 650; font-size: 1.0625rem; }
.svc-mats span { color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-hover); }
.faq p { padding: 0 0 18px; color: var(--ink-soft); max-width: 66ch; }

.svc-final { padding: 24px 28px; border-radius: var(--r-m); background: var(--graphite); color: var(--on-dark); }
.svc-text > .svc-final p { color: var(--on-dark); max-width: none; font-family: var(--f-display); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

.svc-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.svc-card { padding: 24px; border-radius: var(--r-m); background: var(--canvas); border: 1px solid var(--line); display: grid; gap: 14px; }
.svc-card h2 { font-size: 1.375rem; font-weight: 720; line-height: 1.15; letter-spacing: -0.02em; }
.svc-card p { color: var(--ink-soft); font-size: .9688rem; }
.svc-card .btn { width: 100%; }
.svc-card__phone { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; text-align: center; }
.svc-card__phone:hover { color: var(--accent-hover); }
.svc-card__note { text-align: center; margin-top: -10px; font-size: .875rem !important; }

@media (max-width: 1020px) {
  .svc-hero__grid, .svc-body__grid { grid-template-columns: 1fr; }
  .svc-hero__img { max-width: 560px; aspect-ratio: 4 / 3; }
  .svc-side { position: static; }
}
@media (max-width: 720px) {
  .svc-cta .btn { width: 100%; }
  .svc-mats { grid-template-columns: 1fr; }
  .svc-final { padding: 20px; }
}
.svc-side { display: grid; gap: 12px; }
.svc-related { display: grid; padding: 8px 20px; border: 1px solid var(--line); border-radius: var(--r-m); }
.svc-related p { font-size: .8125rem; color: var(--ink-soft); padding: 8px 0 4px; }
.svc-related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 650; font-size: 1rem; }
.svc-related p + a { border-top: 0; }
.svc-related svg { width: 16px; height: 16px; flex: none; color: var(--accent); transition: transform .18s var(--ease); }
.svc-related a:hover { color: var(--accent-hover); }
.svc-related a:hover svg { transform: translateX(3px); }
.svc-points li > h3:only-child { padding-top: 0; }

/* ---------- страница «Услуги» ---------- */
.hub-hero .svc-lead { max-width: 70ch; }
.hub-hero h1 { max-width: 18ch; }
.hub-body { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; text-decoration: none; transition: border-color .18s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hub-card__img { position: relative; overflow: hidden; background: var(--tint); min-height: 200px; }
.hub-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s var(--ease); }
.hub-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.hub-card h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hub-card p { color: var(--ink-soft); font-size: .9688rem; }
.hub-card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.hub-card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
@media (hover: hover) {
  .hub-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
  .hub-card:hover .hub-card__img img { transform: scale(1.05); }
  .hub-card:hover .hub-card__more svg { transform: translateX(3px); }
}
.hub-why { margin-top: clamp(48px, 6vw, 80px); }
.hub-why h2, .hub-more h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
.hub-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-m); }
.hub-facts li { padding: 20px 22px; display: grid; gap: 4px; align-content: start; }
.hub-facts li + li { border-left: 1px solid var(--line); }
.hub-facts b { font-family: var(--f-display); font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; }
.hub-facts span { color: var(--ink-soft); font-size: .9375rem; }
.hub-more {
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--graphite); color: var(--on-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hub-more p { margin-top: 8px; color: var(--on-dark-soft); max-width: 56ch; }
@media (max-width: 1020px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-facts { grid-template-columns: 1fr 1fr; }
  .hub-facts li:nth-child(3) { border-left: 0; }
  .hub-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hub-card { grid-template-columns: 1fr; }
  .hub-card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .hub-more .btn { width: 100%; }
}

/* ---------- юридические страницы ---------- */
.legal { gap: clamp(32px, 4vw, 48px); }
.legal-list { margin: 0; padding: 0; list-style: none; counter-reset: lg; display: grid; gap: 14px; }
.legal-list li { counter-increment: lg; position: relative; padding-left: 40px; font-size: 1.0313rem; line-height: 1.65; color: #33393E; max-width: 72ch; }
.legal-list li::before {
  content: counter(lg); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: #8F3207; font-weight: 700; font-size: .8125rem;
}
.legal h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
