:root {
  color-scheme: light;
  --blue: #0d6efd;
  --blue-dark: #0954c7;
  --ink: #14213d;
  --muted: #65738b;
  --line: #dce7f5;
  --surface: #f6faff;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
a { color: inherit; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--white); background: var(--blue); font-size: 12px; }
.form-hint, .download-note, .site-footer { color: var(--muted); font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-right: auto; }
.site-nav a { color: var(--ink); font-size: 14px; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 98px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { display: block; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; transform: rotate(45deg); }
#language-code, .language-list button span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.language-list { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; display: grid; grid-template-columns: 1fr; gap: 1px; width: 192px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 16px 34px rgba(20, 67, 126, .16); }
.language-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 11px; border-radius: 6px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 550; text-align: left; }
.language-list button:hover { color: var(--blue-dark); background: #eef6ff; transform: none; }
.hero { padding: clamp(74px, 10vw, 122px) 0 96px; color: var(--ink); background: var(--white); text-align: center; }
.hero .eyebrow { color: var(--blue); }
.hero-text { color: var(--muted); }
.hero-copy { max-width: 760px; margin: 0 auto; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(34px, 5vw, 62px); line-height: 1.06; letter-spacing: 0; }
.hero-text { max-width: 650px; margin: 0 auto 32px; font-size: 18px; line-height: 1.7; }
.resolve-form { max-width: 760px; margin: 0 auto; }
.input-row { display: flex; gap: 10px; padding: 8px; border: 1px solid #cbdcf4; border-radius: 14px; background: var(--white); box-shadow: 0 16px 40px rgba(24, 83, 157, .12); }
input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 16px; color: var(--ink); font-size: 16px; background: transparent; }
input::placeholder { color: #9aa9bd; }
button, .download-button { border: 0; border-radius: 10px; padding: 14px 22px; color: var(--white); background: var(--blue); font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
button:hover, .download-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-hint { margin: 12px 2px 0; text-align: left; }
.form-message { min-height: 24px; margin: 18px 0 0; color: #b42318; }
.result-section { padding: 0 0 88px; }
.result-card { display: grid; grid-template-columns: minmax(190px, 280px) 1fr; gap: 28px; max-width: 820px; margin: 0 auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.result-media { min-height: 250px; overflow: hidden; border-radius: 11px; background: #dce8f7; }
.result-media img { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.result-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.result-meta { display: flex; gap: 8px; margin-bottom: 12px; color: var(--blue-dark); font-size: 12px; font-weight: 750; }
.result-meta span { padding: 6px 9px; border-radius: 999px; background: #e5f0ff; }
.result-info h2 { margin-bottom: 10px; font-size: clamp(20px, 3vw, 28px); line-height: 1.3; }
.author { margin-bottom: 22px; color: var(--muted); }
.download-button { display: inline-block; }
.download-note { margin: 12px 0 0; line-height: 1.5; }
.trust-section, .faq-section { padding: 84px 0; }
.trust-section h2, .faq-section h2 { margin-bottom: 30px; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-grid article { padding: 22px 0; border-top: 2px solid #d9e9ff; }
.trust-icon { color: var(--blue); font-size: 12px; font-weight: 850; }
.trust-grid h3 { margin: 20px 0 9px; font-size: 19px; }
.trust-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 20px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-section summary::after { float: right; color: var(--blue); content: "+"; font-size: 20px; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { max-width: 760px; padding: 0 28px 20px 0; margin: 0; color: var(--muted); line-height: 1.7; }
.site-footer { display: flex; justify-content: space-between; padding: 24px 0 34px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .site-header, main, .site-footer { width: min(100% - 28px, 1120px); }
  .site-header { gap: 12px; }
  .site-nav { display: none; }
  .language-menu summary { min-width: 84px; padding: 8px 9px; }
  .hero { padding: 58px 0 62px; }
  .hero-text { font-size: 16px; }
  .input-row { flex-direction: column; padding: 7px; }
  input { min-height: 48px; padding: 0 12px; }
  button { width: 100%; }
  .result-card { grid-template-columns: 1fr; gap: 18px; }
  .result-media, .result-media img { min-height: 330px; max-height: 440px; }
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .trust-section, .faq-section { padding: 62px 0; }
  .site-footer { flex-direction: column; gap: 8px; }
}
