@layer reset, tokens, base, layout, components, utilities, pages;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
  ul, ol { padding: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; }
}

@layer tokens {
  :root {
    --c-navy-950: #071d38;
    --c-navy-900: #0a284d;
    --c-navy-800: #123b68;
    --c-blue-700: #175ab6;
    --c-blue-100: #eaf3ff;
    --c-red-700: #c70012;
    --c-red-600: #df0b1c;
    --c-red-100: #fff0f1;
    --c-ink: #10233e;
    --c-muted: #617086;
    --c-line: #dfe6ef;
    --c-surface: #ffffff;
    --c-surface-2: #f6f9fd;
    --c-success: #17733f;
    --c-success-bg: #eaf8f0;
    --c-warning-bg: #fff8e6;
    --shadow-sm: 0 6px 18px rgb(9 34 64 / 7%);
    --shadow-md: 0 14px 34px rgb(9 34 64 / 12%);
    --radius-sm: .55rem;
    --radius-md: .85rem;
    --radius-lg: 1.2rem;
    --wt-container: 1200px;
    --max: var(--wt-container);
    --content: 780px;
    --step--1: clamp(.86rem, .82rem + .16vw, .96rem);
    --step-0: clamp(1rem, .96rem + .18vw, 1.08rem);
    --step-1: clamp(1.16rem, 1.06rem + .42vw, 1.38rem);
    --step-2: clamp(1.45rem, 1.27rem + .7vw, 1.85rem);
    --step-3: clamp(1.85rem, 1.52rem + 1.3vw, 2.55rem);
    --step-4: clamp(2.4rem, 1.9rem + 2vw, 3.65rem);
  }
}

@layer base {
  html { color-scheme: light; }
  body {
    min-width: 320px;
    color: var(--c-ink);
    background: var(--c-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--step-0);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
  a:hover { color: var(--c-red-700); }
  :focus-visible { outline: 3px solid #6aa9ff; outline-offset: 3px; }
  h1, h2, h3, h4 { color: var(--c-navy-950); line-height: 1.15; letter-spacing: -.025em; }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); }
  p + p { margin-top: 1em; }
  ::selection { background: #ffd6da; color: #071d38; }
}

@layer layout {
  .container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .narrow { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
  .section { padding-block: clamp(3rem, 6vw, 5.8rem); }
  .section--soft { background: var(--c-surface-2); }
  .stack { display: grid; gap: var(--stack-gap, 1rem); }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, .75rem); }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.6rem); }
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  @media (max-width: 920px) {
    .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
  }
  @media (max-width: 620px) {
    .grid-5, .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  }
}

