/* Stage 0: minimal own stylesheet. Tailwind build pipeline is introduced with the questionnaire (stage 1). */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5f6368;
  --accent: #0057b8;   /* blue of the Ukrainian flag */
  --accent-2: #ffd700; /* yellow */
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
a { color: var(--accent); }
.site-header, .site-footer, .site-main { padding-left: 16px; padding-right: 16px; }
.site-header { border-bottom: 3px solid var(--accent-2); }
.site-header, .site-footer { padding-left: 0; padding-right: 0; }
.site-header-in, .site-footer-in { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.site-nav { display: contents; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px; color: var(--fg); cursor: pointer; margin-left: auto; }
.nav-toggle .ico { width: 22px; height: 22px; display: block; }
.ico { width: 1em; height: 1em; vertical-align: -.15em; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.wizard-head { font-weight: 500; }
.brand { font-weight: 700; letter-spacing: .04em; color: var(--accent); text-decoration: none; font-size: 1.15rem; }
.lang { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.lang-cur { font-weight: 700; }
.lang-btn { text-decoration: none; color: var(--muted); }
.site-main { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--accent-2); padding-left: 12px; }
.legal h1 { font-size: 1.7rem; }
.site-footer { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 16px; font-size: .85rem; color: var(--muted); }

/* --- services / wizard --- */
.services { display: grid; gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.card h2 a { color: inherit; text-decoration: none; }
.price { color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-secondary { background: #eef2f7; color: var(--fg); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 24px; font-size: .85rem; counter-reset: s; }
.steps li { flex: 1; padding: 8px 6px; border-bottom: 3px solid var(--line); color: var(--muted); }
.steps li.cur { border-color: var(--accent); color: var(--fg); font-weight: 600; }
.steps li.done { border-color: var(--accent-2); }
.steps li a { color: inherit; text-decoration: none; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.option-base { background: #f8fafc; }
.total { font-size: 1.15rem; margin: 16px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.help { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.error { color: #dc2626; font-size: .9rem; margin: 6px 0 0; }
.ok { color: #15803d; }
.req { color: #dc2626; }
.muted { color: var(--muted); }
.doc-slot { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.doc-slot.has-files { border-style: solid; border-color: #86efac; }
.doc-slot h3 { margin: 0 0 4px; font-size: 1rem; }
.files { list-style: none; padding: 0; margin: 8px 0; }
.files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0; }
.inline { display: inline; }
.upload { display: inline-block; margin-top: 8px; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload span { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; font-weight: 600; }
.badge-warn { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.review h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.review .edit { font-size: .8rem; font-weight: 400; margin-left: 8px; }
.review dl { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 6px 12px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }

/* --- nav / cabinet / auth --- */
.topnav { display: flex; gap: 16px; align-items: center; font-size: .9rem; }
.topnav > a { color: var(--fg); text-decoration: none; font-weight: 600; }
.lang { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }
.auth { max-width: 420px; margin: 0 auto; }
.auth form p, .auth form .field { margin-bottom: 14px; }
.auth input:not([type=checkbox]) { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.auth form .btn { margin-top: 4px; }
.messages { list-style: none; padding: 0; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; background: #eef2f7; }
.messages li.success { background: #dcfce7; } .messages li.error { background: #fee2e2; } .messages li.info { background: #e0f2fe; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e2e8f0; vertical-align: middle; }
.status-new { background: #dbeafe; color: #1e40af; } .status-in_progress { background: #fef3c7; color: #92400e; }
.status-needs_input { background: #fee2e2; color: #991b1b; } .status-submitted { background: #ede9fe; color: #5b21b6; }
.status-done { background: #dcfce7; color: #166534; } .status-cancelled { background: #f1f5f9; color: #475569; }
.status-awaiting_payment { background: #ffedd5; color: #9a3412; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 4px 0 4px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); border: 2px solid #fff; }
.btn-danger { background: #dc2626; }
.change-items label { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-weight: 400; }

/* --- upload progress (htmx xhr:progress) --- */
.upload-progress { display: none; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; }
form.uploading .upload-progress { display: flex; }
form.uploading .upload { opacity: .5; pointer-events: none; }
.upload-progress progress { width: 200px; height: 8px; accent-color: var(--accent); }

/* --- activities multiselect (step "Details") --- */
.acts { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.acts input[type=search] { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; margin-bottom: 10px; }
.acts-group { margin: 10px 0 4px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.acts label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; font-weight: 400; cursor: pointer; border-radius: 6px; }
.acts label:hover { background: #f8fafc; }
.acts input[type=checkbox] { margin-top: 3px; flex: 0 0 auto; }
.acts-sk { display: block; font-size: .78rem; color: var(--muted); }
.acts-count { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.actions-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.error-top { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: #fee2e2; color: #991b1b; font-size: .95rem; }
.topnav-logout { color: var(--muted); text-decoration: none; font-size: .85rem; }
.topnav-logout:hover { text-decoration: none; color: var(--fg); }

/* --- auth card, tabs, Google button, allauth elements --- */
.auth { max-width: 440px; margin: 0 auto; }
.auth .tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid var(--line); }
.auth .tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth .tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 11px 16px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.btn-wide { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.field-row { display: flex; gap: 10px; align-items: center; }
.field-row input { flex: 1; }
.send-code { white-space: nowrap; font-size: .85rem; }
.field-check label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.center { text-align: center; } .small { font-size: .85rem; }
.auth-h1 { font-size: 1.5rem; margin: 0 0 16px; } .auth-h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.auth-p { margin: 0 0 12px; } .auth-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.auth-panel { margin-bottom: 20px; }
.auth .actions-inline .btn { margin-top: 8px; }
.auth input:not([type=checkbox]):not([type=radio]), .auth select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.auth input#id_code { letter-spacing: .3em; font-size: 1.2rem; text-align: center; }
.auth form .btn + .btn, .auth form button + button { margin-left: 8px; }

/* --- global form styling: every form on the site (allauth pages included), not only .auth --- */
.site-main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]):not([type=search]),
.site-main select, .site-main textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.site-main input:focus, .site-main select:focus, .site-main textarea:focus { outline: 2px solid rgba(0,87,184,.25); border-color: var(--accent); }
.site-main form label { display: block; font-weight: 600; margin-bottom: 6px; }
.site-main form .field-check label, .site-main form label:has(input[type=checkbox]) { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.site-main form p { margin: 0 0 14px; }
.site-main form button[type=submit]:not(.btn):not(.link):not(.btn-google) { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }

/* --- header with logo + main menu, pay buttons, consent, drafts --- */
.brand img { display: block; height: 32px; width: auto; }
.mainnav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; font-size: .92rem; }
.mainnav a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--accent-2); }
.mainnav a.on { font-weight: 700; border-bottom-color: transparent; }
.mainnav a.on:hover { border-bottom-color: transparent; }
.btn-pay { background: #16a34a; }
.btn-pay:hover { background: #15803d; filter: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: 4px; flex: 0 0 auto; }
.link.danger { color: #dc2626; }
.wizard-head form { margin-left: 10px; }
.drafts li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.checkout .actions-inline { justify-content: center; }

/* --- applications table --- */
.table td, .table th { vertical-align: middle; }
.nowrap { white-space: nowrap; }
.status { white-space: nowrap; }
@media (max-width: 640px) { .hide-sm { display: none; } .table th, .table td { padding: 8px 6px; font-size: .9rem; } }

/* --- needs-input loop --- */
.needs-input { background: #fef3c7; border-left-color: #d97706; padding: 10px 14px; border-radius: 0 8px 8px 0; margin-bottom: 14px; }
.needs-input p { margin: 6px 0 0; }
.badge-new { background: #dbeafe; color: #1e40af; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.send-review { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }

/* --- operator panel --- */
.ops { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.ops-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ops-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.ops-tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.ops-tabs a.on { color: var(--fg); border-bottom-color: var(--accent); }
.ops-tabs .count { background: #e2e8f0; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.ops-search { display: flex; gap: 8px; }
.ops-search input { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; min-width: 220px; }
.ops-table tr.overdue td:first-child { border-left: 3px solid #dc2626; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.ops-head .lead { margin-top: 4px; }
.ops-actions { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0; background: #f8fafc; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .ops-grid { grid-template-columns: 1fr; } }
.ops h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.ops-dl { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 4px 12px; font-size: .95rem; }
.ops-dl dt { color: var(--muted); } .ops-dl dd { margin: 0; }
.ops-file { padding: 6px 0; }
.ops-file label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 400; cursor: pointer; }
.ops-file.history { opacity: .6; }
.ops-file input[type=text] { width: 100%; margin-top: 4px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: .9rem; }
.ops-link { color: var(--accent) !important; }
.badge { background: #e2e8f0; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
/* document names and slot titles: regular size everywhere (cabinet, wizard, operator panel) */
.doc-slot h3, .doc-slot h3 *, .files li a, .ops-file label a, .ops-file label { font-size: 1rem; }
.files li, .files li .muted, .files li .link, .files li .badge, .ops-file .muted, .ops-file .badge { font-size: 1rem; }
.files li, .files li .muted, .files li .link, .files li .badge, .ops-file .muted, .ops-file .badge { font-size: 1rem; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon svg { width: 18px; height: 18px; flex: 0 0 auto; }
.files li .badge, .files li .badge-warn, .files li .badge-new, .ops-file .badge, .ops-file .badge-warn, .ops-file .badge-new { font-size: .8rem; }

/* --- header counter for "My applications" --- */
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; vertical-align: 1px; }
.pill-attention { background: var(--accent-2); color: #1a1a1a; }

/* --- own payment overlay: iframe height follows the hosted form (postMessage resize) --- */
.pay-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(20,20,18,.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .18s ease; padding: 12px; }
.pay-overlay.on { opacity: 1; }
.pay-overlay.scroll { align-items: flex-start; overflow-y: auto; }
.pay-box { position: relative; width: min(480px, 100%); }
.pay-frame { display: block; width: 100%; height: 480px; border: 0; border-radius: 20px; background: #f4f3ef; box-shadow: 0 20px 60px rgba(0,0,0,.35); transition: height .15s ease; }
.pay-close { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: #1a1a18; color: #fff; font-size: 18px; line-height: 32px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
body.no-scroll { overflow: hidden; }
.ops-settings-link { margin-left: 12px; vertical-align: middle; }
.link-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 2px 8px; border-radius: 6px; font-size: 1.05rem; user-select: all; }
.ops-settings { max-width: 640px; }

/* --- responsive pass (2026-10) --- */
img, svg, video { max-width: 100%; }
.site-main { overflow-wrap: anywhere; }
.actions, .actions-inline { flex-wrap: wrap; }
.field-row { flex-wrap: wrap; }
.field-row input { min-width: 180px; }
.btn-icon svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .site-main { padding-top: 24px; padding-bottom: 24px; }
  .steps { gap: 3px; font-size: .75rem; }
  .steps li { padding: 6px 2px; }
  .review dl, .ops-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .review dd, .ops-dl dd { margin-bottom: 8px; }
  .option { flex-wrap: wrap; }
  .ops { padding: 8px 0; }
  .ops-search { width: 100%; }
  .ops-search input { min-width: 0; flex: 1; }
  .ops-tabs { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .ops-tabs a { white-space: nowrap; padding: 8px 10px; }
  .ops h1 { font-size: 1.5rem; }
  .ops-settings-link { margin-left: 0; display: inline-flex; margin-top: 6px; }
  .upload-progress progress { width: 140px; }
  .pay-close { right: 0; top: -40px; }
  .change-items label { flex-wrap: wrap; }
  h1 { font-size: 1.6rem; }
}
/* --- mobile menu: hamburger opens the stacked navigation under the logo row --- */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .site-header.open .site-nav { display: block; }
  .mainnav, .topnav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: 1rem; }
  .mainnav a, .topnav > a, .topnav > form { display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mainnav a { border-bottom: 1px solid var(--line); }
  .mainnav a:hover, .mainnav a.on { border-bottom-color: var(--line); }
  .topnav > form button { font-size: 1rem; }
  .topnav > .lang { padding: 10px 0 4px; gap: 14px; font-size: 1rem; }
}
.howto { padding-left: 24px; margin: 8px 0; }
.tg-link { margin-left: 24px; }
.tg-wait { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; color: var(--muted); font-size: .9rem; vertical-align: middle; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ops-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.ops-result .upload { margin-top: 0; }
.ops-result .help { flex-basis: 100%; margin: 0; }
.ops-result.uploading { opacity: .6; pointer-events: none; }
.tg-wait[hidden] { display: none; }  /* the display rule above would otherwise override the hidden attribute */

/* --- header and footer share the 1100px column with the content --- */

/* --- home page (texts and layout from the approved mock) --- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding-block: 16px 36px; }
.home-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.home-hero .lead { max-width: 52ch; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px rgba(0, 40, 100, .08); }
.hero-card h3 { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.timeline-h { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline-h li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; }
.timeline-h .t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); white-space: nowrap; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-block: 4px 44px; }
.trust div { border-top: 3px solid var(--accent-2); padding-top: 10px; }
.trust strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.trust span { color: var(--muted); font-size: .9rem; }
.home-block { padding-block: 36px; border-top: 1px solid var(--line); }
.home-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 20px; }
.svc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.svc > div { padding: 24px; min-width: 0; }
.svc .side { background: #f6f8fb; border-left: 1px solid var(--line); }
.svc h3 { font-size: 1.3rem; margin: 0 0 6px; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc p { margin: 0 0 8px; color: var(--muted); }
.svc-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; }
.svc-price strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.svc-price span { color: var(--muted); }
.inc { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.inc li { display: flex; gap: 10px; align-items: flex-start; }
.inc li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #dcfce7; border: 2px solid #15803d; }
.svc .side h4 { margin: 0 0 6px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.svc .side h4.mt { margin-top: 16px; }
.svc .side p { font-size: .95rem; color: var(--fg); }
.opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.opt strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt small { display: block; color: var(--muted); }
.essentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.essentials article { min-width: 0; }
.essentials h3 { font-size: 1.05rem; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.essentials h3 svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.essentials ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.essentials li { font-size: .95rem; }
.hsteps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: hs; }
.hsteps li { counter-increment: hs; border-top: 3px solid var(--line); padding-top: 12px; min-width: 0; font-size: .95rem; color: var(--muted); }
.hsteps li::before { content: counter(hs); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.hsteps strong { display: block; color: var(--fg); }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); max-width: 65ch; }
.cta { background: #f6f8fb; border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-block: 8px 12px; }
.cta h2 { font-size: 1.4rem; margin: 0; }
.cta p { margin: 4px 0 0; color: var(--muted); }

/* --- /services/ catalogue --- */
.page-h { padding-block: 0 8px; }
.page-h h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 8px; }
.page-h p { color: var(--muted); margin: 0; max-width: 60ch; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 24px 16px; }
.scard { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; display: grid; gap: 10px; align-content: start; min-width: 0; }
.scard h2 { font-size: 1.2rem; margin: 0; }
.scard h2 a { color: inherit; text-decoration: none; }
.scard p { margin: 0; color: var(--muted); }
.scard .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.scard .meta b { color: var(--fg); font-variant-numeric: tabular-nums; }
.scard .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.scard .from { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scard .from span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.scard.soon { background: #f6f8fb; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; justify-self: start; }
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 8px 24px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 1fr; }
  .svc .side { border-left: 0; border-top: 1px solid var(--line); }
  .essentials, .catalog { grid-template-columns: 1fr; }
  .hsteps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .hsteps { grid-template-columns: 1fr; } }
.contacts { max-width: 640px; }
.msg-body { white-space: pre-wrap; font: inherit; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 8px 0 16px; overflow-wrap: anywhere; }
.ops-table tr.unanswered td:first-child { border-left: 3px solid var(--accent-2); }
.sender-row { align-items: flex-start; gap: 16px; }
.sender-row .field { flex: 1; min-width: 200px; }
.reply-form .upload { margin-top: 0; margin-right: 10px; }
.cf-turnstile { margin: 0 0 18px; }
.auth .cf-turnstile { margin-bottom: 14px; }
.addr-row { display: flex; align-items: center; gap: 6px; }
.addr-row input { flex: 1; min-width: 0; }
.addr-domain { color: var(--muted); white-space: nowrap; }
.site-messages { max-width: 1100px; margin: 0 auto 16px; }
textarea.codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
