/* ABC Translation Kyrgyzstan — site.css (no external requests) */
:root {
  --ink: #14213d;
  --ink-2: #24365c;
  --text: #1d2433;
  --muted: #5b6474;
  --paper: #fbfaf7;
  --paper-hi: #ffffff;
  --paper-lo: #f4f1ea;
  --card: #ffffff;
  --line: #e6e1d6;
  --alt: #f3efe6;
  --accent: #c8102e;
  --accent-ink: #a00d25;
  --gold: #e3a21a;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --font: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9edf6; --ink-2: #c5cfe4; --text: #e4e7ee; --muted: #a2abbd;
    --paper: #0f1522; --paper-hi: #1b2335; --paper-lo: #151c2b; --card: #161e2e;
    --line: #2a3448; --alt: #131a28; --accent: #ef4a5f; --accent-ink: #ff6b7e; --gold: #f0b43c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e9edf6; --ink-2: #c5cfe4; --text: #e4e7ee; --muted: #a2abbd;
  --paper: #0f1522; --paper-hi: #1b2335; --paper-lo: #151c2b; --card: #161e2e;
  --line: #2a3448; --alt: #131a28; --accent: #ef4a5f; --accent-ink: #ff6b7e; --gold: #f0b43c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--font); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.xl { width: 64px; height: 64px; color: var(--ok); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; line-height: 1.2; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo b { display: block; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.logo small { display: block; font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.logo-mark { width: 38px; height: 38px; }
.lm-bg { fill: var(--accent); }
.lm-ring { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.lm-ray { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.lm-line { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 550; }
.mainnav a:hover, .mainnav a[aria-current] { background: var(--alt); color: var(--ink); }
.langsw { display: flex; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.langsw a { display: block; padding: 4px 10px; border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.langsw a.cur { background: var(--ink); color: var(--paper); }
.head-cta { padding: 10px 16px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .head-cta { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; order: 3; }
  .langsw { order: 2; }
  .logo { order: 1; }
  .mainnav { order: 4; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px 16px 16px; }
  .mainnav a { padding: 12px 10px; font-size: 1.05rem; }
}
@media (max-width: 400px) { .logo small { display: none; } .logo b { font-size: .92rem; } .logo-mark { width: 32px; height: 32px; } .head-row { gap: 10px; } .langsw a { padding: 4px 7px; } }

/* hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line); }
.hero-sm { padding: clamp(28px, 4vw, 52px) 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.has-art .hero-grid { grid-template-columns: 1.25fr .75fr; }
.hero .lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts li { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }
.facts b { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.facts span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; }
.hero-art { justify-self: center; width: min(380px, 100%); }
.art .sheet { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.art .sheet.back { fill: var(--paper-lo); }
.art .ln { fill: var(--line); }
.art .ln.strong { fill: var(--ink); opacity: .85; }
.art .sig { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.art .seal-ring { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 3; }
.art .seal-ring.thin { fill: none; stroke-width: 1.5; stroke-dasharray: 3 4; }
.art .rays line { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.art .seal-core { fill: var(--accent); }
.art .seal-lines { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .art .seal { animation: stamp .9s cubic-bezier(.2,.9,.3,1.2) .2s both; transform-box: fill-box; transform-origin: center; }
  @keyframes stamp { from { opacity: 0; scale: 1.4; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 860px) {
  .has-art .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

/* sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--alt); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { max-width: 70ch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; }
.note { background: color-mix(in srgb, var(--gold) 14%, var(--card)); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }

/* lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--ok); width: 20px; height: 20px; margin-top: 3px; }
.numlist { padding-left: 1.3em; display: grid; gap: 8px; }
.numlist li::marker { color: var(--accent); font-weight: 700; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .94rem; flex: 1; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; color: var(--accent-ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 750; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.why li { border-top: 3px solid var(--accent); padding-top: 16px; }
.why p { color: var(--muted); margin: 0; font-size: .95rem; }

.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .92rem; font-weight: 550; }
.chips a:hover { border-color: var(--accent); color: var(--accent-ink); }
.chips.pins a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tag { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.t-apostille { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.t-legal { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.t-minsk { background: color-mix(in srgb, var(--gold) 22%, transparent); color: color-mix(in srgb, var(--gold) 50%, var(--ink)); }

.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lang-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.lang-grid a:hover { border-color: var(--accent); }
.lang-grid span { color: var(--muted); font-size: .88rem; text-align: right; }

.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.region-group h2 { font-size: 1.2rem; }
.region-group h2 a { color: var(--ink); text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--accent); transition: rotate .2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-a { padding: 0 18px 4px; color: var(--muted); }

/* CTA + form */
.cta { background: var(--ink); color: #dfe5f1; }
:root[data-theme="dark"] .cta { background: #0a0f1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #0a0f1a; } }
.cta h2, .cta h3 { color: #fff; }
.cta .muted { color: #b5bfd3; }
.cta a { color: #ffd27a; }
.cta-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list a { font-weight: 650; text-decoration: none; }
.cta-form { background: var(--card); color: var(--text); border-radius: 18px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.cta-form h3 { color: var(--ink); font-size: 1.3rem; }
.cta-form a { color: var(--accent-ink); }
.qform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 560px) { .qform .grid2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 5px; margin-bottom: 12px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.grid2 .fld { margin-bottom: 0; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.qform > .fld:first-of-type { margin-top: 12px; }
.fld.file input { padding: 9px; background: var(--alt); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 6px 0 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-foot small { color: var(--muted); font-size: .8rem; flex: 1 1 220px; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-foot { background: var(--paper-lo); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.foot-h a { color: var(--ink); text-decoration: none; }
.foot-grid ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.foot-grid ul a { color: var(--text); text-decoration: none; }
.foot-grid ul a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: .85rem; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--muted); }

/* root + thanks + 404 */
.root-hero { min-height: 70vh; display: grid; align-items: center; }
.root-hero .lead { margin-inline: auto; font-size: 1rem; }
.root-langs { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
@media (max-width: 700px) { .root-langs { grid-template-columns: 1fr; } }
.root-langs a { display: block; height: 100%; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.root-langs a:hover { border-color: var(--accent); }
.root-langs b { display: block; font-size: 1.25rem; color: var(--accent-ink); margin-bottom: 6px; }
.root-langs span { color: var(--muted); font-size: .92rem; }
.thanks { min-height: 55vh; display: grid; align-items: center; }
.big404 { font-size: 5rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.root-links { list-style: none; padding: 0; display: grid; gap: 8px; }

@media print {
  .site-head, .cta, .site-foot, .hero-art { display: none; }
  body { background: #fff; color: #000; }
}
