:root{--navy:#092e40;--deep:#08283a;--ocean:#087da1;--teal:#098d9c;--ink:#1a3646;--muted:#657f8b;--line:#d8e6ec;--white:#fff;--bg:#f4f8fa;--red:#b13d3d}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-width:280px;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}a{color:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid #30b8cc;outline-offset:3px}
.app-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse 560px 390px at 88% 8%,rgba(120,207,219,.13),transparent 78%),linear-gradient(180deg,#f9fcfd 0%,#eef5f8 100%)}
.site-header{height:88px;background:rgba(255,255,255,.98);border-bottom:1px solid #e5edf1;flex:none}
.header-inner{max-width:1180px;margin:0 auto;height:100%;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:15px;min-width:0;text-decoration:none;width:auto;max-width:360px;flex-shrink:0}
.brand-logo{width:56px;height:62px;display:flex;align-items:center;justify-content:center;background:#eaf6f8;border:1px solid #dbeff1;border-radius:14px;box-shadow:0 4px 14px #0c526810;flex:none;overflow:hidden}
.brand-logo img{width:39px;height:54px;object-fit:contain;display:block}
.brand-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;white-space:nowrap}
.brand-copy strong{font-size:19px;line-height:1.15;letter-spacing:.025em;font-weight:800;color:#10394b}
.brand-copy small{font-size:12px;line-height:1.25;color:#78909a;font-weight:500}
.header-right{display:flex;align-items:center;gap:9px;color:#42687a;font-size:13px;font-weight:650;white-space:nowrap}
.shield{width:27px;height:27px;border:1px solid #c6e5e8;background:#ecf8f8;color:#137b80;display:grid;place-items:center;border-radius:50%;font-size:14px}
.main-area{width:100%;max-width:1060px;margin:0 auto;flex:1;padding:65px 24px 36px}
.lookup-panel{max-width:800px;margin:auto;text-align:center}
.eyebrow{display:flex;justify-content:center;align-items:center;gap:13px;font-size:11px;font-weight:850;letter-spacing:.14em;color:#13899b}
.eyebrow-line{width:28px;height:1px;background:#a1cbd1}
.lookup-panel h1{font-size:clamp(33px,4.3vw,49px);font-weight:780;letter-spacing:-.045em;color:var(--deep);line-height:1.13;margin:21px auto 17px;max-width:760px}
.lead{font-size:16px;color:#63808f;line-height:1.7;max-width:620px;margin:0 auto 38px}.lead strong{color:#355968}
.lookup-form{background:#fff;border:1px solid #dce9ef;box-shadow:0 15px 48px rgba(18,65,88,.075);padding:21px;border-radius:22px;text-align:left;max-width:800px;margin:0 auto}
.field-label{display:block;color:#345667;font-weight:800;font-size:11px;letter-spacing:.08em;margin:0 0 11px 2px}
.search-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.search-input-wrap{min-width:0;display:flex;align-items:center;gap:12px;height:54px;padding:0 15px;border:1px solid #d6e4eb;border-radius:12px;background:#fafcfd;color:#608898;transition:border-color .15s}
.search-input-wrap:focus-within{border-color:#0885a7;box-shadow:0 0 0 3px #1cacc514}
.magnifier{flex:none}.search-input-wrap input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:17px;color:#153f53;font-weight:500;letter-spacing:.055em;width:100%}.search-input-wrap input::placeholder{color:#a5b5bb;letter-spacing:0;font-size:15px}
.char-count{font-size:12px;color:#6f8f9b;white-space:nowrap;flex:none}
.submit-button{background:linear-gradient(145deg,#087fa6,#086283);color:white;min-height:54px;min-width:195px;border:0;border-radius:12px;font-size:14px;font-weight:750;padding:12px 20px;box-shadow:0 5px 14px #0879a318}
.submit-button:hover{background:#06617d}.field-help{font-size:12px;line-height:1.5;color:#859aa5;margin:12px 2px 0}
.status-line{margin:17px auto 0;max-width:800px;padding:15px 17px;border:1px solid #d1e9f2;border-radius:12px;background:#eaf7fb;color:#31667b;display:flex;align-items:center;gap:11px;font-size:13px;text-align:left}
.spinner{width:16px;height:16px;border:2px solid #a4d4e2;border-top-color:#0783a7;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.error-card{margin:17px auto 0;max-width:800px;border:1px solid #f3d0c9;background:#fff5f3;color:#934343;padding:17px 19px;border-radius:14px;display:flex;align-items:flex-start;gap:13px;text-align:left;box-shadow:0 2px 7px #bd58510a}
.notice-icon{flex:none;border-radius:50%;width:22px;height:22px;border:1.7px solid #c66c60;color:#b45149;display:grid;place-items:center;font-size:14px;font-weight:800}.error-card strong{font-size:14px;display:block}.error-card p{margin:5px 0 0;font-size:13px;line-height:1.5;color:#9a6462}.error-card .error-note{color:#92716f;font-size:12px}
.certificate-card{margin:25px auto 0;max-width:890px;border:1px solid var(--line);background:#fff;border-radius:20px;padding:27px;box-shadow:0 20px 52px rgba(18,65,88,.07)}
.result-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:20px;border-bottom:1px solid #e7eef2}.result-topline>div{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px}.confirmed-icon{grid-row:1/3;background:#e6f7f1;color:#157e64;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800}.result-topline strong{font-size:14px;color:#195342}.result-topline small{font-size:12px;color:#7c939c}
.validity{font-size:11px;font-weight:850;letter-spacing:.055em;padding:8px 13px;border-radius:16px;white-space:nowrap}.validity.valid{background:#e5f7eb;color:#14734e}.validity.warning{background:#fff3da;color:#8d680d}.validity.expired{background:#ffe8e8;color:#a93c3c}
.person-header{padding:24px 0 20px}.person-header span{font-size:11px;font-weight:800;letter-spacing:.13em;color:#8da0aa}.person-header h2{font-size:clamp(23px,3.6vw,31px);font-weight:750;line-height:1.2;letter-spacing:-.025em;color:var(--deep);margin:7px 0 0;overflow-wrap:anywhere}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-grid>div{padding:15px 17px;min-height:75px;border-radius:11px;background:#f7fafb;border:1px solid #e6eef1}.info-grid small{display:block;color:#8197a1;font-size:10px;letter-spacing:.075em;font-weight:800}.info-grid b{display:block;color:#244a5b;font-size:14px;margin-top:6px;overflow-wrap:anywhere;line-height:1.4}
.result-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:23px;color:#7c929a;font-size:12px}.document-button{border:0;border-radius:11px;color:white;background:#0b3d55;padding:13px 18px;font-weight:760;white-space:nowrap}
.help-strip{max-width:800px;margin:26px auto 0;display:flex;gap:11px;align-items:flex-start;justify-content:center;color:#728e9b}.help-strip>span{width:19px;height:19px;border:1px solid #b6cbd2;border-radius:50%;flex:none;text-align:center;font-family:Georgia,serif;font-style:italic;line-height:18px;font-size:14px}.help-strip p{font-size:12px;line-height:1.55;margin:0;max-width:650px}
.site-footer{border-top:1px solid #ddebf1;max-width:1180px;width:calc(100% - 48px);margin:0 auto;padding:20px 0 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8296a0;font-size:11px}
.pdf-dialog{width:min(1030px,95vw);height:92vh;max-height:92vh;padding:0;border:0;border-radius:15px;overflow:hidden;box-shadow:0 25px 80px #001f3755}.pdf-dialog::backdrop{background:rgba(5,30,44,.7)}.pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#0a3447;color:#fff;padding:12px 18px;min-height:57px}.pdf-toolbar strong{font-size:14px}.pdf-toolbar button{background:#fff1;color:#fff;border:1px solid #fff5;border-radius:8px;padding:8px 12px;white-space:nowrap}.pdf-dialog iframe{display:block;border:0;width:100%;height:calc(100% - 105px)}.pdf-dialog p{font-size:12px;margin:12px 18px;color:#5e7985}.pdf-dialog p a{color:#086fa1}
@media(max-width:730px){.site-header{height:75px}.header-inner{padding:0 18px}.header-right{font-size:0}.header-right .shield{font-size:13px}.brand-logo{width:47px;height:52px}.brand-logo img{width:32px;height:45px}.brand-copy strong{font-size:17px}.main-area{padding:47px 18px 30px}.lookup-panel h1{font-size:clamp(30px,7vw,40px)}.lead{font-size:14px;margin-bottom:26px}.lookup-form{padding:17px}.search-layout{grid-template-columns:1fr;gap:10px}.submit-button{min-width:0;width:100%}.info-grid{grid-template-columns:1fr}.certificate-card{padding:18px}.result-bottom{flex-direction:column;align-items:stretch}.result-bottom .document-button{width:100%}.site-footer{flex-direction:column;align-items:center;text-align:center}}
@media(max-width:340px){.brand-copy strong{font-size:15px}.brand-copy small{font-size:10px}.brand{gap:9px}.header-inner{padding:0 10px}}
