/* Invoice service and guide: extend the shared GagarinSoft article theme. */
.invoice-page { font-size: 16px; }
.invoice-page .page-wrap { max-width: 1080px; }
.invoice-page .skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.invoice-page .skip-link:focus { transform: translateY(0); }
.invoice-page .page-header h1 { line-height: 1.15; }
.invoice-page .page-header .breadcrumb { font-size: 14px; flex-wrap: wrap; }
.invoice-page .page-header .meta { font-size: 14px; }
.invoice-page .eyebrow { color: var(--accent2); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.invoice-page .service-header h1 { font-size: clamp(32px, 5vw, 58px); max-width: 850px; }
.invoice-page .page-header .service-intro { font-size: 18px; max-width: 760px; margin: 24px 0; }
.service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.invoice-page .text-link { color: var(--accent2); text-underline-offset: 4px; }
.invoice-example { margin: 0 0 48px; border: 1px solid var(--border2); border-radius: 16px; background: var(--surface); overflow: hidden; }
.example-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 24px; border-bottom: 1px solid var(--border); font-weight: 600; }
.sample-label { font-size: 14px; color: var(--muted); font-weight: 400; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.sample-document, .sample-record { padding: 24px; border: 1px solid var(--border2); border-radius: 10px; min-width: 0; }
.sample-document { background: var(--bg); }
.sample-record { background: var(--surface2); }
.invoice-example h2 { font-size: 22px; line-height: 1.3; margin: 12px 0; }
.sample-document > p { color: var(--muted); margin-bottom: 20px; }
.invoice-example dl { margin: 16px 0; }
.invoice-example dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.invoice-example dt { color: var(--muted); }
.invoice-example dd { text-align: right; overflow-wrap: anywhere; }
.sample-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.sample-line strong { white-space: nowrap; }
.sample-total { color: var(--accent2); }
.review-note { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--accent2); color: var(--text); font-size: 14px; }
.invoice-example figcaption { padding: 0 24px 20px; color: var(--muted); font-size: 14px; }
.invoice-page .article-content > h2:first-child { margin-top: 0; }
.invoice-page .workflow-steps { padding-left: 26px; }
.invoice-page .workflow-steps li { padding: 6px 0 6px 8px; }
.invoice-page .workflow-steps li::marker { color: var(--accent2); font-weight: 700; }
.invoice-page .faq-body { font-size: 16px; }
.invoice-page .faq-item summary { font-size: 16px; }
.workflow-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; padding: 32px; background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; }
.workflow-contact h2 { font-size: 28px; line-height: 1.25; margin-bottom: 18px; }
.workflow-contact p { color: var(--muted); margin-bottom: 16px; }
.workflow-contact > div, .workflow-contact form { min-width: 0; }
.workflow-contact .form-hp { display: none; }
.workflow-contact .form-field { margin-bottom: 18px; }
.workflow-contact label { display: block; margin-bottom: 8px; font-weight: 600; }
.workflow-contact input, .workflow-contact textarea { width: 100%; padding: 12px; color: var(--text); background: var(--bg); border: 1px solid #71717a; border-radius: 8px; font: inherit; }
.workflow-contact textarea { resize: vertical; min-height: 160px; }
.workflow-contact input::placeholder, .workflow-contact textarea::placeholder { color: var(--muted); opacity: 1; }
.workflow-contact .field-hint, .workflow-contact .form-note { font-size: 14px; line-height: 1.6; }
.workflow-contact .form-note a { color: var(--accent2); }
.workflow-contact .cta-btn { width: 100%; }
.guide-contents { padding: 20px 24px; margin: 12px 0 8px; border: 1px solid var(--border2); border-radius: 12px; }
.guide-contents ul { margin: 12px 0 0; }
.guide-contents li:last-child { margin-bottom: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.invoice-page .settings-table { min-width: 600px; }
.invoice-page .settings-table th { font-size: 14px; letter-spacing: 0; text-transform: none; }
.invoice-page .settings-table td { font-size: 16px; }
.invoice-page .settings-table tbody th { background: transparent; color: var(--text); font-weight: 600; }
.guide-cta { padding: 24px; margin-top: 28px; background: var(--bg); border: 1px solid var(--border2); border-radius: 12px; }
.invoice-page .guide-cta h2 { margin-top: 0; }
@media (max-width: 720px) {
  .example-grid, .workflow-contact { grid-template-columns: 1fr; }
  .example-grid { gap: 16px; padding: 16px; }
  .workflow-contact { gap: 24px; padding: 24px; }
  .sample-document, .sample-record { padding: 20px; }
}
@media (max-width: 420px) {
  .invoice-page .page-wrap { padding: 40px 16px 64px; }
  .invoice-page .article-body { padding: 20px; }
  .invoice-page nav { padding: 0 16px; gap: 12px; }
  .invoice-page .nav-cta { max-width: none; font-size: 12px; padding: 8px 10px; }
  .workflow-contact { padding: 20px; }
  .service-actions .cta-btn { width: 100%; }
  .invoice-example dl > div { gap: 12px; }
}
