:root{
  --paper:#EFF4F8;
  --paper-card:#FBFDFE;
  --ink:#0F2A47;
  --ink-soft:#264A69;
  --ink-faint:#5D7C94;
  --red:#B8391F;
  --gold:#8A6B23;
  --gold-fill:#B8903A;
  --rule:#D2DEE7;
  --rule-strong:#B7C6D4;
  --hero-grad: linear-gradient(135deg, #0A2740 0%, #14547E 55%, #2E7FAE 100%);
  --hero-text: #F0F7FB;
  --hero-text-soft: #CFE5F0;
}
:root:not([data-theme="light"]){
  @media (prefers-color-scheme: dark){
    --paper:#15171C;
    --paper-card:#1B1E24;
    --ink:#E3ECF3;
    --ink-soft:#B7C9D8;
    --ink-faint:#84989F;
    --red:#E0673F;
    --gold:#D8AE5C;
    --gold-fill:#D8AE5C;
    --rule:#242A30;
    --rule-strong:#37414A;
  }
}
:root[data-theme="dark"]{
  --paper:#15171C;
  --paper-card:#1B1E24;
  --ink:#E3ECF3;
  --ink-soft:#B7C9D8;
  --ink-faint:#84989F;
  --red:#E0673F;
  --gold:#D8AE5C;
  --gold-fill:#D8AE5C;
  --rule:#242A30;
  --rule-strong:#37414A;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans',sans-serif;
  -webkit-font-smoothing:antialiased;
}
.serif{font-family:'Source Serif 4',serif;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px;}
.rule{border:none;border-top:1px solid var(--rule);margin:0;}

/* ---------- header ---------- */
:root{
  --brand:#1565C0;
  --brand-deep:#0A2F5C;
  --brand-ink:#0B3A6E;
  --accent:#FFC727;
  --accent-ink:#1F1A05;
  --logo-red:#E53935;
  --soft:#F3F8FD;
  --head-font:'Poppins','IBM Plex Sans',system-ui,sans-serif;
}
header.site-header{position:sticky;top:0;z-index:50;background:var(--paper-card);border-bottom:1px solid var(--rule);box-shadow:0 1px 0 rgba(15,42,71,.03);}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:24px;}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.brand-logo{height:48px;width:auto;display:block;}
.brand-mark{width:34px;height:34px;border:1.5px solid var(--ink);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Source Serif 4',serif;font-weight:600;font-size:13px;flex-shrink:0;}
.brand-name{font-family:'Source Serif 4',serif;font-weight:600;font-size:19px;letter-spacing:-0.01em;}
.brand-name span{color:var(--red);}
.main-nav{display:flex;gap:30px;font-family:var(--head-font);font-size:14.5px;font-weight:500;}
.main-nav a{padding:10px 0;position:relative;color:var(--ink);}
.main-nav a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:3px;border-radius:3px;background:var(--brand);transform:scaleX(0);transition:transform .2s ease;}
.main-nav a:hover{color:var(--brand);}
.main-nav a.active{color:var(--brand);font-weight:600;}
.main-nav a.active::after,.main-nav a:hover::after{transform:scaleX(1);}
.main-nav a:focus-visible,.top-actions a:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px;}
.nav-mobile-only{display:none;}
/* any other <nav> on the site keeps its original look */
nav:not(.main-nav){display:flex;gap:28px;font-size:15px;font-weight:500;}
nav:not(.main-nav) a{padding:6px 0;border-bottom:2px solid transparent;}
nav:not(.main-nav) a.active,nav:not(.main-nav) a:hover{border-bottom-color:var(--ink);}
.top-actions{display:flex;align-items:center;gap:18px;font-size:14px;font-family:var(--head-font);font-weight:500;}
.top-hello{font-size:13px;color:var(--ink-soft);}
.top-link{color:var(--brand);}
.top-link:hover{text-decoration:underline;}
.cart-pill{display:flex;align-items:center;gap:7px;border:1.5px solid var(--brand);color:var(--brand);border-radius:999px;padding:7px 10px 7px 14px;font-size:14px;font-weight:600;text-decoration:none;}
.cart-pill:hover{background:var(--brand);color:#fff;}
.cart-count{background:var(--brand-deep);color:#fff;border-radius:50%;min-width:22px;height:22px;padding:0 4px;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:600;}
.cart-pill:hover .cart-count{background:#fff;color:var(--brand);}
.nav-toggle{display:none;}
.nav-burger{display:none;}
.view-toggle{display:none;}

/* ---------- hero ---------- */
.hero{
  padding:68px 0 84px;
  background:var(--hero-grad);
  color:var(--hero-text);
  position:relative;
  overflow:hidden;
  border-bottom:3px solid var(--gold-fill);
}
.hero::before{
  /* decorative corner illustration: an open book with a checkmark badge */
  content:"";
  position:absolute;
  top:-40px; right:-60px;
  width:420px; height:420px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23F6F4EA' stroke-opacity='0.14' stroke-width='2'%3E%3Cpath d='M60 260 L210 220 L360 260 L360 300 L210 260 L60 300 Z'/%3E%3Cpath d='M210 220 L210 260'/%3E%3Cpath d='M60 260 L60 300'/%3E%3Cpath d='M360 260 L360 300'/%3E%3Ccircle cx='300' cy='120' r='58' stroke-opacity='0.22'/%3E%3Cpath d='M275 120 L293 138 L328 100' stroke='%23D9B45C' stroke-opacity='0.55' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:no-repeat;
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns:1.15fr 0.85fr;gap:56px;align-items:start;position:relative;z-index:1;}
.hero h1{font-family:'Source Serif 4',serif;font-weight:600;font-size:52px;line-height:1.1;letter-spacing:-0.015em;margin:0 0 20px;max-width:15ch;color:#FFFFFF;}
.hero p.lede{font-size:18px;color:var(--hero-text-soft);max-width:44ch;line-height:1.65;margin:0 0 30px;}
.search-doc{border:1px solid rgba(246,244,234,0.4);background:rgba(255,255,255,0.05);padding:20px;position:relative;border-radius:3px;}
.search-doc::before{content:"Find your exam";position:absolute;top:-10px;left:14px;background:#0F2E48;padding:0 8px;font-size:11.5px;color:var(--gold-fill);letter-spacing:0.03em;font-weight:600;}
.search-row{display:flex;gap:10px;}
.search-row input{flex:1;border:1px solid var(--rule-strong);background:#FFFFFF;color:var(--ink);padding:13px 14px;font-size:15px;font-family:inherit;border-radius:2px;}
.search-row input:focus{outline:none;border-color:var(--gold-fill);}
.search-row button{background:var(--gold-fill);color:#1B2144;border:none;padding:0 24px;font-size:15px;font-weight:700;cursor:pointer;border-radius:2px;}
.search-row button:hover{opacity:0.9;}
.chip-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px;}
.chip{border:1px solid rgba(246,244,234,0.35);padding:8px 15px;font-size:13.5px;border-radius:20px;cursor:pointer;background:rgba(255,255,255,0.04);color:var(--hero-text);}
.chip:hover{border-color:var(--gold-fill);color:var(--gold-fill);}
/* chips outside the hero (e.g. filter bar on paper background) stay dark-on-light */
.filter-bar .chip{border-color:var(--rule-strong);background:transparent;color:var(--ink);}
.filter-bar .chip:hover{border-color:var(--ink);color:var(--ink);}
.filter-bar .chip.is-active{background:var(--ink);color:var(--paper);border-color:var(--ink);}

.result-board{border:1px solid var(--rule-strong);background:var(--paper-card);box-shadow:0 24px 48px rgba(10,12,30,0.28);border-radius:3px;}
.result-board-head{padding:14px 18px;border-bottom:1px solid var(--rule);display:flex;justify-content:space-between;align-items:baseline;}
.result-board-head h2{font-family:'Source Serif 4',serif;font-size:15px;font-weight:600;margin:0;}
.result-board-head span{font-size:11px;color:var(--ink-faint);}
.rb-item{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--rule);}
.rb-item:last-child{border-bottom:none;}
.rb-rank{font-family:'Source Serif 4',serif;font-size:20px;font-weight:600;color:var(--gold);width:22px;flex-shrink:0;}
.rb-info{flex:1;min-width:0;}
.rb-title{font-size:14px;font-weight:500;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rb-meta{font-size:12px;color:var(--ink-faint);}
.rb-price{font-family:'IBM Plex Mono',monospace;font-size:14px;font-weight:500;flex-shrink:0;}

/* ---------- section heads ---------- */
.section{padding:44px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px;padding-bottom:14px;border-bottom:1px solid var(--rule);}
.section-head h2{font-family:'Source Serif 4',serif;font-size:27px;font-weight:600;margin:0;letter-spacing:-0.01em;}
.section-head .see-all{font-size:13px;border-bottom:1px solid var(--ink-faint);padding-bottom:2px;}

/* ---------- exam chip filter bar ---------- */
.filter-bar{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;margin-bottom:30px;}
.filter-bar .chip{white-space:nowrap;}
.filter-bar .chip.is-active{background:var(--ink);color:var(--paper);border-color:var(--ink);}

/* ---------- product grid ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule);}
.card{background:var(--paper);padding:18px;position:relative;display:flex;flex-direction:column;}
.card-tab{position:absolute;top:0;left:18px;width:34px;height:6px;border-radius:0 0 3px 3px;}
.card-thumb{aspect-ratio:3/4;background:var(--paper-card);border:1px solid var(--rule);margin:10px 0 14px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;}
.card-thumb .initials{font-family:'Source Serif 4',serif;font-size:30px;font-weight:600;color:var(--ink-faint);}
.format-badge{position:absolute;bottom:8px;right:8px;font-size:10px;font-family:'IBM Plex Mono',monospace;background:var(--ink);color:var(--paper);padding:2px 7px;border-radius:2px;letter-spacing:0.03em;}
.stock-badge{position:absolute;bottom:8px;right:8px;font-size:10px;font-family:'IBM Plex Mono',monospace;background:var(--red);color:var(--paper);padding:2px 7px;border-radius:2px;letter-spacing:0.03em;}
.card-institute{font-size:11px;color:var(--ink-faint);margin:0 0 5px;}
.card-title{font-size:14.5px;font-weight:600;line-height:1.4;margin:0 0 10px;flex:1;color:var(--ink);}
.card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;}
.card-price{font-family:'IBM Plex Mono',monospace;font-size:15px;font-weight:500;}
.card-add{border:1px solid var(--ink);background:none;color:var(--ink);font-size:12px;padding:6px 12px;cursor:pointer;border-radius:2px;}
.card-add:hover{background:var(--ink);color:var(--paper);}
.card-add[disabled]{border-color:var(--rule-strong);color:var(--ink-faint);cursor:not-allowed;}

/* ---------- institute strip ---------- */
.inst-strip{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:26px 0;}
.inst-strip-inner{display:flex;align-items:center;gap:36px;flex-wrap:wrap;}
.inst-strip-label{font-size:12px;color:var(--ink-faint);white-space:nowrap;}
.inst-logo{border:1px solid var(--rule-strong);padding:9px 16px;font-family:'Source Serif 4',serif;font-size:13px;font-weight:600;color:var(--ink-soft);}
.inst-cta{margin-left:auto;font-size:13px;border-bottom:1px solid var(--ink);padding-bottom:2px;}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--rule);padding:44px 0 28px;margin-top:20px;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px;}
.foot-grid h4{font-size:12px;text-transform:uppercase;letter-spacing:0.04em;color:var(--ink-faint);margin:0 0 14px;font-weight:500;}
.foot-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:13px;}
.foot-grid p{font-size:13px;color:var(--ink-soft);line-height:1.6;margin:0 0 10px;}
.copyright{font-size:12px;color:var(--ink-faint);padding-top:20px;border-top:1px solid var(--rule);}

/* ---------- shop page ---------- */
.shop-head{padding:36px 0 22px;}
.crumb{font-size:12px;color:var(--ink-faint);margin-bottom:10px;}
.shop-head h1{font-family:'Source Serif 4',serif;font-size:32px;font-weight:600;margin:0;}
.shop-body{display:grid;grid-template-columns:250px 1fr;gap:40px;padding-bottom:60px;}
.filter-panel{border:1px solid var(--rule);}
.filter-group{padding:18px;border-bottom:1px solid var(--rule);}
.filter-group:last-child{border-bottom:none;}
.filter-group h4{font-size:12px;text-transform:uppercase;letter-spacing:0.03em;color:var(--ink-faint);margin:0 0 12px;font-weight:500;}
.filter-opt{display:flex;align-items:center;gap:9px;font-size:13.5px;margin-bottom:10px;cursor:pointer;}
.filter-opt input{accent-color:var(--ink);width:14px;height:14px;}
.filter-opt:last-child{margin-bottom:0;}
.filter-opt .n{margin-left:auto;color:var(--ink-faint);font-size:12px;}
.price-inputs{display:flex;align-items:center;gap:8px;}
.price-inputs input{width:100%;border:1px solid var(--rule-strong);background:var(--paper-card);color:var(--ink);padding:7px 8px;font-size:13px;font-family:'IBM Plex Mono',monospace;border-radius:2px;}
.results-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;}
.results-count{font-size:13px;color:var(--ink-soft);}
.sort-select{border:1px solid var(--rule-strong);background:var(--paper-card);color:var(--ink);padding:8px 10px;font-size:13px;font-family:inherit;border-radius:2px;}
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule);}
.pagination{display:flex;justify-content:center;gap:6px;margin-top:32px;}
.page-num{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid var(--rule-strong);font-family:'IBM Plex Mono',monospace;font-size:12.5px;cursor:pointer;border-radius:2px;}
.page-num.is-active{background:var(--ink);color:var(--paper);border-color:var(--ink);}

