:root {
    --ink: #18212f;
    --muted: #657184;
    --line: #dfe5ec;
    --surface: #ffffff;
    --soft: #f4f7fa;
    --accent: #1664d9;
    --accent-dark: #0e4ca8;
    --accent-pale: #eaf2ff;
    --success: #18794e;
    --danger: #b42318;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(24, 33, 47, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Georgia, 'Times New Roman', serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 5; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.logo { font: 700 1.18rem 'Trebuchet MS', sans-serif; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: white; background: var(--accent); font: 700 1.05rem Georgia, serif; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font: 600 .88rem 'Trebuchet MS', sans-serif; color: var(--muted); }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; padding: 8px 12px; border-radius: 7px; color: var(--ink); }
.hero { padding: 88px 0 78px; background: linear-gradient(135deg, #f4f8ff 0%, #fff 56%, #edf7f3 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font: 700 .72rem 'Trebuchet MS', sans-serif; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.04em; max-width: 650px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 550px; margin: 0 0 28px; }
.hero-art { min-height: 315px; padding: 28px; border: 1px solid #d7e3f7; background: #fff; box-shadow: var(--shadow); border-radius: 20px; position: relative; overflow: hidden; }
.hero-art:before { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: #d9e8ff; right: -65px; top: -72px; }
.file-stack { position: absolute; inset: 42px 42px; display: grid; place-items: center; }
.file-sheet { width: 190px; height: 230px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 25px rgba(24,33,47,.1); padding: 26px; transform: rotate(-5deg); }
.file-sheet:last-child { position: absolute; background: var(--accent); color: white; transform: rotate(7deg) translate(35px, 20px); }
.file-lines { height: 8px; background: currentColor; opacity: .22; margin: 11px 0; border-radius: 3px; }
.button { border: 0; border-radius: 8px; padding: 13px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: 700 .9rem 'Trebuchet MS', sans-serif; background: var(--accent); color: white; }
.button:hover { background: var(--accent-dark); }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.section { padding: 78px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); max-width: 470px; margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .18s ease, box-shadow .18s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); background: var(--accent-pale); border-radius: 9px; font: 700 1rem 'Trebuchet MS', sans-serif; margin-bottom: 22px; }
.tool-card p { color: var(--muted); margin: 0 0 16px; font-size: .94rem; }
.tool-card a { color: var(--accent); font: 700 .85rem 'Trebuchet MS', sans-serif; }
.converter-hero { padding: 62px 0 30px; background: var(--soft); border-bottom: 1px solid var(--line); }
.converter-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 780px; }
.converter-hero p { color: var(--muted); font-size: 1.1rem; max-width: 670px; margin: 0; }
.converter-section { padding: 40px 0 90px; }
.converter-box { max-width: 800px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.drop-zone { border: 2px dashed #b9c8dd; border-radius: 12px; background: #fbfdff; padding: 45px 22px; text-align: center; cursor: pointer; }
.drop-zone.dragover { border-color: var(--accent); background: var(--accent-pale); }
.drop-zone strong { display: block; font-size: 1.15rem; margin-bottom: 7px; }
.drop-zone small { display: block; color: var(--muted); margin-top: 12px; }
.file-input { display: none; }
.file-list { margin: 18px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; font: .86rem 'Trebuchet MS', sans-serif; }
.form-row { display: flex; gap: 15px; align-items: end; margin-top: 20px; }
.form-field { max-width: 160px; }
.form-field label { display: block; font: 700 .82rem 'Trebuchet MS', sans-serif; margin-bottom: 6px; }
.form-field input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px; font: 1rem Georgia, serif; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.status { display: none; padding: 13px 15px; border-radius: 8px; margin-top: 18px; font: .9rem 'Trebuchet MS', sans-serif; }
.status.show { display: block; }
.status.error { color: var(--danger); background: #fff2f0; }
.status.success { color: var(--success); background: #edf9f2; }
.status.loading { color: var(--accent-dark); background: var(--accent-pale); }
.progress { display: none; height: 5px; background: #e8edf3; border-radius: 4px; overflow: hidden; margin-top: 18px; }
.progress.show { display: block; }
.progress-bar { height: 100%; width: 40%; background: var(--accent); animation: progress 1.2s ease-in-out infinite alternate; }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.info-band { background: #132238; color: white; padding: 45px 0; }
.info-band p { color: #c3cedc; max-width: 700px; margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 22px; background: #fbfcfe; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-logo { margin-bottom: 10px; }
.footer-inner p, .copyright { color: var(--muted); font-size: .9rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font: .85rem 'Trebuchet MS', sans-serif; align-content: start; }
.footer-links a:hover { color: var(--accent); }
.copyright { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 27px; }
@media (max-width: 800px) { .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 67px; padding: 15px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; } .main-nav.open { display: flex; } .main-nav a { padding: 10px; } .menu-toggle { display: block; margin-left: auto; } .hero-grid { grid-template-columns: 1fr; gap: 35px; } .hero { padding: 58px 0; } .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .container { width: min(100% - 28px, 1120px); } h1 { font-size: 2.75rem; } .tool-grid { grid-template-columns: 1fr; } .converter-box { padding: 18px; } .drop-zone { padding: 34px 14px; } .footer-inner { flex-direction: column; } .form-row { align-items: stretch; flex-direction: column; } .form-field { max-width: none; } }