@layer components {
  .skip-link {
    position: fixed; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-180%);
    padding: .65rem .9rem; background: var(--c-navy-950); color: white; border-radius: .4rem;
  }
  .skip-link:focus { transform: none; }

  .site-header { position: relative; top: 0; z-index: 50; border-bottom: 1px solid rgb(223 230 239 / 80%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
  .site-header.is-sticky { position: sticky; }
  .header-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 900; letter-spacing: -.03em; color: var(--c-navy-950); }
  .brand-mark { width: 38px; height: 38px; color: var(--c-navy-900); }
  .brand-copy { display: grid; line-height: 1; }
  .brand-name { font-size: 1.05rem; white-space: nowrap; }
  .brand-name b { color: var(--c-red-600); }
  .brand-tagline { margin-top: .22rem; font-size: .5rem; font-weight: 600; letter-spacing: 0; color: var(--c-muted); }
  .nav { justify-self: center; }
  .nav-list { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
  .nav a { font-size: .9rem; font-weight: 750; text-decoration: none; color: var(--c-navy-950); }
  .nav a[aria-current="page"] { color: var(--c-red-700); }
  .header-contact { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
  .nav-toggle { display: none; border: 0; background: transparent; color: var(--c-navy-950); padding: .45rem; border-radius: .4rem; }
  .nav-toggle svg { width: 26px; height: 26px; }
  @media (max-width: 940px) {
    .header-inner { grid-template-columns: 1fr auto; gap: 1rem; }
    .header-contact { display: none; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav { grid-column: 1 / -1; justify-self: stretch; display: none; padding-bottom: 1rem; }
    .nav[data-open="true"] { display: block; }
    .nav-list { align-items: stretch; flex-direction: column; gap: .2rem; }
    .nav a { display: block; padding: .7rem .1rem; }
  }

  .eyebrow { color: var(--c-red-600); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
  .lead { max-width: 62ch; color: #43546a; font-size: var(--step-1); }
  .section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
  .section-head p { margin-top: .55rem; color: var(--c-muted); }
  .text-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }

  .btn {
    min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: .3rem; cursor: pointer;
    font-size: .82rem; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .btn:hover { transform: translateY(-1px); color: inherit; }
  .btn--primary { background: var(--c-red-600); color: #fff; box-shadow: 0 7px 18px rgb(199 0 18 / 18%); }
  .btn--primary:hover { background: #bd0011; color: white; }
  .btn--secondary { background: #fff; color: var(--c-navy-950); border-color: var(--c-navy-800); }
  .btn--ghost { background: transparent; color: var(--c-navy-900); border-color: var(--c-line); }
  .btn--wide { width: 100%; }

  .icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
  .icon-bubble { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--c-blue-100); color: var(--c-navy-800); }
  .icon-bubble svg { width: 24px; height: 24px; }

  .hero { overflow: hidden; background: radial-gradient(circle at 70% 18%, #eef5ff 0 24%, transparent 45%); }
  .hero-grid { min-height: 650px; display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
  .hero-copy h1 { max-width: 13ch; margin-top: .7rem; }
  .hero-copy h1 strong { color: var(--c-red-600); }
  .hero-copy .lead { margin-top: 1.2rem; max-width: 53ch; }
  .check-list { display: grid; gap: .55rem; margin-top: 1.15rem; list-style: none; }
  .check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; font-weight: 680; }
  .check-list .icon { margin-top: .28rem; color: var(--c-red-600); }
  .hero-actions { margin-top: 1.5rem; }
  .rating-line { margin-top: 1.35rem; color: var(--c-muted); font-size: .86rem; }
  .rating-line b { color: var(--c-navy-950); }
  .hero-visual { position: relative; min-height: 500px; border-radius: 1.2rem; background: linear-gradient(135deg, #dbe7f4, #f8f2ee 55%, #e2ecf7); box-shadow: var(--shadow-md); overflow: hidden; isolation: isolate; }
  .hero-visual::before { content: ""; position: absolute; inset: 15% 15% 0 38%; border-radius: 50% 50% 0 0; background: linear-gradient(155deg, #f2c7ad 0 24%, #e8b18e 25% 44%, #7f1631 45% 100%); transform: rotate(-5deg); box-shadow: 0 0 0 26px rgb(255 255 255 / 20%); }
  .hero-visual::after { content: ""; position: absolute; left: 10%; right: 8%; bottom: 9%; height: 18%; border-radius: 1rem; background: linear-gradient(#fff, #edf2f8); transform: perspective(400px) rotateX(58deg); box-shadow: 0 10px 30px rgb(7 29 56 / 20%); }
  .study-dot { position: absolute; z-index: -1; width: 210px; height: 210px; border-radius: 50%; filter: blur(4px); background: rgb(23 90 182 / 12%); }
  .study-dot--1 { top: 8%; left: 6%; }
  .study-dot--2 { right: 2%; bottom: 4%; width: 150px; height: 150px; background: rgb(223 11 28 / 10%); }
  .hero-badges { position: absolute; z-index: 3; right: -7%; top: 19%; display: grid; gap: .8rem; }
  .metric-card { min-width: 160px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid #e5ebf3; border-radius: .75rem; background: rgb(255 255 255 / 96%); box-shadow: var(--shadow-sm); }
  .metric-card strong { display: block; font-size: 1rem; line-height: 1.1; }
  .metric-card small { color: var(--c-muted); }
  @media (max-width: 1050px) { .hero-badges { right: 1rem; } }
  @media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 3.5rem; }
    .hero-visual { min-height: 430px; }
    .hero-copy h1 { max-width: 15ch; }
  }
  @media (max-width: 560px) {
    .hero-visual { min-height: 350px; }
    .hero-badges { top: auto; bottom: 1rem; left: 1rem; right: 1rem; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .metric-card { min-width: 0; grid-template-columns: 1fr; gap: .25rem; padding: .55rem; text-align: center; }
    .metric-card .icon-bubble { width: 34px; height: 34px; margin-inline: auto; }
    .metric-card small { font-size: .65rem; }
  }

  .course-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
  .course-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--art-a, #d9e8f8), var(--art-b, #f7dde0)); }
  .course-media::before, .course-media::after { content: ""; position: absolute; border-radius: 50%; }
  .course-media::before { width: 42%; aspect-ratio: 1; left: 13%; top: 20%; background: rgb(255 255 255 / 45%); box-shadow: 95px 42px 0 rgb(8 46 84 / 18%), 200px -25px 0 rgb(255 255 255 / 25%); }
  .course-media::after { width: 55%; height: 16%; left: 28%; bottom: 13%; border-radius: 999px; background: rgb(7 29 56 / 42%); transform: rotate(-5deg); }
  .course-body { display: grid; align-content: start; padding: 1rem; }
  .tag { width: fit-content; display: inline-flex; padding: .24rem .42rem; border-radius: .28rem; background: var(--c-red-100); color: var(--c-red-700); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
  .tag--blue { background: var(--c-blue-100); color: var(--c-blue-700); }
  .course-card h3 { margin-top: .55rem; font-size: 1rem; }
  .course-meta { display: grid; gap: .42rem; margin-top: .75rem; color: #52637a; font-size: .77rem; }
  .course-meta li { display: flex; gap: .45rem; align-items: center; list-style: none; }
  .course-price { margin-top: .85rem; font-size: 1.12rem; font-weight: 900; color: #111; }
  .course-card .btn { margin-top: .75rem; }

  .benefit { text-align: center; }
  .benefit .icon-bubble { margin-inline: auto; width: 58px; height: 58px; }
  .benefit h3 { margin-top: .8rem; font-size: .95rem; }
  .benefit p { margin-top: .4rem; color: var(--c-muted); font-size: .82rem; }

  .testimonial { padding: 1.35rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: #fff; }
  .testimonial blockquote { color: #384b63; font-style: italic; }
  .person { margin-top: 1rem; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .7rem; }
  .avatar { width: 44px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #f1c7ae, #e7eef8); font-weight: 900; color: var(--c-navy-900); }
  .person strong, .person small { display: block; }
  .person small { color: var(--c-muted); font-size: .72rem; }

  .stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 1.8rem; border-radius: .75rem; background: linear-gradient(100deg, #0a284d, #123b68); color: white; }
  .stat { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .7rem; }
  .stat svg { width: 34px; height: 34px; }
  .stat strong { display: block; font-size: 1.4rem; }
  .stat small { display: block; opacity: .82; }
  @media (max-width: 760px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 450px) { .stats-bar { grid-template-columns: 1fr; } }

  .newsletter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; margin-top: 1rem; background: linear-gradient(90deg, #f6f8fb, #fff); }
  .newsletter-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #ffe7e8; color: var(--c-red-600); }
  .newsletter p { color: var(--c-muted); font-size: .82rem; }
  .newsletter-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: .5rem; }
  .input, .select, .textarea { width: 100%; min-height: 46px; border: 1px solid var(--c-line); border-radius: .35rem; background: white; color: var(--c-ink); padding: .7rem .8rem; }
  .textarea { min-height: 140px; resize: vertical; }
  label { font-weight: 780; font-size: .86rem; }
  .field { display: grid; gap: .35rem; }
  .field small { color: var(--c-muted); }
  @media (max-width: 820px) {
    .newsletter { grid-template-columns: auto 1fr; }
    .newsletter-form { grid-column: 1 / -1; }
  }
  @media (max-width: 520px) { .newsletter-form { grid-template-columns: 1fr; } }

  .site-footer { border-top: 1px solid var(--c-line); padding-top: 2.4rem; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
  .site-footer h3 { font-size: .9rem; }
  .site-footer p, .site-footer a { color: #52637a; font-size: .82rem; }
  .footer-links { display: grid; gap: .35rem; margin-top: .7rem; list-style: none; }
  .footer-links a { text-decoration: none; }
  .footer-bottom { margin-top: 2.2rem; padding-block: 1rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .76rem; }
  @media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

  .breadcrumbs { padding-block: 1rem; color: var(--c-muted); font-size: .8rem; }
  .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
  .breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #9ba7b5; }
  .breadcrumbs a { text-decoration: none; }

  .page-hero { padding-block: clamp(2.8rem, 5vw, 4.8rem); background: radial-gradient(circle at 80% 20%, #edf4fe, transparent 34%), var(--c-surface-2); }
  .page-hero h1 { max-width: 18ch; }
  .page-hero .lead { margin-top: .9rem; }

  .filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: .65rem; padding: .9rem; border: 1px solid var(--c-line); border-radius: .7rem; background: white; box-shadow: var(--shadow-sm); }
  .filters .field { gap: .25rem; }
  .filters label { font-size: .7rem; color: var(--c-muted); }
  @media (max-width: 900px) { .filters { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

  .pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; list-style: none; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: .35rem; text-decoration: none; }
  .pagination [aria-current="page"] { background: var(--c-navy-900); color: white; border-color: var(--c-navy-900); }

  .product-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .product-media { min-height: 430px; border-radius: 1rem; background: linear-gradient(135deg, #dcebf9, #f7e4df); position: relative; overflow: hidden; }
  .product-media::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; left: 15%; top: 15%; background: rgb(255 255 255 / 60%); box-shadow: 260px 90px 0 rgb(10 40 77 / 18%); }
  .product-media::after { content: ""; position: absolute; left: 18%; right: 12%; bottom: 14%; height: 18%; border-radius: 999px; transform: rotate(-4deg); background: rgb(10 40 77 / 42%); }
  .product-content > * + * { margin-top: 1.2rem; }
  .product-buy { position: sticky; top: 100px; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
  .product-buy .price { font-size: 2rem; font-weight: 950; color: var(--c-navy-950); }
  .buy-facts { display: grid; gap: .55rem; margin-block: 1rem; list-style: none; }
  .buy-facts li { display: flex; gap: .55rem; color: #465a72; font-size: .86rem; }
  .availability { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .55rem; border-radius: 999px; background: var(--c-success-bg); color: var(--c-success); font-size: .76rem; font-weight: 850; }
  .availability::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
  @media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-buy { position: static; } }

  .feature-list { display: grid; gap: .9rem; list-style: none; }
  .feature-list li { display: grid; grid-template-columns: 42px 1fr; gap: .7rem; align-items: start; }
  .feature-list h3 { font-size: 1rem; }
  .feature-list p { margin-top: .15rem; color: var(--c-muted); font-size: .88rem; }

  .timeline { display: grid; gap: .1rem; list-style: none; counter-reset: timeline; }
  .timeline li { counter-increment: timeline; display: grid; grid-template-columns: 42px 1fr; gap: .8rem; padding-block: .8rem; border-bottom: 1px solid var(--c-line); }
  .timeline li::before { content: counter(timeline); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--c-blue-100); color: var(--c-blue-700); font-weight: 900; }

  .notice { padding: 1rem 1.1rem; border-left: 4px solid var(--c-blue-700); border-radius: .4rem; background: var(--c-blue-100); color: #274665; }
  .notice--success { border-color: var(--c-success); background: var(--c-success-bg); color: #24553a; }

  .order-done { text-align: center; max-width: 760px; margin-inline: auto; }
  .success-mark { width: 82px; height: 82px; display: grid; place-items: center; margin-inline: auto; border-radius: 50%; background: var(--c-success-bg); color: var(--c-success); }
  .success-mark svg { width: 42px; height: 42px; }
  .order-done h1 { margin-top: 1rem; }
  .order-done .lead { margin: .8rem auto 0; }
  .order-summary { margin-top: 2rem; text-align: left; border: 1px solid var(--c-line); border-radius: 1rem; overflow: hidden; }
  .summary-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); }
  .summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; padding: 1.2rem; }
  .summary-item small { display: block; color: var(--c-muted); }
  .summary-item strong { display: block; margin-top: .12rem; }
  @media (max-width: 560px) { .summary-grid { grid-template-columns: 1fr; } }

  .article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 3rem; align-items: start; }
  .prose { max-width: 75ch; }
  .prose > * + * { margin-top: 1.15rem; }
  .prose h2 { margin-top: 2.2rem; font-size: var(--step-2); }
  .prose h3 { margin-top: 1.6rem; }
  .prose ul, .prose ol { padding-left: 1.2rem; }
  .prose li + li { margin-top: .35rem; }
  .prose blockquote { padding: 1rem 1.2rem; border-left: 4px solid var(--c-red-600); background: var(--c-red-100); color: #483c43; }
  .article-aside { position: sticky; top: 100px; padding: 1rem; border: 1px solid var(--c-line); border-radius: .8rem; }
  .article-aside h2 { font-size: .9rem; }
  .article-aside ul { display: grid; gap: .45rem; margin-top: .7rem; list-style: none; }
  .article-aside a { font-size: .8rem; text-decoration: none; color: var(--c-muted); }
  @media (max-width: 850px) { .article-shell { grid-template-columns: 1fr; } .article-aside { position: static; order: -1; } }

  .article-meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .9rem; color: var(--c-muted); font-size: .8rem; }
  .article-card { overflow: hidden; border: 1px solid var(--c-line); border-radius: .85rem; background: white; box-shadow: var(--shadow-sm); }
  .article-art { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--art-a, #dfeefa), var(--art-b, #fbe3e3)); position: relative; overflow: hidden; }
  .article-art::before { content: ""; position: absolute; width: 58%; height: 58%; border-radius: 50%; background: rgb(255 255 255 / 55%); top: 15%; left: 12%; box-shadow: 200px 70px 0 rgb(10 40 77 / 16%); }
  .article-card-body { padding: 1.1rem; }
  .article-card h2, .article-card h3 { font-size: 1.05rem; }
  .article-card p { margin-top: .55rem; color: var(--c-muted); font-size: .84rem; }
  .article-card .text-link { margin-top: .9rem; }

  .faq { display: grid; gap: .6rem; }
  .faq details { border: 1px solid var(--c-line); border-radius: .6rem; background: #fff; }
  .faq summary { cursor: pointer; list-style: none; padding: .9rem 1rem; font-weight: 850; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; float: right; color: var(--c-red-600); }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { padding: 0 1rem 1rem; color: var(--c-muted); font-size: .9rem; }
}

@layer utilities {
  .muted { color: var(--c-muted); }
  .center { text-align: center; }
  .mt-1 { margin-top: 1rem; }
  .mt-2 { margin-top: 2rem; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@layer pages {
  .home-courses { padding-top: 1rem; }
  .category-results { padding-top: 2rem; }
  .product-title { max-width: 17ch; }
  .blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2rem; }
  .blog-featured .article-art { min-height: 360px; }
  @media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; } }

  @media print {
    .site-header, .site-footer, .newsletter, .btn, .filters, .article-aside { display: none !important; }
    body { color: #000; background: #fff; font-size: 11pt; }
    .section, .page-hero { padding-block: 1rem; background: none; }
    a { text-decoration: none; }
  }
}


/* ==========================================================================
   Joomla + Webtom2 integration layer
   ========================================================================== */
@layer components {
  /* Joomla template aliases */
  .wt-container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .wt-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
  .wt-content, .wt-sidebar { min-width: 0; }
  .wt-main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.6rem); padding-block: clamp(2rem, 5vw, 4rem); }
  .wt-main-grid.has-left { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); }
  .wt-main-grid.has-right { grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); }
  .wt-main-grid.has-left.has-right { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(12rem, 16rem); }
  .wt-sidebar > * + * { margin-top: 1.5rem; }
  @media (max-width: 900px) {
    .wt-main-grid, .wt-main-grid.has-left, .wt-main-grid.has-right, .wt-main-grid.has-left.has-right { grid-template-columns: minmax(0, 1fr); }
    .wt-sidebar--left { order: 2; }
    .wt-content { order: 1; }
    .wt-sidebar--right { order: 3; }
  }

  /* Optional topbar and header modules. */
  .wt-topbar { border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); color: var(--c-muted); font-size: .78rem; }
  .wt-topbar .container { padding-block: .4rem; }
  .header-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: .75rem; min-width: 0; }
  .header-tools > * { margin: 0; }
  .header-tools .moduletable { margin: 0; }

  /* Standard Joomla menu module -> supplied HTML navigation design. */
  .nav .mod-menu, .nav .mod-list { display: flex; align-items: center; gap: 1.7rem; margin: 0; padding: 0; list-style: none; }
  .nav .mod-menu > li, .nav .mod-list > li { position: relative; margin: 0; padding: 0; }
  .nav .mod-menu a, .nav .mod-list a { display: block; font-size: .9rem; font-weight: 750; text-decoration: none; color: var(--c-navy-950); }
  .nav .mod-menu > li > a, .nav .mod-list > li > a { padding-block: 1rem; }
  .nav .active > a, .nav .current > a, .nav a[aria-current="page"] { color: var(--c-red-700); }
  .nav .mod-menu ul, .nav .mod-list ul { position: absolute; z-index: 60; top: calc(100% - .35rem); left: 0; min-width: 13rem; margin: 0; padding: .45rem; border: 1px solid var(--c-line); border-radius: .55rem; background: #fff; box-shadow: var(--shadow-md); list-style: none; opacity: 0; visibility: hidden; transform: translateY(.35rem); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
  .nav .mod-menu li:hover > ul, .nav .mod-menu li:focus-within > ul, .nav .mod-list li:hover > ul, .nav .mod-list li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav .mod-menu ul a, .nav .mod-list ul a { padding: .55rem .7rem; border-radius: .35rem; }
  .nav .mod-menu ul a:hover, .nav .mod-list ul a:hover { background: var(--c-surface-2); }

  /* The HTML prototype used data-open for mobile navigation. */
  @media (max-width: 940px) {
    .nav .mod-menu, .nav .mod-list { align-items: stretch; flex-direction: column; gap: .2rem; }
    .nav .mod-menu > li > a, .nav .mod-list > li > a { padding: .7rem .1rem; }
    .nav .mod-menu ul, .nav .mod-list ul { position: static; min-width: 0; margin-left: .75rem; padding: 0 0 .35rem .7rem; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  }

  /* Joomla system messages. */
  #system-message-container { width: min(calc(100% - 2rem), var(--max)); margin: 1rem auto 0; }
  joomla-alert, .alert { display: block; padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-left: 4px solid var(--c-blue-700); border-radius: .45rem; background: var(--c-blue-100); color: #274665; }
  joomla-alert[type="success"], .alert-success { border-left-color: var(--c-success); background: var(--c-success-bg); color: #24553a; }
  joomla-alert[type="danger"], .alert-danger, .alert-error { border-left-color: var(--c-red-600); background: var(--c-red-100); color: #7b1220; }

  /* Breadcrumb module from Joomla core. */
  .breadcrumbs.mod-breadcrumbs, .mod-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
  .breadcrumbs.mod-breadcrumbs > li:not(:last-child)::after, .mod-breadcrumbs > li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #9ba7b5; }

  /* Joomla content bridge. Keeps core markup usable without copying core views. */
  .com-content-article__body, .item-page .article-body, .item-page { min-width: 0; }
  .item-page > h1, .item-page .page-header h1, .com-content-article .page-header h1 { max-width: 18ch; }
  .item-page .article-info, .article-info { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--c-muted); font-size: .8rem; }
  .blog-items, .items-leading, .items-row { display: grid; gap: 1.2rem; }
  .blog-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-item, .items-leading > div, .items-row > div { overflow: hidden; border: 1px solid var(--c-line); border-radius: .85rem; background: #fff; box-shadow: var(--shadow-sm); padding: 1.1rem; }
  .blog-item img, .item-page img { border-radius: .75rem; }
  @media (max-width: 920px) { .blog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .blog-items { grid-template-columns: 1fr; } }

  /* VirtueMart 4.x visual bridge. No PHP override is required for the first test. */
  .browse-view, .category-view, .productdetails-view, .cart-view { color: var(--c-ink); }
  .browse-view h1, .category-view h1, .productdetails-view h1 { color: var(--c-navy-950); }
  .browse-view .row, .category-view .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .browse-view .row > .product, .category-view .row > .category { width: auto !important; float: none !important; margin: 0 !important; }
  .browse-view .product .spacer, .category-view .category .spacer { height: 100%; overflow: hidden; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
  .browse-view .vm-product-media-container img, .category-view img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .browse-view .vm-product-descr-container-1, .browse-view .vm-product-descr-container-0, .browse-view .product-price, .browse-view .addtocart-area, .browse-view .vm-details-button { margin-inline: 1rem; }
  .browse-view .vm-product-descr-container-1, .browse-view .vm-product-descr-container-0 { padding-top: 1rem; }
  .browse-view .product-price { margin-top: .8rem; font-size: 1.1rem; font-weight: 900; color: #111; }
  .browse-view .vm-details-button { margin-block: .75rem 1rem; }
  .browse-view .vm-details-button a, .browse-view .vm-details-button .product-details, .addtocart-button, input.addtocart-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: .3rem; background: var(--c-red-600); color: #fff; cursor: pointer; font-size: .82rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
  .orderby-displaynumber, .vm-pagination { padding: .9rem; border: 1px solid var(--c-line); border-radius: .7rem; background: #fff; box-shadow: var(--shadow-sm); }
  .vm-pagination ul { display: flex; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
  .vm-pagination a, .vm-pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: .35rem; text-decoration: none; }
  .productdetails-view .vm-product-container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .productdetails-view .vm-product-media-container { min-width: 0; }
  .productdetails-view .vm-product-details-container { min-width: 0; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
  .productdetails-view .PricesalesPrice, .productdetails-view .product-price { font-size: 1.8rem; font-weight: 950; color: var(--c-navy-950); }
  .productdetails-view .addtocart-area { margin-top: 1rem; }
  .productdetails-view input.quantity-input { min-height: 46px; border: 1px solid var(--c-line); border-radius: .35rem; }
  .cart-view table { width: 100%; border-collapse: collapse; }
  .cart-view th, .cart-view td { padding: .75rem; border-bottom: 1px solid var(--c-line); text-align: start; vertical-align: top; }
  @media (max-width: 1000px) { .browse-view .row, .category-view .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 900px) { .productdetails-view .vm-product-container { grid-template-columns: 1fr; } }
  @media (max-width: 620px) { .browse-view .row, .category-view .row { grid-template-columns: 1fr; } }

  /* AJAX navigation indicator from Webtom2. */
  .wt-navigation-progress { position: fixed; z-index: 20000; inset: 0 0 auto 0; height: 3px; background: var(--c-red-600); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
  .wt-is-navigating .wt-navigation-progress { opacity: 1; animation: wt-navigation-progress 1.4s cubic-bezier(.2,.8,.2,1) infinite; }
  .wt-is-navigating #wt-main { cursor: progress; }
  @keyframes wt-navigation-progress { 0% { transform: scaleX(.04); } 55% { transform: scaleX(.72); } 100% { transform: scaleX(.96); } }
}

@layer pages {
  /* Full-width visual blocks are allowed to break out of the standard Joomla content container. */
  #wt-main > .page-hero, #wt-main .page-hero.wt-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); }
}

@supports (view-transition-name: none) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .wt-navigation-progress, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

@layer components {
  .wt-cart-toast {
    position: fixed;
    right: clamp(.75rem, 2vw, 1.5rem);
    bottom: clamp(.75rem, 2vw, 1.5rem);
    z-index: 1200;
    max-width: min(28rem, calc(100vw - 1.5rem));
    padding: .85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--c-success) 28%, var(--c-line));
    border-radius: var(--radius-md);
    background: var(--c-success-bg);
    box-shadow: var(--shadow-md);
    color: var(--c-ink);
    font-size: var(--step--1);
    font-weight: 700;
  }
  .wt-cart-toast.is-error {
    border-color: color-mix(in srgb, var(--c-red-700) 28%, var(--c-line));
    background: var(--c-red-100);
  }
  .wt-cart-toast[hidden] { display: none; }
  form.product[data-wt-cart-pending] .addtocart-button { cursor: progress; opacity: .72; }
}

/* --------------------------------------------------------------------------
   VirtueMart add-to-cart confirmation (cart/padded.php)
   -------------------------------------------------------------------------- */
body.wt-cart-confirm-open { overflow: hidden; }
.wt-cart-confirm-shell { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 1rem; }
.wt-cart-confirm-backdrop { position: absolute; inset: 0; background: rgb(9 22 48 / 62%); backdrop-filter: blur(2px); }
.wt-cart-confirm-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; border-radius: 1rem; background: #fff; box-shadow: 0 24px 80px rgb(0 0 0 / 28%); outline: 0; }
.wt-cart-confirm-content { min-width: 0; }
.wt-cart-confirm { padding: clamp(1rem, 2vw, 1.75rem); }
.wt-cart-confirm__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgb(9 22 48 / 10%); }
.wt-cart-confirm__status { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px; background: #e9f8ef; color: #16753a; font-weight: 900; }
.wt-cart-confirm__title { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; }
.wt-cart-confirm__close { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 1.7rem; line-height: 1; }
.wt-cart-confirm__close:hover, .wt-cart-confirm__close:focus-visible { background: rgb(9 22 48 / 7%); }
.wt-cart-confirm__message { margin-top: 1rem; padding: .85rem 1rem; border-radius: .65rem; }
.wt-cart-confirm__message--error { background: #fff0f0; color: #8f1d1d; }
.wt-cart-confirm__items { display: grid; gap: .75rem; margin-top: 1rem; }
.wt-cart-confirm__item { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem; border: 1px solid rgb(9 22 48 / 10%); border-radius: .75rem; background: #fff; }
.wt-cart-confirm__item-main { display: grid; gap: .2rem; min-width: 0; }
.wt-cart-confirm__product-name { overflow-wrap: anywhere; }
.wt-cart-confirm__sku { color: var(--c-text-muted, #667085); font-size: .85rem; }
.wt-cart-confirm__quantity { display: flex; gap: .45rem; align-items: baseline; white-space: nowrap; color: var(--c-text-muted, #667085); font-size: .9rem; }
.wt-cart-confirm__quantity strong { color: var(--c-navy-900, #091630); font-size: 1rem; }
.wt-cart-confirm__modules { margin-top: 1.25rem; }
.wt-cart-confirm__modules--products { padding-top: 1.25rem; border-top: 1px solid rgb(9 22 48 / 10%); }
.wt-cart-confirm__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(9 22 48 / 10%); }
.wt-cart-confirm__actions a, .wt-cart-confirm__actions button { min-height: 44px; }
@media (max-width: 560px) {
  .wt-cart-confirm-shell { padding: .5rem; align-items: end; }
  .wt-cart-confirm-dialog { width: 100%; max-height: 92vh; border-radius: 1rem 1rem .6rem .6rem; }
  .wt-cart-confirm__item { align-items: flex-start; flex-direction: column; }
  .wt-cart-confirm__actions { display: grid; grid-template-columns: 1fr; }
  .wt-cart-confirm__actions > * { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .wt-cart-confirm-dialog { animation: wt-cart-confirm-in .18s ease-out; }
  @keyframes wt-cart-confirm-in { from { opacity: 0; transform: translateY(.75rem) scale(.99); } to { opacity: 1; transform: none; } }
}

/* Webtom2 0.3.0 AJAX hardening */
.wt-messages-region #system-message-container:empty {
  display: none;
  margin: 0;
}
