/* Internal pages use the same spacing and corner roles as the light homepage. */
body.jp-site .site-header { border-radius:var(--jupiter-panel-radius);padding:15px 22px;min-height:88px;gap:20px; }
body.jp-site .site-header nav { font-size:13px; }
body.jp-site .site-header .header-button { display:inline-flex;align-items:center;justify-content:center;min-height:54px;font-size:14px;margin-left:auto; }
body.jp-site #jp-main > .breadcrumbs { margin:16px 0 0; }
body.jp-site .page-hero { padding:48px 0 0;margin-bottom:48px; }
body.jp-site .page-hero .lead { margin-top:24px; }
body.jp-site .section,
body.jp-site .cta { margin-top:var(--jupiter-section-gap); }
body.jp-site .page-hero + .section { margin-top:0; }
body.jp-site .section-heading { margin-bottom:24px;gap:24px; }
body.jp-site .grid { gap:var(--jupiter-card-gap); }
body.jp-site .grid > *,
body.jp-site .contacts-layout > *,
body.jp-site .auth-layout > *,
body.jp-site .product-hero > *,
body.jp-site .detail-preview > *,
body.jp-site .tools-grid > *,
body.jp-site .tools-form-grid > * { min-width:0; }

body.jp-site .panel,
body.jp-site .paper,
body.jp-site .format-card,
body.jp-site .detail-side,
body.jp-site .form-card,
body.jp-site .cta,
body.jp-site .cms-card,
body.jp-site .category-card,
body.jp-site .brand-panel,
body.jp-site .partner-banner,
body.jp-site .support-list,
body.jp-site .integrations,
body.jp-site .jp-dialog,
body.jp-site .tools-panel,
body.jp-site .tools-form-box,
body.jp-site .tools-preview-card,
body.jp-site .tools-table-card,
body.jp-site .tools-help-modal__dialog,
body.jp-site .detail-content .service-detail-hero,
body.jp-site .detail-content .service-calculator { border-radius:var(--jupiter-panel-radius); }

body.jp-site .panel,
body.jp-site .pricing,
body.jp-site .detail-side,
body.jp-site .form-card,
body.jp-site .cta,
body.jp-site .category-card,
body.jp-site .brand-panel,
body.jp-site .partner-banner,
body.jp-site .support-list,
body.jp-site .info-panel,
body.jp-site .jp-dialog,
body.jp-site .tools-panel,
body.jp-site .tools-form-box,
body.jp-site .tools-preview-card,
body.jp-site .tools-help-modal__dialog,
body.jp-site .detail-content .service-detail-hero,
body.jp-site .detail-content .service-calculator { padding:var(--jupiter-panel-padding); }

body.jp-site .format-card { padding:var(--jupiter-card-padding); }
body.jp-site .card,
body.jp-site .cols-4 .card,
body.jp-site .vacancy,
body.jp-site .document-row,
body.jp-site .tools-card,
body.jp-site .sitemap > div,
body.jp-site .detail-content .service-detail-card,
body.jp-site .detail-content .service-step,
body.jp-site .detail-content .service-faq-item { border-radius:var(--jupiter-card-radius);padding:var(--jupiter-card-padding); }
body.jp-site .preview,
body.jp-site .detail-cover,
body.jp-site .detail-gallery img,
body.jp-site .article-art,
body.jp-site .article-cover { border-radius:var(--jupiter-preview-radius); }
body.jp-site .rental-offer,
body.jp-site .jp-rental-offer { border-radius:var(--jupiter-card-radius); }

body.jp-site .format-card > .text-link::after { border-radius:var(--jupiter-panel-radius); }
body.jp-site .tools-card .tools-card__actions > a::after { border-radius:var(--jupiter-card-radius); }
body.jp-site .catalog > article > .catalog-link:first-child::after { border-radius:var(--jupiter-preview-radius); }
body.jp-site .cms-card-link { display:flex;flex-direction:column;height:100%; }
body.jp-site .cms-copy { display:flex;flex-direction:column;flex:1;padding:var(--jupiter-card-padding); }
body.jp-site .cms-copy .text-link { margin-top:auto;padding-top:20px;align-self:flex-start; }
body.jp-site .catalog { gap:32px var(--jupiter-card-gap); }
body.jp-site .catalog .caption { align-items:flex-start;margin-top:16px; }
body.jp-site .catalog .caption .circle { margin-top:2px; }
body.jp-site .pricing .grid { gap:0; }
body.jp-site .pricing article { padding:24px 28px 16px 0; }
body.jp-site .pricing article:last-child { padding-left:28px;padding-right:0; }
body.jp-site .product-hero,
body.jp-site .detail-preview,
body.jp-site .support-split,
body.jp-site .contacts-layout,
body.jp-site .auth-layout,
body.jp-site .employee-layout,
body.jp-site .editorial-layout,
body.jp-site .legal-layout { gap:48px; }
body.jp-site .detail-cover { margin-bottom:32px; }
body.jp-site .detail-content,
body.jp-site .detail-gallery { margin-top:32px; }
body.jp-site .detail-content,
body.jp-site .prose,
body.jp-site .legal-text { overflow-wrap:anywhere; }

