:root{
  --page:#f3f5f7;
  --surface:#ffffff;
  --surface-soft:#f8fafb;
  --ink:#1d2b36;
  --muted:#66737f;
  --line:#dfe5e9;
  --accent:#346b78;
  --accent-dark:#25535e;
  --shadow:0 12px 32px rgba(32,48,58,.08);
  --sudoku:#e79228;
  --gps:#37a72f;
  --bp:#bd3245;
  --medi:#267c86;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.62 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.page-shell{max-width:1180px;margin:0 auto;padding:34px 22px 48px}
.hero{position:relative;overflow:hidden;text-align:left;padding:42px 48px;margin-bottom:26px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f7fafb 58%,#edf3f4 100%);box-shadow:0 8px 24px rgba(37,57,67,.05)}
.hero::after{content:"";position:absolute;right:-80px;top:-100px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(52,107,120,.10),rgba(52,107,120,0) 68%);pointer-events:none}
.eyebrow,.support-eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:850;color:var(--accent)}
.hero h1{position:relative;margin:0 0 12px;font-size:clamp(2.25rem,5vw,4rem);line-height:1.04;letter-spacing:-.035em;color:#182936}
.hero p:last-child{position:relative;max-width:900px;margin:0;color:var(--muted);font-size:1.08rem}
.project-list{display:grid;grid-template-columns:1fr;gap:22px}
.project-card{position:relative;display:grid;grid-template-columns:minmax(330px,.92fr) minmax(0,1.35fr);overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);color:var(--ink)}
.project-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--accent)}
.project-card-sudoku::before{background:var(--sudoku)}
.project-card-gps::before{background:var(--gps)}
.project-card-bp::before{background:var(--bp)}
.project-card-med::before{background:var(--medi)}
.project-media{display:flex;align-items:center;justify-content:center;min-height:270px;background:var(--surface-soft);border-right:1px solid var(--line)}
.project-media img{display:block;width:100%;height:100%;max-height:310px;object-fit:contain}
.project-content{display:flex;flex-direction:column;justify-content:center;padding:30px 34px}
.project-head{display:grid;grid-template-columns:80px minmax(0,1fr);gap:18px;align-items:center}
.project-icon-frame{display:block;width:80px;height:80px;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 8px 20px rgba(27,43,53,.14)}
.project-icon{display:block;width:100%;height:100%;object-fit:cover}
.project-head h2{margin:0 0 6px;font-size:1.9rem;line-height:1.1;letter-spacing:-.02em}
.project-head p{margin:0;color:var(--muted)}
.badge-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 22px;padding:0}
.badge-list li{padding:7px 11px;border:1px solid #e0e6e9;border-radius:999px;background:#f7f9fa;color:#42515d;font-size:.88rem}
.project-button{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:11px;background:var(--accent);color:#fff;text-decoration:none;font-weight:750;transition:transform .15s ease,background .15s ease}
.project-button:hover{transform:translateY(-1px);background:var(--accent-dark)}
.project-card-sudoku .project-button{background:#a96316}.project-card-sudoku .project-button:hover{background:#8d5210}
.project-card-gps .project-button{background:#287d23}.project-card-gps .project-button:hover{background:#21671d}
.project-card-bp .project-button{background:#9e3041}.project-card-bp .project-button:hover{background:#812735}
.project-card-med .project-button{background:#246d76}.project-card-med .project-button:hover{background:#1d5961}
.support-panel{display:grid;grid-template-columns:72px minmax(0,1fr);gap:22px;padding:30px 34px;margin-top:8px;border:1px solid #c9dcdd;border-radius:22px;background:linear-gradient(135deg,#f2f8f7 0%,#fbfcfb 100%);box-shadow:0 10px 28px rgba(40,75,77,.05)}
.support-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#fff;border:1px solid #d5e3e3;font-size:30px;box-shadow:0 8px 18px rgba(42,76,78,.07)}
.support-copy h2{margin:0 0 12px;font-size:1.7rem;line-height:1.2}
.support-copy p{margin:0 0 10px;color:#455762}
.support-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-top:18px}
.support-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:11px;background:#825d36;color:#fff;text-decoration:none;font-weight:800}
.support-button:hover{background:#6f4d2c}
.support-button.is-disabled{opacity:.52;cursor:not-allowed}
.support-note{max-width:620px;color:var(--muted);font-size:.82rem;line-height:1.45}
.site-footer{text-align:center;margin-top:30px;color:#7a858d;font-size:.9rem}
html[dir="rtl"] .hero{text-align:right}
html[dir="rtl"] .project-card::before{left:auto;right:0}
html[dir="rtl"] .project-media{border-right:0;border-left:1px solid var(--line)}
@media(max-width:860px){
  .page-shell{padding:22px 14px 38px}.hero{padding:32px 26px;border-radius:20px}
  .project-card{grid-template-columns:1fr}.project-media{min-height:0;aspect-ratio:2.1/1;border-right:0;border-bottom:1px solid var(--line)}
  html[dir="rtl"] .project-media{border-left:0}.project-media img{max-height:none}.project-content{padding:25px 26px}
}
@media(max-width:560px){
  .hero{padding:28px 20px}.project-head{grid-template-columns:64px minmax(0,1fr);gap:14px}.project-icon-frame{width:64px;height:64px;border-radius:16px}.project-head h2{font-size:1.55rem}.project-content{padding:22px 20px}.badge-list{margin:17px 0 20px}.support-panel{grid-template-columns:1fr;padding:24px 20px}.support-icon{width:54px;height:54px;border-radius:15px;font-size:26px}.support-copy h2{font-size:1.45rem}
}
