:root {
  --navy: #071b38;
  --gold: #c68c23;
  --cream: #fffaf0;
  --line: #e6dcc8;
  --muted: #566173;
  --danger: #a51d2d;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { max-width: 1180px; margin: auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--navy); text-decoration: none; font-size: 29px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mark { display: grid; place-items: center; width: 43px; height: 43px; color: white; background: linear-gradient(145deg, var(--gold), var(--navy)); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
nav { display: flex; gap: 28px; }
nav a { color: var(--navy); text-decoration: none; font-weight: 650; }
main { max-width: 1100px; margin: auto; padding: 30px 24px 70px; }
.hero { text-align: center; margin: 18px auto 28px; }
.tool-hero { max-width: 850px; }
.early { display: inline-block; padding: 8px 17px; border: 1px solid #e9c880; border-radius: 999px; color: #995e00; background: var(--cream); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; margin: 22px 0 10px; }
.hero p { font-size: 1.15rem; color: var(--muted); }
.converter { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(7,27,56,.07); }
.tools { border: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.tools input { position: absolute; opacity: 0; }
.tools span { min-height: 55px; padding: 12px 8px; display: grid; place-items: center; border: 1px solid #dfe3e8; border-radius: 11px; cursor: pointer; font-weight: 700; text-align: center; }
.tools input:checked + span { border: 2px solid var(--gold); background: var(--cream); }
.dropzone { min-height: 270px; border: 2px dashed #d6a94d; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: .2s ease; }
.dropzone.dragging, .dropzone:hover { background: var(--cream); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { font-size: 1.55rem; }
.pdf-icon { color: #c92534; border: 3px solid #c92534; border-radius: 6px; padding: 12px 7px 5px; font-weight: 900; }
.button, .convert-button, .download-button { display: inline-block; border: 0; border-radius: 9px; color: white; background: var(--navy); padding: 14px 28px; font-size: 1rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.convert-button { display: block; margin: 14px auto 0; min-width: 210px; background: linear-gradient(135deg, var(--navy), #123b70); }
.selection, .limits { color: var(--muted); text-align: center; margin: 12px 0 0; }
.limits { font-size: .9rem; }
.privacy { display: flex; align-items: center; gap: 18px; padding: 22px 28px; margin-top: 20px; background: var(--cream); border: 1px solid #f0d9aa; border-radius: 14px; }
.privacy h2, .privacy p { margin: 2px 0; }
.privacy p { color: var(--muted); }
.shield { width: 45px; height: 45px; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-weight: 900; }
.steps { margin-top: 38px; text-align: center; }
.content-section { margin-top: 42px; }
.content-section h2, .tool-list h2 { text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-grid article { padding: 20px; border: 1px solid #edf0f3; border-radius: 14px; background: #fff; }
.step-grid b { display: grid; place-items: center; width: 48px; height: 48px; margin: auto; background: var(--cream); border-radius: 50%; font-size: 1.3rem; }
.step-grid h3 { margin-bottom: 4px; }
.step-grid p { color: var(--muted); margin-top: 0; }
.tool-list { margin-top: 42px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-grid a { display: flex; flex-direction: column; gap: 7px; min-height: 118px; padding: 20px; color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, #fffdf8); transition: .2s ease; }
.tool-grid a:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(7,27,56,.08); }
.tool-grid strong { font-size: 1.15rem; }
.tool-grid span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tool-grid.large { grid-template-columns: repeat(2, 1fr); }
.faq { max-width: 850px; margin-left: auto; margin-right: auto; }
.faq details { border: 1px solid #e6eaf0; border-radius: 12px; padding: 16px 18px; margin: 12px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); }
.unit-card { max-width: 850px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(7,27,56,.07); }
.unit-controls { margin-bottom: 18px; }
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.unit-card label { display: flex; flex-direction: column; gap: 9px; font-weight: 750; }
.unit-card input, .unit-card select { width: 100%; border: 1px solid #dfe3e8; border-radius: 11px; padding: 14px 15px; color: var(--navy); background: #fff; font: inherit; }
.unit-card input[readonly] { background: var(--cream); }
.quick-convert { min-height: 82px; padding: 18px; color: var(--navy); font: inherit; font-weight: 800; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, #fffdf8); cursor: pointer; }
.quick-convert:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(7,27,56,.08); }
.legal-page { max-width: 850px; margin: 20px auto; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-page h2 { margin-top: 30px; }
.legal-page p { color: var(--muted); line-height: 1.75; }
.result-card { text-align: center; max-width: 620px; margin: 90px auto; padding: 55px 35px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(7,27,56,.08); }
.success, .expired { display: grid; place-items: center; width: 64px; height: 64px; margin: auto; border-radius: 50%; font-size: 2rem; color: white; background: #178750; }
.expired { background: var(--danger); }
.result-card h1 { font-size: 2.4rem; }
.download-button { margin: 15px 0; background: linear-gradient(135deg, var(--gold), #a96f07); }
.countdown { color: var(--muted); }
.again { color: var(--navy); font-weight: 700; }
.alert { margin: 0 0 18px; padding: 14px 18px; border-radius: 10px; color: #7f1523; background: #fff0f1; border: 1px solid #f0bdc4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
footer { text-align: center; padding: 25px; color: var(--muted); border-top: 1px solid #edf0f3; }
footer a { color: var(--navy); text-decoration: none; font-weight: 650; }
@media (max-width: 760px) {
  header { align-items: flex-start; }
  nav { gap: 12px; font-size: .86rem; }
  .brand { font-size: 23px; }
  .mark { width: 36px; height: 36px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tool-grid, .tool-grid.large { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 230px; padding: 22px; text-align: center; }
}