body.jp-site .industry-chips { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px; }
body.jp-site .industry-chips > a { min-width:0;min-height:76px;padding:20px 22px;gap:16px;border-radius:var(--jupiter-card-radius);font-size:16px;line-height:1.5;overflow-wrap:anywhere; }
body.jp-site .faq details { padding:20px 0; }
body.jp-site .faq summary { align-items:center; }
body.jp-site .cta > div:last-child { align-items:center;gap:32px; }
body.jp-site footer { margin-top:var(--jupiter-section-gap);padding-top:32px; }

/* Tool workspaces keep their editor/table scroll areas inside the shared shell. */
body.jp-site.tools-page .tools-header { padding:48px 0 0;margin:0 0 48px; }
body.jp-site.tools-page .tools-section + .tools-section { margin-top:var(--jupiter-section-gap); }
body.jp-site.tools-page .tools-grid,
body.jp-site.tools-page .tools-preview-grid { gap:var(--jupiter-card-gap); }
body.jp-site.tools-page .tools-pre { border-radius:var(--jupiter-preview-radius);max-width:100%;overflow:auto; }
body.jp-site.tools-page .tools-pre pre { max-height:480px;overflow:auto; }
body.jp-site.tools-page .tools-table-wrap { max-width:100%;overflow:auto; }

@media (min-width: 981px) and (max-width: 1399px) {
    body.jp-site .site-header { display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px 24px; }
    body.jp-site .site-header > .brand { grid-column:1;grid-row:1; }
    body.jp-site .site-header .header-contacts { display:flex;grid-column:2;grid-row:1; }
    body.jp-site .site-header .header-button { grid-column:3;grid-row:1;margin-left:0; }
    body.jp-site .site-header nav { grid-column:1/-1;grid-row:2;padding-top:12px;border-top:1px solid #25312418;gap:24px; }
}

@media (max-width: 980px) {
    body.jp-site .site-header nav { display:none;position:absolute;top:calc(100% + 10px);left:0;right:0;flex-direction:column;gap:0;padding:20px;background:#fff;border:1px solid #25312420;border-radius:var(--jupiter-panel-radius);box-shadow:0 12px 25px #25312420;z-index:100; }
    body.jp-site .site-header nav.is-open { display:flex; }
    body.jp-site .site-header nav a { padding:11px;font-size:15px; }
    body.jp-site .site-header .hamburger { display:block;margin-left:0; }
    body.jp-site .industry-chips { grid-template-columns:repeat(3,minmax(0,1fr)); }
    body.jp-site .product-hero,
    body.jp-site .detail-preview,
    body.jp-site .support-split,
    body.jp-site .contacts-layout,
    body.jp-site .auth-layout,
    body.jp-site .employee-layout,
    body.jp-site .editorial-layout,
    body.jp-site .legal-layout { gap:32px; }
}

@media (max-width: 640px) {
    body.jp-site .site-header { min-height:68px;padding:12px 14px;margin-top:12px;margin-bottom:14px;gap:12px; }
    body.jp-site .site-header .header-button { display:none; }
    body.jp-site .site-header .hamburger { margin-left:auto; }
    body.jp-site #jp-main > .breadcrumbs { margin-top:12px; }
    body.jp-site .page-hero { padding-top:32px;margin-bottom:32px; }
    body.jp-site .page-hero .lead { margin-top:20px; }
    body.jp-site .section-heading { margin-bottom:20px;gap:20px; }
    body.jp-site .catalog { gap:24px; }
    body.jp-site .pricing article,
    body.jp-site .pricing article:last-child { padding:24px 0; }
    body.jp-site .product-hero,
    body.jp-site .detail-preview,
    body.jp-site .support-split,
    body.jp-site .contacts-layout,
    body.jp-site .auth-layout,
    body.jp-site .employee-layout,
    body.jp-site .editorial-layout,
    body.jp-site .legal-layout { gap:24px; }
    body.jp-site .industry-chips { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
    body.jp-site .industry-chips > a { min-height:68px;padding:16px;gap:10px;font-size:13px; }
    body.jp-site .cta > div:last-child { gap:24px; }
    body.jp-site .faq details { padding:18px 0; }
    body.jp-site .faq summary { font-size:14px;line-height:1.5; }
    body.jp-site.tools-page .tools-header { padding-top:32px;margin-bottom:32px; }
    body.jp-site.tools-page .tools-pre pre { max-height:360px; }
}
@media (max-width: 360px) {
    body.jp-site .industry-chips { grid-template-columns:minmax(0,1fr); }
}
