:root {
    --ink: #172235;
    --muted: #697386;
    --line: #d9e0e8;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --accent: #2155d6;
    --accent-dark: #143aa2;
    --accent-pale: #e9efff;
    --coral: #e26d52;
    --coral-pale: #fff0eb;
    --success: #18794e;
    --danger: #b42318;
    --radius: 14px;
    --shadow: 0 20px 55px rgba(23, 34, 53, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfe; font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, 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 rgba(217,224,232,.85); background: rgba(251,252,254,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 5; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.logo { font: 700 1.18rem 'Avenir Next', 'Segoe UI', sans-serif; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: var(--ink); font: 700 1.05rem Georgia, serif; box-shadow: 4px 4px 0 var(--coral); }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font: 600 .8rem 'Avenir Next', 'Segoe UI', sans-serif; color: var(--muted); }
.main-nav a { padding: 9px 11px; border-radius: 7px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--accent-pale); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; padding: 9px 13px; border-radius: 8px; color: var(--ink); font: 600 .8rem 'Avenir Next', 'Segoe UI', sans-serif; }
.hero { padding: 104px 0 92px; background-color: #f4f7ff; background-image: linear-gradient(135deg, rgba(255,255,255,.9), rgba(235,241,255,.58)), linear-gradient(rgba(33,85,214,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(33,85,214,.055) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--coral); text-transform: uppercase; letter-spacing: .15em; font: 700 .69rem 'Avenir Next', 'Segoe UI', sans-serif; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 18px; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.045em; 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 30px; }
.hero-art { min-height: 335px; padding: 28px; border: 1px solid #d4def4; background: rgba(255,255,255,.76); box-shadow: var(--shadow); border-radius: 24px; position: relative; overflow: hidden; }
.hero-art:before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: #dce5ff; right: -65px; top: -72px; }
.hero-art:after { content: 'FILE / 01'; position: absolute; left: 26px; bottom: 20px; color: var(--accent); font: 700 .66rem 'Avenir Next', 'Segoe UI', sans-serif; letter-spacing: .16em; }
.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: 10px; box-shadow: 0 14px 28px rgba(24,33,47,.12); padding: 26px; transform: rotate(-5deg); }
.file-sheet:last-child { position: absolute; background: var(--accent); color: white; transform: rotate(7deg) translate(35px, 20px); box-shadow: 8px 14px 0 rgba(226,109,82,.38); }
.file-lines { height: 8px; background: currentColor; opacity: .22; margin: 11px 0; border-radius: 3px; }
.button { border: 0; border-radius: 8px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: 700 .82rem 'Avenir Next', 'Segoe UI', sans-serif; background: var(--accent); color: white; box-shadow: 0 7px 0 var(--accent-dark); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { background: #2c65e8; transform: translateY(-2px); box-shadow: 0 9px 0 var(--accent-dark); }
.button:active { transform: translateY(3px); box-shadow: 0 4px 0 var(--accent-dark); }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 5px 0 #dce2e9; }
.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; }
.ad-slot { width: min(1120px, calc(100% - 40px)); min-height: 90px; margin: 0 auto; display: grid; place-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #9aa4b3; background: rgba(245,247,251,.62); font: 600 .62rem 'Avenir Next', 'Segoe UI', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot span { opacity: .7; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: 0 6px 0 #edf0f5; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-5px); border-color: #b8c9f2; box-shadow: 0 14px 25px rgba(33,85,214,.12); }
.tool-icon { display: grid; place-items: center; width: 43px; height: 43px; color: var(--accent); background: var(--accent-pale); border-radius: 10px; font: 700 .82rem 'Avenir Next', 'Segoe UI', sans-serif; margin-bottom: 25px; }
.tool-card:nth-child(3n+2) .tool-icon { color: #bd553d; background: var(--coral-pale); }
.tool-card p { color: var(--muted); margin: 0 0 17px; font-size: .94rem; }
.tool-card a { color: var(--accent); font: 700 .79rem 'Avenir Next', 'Segoe UI', sans-serif; letter-spacing: .02em; }
.converter-hero { padding: 70px 0 38px; background-color: var(--soft); background-image: linear-gradient(135deg, rgba(255,255,255,.65), transparent), linear-gradient(rgba(33,85,214,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(33,85,214,.04) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; 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; }
.content-hero { padding: 70px 0 48px; background: var(--soft); border-bottom: 1px solid var(--line); }
.content-hero h1 { font-size: clamp(2.35rem, 5vw, 4.2rem); max-width: 760px; }
.content-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0; }
.content-section { padding: 58px 0 90px; }
.content-copy { max-width: 780px; }
.content-copy h2 { font-size: 1.65rem; margin-top: 34px; }
.content-copy h2:first-child { margin-top: 0; }
.content-copy p { color: var(--muted); font-size: 1.04rem; }
.converter-section { padding: 40px 0 90px; }
.converter-box { max-width: 800px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.drop-zone { border: 2px dashed #b9c8dd; border-radius: 14px; background: linear-gradient(145deg, #fbfdff, #f5f8ff); padding: 50px 22px; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.drop-zone:hover { border-color: var(--accent); transform: translateY(-2px); }
.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 .78rem 'Avenir Next', 'Segoe UI', sans-serif; margin-bottom: 6px; }
.form-field input, .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px; background: white; font: 1rem 'Palatino Linotype', 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: .86rem 'Avenir Next', 'Segoe UI', 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: var(--ink); color: white; padding: 52px 0; position: relative; overflow: hidden; }
.info-band:after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: 8%; top: -150px; }
.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: .8rem 'Avenir Next', 'Segoe UI', 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; } }