@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr;gap:32px;}
  .hero h1{font-size:36px;}
  .hero::before{width:260px;height:260px;top:-20px;right:-40px;}
  .grid{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .shop-body{grid-template-columns:1fr;}
  .filter-panel{margin-bottom:24px;}
  .shop-grid{grid-template-columns:repeat(2,1fr);}
}

/* =====================================================================
   HOMEPAGE (2026 redesign) — every class starts with .hm so nothing
   here changes the Browse, product or other pages.
   ===================================================================== */
.hm{background:var(--soft);padding-bottom:12px;}
:root[data-theme="dark"] .hm{background:var(--paper);}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .hm{background:var(--paper);} }

/* ---------- hero ---------- */
.hm-hero{position:relative;overflow:hidden;background:
  radial-gradient(120% 90% at 0% 0%, #0F4C92 0%, rgba(15,76,146,0) 60%),
  linear-gradient(115deg,#072850 0%,#0B3A6E 48%,#0D4A8A 100%);color:#fff;}
.hm-hero::before{ /* faint study doodles, like the mockup */
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 70l40-18 40 18-40 18z'/%3E%3Cpath d='M50 80v18c12 8 28 8 40 0V80M110 70v26'/%3E%3Cpath d='M300 40a22 22 0 1 1 30 20v10h-16V60a22 22 0 0 1-14-20zM314 80h16'/%3E%3Cpath d='M40 250c14-8 28-8 42 0 14-8 28-8 42 0v50c-14-8-28-8-42 0-14-8-28-8-42 0zM82 250v50'/%3E%3Cpath d='M440 300a18 18 0 1 1 24 16v8h-12v-8a18 18 0 0 1-12-16z'/%3E%3Cpath d='M230 360l60-20M236 376l66-22'/%3E%3C/svg%3E");
  background-repeat:repeat;background-size:520px 420px;}
.hm-hero-art{position:absolute;top:0;right:0;bottom:0;width:54%;margin:0;}
.hm-hero-art img{width:100%;height:100%;object-fit:cover;object-position:35% 55%;display:block;}
.hm-hero-art::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,#0B3A6E 0%,rgba(11,58,110,.85) 12%,rgba(11,58,110,.25) 32%,rgba(11,58,110,0) 50%);}
.hm-hero-inner{position:relative;z-index:1;padding-top:58px;padding-bottom:62px;}
.hm-hero-copy{max-width:600px;}
.hm-title{font-family:var(--head-font);font-weight:800;font-size:clamp(38px,5.2vw,62px);line-height:1.04;letter-spacing:-0.025em;margin:0;color:#fff;}
.hm-title span{color:var(--accent);}
.hm-subtitle{font-family:var(--head-font);font-weight:700;font-size:clamp(22px,2.6vw,31px);line-height:1.2;letter-spacing:-0.01em;margin:10px 0 18px;color:#fff;}
.hm-subtitle span{color:var(--accent);}
.hm-lede{font-size:17px;line-height:1.65;color:#D7E6F5;margin:0 0 30px;max-width:54ch;}

/* search card */
.hm-search{position:relative;background:#fff;color:#0F2A47;border-radius:14px;padding:26px 18px 16px;box-shadow:0 18px 40px rgba(3,20,45,.35);max-width:600px;}
.hm-search-tab{position:absolute;top:-13px;left:16px;background:var(--accent);color:var(--accent-ink);font-family:var(--head-font);font-weight:600;font-size:13.5px;padding:5px 14px;border-radius:8px 8px 8px 2px;}
.hm-search-row{display:flex;gap:10px;}
.hm-search-field{flex:1;display:flex;align-items:center;gap:10px;border:1.5px solid #D5E1EE;border-radius:10px;padding:0 14px;background:#fff;transition:border-color .15s;}
.hm-search-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(21,101,192,.14);}
.hm-search-field svg{width:19px;height:19px;color:#5D7C94;flex-shrink:0;}
.hm-search-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15.5px;padding:13px 0;color:#0F2A47;}
.hm-search-row button{display:flex;align-items:center;gap:8px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-family:var(--head-font);font-weight:600;font-size:15px;padding:0 22px;cursor:pointer;}
.hm-search-row button svg{width:17px;height:17px;}
.hm-search-row button:hover{background:#FFB800;}
.hm-search-row button:focus-visible{outline:3px solid var(--brand);outline-offset:2px;}
.hm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.hm-chip{display:inline-flex;align-items:center;gap:7px;background:#EAF2FB;color:#0B3A6E;border-radius:999px;padding:7px 14px;font-size:13.5px;font-weight:500;}
.hm-chip i{width:8px;height:8px;border-radius:50%;display:inline-block;}
.hm-chip:hover{background:#D6E6F8;}
.hm-chip-more{background:transparent;border:1.5px solid #D5E1EE;}

/* ---------- trust strip ---------- */
.hm-trust{list-style:none;margin:-28px 0 0;padding:18px 22px;position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:var(--paper-card);border-radius:14px;box-shadow:0 10px 30px rgba(11,58,110,.10);border:1px solid var(--rule);}
.hm-trust li{display:flex;align-items:center;gap:12px;padding:6px 10px;}
.hm-trust li + li{border-left:1px solid var(--rule);}
.hm-trust-ic{width:42px;height:42px;border-radius:12px;background:#E6F0FB;color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.hm-trust-ic svg{width:22px;height:22px;}
.hm-trust strong{display:block;font-family:var(--head-font);font-size:14px;font-weight:600;color:var(--ink);}
.hm-trust small{display:block;font-size:12.5px;color:var(--ink-faint);margin-top:2px;line-height:1.35;}

/* ---------- section heads ---------- */
.hm-section{padding-top:52px;}
.hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px;}
.hm-head h2{font-family:var(--head-font);font-weight:700;font-size:clamp(24px,2.8vw,32px);letter-spacing:-0.015em;margin:0;color:var(--ink);position:relative;padding-bottom:12px;}
.hm-head h2 span{color:var(--brand);}
.hm-head h2::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:4px;border-radius:4px;background:var(--accent);}
.hm-link{font-family:var(--head-font);font-size:14px;font-weight:600;color:var(--brand);white-space:nowrap;padding-bottom:12px;}
.hm-link::after{content:" \2192";}
.hm-link:hover{text-decoration:underline;}
.hm-empty{padding:22px;border:1.5px dashed var(--rule-strong);border-radius:12px;color:var(--ink-faint);background:var(--paper-card);}

/* ---------- exam category cards ---------- */
.hm-cats{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.hm-cat{--c:#1565C0;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--paper-card);border:1px solid var(--rule);border-radius:14px;padding:24px 14px 18px;transition:border-color .15s, box-shadow .15s;}
.hm-cat:hover{border-color:var(--c);box-shadow:0 12px 26px -12px var(--c);}
.hm-cat:focus-visible{outline:3px solid var(--c);outline-offset:2px;}
.hm-cat-ic{width:58px;height:58px;border-radius:50%;background:var(--c);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:14px;}
.hm-cat-ic svg{width:27px;height:27px;}
.hm-cat strong{font-family:var(--head-font);font-size:16px;font-weight:600;color:var(--ink);margin-bottom:6px;}
.hm-cat small{font-size:13px;line-height:1.45;color:var(--ink-soft);flex:1;margin-bottom:14px;}
.hm-cat em{font-style:normal;font-family:var(--head-font);font-size:13.5px;font-weight:600;color:var(--brand);}
.hm-cat em::after{content:" \2192";}

/* ---------- product cards (home only) ---------- */
.hm-products.grid{grid-template-columns:repeat(4,1fr);gap:18px;background:none;border:0;}
.hm-products .card{background:var(--paper-card);border:1px solid var(--rule);border-radius:14px;padding:14px 14px 16px;overflow:hidden;transition:box-shadow .15s,border-color .15s;}
.hm-products .card:hover{border-color:var(--rule-strong);box-shadow:0 14px 30px -16px rgba(11,58,110,.45);}
.hm-products .card-tab{left:0;right:0;width:auto;height:4px;border-radius:0;}
.hm-products .card-thumb{border-radius:10px;margin:6px 0 14px;background:#EAF2FB;border:0;}
.hm-products .format-badge,.hm-products .stock-badge{font-family:var(--head-font);font-weight:600;font-size:10.5px;border-radius:6px;padding:3px 8px;background:var(--brand-deep);color:#fff;}
.hm-products .stock-badge{background:var(--logo-red);}
.hm-products .card-institute{font-size:12px;color:var(--ink-faint);}
.hm-products .card-title{font-family:var(--head-font);font-weight:600;font-size:14.5px;line-height:1.4;}
.hm-products .card-title a:hover{color:var(--brand);}
.hm-products .card-price{font-family:var(--head-font);font-weight:700;font-size:17px;color:var(--ink);}
.hm-products .card-add{border:0;background:var(--brand);color:#fff;font-family:var(--head-font);font-weight:600;font-size:13px;padding:8px 16px;border-radius:8px;}
.hm-products .card-add:hover{background:var(--brand-deep);}
.hm-products .card-add[disabled]{background:var(--rule);color:var(--ink-faint);}

/* ---------- free practice promos ---------- */
.hm-practice{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.hm-promo{display:flex;gap:18px;align-items:flex-start;border-radius:16px;padding:26px 26px 24px;color:#fff;position:relative;overflow:hidden;}
.hm-promo-news{background:linear-gradient(120deg,#0B3A6E,#1565C0);}
.hm-promo-test{background:linear-gradient(120deg,#4B3BC4,#6C5CE7);}
.hm-promo:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.hm-promo-ic{width:50px;height:50px;border-radius:14px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.hm-promo-ic svg{width:26px;height:26px;}
.hm-promo h3{font-family:var(--head-font);font-weight:700;font-size:20px;line-height:1.25;margin:0 0 8px;}
.hm-promo p{margin:0 0 16px;font-size:14.5px;line-height:1.55;color:rgba(255,255,255,.86);max-width:44ch;}
.hm-promo-cta{display:inline-block;background:var(--accent);color:var(--accent-ink);font-family:var(--head-font);font-weight:600;font-size:14px;padding:9px 16px;border-radius:9px;}
.hm-promo:hover .hm-promo-cta{background:#fff;}

/* ---------- institutes ---------- */
.hm-inst{margin-top:56px;background:var(--paper-card);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
.hm-inst-inner{display:flex;align-items:center;gap:28px;padding-top:30px;padding-bottom:30px;flex-wrap:wrap;}
.hm-inst-copy h2{font-family:var(--head-font);font-weight:700;font-size:19px;margin:0 0 4px;color:var(--ink);}
.hm-inst-copy p{margin:0;font-size:13.5px;color:var(--ink-faint);}
.hm-inst-list{display:flex;flex-wrap:wrap;gap:10px;flex:1;}
.hm-inst-logo{border:1px solid var(--rule-strong);border-radius:10px;padding:9px 16px;font-family:var(--head-font);font-size:13.5px;font-weight:600;color:var(--ink-soft);background:var(--paper);}
.hm-inst-logo:hover{border-color:var(--brand);color:var(--brand);}
.hm-inst-cta{margin-left:auto;background:var(--brand);color:#fff;font-family:var(--head-font);font-weight:600;font-size:14px;padding:11px 18px;border-radius:10px;white-space:nowrap;}
.hm-inst-cta:hover{background:var(--brand-deep);}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .hm-cats{grid-template-columns:repeat(3,1fr);}
  .main-nav{gap:20px;}
}
@media (max-width:980px){
  .hm-trust{grid-template-columns:repeat(2,1fr);}
  .hm-trust li:nth-child(3){border-left:0;}
  .hm-products.grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:860px){
  /* header: burger menu */
  .nav-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;border-radius:10px;border:1px solid var(--rule);cursor:pointer;order:3;margin-left:4px;}
  .nav-burger span{display:block;width:20px;height:2px;border-radius:2px;background:var(--ink);margin:0 auto;transition:transform .2s,opacity .2s;}
  .topbar{flex-wrap:wrap;gap:12px;}
  .top-actions{margin-left:auto;gap:10px;}
  .top-actions .top-link,.top-hello{display:none;}
  .cart-label{display:none;}
  .cart-pill{padding:7px 8px 7px 10px;}
  .brand{min-width:0;flex:1;}
  .brand-logo{height:auto;max-height:40px;max-width:100%;}
  .main-nav{display:none;order:4;width:100%;flex-direction:column;gap:0;padding:6px 0 10px;border-top:1px solid var(--rule);}
  .main-nav a{padding:12px 4px;border-bottom:1px solid var(--rule);}
  .main-nav a::after{display:none;}
  .nav-mobile-only{display:block;}
  .nav-toggle:checked ~ .main-nav{display:flex;}
  .nav-toggle:checked ~ .nav-burger span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle:checked ~ .nav-burger span:nth-child(2){opacity:0;}
  .nav-toggle:checked ~ .nav-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  /* hero: photo sits under the copy */
  .hm-hero-art{position:relative;width:100%;height:230px;display:block;order:2;}
  .hm-hero{display:flex;flex-direction:column;}
  .hm-hero-art::after{background:linear-gradient(180deg,#0B3A6E 0%,rgba(11,58,110,0) 38%);}
  .hm-hero-inner{padding-top:36px;padding-bottom:34px;}
  .hm-lede{font-size:16px;}
  .hm-trust{margin-top:18px;}
  .hm-practice{grid-template-columns:1fr;}
  .hm-inst-cta{margin-left:0;}
}
@media (max-width:560px){
  .wrap{padding-left:18px;padding-right:18px;}
  .hm-search{padding:24px 14px 14px;}
  .hm-search-row{flex-direction:column;}
  .hm-search-row button{justify-content:center;padding:13px;}
  .hm-trust{grid-template-columns:1fr;padding:10px 14px;}
  .hm-trust li + li{border-left:0;border-top:1px solid var(--rule);}
  .hm-cats{grid-template-columns:repeat(2,1fr);gap:12px;}
  .hm-cat{padding:18px 10px 14px;}
  .hm-products.grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .hm-promo{flex-direction:column;padding:22px;}
  .hm-head{align-items:flex-start;flex-direction:column;gap:4px;}
  .hm-link{padding-bottom:0;}
}
@media (prefers-reduced-motion: reduce){
  .main-nav a::after,.hm-cat,.hm-products .card,.nav-burger span{transition:none;}
}

/* ---------- product card: clickable cover + free sample link (all pages) ---------- */
a.card-thumb{cursor:pointer;transition:opacity .15s;}
a.card-thumb:hover{opacity:.9;}
.card-sample{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin:-2px 0 12px;font-size:12.5px;font-weight:600;color:#1565C0;background:#EAF2FB;border-radius:999px;padding:5px 11px;}
.card-sample:hover{background:#D6E6F8;}
.card-sample:focus-visible{outline:2px solid #1565C0;outline-offset:2px;}
.card-title{flex:0 0 auto;}
.card-foot{margin-top:auto;}
@media (prefers-reduced-motion: reduce){ a.card-thumb{transition:none;} }
