@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/*
  Preserved post-rollback components only.
  Page typography, section sizing, spacing, cards and content grids are again
  controlled by each page's original styles.
*/
:root{
  --ds-navy:#17385f;
  --ds-navy-hover:#245487;
  --ds-ink:#10243f;
  --ds-line:rgba(23,56,95,.14);
  --ds-container:1240px;
  --ds-header:1220px;
  --ds-radius-control:11px;
  --ds-ease:cubic-bezier(.22,1,.36,1);
  --ds-duration:.3s;
}

html{scroll-behavior:smooth;scroll-padding-top:104px}
body.site-shell{min-width:320px;overflow-x:hidden}

/* Shared header and its existing actions remain unchanged. */
body.site-shell .header{
  position:fixed!important;
  z-index:1000!important;
  top:16px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(var(--ds-header),calc(100% - 28px))!important;
  min-height:66px!important;
  margin:0!important;
  padding:8px 10px 8px 16px!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  border:1px solid rgba(18,33,58,.10)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 10px 32px rgba(18,33,58,.08)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  font-family:'Onest',Arial,sans-serif!important;
}
body.site-shell .header>.nav{display:flex;align-items:center;justify-content:center;gap:4px}
body.site-shell .header>.nav>a{
  padding:11px 10px!important;
  border-radius:9px!important;
  color:#4d5d70!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-decoration:none!important;
  transition:background var(--ds-duration) var(--ds-ease),color var(--ds-duration) var(--ds-ease)!important;
}
body.site-shell .header>.nav>a:hover{background:#f1f4f7!important;color:var(--ds-ink)!important}
body.site-shell .header .actions,
body.site-shell .header .header-actions{display:flex!important;align-items:center!important;gap:8px!important}
body.site-shell .btn,
body.site-shell .header .btn{
  min-height:50px!important;
  padding:0 20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px solid var(--ds-line)!important;
  border-radius:var(--ds-radius-control)!important;
  box-shadow:none!important;
  font-family:'Onest',Arial,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-decoration:none!important;
  cursor:pointer!important;
  transition:background var(--ds-duration) var(--ds-ease),border-color var(--ds-duration) var(--ds-ease),color var(--ds-duration) var(--ds-ease),transform var(--ds-duration) var(--ds-ease)!important;
}
body.site-shell .btn:hover{transform:translateY(-1px)!important}
body.site-shell .btn-primary,
body.site-shell .btn.primary,
body.site-shell .site-header-consult{border-color:var(--ds-navy)!important;background:var(--ds-navy)!important;color:#fff!important}
body.site-shell .btn-primary:hover,
body.site-shell .btn.primary:hover,
body.site-shell .site-header-consult:hover{border-color:var(--ds-navy-hover)!important;background:var(--ds-navy-hover)!important}
body.site-shell .btn-light,
body.site-shell .btn.secondary,
body.site-shell .site-header-max{background:#fff!important;color:var(--ds-navy)!important}

/* Shared footer and developer link remain unchanged. */
body.site-shell .footer{
  margin:0!important;
  padding:56px 0 48px!important;
  border:0!important;
  background:var(--ds-navy)!important;
  color:rgba(255,255,255,.74)!important;
  font-family:'Onest',Arial,sans-serif!important;
}
body.site-shell .footer .site-footer-inner{
  width:min(var(--ds-container),calc(100% - 40px))!important;
  min-height:180px;
  margin:auto!important;
  padding:28px 0 0!important;
  border-top:1px solid rgba(255,255,255,.22)!important;
  color:inherit!important;
  font-size:12px!important;
  line-height:1.7!important;
}
body.site-shell .footer .site-footer-brand img{width:170px!important;margin-bottom:16px!important}
body.site-shell .footer .site-footer-documents{max-width:360px}
body.site-shell .footer .site-footer-documents strong{color:#fff!important}
body.site-shell .footer a{color:inherit!important}

/* The shared fixed header must not cover the preserved case-page content. */
body.site-shell.case-detail-page main{padding-top:138px!important}

/* Current “Показательные дела” layout is intentionally preserved. */
body.home-page .case-scroll{
  align-items:flex-start!important;
  padding-left:58px!important;
  padding-right:58px!important;
  scroll-padding-inline:58px!important;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
}
body.home-page .case-card{
  flex:0 0 330px!important;
  align-self:flex-start!important;
  display:flex!important;
  flex-direction:column!important;
  scroll-snap-align:start;
  border-radius:18px!important;
  box-shadow:0 8px 20px rgba(18,45,75,.035)!important;
}
body.home-page .case-card .doc-preview{height:300px!important;flex:0 0 auto!important}
body.home-page .case-card .case-info{
  flex:0 0 auto!important;
  display:block!important;
  padding:14px 16px 16px!important;
}
body.home-page .case-region{
  width:max-content!important;
  max-width:100%!important;
  min-height:30px!important;
  margin:0 0 9px!important;
  padding:5px 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#e8f2f9!important;
  color:#425a72!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.25!important;
}
body.home-page .case-card .case-info h3{
  margin:0 0 8px!important;
  font-size:22px!important;
  font-weight:500!important;
  line-height:1.2!important;
}
body.home-page .case-card .case-info p{
  margin:0!important;
  color:#746e68!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.42!important;
}
body.home-page .case-card .case-link{
  min-height:40px!important;
  margin-top:12px!important;
  padding-top:0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:17px!important;
  font-weight:500!important;
}
body.home-page .case-scroll-btn.case-scroll-prev{left:6px!important}
body.home-page .case-scroll-btn.case-scroll-next{right:6px!important}

/* Current “О Дмитрии” metric grid is intentionally preserved. */
@media(min-width:701px){
  body.home-page .about-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.home-page .about-metric{
    min-width:0!important;
    padding:26px 28px 30px!important;
    align-items:stretch!important;
  }
  body.home-page .about-metric span{
    width:100%!important;
    margin:0!important;
    align-self:start!important;
    font-size:16px!important;
    font-weight:500!important;
    line-height:1.4!important;
    text-align:left!important;
  }
  body.home-page .about-metric strong,
  body.home-page .about-metric:nth-child(3) strong{
    width:100%!important;
    margin:0!important;
    align-self:end!important;
    font-size:clamp(48px,4.05vw,62px)!important;
    font-weight:600!important;
    line-height:.96!important;
    letter-spacing:-.04em!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
}

@media(min-width:1360px){
  body.home-page .cases-section .container{overflow:visible!important}
  body.home-page .case-scroll{padding-left:0!important;padding-right:0!important;scroll-padding-inline:0!important}
  body.home-page .case-scroll-btn.case-scroll-prev{left:-58px!important}
  body.home-page .case-scroll-btn.case-scroll-next{right:-58px!important}
}

@media(max-width:1024px){
  body.site-shell .header{grid-template-columns:58px minmax(0,1fr)!important;gap:8px!important}
  body.site-shell .header>.nav{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    left:0!important;
    right:0!important;
    display:none!important;
    padding:10px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    border:1px solid rgba(16,36,63,.10)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 18px 40px rgba(18,45,75,.12)!important;
  }
  body.site-shell .header.menu-open>.nav{display:flex!important}
}

@media(max-width:700px){
  html{scroll-padding-top:84px}
  body.site-shell .header{
    top:8px!important;
    width:calc(100% - 16px)!important;
    min-height:56px!important;
    padding:7px 8px!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    border-radius:16px!important;
  }
  body.site-shell .header .actions,
  body.site-shell .header .header-actions{gap:5px!important;justify-self:end!important}
  body.site-shell .header .actions>.btn,
  body.site-shell .header .header-actions>.btn{
    height:40px!important;
    min-height:40px!important;
    padding:0 9px!important;
    font-size:10px!important;
    border-radius:10px!important;
    white-space:nowrap!important;
  }
  body.site-shell .site-menu-toggle{width:40px!important;height:40px!important;border-radius:10px!important}
  body.site-shell .footer{padding:44px 0 24px!important}
  body.site-shell .footer .site-footer-inner{
    width:calc(100% - 24px)!important;
    min-height:0!important;
    padding-top:24px!important;
    gap:22px!important;
  }
  body.site-shell .footer .site-footer-brand img{width:145px!important}
  body.site-shell.case-detail-page main{padding-top:112px!important}

  body.home-page .case-scroll{padding-left:0!important;padding-right:0!important;scroll-padding-inline:0!important}
  body.home-page .case-card{flex-basis:calc(100vw - 52px)!important}
  body.home-page .case-card .doc-preview{height:290px!important}
  body.home-page .case-card .case-info{padding:14px!important}
  body.home-page .case-card .case-info h3{font-size:22px!important}
  body.home-page .case-card .case-info p{font-size:16px!important;line-height:1.42!important}
  body.home-page .about-metric span{font-size:16px!important;font-weight:500!important}

  /* Approved mobile-only normalization for “Практика в цифрах”. */
  body.home-page .stats-band .metrics{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:150px 150px!important;
    align-items:stretch!important;
  }
  body.home-page .stats-band .metric,
  body.home-page .stats-band .metric:nth-child(3){
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:24px 10px!important;
    display:grid!important;
    grid-template-rows:36px 58px!important;
    align-content:center!important;
    align-items:start!important;
    justify-items:center!important;
    row-gap:12px!important;
    text-align:center!important;
    transform:none!important;
  }
  body.home-page .stats-band .metric:nth-child(1){grid-column:1!important;grid-row:1!important}
  body.home-page .stats-band .metric:nth-child(2){grid-column:2!important;grid-row:1!important}
  body.home-page .stats-band .metric:nth-child(3){grid-column:1 / -1!important;grid-row:2!important}
  body.home-page .stats-band .metric b,
  body.home-page .stats-band .metric:nth-child(2) b,
  body.home-page .stats-band .metric:nth-child(3) b{
    width:100%!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    color:#10243f!important;
    font-size:clamp(23px,6.9vw,27px)!important;
    font-weight:600!important;
    line-height:1.05!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
    text-align:center!important;
    transform:none!important;
  }
  body.home-page .stats-band .metric b span,
  body.home-page .stats-band .metric b .metric-plus,
  body.home-page .stats-band .metric b i{
    width:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    align-self:center!important;
    color:inherit!important;
    font-size:1em!important;
    font-weight:600!important;
    line-height:inherit!important;
    letter-spacing:inherit!important;
    transform:none!important;
  }
  body.home-page .stats-band .metric .metric-label{
    width:100%!important;
    max-width:170px!important;
    min-height:58px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    align-self:start!important;
    color:#4d6075!important;
    font-size:13px!important;
    font-weight:500!important;
    line-height:1.4!important;
    text-align:center!important;
    transform:none!important;
  }
}

@media(max-width:390px){
  body.site-shell .header .actions>.btn,
  body.site-shell .header .header-actions>.btn{padding-inline:7px!important;font-size:9px!important}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.site-shell *,body.site-shell *::before,body.site-shell *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* Requested typography pass. Geometry and large display headings stay local. */
body.site-shell main p,
body.site-shell main li{
  font-size:16px!important;
}

/* Section subtitles and page leads. */
body.home-page .section-head>p,
body.home-page .cases-head>p,
body.home-page .work-flow-head>p,
body.home-page .help-preview-section .section-head>p,
body.home-page .max-block>p,
body.home-page .about-statement>p,
body.help-page .section-subtitle,
body.help-page .hero p,
body.article-page .hero .lead,
body.case-detail-page .hero .lead,
body.site-shell main .section-subtitle{
  font-size:16px!important;
}

/* First screen: larger copy and a tighter gap between its two statements. */
body.home-page .hero-copy{
  font-size:22px!important;
  line-height:1.4!important;
}
body.home-page .hero-copy span+span{margin-top:4px!important}
body.home-page .hero-choice small{
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
body.home-page .hero-choice strong{font-weight:700!important}

/* Statistics: keep the current layout and number scale; enlarge labels only. */
body.home-page .stats-band .metric .metric-label{
  font-size:16px!important;
  line-height:1.4!important;
}

/* Services: one consistent description column and left guide. */
body.home-page .service-row>p{
  width:100%!important;
  max-width:620px!important;
  margin:0!important;
  justify-self:start!important;
  align-self:center!important;
  font-size:20px!important;
  line-height:1.45!important;
  text-align:left!important;
}

/* Debt cards and procedure cards. */
body.home-page .debt-section .section-head>p,
body.home-page .process-section .work-flow-head>p{font-size:20px!important}
body.home-page .debt-item h3{font-size:20px!important}
body.home-page .debt-item p{
  font-size:14px!important;
  line-height:1.5!important;
}
body.home-page .work-step p{
  font-size:16px!important;
  line-height:1.55!important;
}

/* Cases: equal card height, technical copy at 12px and a strong action. */
body.home-page .cases-head>p{font-size:20px!important}
body.home-page .case-scroll{align-items:stretch!important}
body.home-page .case-card{align-self:stretch!important}
body.home-page .case-card .case-info{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
}
body.home-page .case-region{
  min-height:0!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.home-page .case-card .case-info p{
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.5!important;
}
body.home-page .case-card .case-link{
  margin-top:auto!important;
  padding-top:14px!important;
  font-weight:700!important;
}

/* Prices. */
body.home-page .price p{
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.55!important;
}
body.home-page .price-amount{font-weight:700!important}

/* MAX, help previews and final contact. */
body.home-page .max-section .max-block p{font-size:20px!important}
body.home-page .help-preview-section .section-head>p{font-size:20px!important}
body.home-page .help-preview-card p,
body.help-page .help-card p{
  font-size:16px!important;
  line-height:1.5!important;
}
body.help-page .help-card h3{font-size:20px!important}
body.home-page #contact .final-cta-head>p,
body.home-page #contact .final-cta-card p{
  font-size:16px!important;
  font-weight:400!important;
}
body.home-page #contact .legal-warning{
  font-size:12px!important;
  line-height:1.5!important;
}

/* Technical labels and metadata. */
body.site-shell main .eyebrow,
body.site-shell main .updated,
body.site-shell main .breadcrumb,
body.site-shell main .price-label,
body.site-shell main .price-note,
body.site-shell main .work-step-num,
body.site-shell main .help-num,
body.site-shell main .result-card span,
body.site-shell main .meta small,
body.site-shell main .meta b,
body.site-shell main .block>span,
body.site-shell main .official,
body.site-shell main .legal-note{
  font-size:12px!important;
}

/* All action labels use the same firm Bold weight. */
body.site-shell .btn,
body.site-shell .service-cta,
body.site-shell .case-link,
body.site-shell .practice-registry-link,
body.site-shell .max-channel-link,
body.site-shell .all-cases-toggle,
body.site-shell .all-cases>summary,
body.site-shell .faq-q,
body.site-shell .quick a,
body.site-shell .site-fixed-actions a,
body.site-shell .site-menu-toggle,
body.site-shell .site-mobile-actions a{
  font-weight:700!important;
}

/* Footer continues the page gradient instead of forming a separate band. */
body.site-shell .footer{
  background:transparent!important;
  color:rgba(255,255,255,.82)!important;
}
body.site-shell .footer .site-footer-inner{border-top:0!important}
body.site-shell .footer .site-footer-brand img{
  filter:brightness(0) invert(1)!important;
  opacity:1!important;
}
body.site-shell .footer .site-footer-documents strong,
body.site-shell .footer a{color:inherit!important}

body.article-page .article-body h3{font-size:20px!important}

@media(max-width:700px){
  /* Keep the approved 2+1 mobile metric geometry; only its labels change. */
  body.home-page .stats-band .metric .metric-label{
    font-size:16px!important;
    line-height:1.2!important;
  }
  body.home-page .stats-band .metric:nth-child(3) .metric-label{max-width:230px!important}
  body.home-page .hero-copy{font-size:22px!important;line-height:1.4!important}
  body.home-page .hero-choice small{font-size:16px!important}
  body.home-page .service-row>p{max-width:none!important;font-size:20px!important}
  body.home-page .debt-item p{font-size:14px!important}
  body.home-page .work-step p{font-size:16px!important}
  body.home-page .case-region,
  body.home-page .case-card .case-info p{font-size:12px!important}
  body.home-page .price p,
  body.home-page .help-preview-card p,
  body.help-page .help-card p{font-size:16px!important}
  body.help-page .help-card h3{font-size:20px!important}
}

/* Current requested polish: logos, footer contrast, wrapping and text rhythm. */
body.site-shell .header .logo,
body.site-shell .header .logo-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}
body.site-shell .header .logo-img{
  width:58px!important;
  height:42px!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:none!important;
}

body.site-shell .footer{
  background:transparent!important;
  color:rgba(255,255,255,.82)!important;
}
body.site-shell .footer .site-footer-inner{
  border-top:0!important;
}
body.site-shell .footer .site-footer-brand img{
  width:250px!important;
  height:auto!important;
  filter:brightness(0) invert(1)!important;
  opacity:1!important;
}
body.site-shell .footer .site-footer-documents strong{color:#fff!important}
body.site-shell .footer a{
  color:rgba(255,255,255,.82)!important;
  transition:color var(--ds-duration) var(--ds-ease),opacity var(--ds-duration) var(--ds-ease)!important;
}
body.site-shell .footer a:hover,
body.site-shell .footer .site-footer-developer:hover{
  color:#fff!important;
  opacity:1!important;
}

body.site-shell .btn,
body.site-shell .service-cta,
body.site-shell .case-link,
body.site-shell .practice-registry-link,
body.site-shell .max-channel-link,
body.site-shell .quick a,
body.site-shell .site-fixed-actions a,
body.site-shell .site-mobile-actions a{
  min-height:50px!important;
  padding:11px 20px!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  text-align:center!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.2!important;
}

body.home-page .service-row>div,
body.home-page .service-row>p,
body.home-page .service-row>.service-cta{
  justify-self:start!important;
  text-align:left!important;
}
body.home-page .service-row>p{
  width:min(100%,560px)!important;
  max-width:560px!important;
  line-height:1.4!important;
}
body.home-page .service-row>.service-cta{
  text-align:center!important;
}

body.home-page .debt-section .section-head>p,
body.home-page .cases-head>p,
body.home-page #prices .section-head>p,
body.home-page .max-section .max-block p,
body.home-page .help-preview-section .section-head>p,
body.home-page .work-flow-head>p,
body.help-page .section-subtitle,
body.site-shell main .section-subtitle{
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.4!important;
}
body.home-page .debt-section .section-head>p{max-width:680px!important}
body.home-page .debt-item h3{
  max-width:100%!important;
  line-height:1.12!important;
}
body.home-page .debt-item p{
  max-width:220px!important;
  font-size:13px!important;
  line-height:1.38!important;
}
body.home-page .cases-head>p{
  max-width:680px!important;
  margin-top:16px!important;
}
body.home-page #prices .section-head>p{max-width:650px!important}
body.home-page .help-preview-section .section-head>p{max-width:650px!important}
body.home-page .faq-a{max-width:720px!important}

@media(max-width:900px){
  body.site-shell .btn,
  body.site-shell .service-cta,
  body.site-shell .max-channel-link,
  body.site-shell .site-fixed-actions a,
  body.site-shell .site-mobile-actions a{
    padding:10px 15px!important;
    font-size:15px!important;
  }
  body.home-page .service-row>p{width:100%!important;max-width:560px!important}
  body.home-page .debt-item p{
    max-width:none!important;
    letter-spacing:-.025em!important;
  }
}

/* 2026-09-29: screenshot-specific typography, alignment and footer contrast. */
body.home-page .hero-copy{
  font-size:25px!important;
  line-height:1.38!important;
}
body.home-page .hero-choice small{
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.35!important;
}

body.home-page .service-row>p{
  justify-self:start!important;
  margin-left:0!important;
  text-align:left!important;
}

/* Descriptive subtitles keep their agreed size but use Regular throughout. */
body.home-page .section-head>p,
body.home-page .cases-head>p,
body.home-page .work-flow-head>p,
body.home-page .help-preview-section .section-head>p,
body.home-page .max-block>p,
body.home-page .about-statement>p,
body.home-page .final-cta-head>p,
body.help-page .section-subtitle,
body.help-page .hero p,
body.article-page .hero .lead,
body.case-detail-page .hero .lead,
body.site-shell main .section-subtitle{
  font-weight:400!important;
  line-height:1.35!important;
}

/* Case names and company names are the strong title in each card. */
body.home-page .case-card .case-info h3{
  font-weight:700!important;
}

/* The footer remains part of the light page gradient; blue creates contrast. */
body.site-shell .footer{
  background:transparent!important;
  color:#17385f!important;
}
body.site-shell .footer .site-footer-inner{
  border-top:0!important;
  color:#17385f!important;
}
body.site-shell .footer .site-footer-brand img{
  filter:none!important;
  opacity:1!important;
}
body.site-shell .footer .site-footer-documents strong,
body.site-shell .footer a{
  color:#17385f!important;
}
body.site-shell .footer a:hover,
body.site-shell .footer .site-footer-developer:hover{
  color:#245487!important;
  opacity:1!important;
}

@media(max-width:700px){
  body.home-page .hero-copy{
    font-size:25px!important;
    line-height:1.36!important;
  }
  body.home-page .hero-choice small{
    font-size:15px!important;
    line-height:1.35!important;
  }
}

/* 2026-09-29: alignment follow-up from the latest desktop screenshots. */
body.home-page .debt-section .debt-item h3{
  min-height:44px!important;
  margin:0 0 8px!important;
  display:flex!important;
  align-items:flex-end!important;
}
body.home-page .debt-section .debt-item p{
  font-size:14px!important;
  line-height:1.42!important;
}

@media(min-width:901px){
  body.home-page .service-row{
    grid-template-columns:minmax(250px,.95fr) minmax(280px,1.15fr) 310px!important;
  }
  body.home-page .service-row>div,
  body.home-page .service-row>p,
  body.home-page .service-row>.service-cta{
    margin-left:0!important;
    justify-self:start!important;
  }
  body.home-page .service-row>.service-cta{
    width:310px!important;
    max-width:310px!important;
  }
}

/* One subtitle system: 20 px Regular, without altering section headings. */
body.home-page .section-head>p,
body.home-page .cases-head>p,
body.home-page .work-flow-head>p,
body.home-page .debt-section .debt-head p,
body.home-page .geo-editorial p,
body.home-page .help-preview-section .section-head>p,
body.home-page .max-block>p,
body.home-page .max-block>div>p,
body.home-page .about-statement>p,
body.home-page .final-cta-head>p,
body.help-page .section-subtitle,
body.help-page .hero p,
body.article-page .hero .lead,
body.case-detail-page .hero .lead,
body.site-shell main .section-subtitle{
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.35!important;
}

/* On the blue home-page ending the footer is white; internal pages stay blue. */
body.home-page .footer,
body.home-page .footer .site-footer-inner{
  color:rgba(255,255,255,.86)!important;
}
body.home-page .footer .site-footer-brand img{
  filter:brightness(0) invert(1)!important;
  opacity:1!important;
}
body.home-page .footer .site-footer-documents strong,
body.home-page .footer a{
  color:#fff!important;
}
body.home-page .footer a:hover,
body.home-page .footer .site-footer-developer:hover{
  color:#fff!important;
  opacity:.78!important;
}

@media(max-width:700px){
  body.home-page .debt-section .debt-item h3{
    min-height:40px!important;
  }
  body.home-page .debt-section .debt-item p{
    font-size:14px!important;
  }
}

/* Mobile help cards: compact two-column typography without broken words. */
@media(max-width:680px){
  body.help-page .help-card h3{
    margin:0 24px 7px 0!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.1!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.help-page .help-card p{
    max-width:100%!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:1.24!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

/* 2026-09-29: readable wide-desktop scale.
   Applied only to large monitors, so tablet and mobile layouts stay intact. */
@media(min-width:1500px){
  /* A denser vertical rhythm at 1920 without changing the composition. */
  body.site-shell main>.section,
  body.home-page .section{
    padding-top:80px!important;
    padding-bottom:80px!important;
  }
  body.help-page .section{
    padding-top:72px!important;
    padding-bottom:72px!important;
  }

  /* Existing 20 px subtitles become 22 px. */
  body.home-page .section-head>p,
  body.home-page .cases-head>p,
  body.home-page .work-flow-head>p,
  body.home-page .debt-section .debt-head p,
  body.home-page .geo-editorial p,
  body.home-page .help-preview-section .section-head>p,
  body.home-page .max-block>p,
  body.home-page .max-block>div>p,
  body.home-page .about-statement>p,
  body.home-page .final-cta-head>p,
  body.home-page .service-row>p,
  body.help-page .section-subtitle,
  body.help-page .hero p,
  body.article-page .hero .lead,
  body.case-detail-page .hero .lead,
  body.site-shell main .section-subtitle{
    font-size:22px!important;
    line-height:1.3!important;
  }

  /* Existing 16 px descriptive copy becomes 18 px. */
  body.home-page .hero-choice small,
  body.home-page .work-step p,
  body.home-page .price p,
  body.home-page .price-card p,
  body.home-page .help-preview-card p,
  body.home-page .final-cta-card p,
  body.home-page #faq .faq-a,
  body.help-page .help-card p,
  body.help-page .faq-a,
  body.help-page .support-row p,
  body.help-page .cta p,
  body.article-page .article-body p,
  body.article-page .article-body li,
  body.article-page .summary p,
  body.case-detail-page .content .block p,
  body.case-detail-page .court-document-copy p,
  body.case-detail-page .meta b{
    font-size:18px!important;
  }

  /* Existing 13–14 px explanatory and technical copy becomes 15 px. */
  body.home-page .debt-item p,
  body.home-page .case-card .case-info p,
  body.home-page .price-note,
  body.home-page #contact .legal-warning,
  body.article-page .updated,
  body.article-page .legal-note,
  body.case-detail-page .official,
  body.case-detail-page .result-card span{
    font-size:15px!important;
  }
}

/* 2026-09-29: final content order and wide-desktop adaptation. */
body.home-page #contact .legal-warning{
  font-size:13px!important;
  line-height:1.42!important;
}

/* Result captions follow the actual case order; Kamnev is the fifth card. */
body.home-page .case-card:nth-child(1) .doc-preview::after{content:"Долги списаны"!important}
body.home-page .case-card:nth-child(2) .doc-preview::after{content:"Имущество возвращено"!important}
body.home-page .case-card:nth-child(3) .doc-preview::after{content:"Долги списаны"!important}
body.home-page .case-card:nth-child(4) .doc-preview::after{content:"Долги по поручительству списаны"!important}
body.home-page .case-card:nth-child(5) .doc-preview::after{content:"Дом и участок оформлены"!important}
body.home-page .case-card:nth-child(6) .doc-preview::after{content:"Долги списаны"!important}
body.home-page .case-card:nth-child(7) .doc-preview::after{content:"Долги списаны"!important}
body.home-page .case-card:nth-child(8) .doc-preview::after{content:"Долги списаны"!important}

body.home-page .case-card .doc-preview::after{
  min-height:50px!important;
  height:auto!important;
  padding:6px 14px!important;
  font-size:16px!important;
  font-weight:700!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
}

@media(max-width:700px){
  body.home-page .case-card .doc-preview::after{
    min-height:42px!important;
    padding:5px 10px!important;
    font-size:14px!important;
  }
}

@media(min-width:1600px){
  body.site-shell .container,
  body.site-shell .wrap,
  body.site-shell .site-footer-inner{
    width:min(1840px,calc(100% - 64px))!important;
    max-width:none!important;
  }
  body.site-shell .header{
    width:min(1840px,calc(100% - 64px))!important;
    max-width:none!important;
  }
  body.home-page .section{padding-top:112px!important;padding-bottom:112px!important}
  body.home-page .hero{min-height:820px!important;padding:72px!important}
  body.home-page .hero h1{font-size:112px!important}
  body.home-page h2{font-size:72px!important}
  body.home-page .section-head>p,
  body.home-page .cases-head>p,
  body.home-page .work-flow-head>p,
  body.home-page .debt-section .debt-head p,
  body.home-page .geo-editorial p,
  body.home-page .help-preview-section .section-head>p,
  body.home-page .max-block>p,
  body.home-page .max-block>div>p,
  body.home-page .about-statement>p,
  body.home-page .final-cta-head>p{
    font-size:22px!important;
  }
  body.home-page .service-row{grid-template-columns:minmax(370px,.95fr) minmax(480px,1.15fr) 360px!important}
  body.home-page .service-row h3{font-size:44px!important}
  body.home-page .service-row>p{max-width:720px!important;font-size:22px!important}
  body.home-page .case-scroll{gap:24px!important}
  body.home-page .case-card{flex-basis:420px!important}
  body.home-page .case-card .doc-preview{height:360px!important}
  body.home-page .case-card .case-info{padding:18px 20px 20px!important}
  body.home-page .case-card .case-info h3{font-size:25px!important}
  body.home-page .case-card .case-info p{font-size:14px!important}
  body.home-page .work-step p,
  body.home-page .price p,
  body.home-page .help-preview-card p,
  body.home-page .final-cta-card p{font-size:17px!important}
  body.help-page .section-subtitle,
  body.help-page .hero p,
  body.article-page .hero .lead,
  body.case-detail-page .hero .lead,
  body.site-shell main .section-subtitle{font-size:22px!important}
  body.article-page .article-body p,
  body.article-page .article-body li,
  body.case-detail-page .content .block p,
  body.case-detail-page .court-document-copy p{font-size:18px!important}
  body.help-page .help-card p{font-size:17px!important}
  body.help-page .help-card h3{font-size:22px!important}
}

/* 2026-09-29: final desktop/mobile text-rhythm audit.
   This layer only normalizes type rhythm; it does not alter section geometry,
   display-heading sizes or the approved mobile statistics layout. */
body.site-shell main p,
body.site-shell main li{
  line-height:1.5!important;
}

body.home-page .section-head>p,
body.home-page .cases-head>p,
body.home-page .work-flow-head>p,
body.home-page .debt-section .debt-head p,
body.home-page .geo-editorial p,
body.home-page .help-preview-section .section-head>p,
body.home-page .max-block>p,
body.home-page .max-block>div>p,
body.home-page .about-statement>p,
body.home-page .final-cta-head>p,
body.help-page .section-subtitle,
body.help-page .hero p,
body.article-page .hero .lead,
body.case-detail-page .hero .lead,
body.site-shell main .section-subtitle{
  line-height:1.3!important;
}

body.home-page .hero-choice small,
body.home-page .debt-item p,
body.home-page .work-step p,
body.home-page .case-card .case-info p,
body.home-page .price-card p,
body.home-page .help-preview-card p,
body.home-page .final-cta-card p{
  line-height:1.38!important;
}

body.case-detail-page .content .block p,
body.case-detail-page .court-document-copy p,
body.article-page .article-body p,
body.article-page .article-body li{
  line-height:1.5!important;
}

@media(max-width:680px){
  body.help-page .help-card h3{
    line-height:1.1!important;
  }
  body.help-page .help-card p{
    line-height:1.24!important;
  }
}

/* 2026-09-29: compact mobile composition from the final device review. */
@media(max-width:700px){
  /* Main page: keep both opening action cards close to the first viewport. */
  body.home-page .hero{
    min-height:0!important;
    padding:20px 16px 18px!important;
  }
  body.home-page .hero h1{
    margin-bottom:10px!important;
    font-size:clamp(39px,11.5vw,48px)!important;
    line-height:.98!important;
  }
  body.home-page .hero-role{
    margin-bottom:16px!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  body.home-page .hero-copy{
    margin-top:0!important;
    font-size:18px!important;
    line-height:1.24!important;
  }
  body.home-page .hero-copy span+span{margin-top:2px!important}
  body.home-page .hero-choice-grid{
    gap:10px!important;
    padding-top:22px!important;
  }
  body.home-page .hero-choice{
    min-height:142px!important;
    padding:16px!important;
  }
  body.home-page .hero-choice small{
    margin-top:5px!important;
    font-size:13px!important;
    line-height:1.28!important;
  }
  body.home-page .hero-choice h3{
    margin:12px 0 0!important;
    font-size:19px!important;
    line-height:1.08!important;
  }

  /* Process subtitle: predictable two-line lockup. */
  body.home-page .process-section .work-flow-head{
    margin-bottom:26px!important;
    text-align:center!important;
  }
  body.home-page .process-section .work-flow-head p{
    width:min(100%,350px)!important;
    max-width:350px!important;
    margin:12px auto 0!important;
    font-size:15px!important;
    line-height:1.35!important;
    text-align:center!important;
  }

  /* Main-page help preview: larger headings, descriptions limited to 3 lines. */
  body.home-page .help-preview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.home-page .help-preview-card{
    min-height:158px!important;
    padding:14px 13px 38px!important;
  }
  body.home-page .help-preview-card h3{
    margin:14px 0 7px!important;
    font-size:15px!important;
    line-height:1.2!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  body.home-page .help-preview-card p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    font-size:12.5px!important;
    line-height:1.28!important;
  }

  /* Practice registry: two readable compact columns. */
  body.home-page .all-cases-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.home-page .all-case-item{
    min-width:0!important;
    min-height:138px!important;
    padding:13px 11px!important;
  }
  body.home-page .all-case-item small{
    margin-bottom:8px!important;
    font-size:10px!important;
    line-height:1.25!important;
  }
  body.home-page .all-case-item strong{
    font-size:13px!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }
  body.home-page .all-case-item p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    margin-top:7px!important;
    font-size:12px!important;
    line-height:1.25!important;
  }
  body.home-page .all-case-item span{
    margin-top:8px!important;
    font-size:10px!important;
    line-height:1.2!important;
  }

  /* Main-page FAQ: less vertical air and a compact opened answer. */
  body.home-page #faq .faq{padding:22px 18px!important}
  body.home-page #faq .faq-q{
    min-height:58px!important;
    padding:14px 0!important;
    font-size:16px!important;
    line-height:1.2!important;
  }
  body.home-page #faq .faq-a{
    padding-right:0!important;
    font-size:14px!important;
    line-height:1.35!important;
  }
  body.home-page #faq .faq-item.open .faq-a{
    padding-bottom:15px!important;
  }
}

@media(max-width:680px){
  /* Help page: topics sit directly below the search panel. */
  body.help-page .hero{
    padding:104px 0 34px!important;
  }
  body.help-page .hero h1{
    font-size:38px!important;
    line-height:1.04!important;
  }
  body.help-page .hero>div>p,
  body.help-page .hero .container>p{
    max-width:360px!important;
    margin:16px auto 0!important;
    font-size:16px!important;
    line-height:1.35!important;
  }
  body.help-page .search-wrap{
    margin-top:22px!important;
    gap:6px!important;
    padding:7px!important;
  }
  body.help-page .search-wrap input,
  body.help-page .search-wrap button{
    height:48px!important;
  }
  body.help-page .popular-pains-title{
    margin:12px auto 8px!important;
  }
  body.help-page .quick-topics{
    gap:7px!important;
  }
  body.help-page .quick-topics a{
    min-height:42px!important;
    padding:7px 8px!important;
    font-size:12px!important;
    line-height:1.2!important;
  }

  /* Help cards: compact, consistent 2–3-line descriptions. */
  body.help-page .help-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.help-page .help-card,
  body.help-page #self-bankruptcy-cost{
    min-height:166px!important;
    padding:14px 12px 36px!important;
  }
  body.help-page .help-num{
    margin-bottom:14px!important;
    font-size:10px!important;
  }
  body.help-page .help-card h3{
    margin:0 20px 7px 0!important;
    font-size:14px!important;
    line-height:1.2!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  body.help-page .help-card p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    max-width:100%!important;
    font-size:12.5px!important;
    line-height:1.28!important;
  }
  body.help-page .help-card .card-arrow{
    right:12px!important;
    bottom:11px!important;
  }

  /* Help FAQ follows the same compact rhythm as the homepage. */
  body.help-page .popular.faq-panel{
    gap:14px!important;
    padding:22px 18px!important;
  }
  body.help-page .faq-title-col h2{
    font-size:34px!important;
    line-height:1.02!important;
  }
  body.help-page .faq-q{
    min-height:58px!important;
    padding:14px 0!important;
    font-size:15px!important;
    line-height:1.2!important;
  }
  body.help-page .faq-a{
    padding:0 0 14px!important;
    font-size:13.5px!important;
    line-height:1.35!important;
  }
}

/* Final 1920 typography and spacing layer. Keep this after every legacy rule. */
@media(min-width:1500px){
  body.site-shell main>.section,
  body.home-page .section{
    padding-top:80px!important;
    padding-bottom:80px!important;
  }
  body.help-page .section{
    padding-top:72px!important;
    padding-bottom:72px!important;
  }

  body.home-page .section-head>p,
  body.home-page .cases-head>p,
  body.home-page .work-flow-head>p,
  body.home-page .debt-section .debt-head p,
  body.home-page .geo-editorial p,
  body.home-page .help-preview-section .section-head>p,
  body.home-page .max-block>p,
  body.home-page .max-block>div>p,
  body.home-page .about-statement>p,
  body.home-page .final-cta-head>p,
  body.home-page .service-row>p,
  body.help-page .section-subtitle,
  body.help-page .hero p,
  body.article-page .hero .lead,
  body.case-detail-page .hero .lead,
  body.site-shell main .section-subtitle{
    font-size:22px!important;
    line-height:1.3!important;
  }

  body.home-page .hero-choice small,
  body.home-page .work-step p,
  body.home-page .price p,
  body.home-page .price-card p,
  body.home-page .help-preview-card p,
  body.home-page .final-cta-card p,
  body.home-page #faq .faq-a,
  body.help-page .help-card p,
  body.help-page .faq-a,
  body.help-page .support-row p,
  body.help-page .cta p,
  body.article-page .article-body p,
  body.article-page .article-body li,
  body.article-page .summary p,
  body.case-detail-page .content .block p,
  body.case-detail-page .court-document-copy p,
  body.case-detail-page .meta b{
    font-size:18px!important;
  }

  body.home-page .debt-item p,
  body.home-page .case-card .case-info p,
  body.home-page .price-note,
  body.home-page #contact .legal-warning,
  body.article-page .updated,
  body.article-page .legal-note,
  body.case-detail-page .official,
  body.case-detail-page .result-card span{
    font-size:15px!important;
  }
}
