/* Skillz 3D — pārdošanas lapa
   Zīmola krāsas no BRANDING/Color-pallette.png, fonti: Montserrat (virsraksti) + Open Sans (teksts) */
:root {
  --bg: #0d1115;
  --bg-2: #12181d;
  --surface: #171e25;
  --surface-2: #1d262e;
  --line: #2a343e;
  --line-soft: #202931;
  --text: #eef2f5;
  --muted: #9ba4aa;
  --cyan: #2cb9fa;
  --cyan-ink: #04121b;
  --cyan-soft: rgba(44, 185, 250, .12);
  --pro: #f5b83d;
  --pro-ink: #1d1404;
  --pro-soft: rgba(245, 184, 61, .12);
  --warn-bg: #3a2f0b;
  --warn: #ffd866;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --gutter: 20px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none; /* horizontāls modeļa grozīšanas vilciens nepārslēdz pārlūka vēsturi */
}
html { overscroll-behavior-x: none; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--cyan-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Demo josla ---------- */
.demo-bar {
  position: relative; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; align-items: center;
  padding: 8px var(--gutter);
  background: repeating-linear-gradient(-45deg, #3a2f0b 0 14px, #33290a 14px 28px);
  color: var(--warn); font-size: .88rem; text-align: center; border-bottom: 1px solid #5c4a12;
}
.demo-bar strong { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; background: var(--warn); color: #241c02; padding: 2px 8px; border-radius: 99px; }

/* ---------- Galvene ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 21, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(13, 17, 21, .9); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.05rem var(--font-head); }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Pogas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: 700 1rem var(--font-head); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 8px 24px -10px rgba(44, 185, 250, .7); }
.btn-primary:hover { background: #57c8fb; }
.btn-pro { background: var(--pro); color: var(--pro-ink); box-shadow: 0 8px 24px -10px rgba(245, 184, 61, .6); }
.btn-pro:hover { background: #f8c862; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn.is-demo { position: relative; }
.btn.is-demo::after {
  content: 'DEMO'; position: absolute; top: -9px; right: 10px;
  font: 700 .62rem/1 var(--font-body); letter-spacing: .1em; padding: 4px 7px; border-radius: 99px;
  background: var(--warn); color: #241c02;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); isolation: isolate; }
.hero::before { /* rasējuma režģis */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(44, 185, 250, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 185, 250, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.05rem, 1.3rem + 3.1vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: #c9d1d7; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: .86rem; font-weight: 600; color: #cfd6db;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(23, 30, 37, .6);
}

.hero-visual { position: relative; }
.viewport {
  margin: 0; position: relative;
  background: radial-gradient(120% 90% at 50% 30%, #1a242d 0%, #11171c 70%);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.viewport-top {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px;
  font: 600 .78rem var(--font-body); color: var(--muted); border-bottom: 1px solid var(--line-soft);
}
.vp-title { color: var(--text); }
.vp-dim { font-variant-numeric: tabular-nums; }
.vp-canvas { position: relative; aspect-ratio: 16 / 10; cursor: grab; touch-action: pan-y; }
.vp-canvas:active { cursor: grabbing; }
.vp-canvas::before { /* gaišs “studijas” fons modelim un melnajai PLA izdrukai */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(90% 85% at 50% 42%, #f4f6f8 0%, #dfe4e8 55%, #c3cbd1 100%);
}
.viewport[data-stage="model"] .vp-canvas::before,
.viewport[data-stage="print"] .vp-canvas::before { opacity: 1; }
.vp-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 1; }
.vp-canvas .vp-fallback { position: relative; z-index: 2; }
.vp-fallback { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .6s; pointer-events: none; }
.viewport.is-ready .vp-fallback { opacity: 0; }
.vp-stages {
  position: absolute; right: 14px; bottom: 50px;
  display: flex; gap: 4px; padding: 4px; border-radius: 99px;
  background: rgba(13, 17, 21, .78); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.vp-stages button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 .82rem var(--font-head); padding: 8px 14px; border-radius: 99px; min-height: 36px;
  transition: background .25s, color .25s;
}
.vp-stages button b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; border: 1px solid currentColor; font-size: .65rem; }
.vp-stages button[aria-selected="true"] { background: var(--cyan); color: var(--cyan-ink); }
.vp-caption { padding: 10px 16px 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); text-align: right; }

.janis-card {
  position: absolute; left: -28px; bottom: 0; width: min(46%, 270px); margin: 0;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow);
}
.janis-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.janis-card figcaption { padding: 7px 10px; font-size: .72rem; color: #cfd6db; background: var(--surface); }
.janis-play {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 6px 10px 6px 8px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(0, 0, 0, .62); color: #fff; font: 700 .72rem var(--font-head);
}
.janis-play svg { width: 16px; height: 16px; fill: currentColor; }
.janis-card.is-expanded { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(92vw, 960px); z-index: 90; }
.janis-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); z-index: 89; }

/* ---------- Sekcijas ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-head-left { text-align: left; margin: 0; }

/* ---------- Process (laika līnija) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(36px, 6vw, 72px); --progress: 0; }
.timeline::before, .timeline::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px);
  background: var(--line);
}
.timeline::after { background: var(--cyan); transform-origin: top; transform: translateX(-1px) scaleY(var(--progress)); box-shadow: 0 0 12px rgba(44, 185, 250, .6); }
.tl-step { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; align-items: center; position: relative; }
.tl-step::before { /* mezgls */
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s;
}
.tl-step.is-on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px var(--cyan-soft); }
.tl-step:nth-child(even) .tl-media { order: 2; }
.tl-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.tl-media img, .tl-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tl-text { max-width: 400px; }
.tl-step:nth-child(odd) .tl-text { justify-self: start; }
.tl-step:nth-child(even) .tl-text { justify-self: end; text-align: right; }
.tl-num { display: block; font: 800 .9rem var(--font-head); color: var(--cyan); letter-spacing: .1em; margin-bottom: 6px; }
.tl-text h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 800; }
.tl-text p { margin-top: 8px; color: #c4ccd2; font-size: 1.05rem; }

/* ---------- Kam ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Moduļi ---------- */
/* 3 kolonnas: 1. rindā instalācija + modelēšana (2 kol.), 2. rindā druka + abi PRO — bez tukšām vietām */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.module > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--line-soft); }
.module-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.module-body > p { color: var(--muted); }
.module-wide { grid-column: span 2; }
.module-wide > img { aspect-ratio: 16 / 5; }
.module-wide .projects { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.module-pro { border-color: rgba(245, 184, 61, .28); background: linear-gradient(180deg, rgba(245, 184, 61, .05), transparent 40%), var(--surface); }
.tag {
  align-self: flex-start; font: 800 .68rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan);
}
.tag-pro { background: var(--pro); color: var(--pro-ink); }
.tag-xs { padding: 3px 6px; font-size: .6rem; margin-right: 6px; vertical-align: 2px; }
.topics { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.topics li { font-size: .82rem; color: #cdd5da; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.projects { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.projects li { background: #f4f5f6; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.projects img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; transition: transform .35s; }
.projects li:hover img { transform: scale(1.06) rotate(-2deg); }
.projects span { font-size: .72rem; font-weight: 600; color: #2a3138; padding: 0 8px 8px; line-height: 1.25; }

/* ---------- Vienkāršotā lapa: galerija zem hero, kompaktas sadaļas ---------- */
.section-gallery { padding-top: clamp(28px, 4vw, 56px); }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head p.course-line {
  display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: #d3dade; font-weight: 600; font-size: .95rem;
}
.h2-sm { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.section-tight .section-head { margin-bottom: clamp(22px, 3vw, 36px); }
.gal-summary { color: #d3dade; font-size: 1.05rem; }
.gal-meta { line-height: 1.45; }

.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.steps3 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.steps3 figcaption { padding: 10px 14px; background: var(--surface); font: 700 .95rem var(--font-head); display: flex; gap: 8px; align-items: center; }
.steps3 figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); color: var(--cyan-ink); font-size: .72rem; }

.extras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.extras li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; }
.extras img { width: 96px; height: 72px; object-fit: cover; border-radius: 9px; }
.extras h3 { font-size: 1rem; }
.extras p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.extras-pro { border-color: rgba(245, 184, 61, .35) !important; }

.plan-plus { font: 700 .95rem var(--font-head); margin: 18px 0 12px; color: var(--pro); }

/* ---------- v4: pārdošanas lapa ---------- */
.hero-notes { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-notes li { position: relative; padding-left: 26px; color: #d3dade; font-size: .95rem; font-weight: 600; }
.hero-notes li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb9fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.problems { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problems li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; }
.problems svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; color: #ff8a6b; background: rgba(255, 138, 107, .12); }
.problems h3 { font-size: 1.02rem; }
.problems p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.ideas-title { text-align: center; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); margin: clamp(34px, 5vw, 52px) 0 18px; }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.idea { margin: 0; position: relative; background: var(--surface); border: 1px dashed rgba(44, 185, 250, .45); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.idea img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.idea-label { position: absolute; left: 10px; top: 10px; z-index: 1; font: 800 .66rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--cyan); color: var(--cyan-ink); }
.idea figcaption { padding: 14px 16px 16px; display: grid; gap: 5px; }
.idea figcaption b { font: 800 1.05rem/1.25 var(--font-head); }
.idea figcaption span { color: #c9d1d7; font-size: .92rem; }
.idea figcaption small { color: var(--muted); font-size: .76rem; }

.program { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(28px, 4vw, 48px); }
.prog { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.prog:nth-child(even) .prog-media { order: 2; }
.prog-media { display: grid; gap: 10px; }
.prog-media-2 { grid-template-columns: 1fr 1fr; }
.prog-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.prog-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prog-media:not(.prog-media-2) img { aspect-ratio: 16 / 9; }
.prog-media figcaption { position: absolute; left: 8px; bottom: 8px; font: 700 .72rem var(--font-head); padding: 4px 9px; border-radius: 99px; background: rgba(13, 17, 21, .8); color: #fff; }
.prog-num { font: 800 .78rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.prog-text h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); font-weight: 800; margin: 8px 0 14px; }
.prog-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prog-text li { position: relative; padding-left: 26px; color: #cfd6db; }
.prog-text li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); }

.eyebrow-pro { color: var(--pro); }
.pro-mod { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 44px); align-items: center; background: var(--surface); border: 1px solid rgba(245, 184, 61, .3); border-radius: 20px; padding: clamp(18px, 3vw, 30px); }
.pro-mod + .pro-mod { margin-top: 20px; }
.pro-mod-text h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 800; margin: 12px 0 10px; }
.pro-mod-text p { color: #c9d1d7; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.ba figure, .laser-path figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.ba img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ba figcaption, .laser-path figcaption { padding: 8px 12px; background: var(--surface-2); font-size: .85rem; color: var(--muted); }
.ba figcaption b { color: var(--text); margin-right: 6px; font-family: var(--font-head); }
.ba-arrow, .laser-path li + li::before { color: var(--pro); font: 800 1.4rem var(--font-head); }
.laser-path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.laser-path img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.laser-path figcaption b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--pro); color: var(--pro-ink); font: 800 .7rem var(--font-head); }
.laser-path figcaption { color: var(--text); font-weight: 600; }

.plans-diff { max-width: 640px; margin-inline: auto; }
.plans-diff b { color: var(--text); }
.pro-mini { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pro-mini li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid rgba(245, 184, 61, .3); border-radius: 12px; padding: 8px; }
.pro-mini img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.pro-mini b { display: block; }
.pro-mini span { font-size: .84rem; color: var(--muted); }

/* ---------- v5 ---------- */
.hero-facts { margin-top: 18px; font-weight: 600; color: #d3dade; font-size: .98rem; }
.proofs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.proof img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.proof-label { position: absolute; left: 10px; top: 10px; z-index: 1; font: 800 .64rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: rgba(13, 17, 21, .82); color: #fff; }
.proof figcaption { padding: 14px 16px 16px; display: grid; gap: 5px; }
.proof figcaption b { font: 800 1rem/1.25 var(--font-head); }
.proof figcaption span { color: #c4ccd2; font-size: .9rem; }
.gal-skill { display: grid; gap: 4px; }
.gal-skill span { font: 800 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gal-skill b { justify-self: start; font: 800 1.05rem var(--font-head); color: var(--cyan-ink); background: var(--cyan); padding: 6px 12px; border-radius: 8px; }
.gal-thumb em { display: block; font-style: normal; color: #5b6670; font-size: .6rem; margin-top: 2px; }
.prog-result { color: var(--text); font-weight: 600; margin: -6px 0 14px; }
.ba-tall { width: 100%; max-width: 560px; justify-self: center; }
.ba-tall img { aspect-ratio: 5 / 7; object-fit: cover; background: #fff; }
.pro-photo { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); justify-self: center; max-width: 420px; width: 100%; }
.pro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pro-photo figcaption { padding: 10px 14px; background: var(--surface-2); color: var(--muted); font-size: .88rem; }
.pro-note { margin-top: 12px; color: var(--pro) !important; font-weight: 600; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; display: grid; gap: 14px; align-content: space-between; }
.quote p { color: #d3dade; }
.quote footer { display: flex; align-items: center; gap: 10px; font: 700 .92rem var(--font-head); }

/* ---------- v6: lietojums un dalībnieki ---------- */
.hero-start { margin-top: 14px; font-weight: 600; color: var(--text); padding-left: 26px; position: relative; }
.hero-start::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb9fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hero-cta + .hero-facts { margin-top: 16px; color: var(--muted); font-weight: 600; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.use img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.use figcaption { padding: 14px 16px 16px; display: grid; gap: 5px; }
.use figcaption b { font: 800 1.05rem/1.25 var(--font-head); }
.use figcaption span { color: #c4ccd2; font-size: .92rem; }
.uses-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }
.members-title { text-align: center; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); font-weight: 800; margin: clamp(44px, 6vw, 68px) 0 20px; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.member { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.member-media { position: relative; background: #000; }
.member-media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.member blockquote { margin: 0; padding: 20px 22px; display: grid; gap: 14px; align-content: center; }
.member blockquote p { color: #d3dade; }
.member blockquote footer { display: flex; align-items: center; gap: 10px; font: 700 .88rem var(--font-head); }
.member-short { margin: 18px auto 0; max-width: 680px; text-align: center; }
.member-short p { font-size: 1.05rem; color: #d3dade; font-style: italic; }
.member-short footer { margin-top: 6px; color: var(--muted); font: 700 .9rem var(--font-head); }
.story-tag { font: 800 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.student-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.student-quotes blockquote { margin: 0; padding: 20px 22px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line-soft); border-left: 3px solid var(--cyan); border-radius: 16px; background: linear-gradient(160deg, rgba(44, 185, 250, .1), transparent 55%), var(--surface); }
.student-quotes p { margin: 0; color: #d3dade; }
@media (max-width: 760px) { .student-quotes { grid-template-columns: 1fr; } }
.mworks-title { text-align: center; font-size: 1.15rem; font-weight: 800; margin: 34px 0 16px; color: #d3dade; }
.mworks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mwork { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.mwork-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; }
.mwork-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mwork figcaption { padding: 14px 16px 16px; display: grid; gap: 5px; }
.mwork figcaption b { font: 800 1rem/1.25 var(--font-head); }
.mwork figcaption span { color: #c4ccd2; font-size: .9rem; }
@media (max-width: 760px) {
  .mworks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .mwork { scroll-snap-align: start; }
}
.gal-label { display: block; font: 800 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.gal-summary [data-f="summary"] { display: block; }

@media (max-width: 980px) {
  .members { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .uses { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .use { scroll-snap-align: start; }
  .member { grid-template-columns: 1fr; }
  .member-media img { aspect-ratio: 4 / 3; height: auto; }
  .hero-start { font-size: .92rem; }
}

@media (min-width: 981px) {
  .gal-stage { aspect-ratio: auto; min-height: 480px; } /* izstiepjas līdz informācijas kolonnas augstumam */
}

/* ---------- Rezultāts hero: kursa projekti → paša projekti ---------- */
.outcome {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px;
  margin-top: 24px; max-width: 34em;
}
.outcome-col { border: 1px solid var(--line); background: rgba(23, 30, 37, .7); border-radius: 12px; padding: 12px 14px; }
.outcome-col p { font-size: .95rem; color: #cfd6db; margin-top: 4px; line-height: 1.4; }
.outcome-col b { color: var(--text); }
.outcome-own { border-style: dashed; border-color: rgba(44, 185, 250, .5); background: var(--cyan-soft); }
.outcome-arrow { align-self: center; color: var(--cyan); font: 800 1.3rem var(--font-head); }
.outcome-label { display: block; font: 800 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.outcome-own .outcome-label { color: var(--cyan); }

/* ---------- Kursa rādītāji ---------- */
.course-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 auto 28px; max-width: 860px; }
.course-stats > div { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 18px; text-align: center; }
.course-stats dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.course-stats dd { margin: 4px 0 0; font: 800 1.5rem var(--font-head); }
.course-stats .review-flag { font-family: var(--font-body); vertical-align: 4px; }

/* ---------- 3D projektu galerija ---------- */
.gallery {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.gal-stage {
  position: relative; min-height: 420px; aspect-ratio: 4 / 3; cursor: grab; touch-action: pan-y;
  background: radial-gradient(90% 85% at 50% 40%, #f6f8f9 0%, #e1e6ea 60%, #c8d0d6 100%);
}
.gal-stage:active { cursor: grabbing; }
.gal-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.gal-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.gal-stage.is-fallback .gal-fallback { opacity: 1; }
.gal-stage.is-fallback canvas { opacity: 0; }
.gal-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 .85rem var(--font-head); color: #4a5560; opacity: 0; transition: opacity .2s; }
.gal-stage.is-loading .gal-status { opacity: 1; }
.gal-hint {
  position: absolute; left: 14px; bottom: 14px; font: 700 .75rem var(--font-head); color: #3b4651;
  background: rgba(255, 255, 255, .75); padding: 6px 10px; border-radius: 99px; pointer-events: none;
}
.gal-info { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line-soft); }
.gal-num { font: 800 .8rem var(--font-head); letter-spacing: .12em; color: var(--cyan); }
.gal-info h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; }
.gal-facts { margin: 0; display: grid; gap: 12px; }
.gal-facts dt { font: 800 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gal-facts dd { margin: 4px 0 0; color: #d3dade; font-size: 1.02rem; }
.gal-clip { margin: 4px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.gal-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal-clip figcaption {
  position: absolute; left: 8px; top: 8px; font: 700 .68rem var(--font-head); padding: 4px 8px; border-radius: 99px;
  background: rgba(13, 17, 21, .78); color: #fff;
}
.gal-meta { color: var(--muted); font-size: .88rem; margin-top: auto; }
.gal-nav { display: flex; gap: 8px; }
.gal-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 1.1rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.gal-nav button:hover { border-color: var(--cyan); }
.gal-thumbs {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px;
  padding: 14px; border-top: 1px solid var(--line-soft); background: var(--bg-2);
}
.gal-thumb {
  appearance: none; border: 2px solid transparent; background: #f2f4f5; border-radius: 10px; padding: 0; cursor: pointer;
  overflow: hidden; display: flex; flex-direction: column; text-align: left; transition: border-color .2s, transform .2s;
}
.gal-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gal-thumb span { font: 600 .66rem/1.25 var(--font-body); color: #2a3138; padding: 4px 6px 6px; min-height: 2.9em; }
.gal-thumb span b { color: #0b7fb5; }
.gal-thumb:hover { transform: translateY(-2px); }
.gal-thumb[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }

/* ---------- Pēc kursa — tavi projekti ---------- */
.own-examples {
  margin-top: 22px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 20px; align-items: center;
  border: 1px dashed rgba(44, 185, 250, .45); border-radius: 16px; padding: 22px 24px; background: rgba(44, 185, 250, .05);
}
.own-head h3 { font-size: 1.05rem; margin-top: 6px; line-height: 1.35; }
.own-head .outcome-label { color: var(--cyan); }
.own-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.own-list li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.own-list b { font: 800 1rem var(--font-head); }
.own-list span { font-size: .85rem; color: var(--muted); }
.modules-title { font-size: 1.5rem; font-weight: 800; margin: clamp(48px, 6vw, 72px) 0 20px; text-align: center; }

/* ---------- Pasniedzējs ---------- */
.teacher { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.teacher-photo {
  margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 5.4;
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(80% 70% at 50% 35%, #4cc7fb 0%, #1a8fd0 55%, #0f5f8f 100%);
  border: 1px solid rgba(44, 185, 250, .35); box-shadow: var(--shadow);
}
.teacher-photo img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 92%; height: auto; }
.teacher-role { font: 700 1.05rem var(--font-head); color: var(--cyan); margin: 8px 0 18px; }
.teacher-copy > p:not(.eyebrow):not(.teacher-role) { color: #c9d1d7; font-size: 1.05rem; margin-top: 12px; max-width: 36em; }
.teacher-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.teacher-facts li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.teacher-facts b { font: 800 1.1rem var(--font-head); }
.teacher-facts span { font-size: .85rem; color: var(--muted); }

/* ---------- Dalībnieku darbi ---------- */
.works { display: grid; grid-template-columns: 1.15fr 1fr .95fr; gap: 18px; align-items: stretch; }
.work { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-media { display: grid; background: #000; position: relative; }
.work-label { position: absolute; left: 10px; top: 10px; z-index: 1; font: 700 .72rem var(--font-head); padding: 5px 9px; border-radius: 99px; background: rgba(13, 17, 21, .8); color: #fff; }
.work-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-media-2 { grid-template-columns: 1fr 1fr; gap: 2px; }
.work-media-2 img { aspect-ratio: 2 / 3; }
.work-body { padding: 20px 22px 24px; display: grid; gap: 12px; align-content: start; }
.work blockquote { margin: 0; display: grid; gap: 14px; }
.work blockquote p { color: #c9d1d7; font-size: .98rem; }
.work blockquote footer { display: flex; align-items: center; gap: 10px; font: 700 .92rem var(--font-head); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font: 800 .72rem var(--font-head); border: 1px solid rgba(44, 185, 250, .35); }
.work-quote { padding: 28px 26px; justify-content: center; position: relative; background: linear-gradient(160deg, rgba(44, 185, 250, .1), transparent 55%), var(--surface); }
.work-quote .quote-mark { font: 800 5rem/0.6 var(--font-head); color: var(--cyan); opacity: .5; height: 40px; }
.work-quote blockquote p { font-size: 1.08rem; color: var(--text); }

/* ---------- Garantija + BUJ pie paketēm ---------- */
.guarantee {
  display: flex; gap: 18px; align-items: center; max-width: 822px; margin: 26px auto 0;
  padding: 20px 24px; border-radius: 16px; border: 1px solid rgba(46, 204, 113, .35);
  background: linear-gradient(90deg, rgba(46, 204, 113, .1), rgba(46, 204, 113, .03));
}
.guarantee-icon { flex: none; width: 52px; height: 52px; color: #5fe39a; }
.guarantee h3 { font-size: 1.08rem; }
.guarantee p { color: #c4ccd2; font-size: .95rem; margin-top: 4px; }
.faq-plans { max-width: 822px; margin: clamp(48px, 6vw, 72px) auto 0; }
.faq-title { font-size: 1.35rem; margin-bottom: 8px; text-align: center; }
.faq-more { text-align: center; color: var(--muted); margin-top: 18px; font-size: .95rem; }

/* ---------- Pārskatīšanas piezīmes (tikai priekšskatījumā) ---------- */
.review-note, .review-flag { display: none; }
.show-review .review-flag {
  display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 7px; border-radius: 99px;
  font: 700 .66rem/1.5 var(--font-body); letter-spacing: .02em; text-transform: uppercase;
  color: #241c02; background: var(--warn);
}
.show-review .review-note {
  display: block; font-size: .8rem; color: var(--warn); background: var(--warn-bg);
  border: 1px dashed #7a6316; border-radius: 8px; padding: 6px 10px; align-self: flex-start;
}
.show-review .review-note::before { content: '◆ '; }
.review-block { margin: 22px auto 0; width: fit-content; max-width: 100%; }

/* ---------- Paketes ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 480px); justify-content: center; gap: 22px; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px 26px; display: flex; flex-direction: column;
}
.plan-pro { border-color: rgba(245, 184, 61, .5); box-shadow: 0 0 0 1px rgba(245, 184, 61, .15), 0 30px 60px -30px rgba(245, 184, 61, .35); }
.plan-flag { position: absolute; top: -13px; left: 28px; font: 800 .72rem/1 var(--font-head); padding: 7px 12px; border-radius: 99px; background: var(--pro); color: var(--pro-ink); }
.plan h3 { font-size: 1.3rem; }
.plan-head { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.plan-sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.plan-head .price { align-items: center; }
.plan-head .price .review-flag { margin-left: 8px; }
.compare { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.compare li { position: relative; padding-left: 30px; display: grid; }
.compare li b { font-weight: 600; }
.compare li span { font-size: .84rem; color: var(--muted); }
.compare li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb9fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.compare li.no { opacity: .5; }
.compare li.no b { text-decoration: line-through; text-decoration-color: rgba(155, 164, 170, .6); }
.compare li.no::before { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba4aa' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--line); }
.plan-pro .compare li::before { background-color: var(--pro-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b83d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.pro-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; flex: 1; align-content: start; }
.pro-result { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(245, 184, 61, .35); background: var(--surface-2); display: flex; flex-direction: column; }
.pro-result img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pro-result figcaption { padding: 10px 12px 12px; display: grid; gap: 3px; font-size: .82rem; color: var(--muted); }
.pro-result figcaption b { color: var(--text); font-size: .92rem; line-height: 1.25; }
.pro-result .tag { justify-self: start; }
.pro-result .review-flag { justify-self: start; margin-left: 0; }
.plan-meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.plan:not(.plan-pro) .compare { flex: 1; align-content: start; }
.price { display: flex; align-items: flex-start; gap: 4px; margin-top: 14px; font-family: var(--font-head); }
.price .amount { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.price .cur { font-size: 1.6rem; font-weight: 700; margin-top: 4px; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.checks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb9fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-pro .checks li::before { background-color: var(--pro-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b83d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.demo-note { margin-top: 10px; font-size: .8rem; color: var(--warn); text-align: center; }
.plans-foot { text-align: center; color: var(--muted); margin-top: 26px; font-size: .95rem; }

/* ---------- BUJ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font: 700 1.02rem var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cyan); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: #c4ccd2; }

/* ---------- Noslēgums + kājene ---------- */
.final-cta { padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(60% 120% at 50% 100%, rgba(44, 185, 250, .14), transparent 70%); }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.site-footer { border-top: 1px solid var(--line-soft); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-inner p:last-child { text-align: right; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px;
  background: var(--warn-bg); color: var(--warn); border: 1px solid #7a6316; box-shadow: var(--shadow); font-size: .9rem;
}

/* ---------- Atklāšanās animācija ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Pielāgošana ekrāniem ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding-bottom: 0; }
  .janis-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; display: grid; grid-template-columns: 44% 1fr; align-items: center; background: var(--surface); }
  .janis-card figcaption { background: none; font-size: .85rem; padding: 10px 14px; }
  .janis-card.is-expanded { display: block; }
  /* “Ar skaņu” — video kreisajā apakšējā stūrī, nevis pār parakstu */
  .janis-play { top: auto; right: auto; left: 6px; bottom: 6px; min-height: 28px; padding: 4px 9px 4px 6px; font-size: .68rem; }
  .janis-card.is-expanded .janis-play { left: auto; right: 8px; top: 8px; bottom: auto; }
  /* Planšetē: modelēšana pilnā platumā augšā, pārējās 4 kartītes 2×2 */
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-wide { grid-column: 1 / -1; order: -1; }
  .module-wide > img { aspect-ratio: 16 / 6; }
  .teacher { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .gallery { grid-template-columns: 1fr; }
  .gal-info { border-left: 0; border-top: 1px solid var(--line-soft); }
  .gal-stage { min-height: 0; }
  .gal-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .gal-thumb { scroll-snap-align: center; }
  .own-examples { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr 1fr; }
  .extras-pro { grid-column: 1 / -1; }
  .problems { grid-template-columns: 1fr; }
  .proofs { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: 1fr 1fr 1fr; }
  .prog, .pro-mod { grid-template-columns: 1fr; }
  .prog:nth-child(even) .prog-media { order: 0; }
  .laser-path { grid-template-columns: repeat(4, 1fr); }
  .outcome { max-width: none; }
  .teacher-facts { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .work-quote { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .timeline::before, .timeline::after { left: 7px; }
  .tl-step { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .tl-step::before { left: 8px; top: 14px; transform: translate(-50%, 0); }
  .tl-step:nth-child(even) .tl-media { order: 0; }
  .tl-step:nth-child(even) .tl-text { justify-self: start; text-align: left; }
  .tl-step .tl-text { order: -1; }
  .cards-3, .modules, .plans, .works, .teacher { grid-template-columns: 1fr; }
  .module-wide { order: 0; }
  .module-wide > img { aspect-ratio: 16 / 7; }
  .teacher-photo { max-width: 420px; width: 100%; margin-inline: auto; }
  .teacher-facts { grid-template-columns: repeat(3, 1fr); }
  .teacher-facts li { padding: 12px; }
  .guarantee { flex-direction: column; align-items: flex-start; text-align: left; }
  /* Telefonā: hero bez 3D loga — galerija ir uzreiz pēc pirmā ekrāna */
  .hero { padding-bottom: 8px; }
  .hero { padding-top: 20px; }
  .hero-cta { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
  .hero-cta .btn { flex: 1 1 0; padding: 12px 10px; font-size: .95rem; }
  .demo-bar { padding: 6px var(--gutter); font-size: .82rem; }
  .problems li { padding: 14px; }
  .proofs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .proof { scroll-snap-align: start; }
  .hero-facts { font-size: .88rem; }
  .ba-tall { grid-template-columns: 1fr auto 1fr; }
  .ba-tall .ba-arrow { transform: none; }
  .ideas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .idea { scroll-snap-align: start; }
  .laser-path { grid-template-columns: 1fr 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .hero-notes { gap: 6px; flex-direction: column; margin-top: 14px; }
  .hero-notes li { font-size: .9rem; }
  .section-head p.course-line { font-size: .74rem; padding: 5px 10px; white-space: nowrap; max-width: 100%; }
  .steps3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .steps3 li { scroll-snap-align: start; }
  .extras { grid-template-columns: 1fr; }
  .gal-stage { aspect-ratio: 1 / 1; }
  .gal-info { gap: 10px; order: 2; }
  /* Telefonā sīktēli uzreiz zem modeļa — pārslēgšana bez ritināšanas */
  .gal-thumbs { order: 1; border-top: 0; border-bottom: 1px solid var(--line-soft); padding: 10px; grid-auto-columns: 84px; }
  .gal-nav { display: none; }
  .course-stats { grid-template-columns: 1fr; gap: 8px; }
  .course-stats > div { display: flex; justify-content: space-between; align-items: baseline; text-align: left; padding: 10px 14px; }
  .course-stats dd { font-size: 1.15rem; margin: 0; }
  .own-list { grid-template-columns: 1fr; }
  .outcome { grid-template-columns: 1fr; }
  .outcome-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .pro-results { grid-template-columns: 1fr 1fr; }
  .plans { gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-inner p:last-child { text-align: center; }
  .footer-inner img { order: -1; }
  .vp-stages { bottom: 44px; }
  .vp-stages button { padding: 7px 10px; font-size: .78rem; }
  .vp-canvas { aspect-ratio: 4 / 3; }
}
@media (max-width: 400px) {
  .header-inner .brand span { display: none; }
  .vp-stages button b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .timeline::after { transform: translateX(-1px) scaleY(1); }
}
.member-media img.pos-bottom { object-position: 50% 92%; }

/* ---------- v8: galerijas projektu izvēle, hero saite, “Kāpēc Fusion?” ---------- */
.hero-link { align-self: center; color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(44, 185, 250, .5); padding-bottom: 2px; }
.hero-link:hover { color: var(--cyan); }
.hero-cta { align-items: center; gap: 18px; }
#gallery { scroll-margin-top: 84px; }

.gal-picker { grid-column: 1 / -1; padding: 16px 18px 18px; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gal-pick-title { font: 800 1rem var(--font-head); }
.gal-picker .gal-nav { display: flex; align-items: center; gap: 8px; }
.gal-picker .gal-nav button { width: 42px; height: 42px; }
.gal-count { font: 800 .9rem var(--font-head); color: var(--muted); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.gal-picker .gal-thumbs {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 18px;
  padding: 4px 2px 8px; margin: 0; border: 0; background: none; position: relative; grid-template-columns: none;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.gal-picker .gal-thumb {
  flex: 0 0 132px; scroll-snap-align: start; background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden; color: var(--muted); transition: border-color .2s, background .2s, transform .15s;
}
.gal-picker .gal-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 6px; }
.gal-picker .gal-thumb span { font: 700 .85rem/1.2 var(--font-head); color: inherit; padding: 9px 10px; min-height: 0; text-align: center; }
.gal-picker .gal-thumb:hover { border-color: rgba(44, 185, 250, .6); color: var(--text); transform: translateY(-2px); }
.gal-picker .gal-thumb[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 0 0 3px var(--cyan-soft); }
.gal-info h3 { margin-top: 2px; }

.why-fusion { max-width: 820px; margin: 0 auto clamp(32px, 5vw, 52px); padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--cyan); }
.why-fusion h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why-fusion p { color: #c9d1d7; }
.plan-plus { font: 600 1rem/1.5 var(--font-body); color: var(--text); margin: 18px 0 22px; flex: 1; }

@media (max-width: 760px) {
  .gal-picker { order: 1; padding: 12px 0 14px 14px; border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .gal-bar { padding-right: 14px; }
  .gal-picker .gal-thumbs { padding-right: 14px; scroll-padding: 0 14px; }
  .gal-picker .gal-thumb { flex-basis: 112px; }  /* malā redzama daļa no nākamā */
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-link { align-self: flex-start; }
}
/* Sīktēlu rinda nedrīkst izstiept galerijas režģi — tā ritinās savā kolonnā */
.gal-picker { min-width: 0; }
@media (max-width: 980px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v9: galerija kā režģis, panelis 50:50; programmas lielie HOME kadri ---------- */
.gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 981px) {
  .gal-stage { aspect-ratio: 4 / 3; min-height: 0; align-self: start; }
}
.gal-info { padding: 24px 26px; gap: 12px; justify-content: flex-start; }
.gal-clip { margin: 0; width: 100%; }
.gal-clip video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.gal-meta { margin-top: 0; }

.gal-picker .gal-thumbs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 10px;
  overflow: visible; scroll-snap-type: none; padding: 0;
}
.gal-picker .gal-thumb { flex: none; width: 100%; scroll-snap-align: none; }
.gal-picker .gal-thumb img { aspect-ratio: 16 / 11; }
.gal-picker .gal-thumb span { font-size: .9rem; padding: 10px 8px; }
.gal-stage { scroll-margin-top: 80px; }

.prog-full { grid-template-columns: 1fr; gap: 20px; }
.prog-full .prog-text { max-width: 760px; }
.prog-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prog-wide figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.prog-wide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.prog-wide figcaption { padding: 10px 14px; background: var(--surface-2); color: var(--text); font: 700 .95rem var(--font-head); border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gal-info { order: 1; padding: 18px 16px; }
  .gal-picker { order: 2; padding: 14px; border-bottom: 0; border-top: 1px solid var(--line-soft); }
  .gal-bar { padding-right: 0; }
  .gal-picker .gal-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .gal-picker .gal-thumb img { aspect-ratio: 4 / 3; }
  .prog-wide { grid-template-columns: 1fr; }
}

/* ---------- v10: hero demonstrācija (3 soļi) un nodarbības fragments ---------- */
[hidden] { display: none !important; }
.demo { display: grid; gap: 12px; }
.vp-canvas { overflow: hidden; }
.vp-photo, .vp-canvas .vp-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.vp-photo-sketch { object-fit: contain; background: #fff; }
.viewport[data-stage="sketch"] .vp-photo-sketch,
.viewport[data-stage="print"] .vp-photo-print { opacity: 1; }
.viewport[data-stage="model"]:not(.is-ready) .vp-fallback { opacity: 1; }
.vp-canvas canvas { opacity: 0; transition: opacity .45s ease; }
.viewport[data-stage="model"] .vp-canvas canvas { opacity: 1; }
.viewport[data-stage="sketch"] .vp-canvas::before, .viewport[data-stage="print"] .vp-canvas::before { opacity: 0; }
.viewport[data-stage="model"] .vp-canvas::before { opacity: 1; }
.vp-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; font: 700 .75rem var(--font-head); color: #3b4651;
  background: rgba(255, 255, 255, .85); padding: 6px 10px; border-radius: 99px; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.viewport[data-stage="model"] .vp-hint { opacity: 1; }
.viewport[data-stage="model"] .vp-canvas { cursor: grab; }
.viewport:not([data-stage="model"]) .vp-canvas { cursor: default; }

.vp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-top: 1px solid var(--line-soft); }
.vp-steps button {
  position: relative; overflow: hidden; appearance: none; cursor: pointer; min-height: 46px; padding: 10px 8px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font: 700 .9rem var(--font-head); transition: background .25s, color .25s, border-color .25s;
}
.vp-steps button:hover { border-color: rgba(44, 185, 250, .6); color: var(--text); }
.vp-steps button[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink); box-shadow: 0 0 0 3px var(--cyan-soft); }
.vp-steps button span { position: relative; z-index: 1; }
.vp-prog { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(4, 18, 27, .45); transform-origin: left; transform: scaleX(var(--p, 0)); }
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 12px; }
.vp-caption { padding: 0; border: 0; text-align: left; }
.vp-resume { appearance: none; border: 0; background: none; color: var(--cyan); font: 700 .85rem var(--font-head); cursor: pointer; padding: 6px 0; text-decoration: underline; }

.lesson { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.lesson video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.lesson figcaption { padding: 10px 14px; background: var(--surface); color: #cfd6db; font-size: .85rem; }
.demo-actions .btn { font-size: 1rem; }
#lesson-open { border-color: rgba(44, 185, 250, .55); }

@media (max-width: 760px) {
  .hero-visual { margin-top: 8px; }
  .vp-steps button { font-size: .78rem; padding: 10px 4px; min-height: 44px; }
  .vp-foot { flex-wrap: wrap; }
}

/* ---------- v11: hero 3 kustīgi soļi; “Kā notiek mācības?” ---------- */
.vp-canvas { aspect-ratio: 16 / 9; background: #0b0f12; cursor: default; touch-action: auto; }
.vp-canvas::before { display: none; }
.vp-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.vp-clip.is-active { opacity: 1; }
/* v12: pogu teksts drīkst pāriet nākamajā rindā; poga kļūst augstāka */
.btn { text-align: center; line-height: 1.25; }
.vp-steps button { line-height: 1.2; }
.vp-steps button span { display: block; overflow-wrap: break-word; hyphens: manual; }
.vp-resume { min-height: 44px; padding: 10px 0; text-align: left; line-height: 1.3; }
.faq summary { padding-right: 40px; }
.faq summary::after { right: 8px; line-height: 1; }
@media (max-width: 760px) {
  .vp-steps { gap: 6px; padding: 8px; }
  .vp-steps button { font-size: .8125rem; min-height: 52px; padding: 8px 6px; }
  .vp-foot { padding: 0 12px 6px; }
  .vp-resume { font-size: .875rem; }
}
/* Ļoti šaurā ekrānā trīs soļi — viens zem otra */
@media (max-width: 379px) {
  .vp-steps { grid-template-columns: 1fr; }
  .vp-steps button { min-height: 44px; text-align: left; padding: 10px 14px; font-size: .875rem; }
}

.howto {
  max-width: 880px; margin: 0 auto clamp(26px, 4vw, 40px); padding: clamp(20px, 3vw, 30px); text-align: center;
  background: var(--surface); border: 1px solid rgba(44, 185, 250, .4); border-radius: 18px; scroll-margin-top: 12px;
  box-shadow: 0 0 0 4px var(--cyan-soft);
}
.howto h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.howto p { color: #d3dade; margin: 10px auto 0; max-width: 640px; font-size: 1.05rem; }
.howto-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.howto-steps li { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .92rem; }
.howto-steps b { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: var(--cyan-ink); font: 800 .85rem var(--font-head); }
@media (max-width: 760px) { .howto-steps { grid-template-columns: 1fr; } }
.hero-cta .btn-ghost { border-color: rgba(44, 185, 250, .55); }

/* ---------- v12: kopienas bonuss; palaišanas akcijas vieta ---------- */
.bonus {
  max-width: 880px; margin: 0 auto clamp(22px, 3.5vw, 34px); padding: 18px 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 14px;
}
.bonus-icon { width: 40px; height: 40px; color: var(--cyan); margin-top: 2px; }
.bonus h3 { font-size: 1.08rem; line-height: 1.3; }
.bonus p { margin-top: 6px; color: #c9d1d6; }
@media (max-width: 560px) { .bonus { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; } .bonus-icon { width: 34px; height: 34px; } }

.offer {
  max-width: 880px; margin: 0 auto 22px; padding: 14px 20px; border-radius: 14px; text-align: center;
  background: rgba(255, 190, 60, .1); border: 1px solid rgba(255, 190, 60, .55);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px;
}
.offer p { margin: 0; }
.offer-name { font: 800 1.05rem var(--font-head); color: var(--pro); }
.offer-countdown { font: 700 1rem var(--font-head); font-variant-numeric: tabular-nums; }
.offer-countdown span { font-size: 1.15rem; }
.price-old { display: block; width: 100%; font: 600 1rem var(--font-body, inherit); color: var(--muted); text-decoration-thickness: 2px; }
.price-old[hidden] { display: none !important; }
.plan-head .price { flex-wrap: wrap; }

/* ---------- v13: īsts kursa skats Skool vietnē; PRO cenas priekšrocība ---------- */
.howto { max-width: 960px; }
.howto-shots {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start;
  margin-top: 22px; text-align: left;
}
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #f7f6f2; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.shot figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 700 .98rem var(--font-head); color: var(--text); }
.shot figcaption b {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); color: var(--cyan-ink); font: 800 .8rem var(--font-head);
}
@media (max-width: 760px) {
  .howto-shots { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shot-list img { max-width: 380px; }
  .howto { padding: 18px 12px; }
  .howto-shots { gap: 22px; }
}

.pro-save {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; line-height: 1.45; font-size: .95rem;
  background: var(--pro-soft); border: 1px solid rgba(245, 184, 61, .45); color: #f3e6c8;
}
.pro-save b { color: var(--pro); white-space: nowrap; }
.pro-save[hidden] { display: none !important; }
.shot { display: flex; flex-direction: column; }
.shot figcaption { order: -1; margin: 0 0 10px; }

/* ---------- v14: nodarbības fragments Skool blokā ---------- */
.howto { max-width: 1060px; }
.howto-shots { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 22px; }
.lesson-player {
  position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f7f6f2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  /* Skool video loga vieta kadrā (procentos no kadra) */
  --vx: 2.03%; --vy: 16.29%; --vw: 95.42%; --vh: 80.51%;
}
.lesson-player .lp-shot { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.lp-video { position: absolute; left: var(--vx); top: var(--vy); width: var(--vw); height: var(--vh); border-radius: 8px; overflow: hidden; pointer-events: none; }
.lesson-player.is-playing .lp-video { pointer-events: auto; background: #000; }
.lp-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lp-play {
  position: absolute; left: 50%; top: calc(var(--vy) + var(--vh) / 2); transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 24px); min-height: 48px; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--cyan); color: var(--cyan-ink); font: 800 1rem/1.25 var(--font-head); text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45), 0 0 0 4px rgba(44, 185, 250, .25);
}
.lp-play:hover { filter: brightness(1.08); }
.lp-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lp-note { margin: 10px 2px 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .howto-shots { grid-template-columns: minmax(0, 1fr); }
  .lp-play { font-size: .9rem; padding: 10px 14px; min-height: 44px; }
}

/* Skool kadri ir tumšajā tēmā — fons kā Skool */
.lesson-player { background: #202020; }
.shot img { background: #202020; }
@media (min-width: 761px) { .howto-shots { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); } }
/* Šaurā telefonā Skool kadri izmanto visu kastes platumu, lai saraksts paliek salasāms */
@media (max-width: 420px) { .howto { padding: 18px 10px; } .howto-shots { margin-inline: -4px; } .howto-steps { margin-inline: 4px; } }
/* Poga video loga apakšdaļā — HOME modelis paliek redzams */
.lp-play { top: auto; bottom: calc(100% - var(--vy) - var(--vh) + 4%); transform: translateX(-50%); }
@media (max-width: 760px) { .lp-play { font-size: .85rem; padding: 8px 14px; min-height: 44px; bottom: calc(100% - var(--vy) - var(--vh) + 3%); } }

/* ---------- v15 ---------- */
/* Hero: tikai video un trīs soļu pogas */
.vp-steps { border-top: 0; }
/* Ievads zem hero: divas rindkopas */
#rezultats .section-head p + p { margin-top: 12px; }
/* PRO piemēra paskaidrojums */
.pro-example { margin-top: 12px; color: var(--muted); font-size: .95rem; }
/* “Kā notiek mācības?”: saraksts un nodarbība vienā augstumā datorā */
.howto-shots { margin-top: 20px; }
@media (min-width: 761px) { .howto-shots { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.shot figcaption { font: 700 .95rem var(--font-head); color: var(--muted); }
.lp-play { white-space: nowrap; }
/* Bonuss zem cenām, virs garantijas */
.bonus { margin: clamp(22px, 3.5vw, 32px) auto 0; }
.bonus + .guarantee { margin-top: 18px; }
.plans + .bonus { max-width: 822px; }

/* ---------- v17 ---------- */
/* PRO kartīte: “Viss no pamatkursa” + divi ieguvumi; pogas datorā vienā augstumā */
.plan-includes { margin: 18px 0 0; font: 700 .95rem var(--font-head); color: var(--pro); }
.plan-pro .compare { flex: 1; align-content: start; margin-top: 14px; }
@media (max-width: 760px) { .plan .compare { flex: none; } }
/* Kopīgais cenu enkurs: nobīde zem fiksētās navigācijas */
.price-anchor { display: block; height: 0; scroll-margin-top: 20px; }
/* Logo: emblēma bez tukšām malām; uz lapas sākumu */
#sakums { scroll-margin-top: 100vh; }
.brand img { width: 44px; height: 44px; }
.brand:focus-visible, .footer-brand:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 50%; }
.footer-brand { display: inline-flex; border-radius: 50%; }
.footer-brand img { width: 52px; height: 52px; display: block; }
@media (max-width: 760px) { .brand img { width: 40px; height: 40px; } .footer-brand img { width: 48px; height: 48px; } }
@media (max-width: 760px) { .footer-inner .footer-brand { order: -1; } }

/* ---------- Juridiskās lapas (/lietosanas-noteikumi, /privatuma-politika) ---------- */
.legal-page .header-inner { justify-content: space-between; }
.legal-page .header-inner .btn { margin-left: auto; }
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 760px; }
.legal h1 { font: 800 clamp(1.9rem, 4.5vw, 2.6rem)/1.15 var(--font-head); margin: 0 0 20px; }
.legal h2 { font: 800 1.2rem/1.3 var(--font-head); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--cyan); }
.legal a { color: var(--cyan); }
.legal-meta { padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2); margin-bottom: 28px !important; }
.footer-inner a[aria-current="page"] { color: var(--text); }
/* Ja dalībnieku kartīšu skaits ir nepāra, pēdējā kartīte ir centrēta savā rindā */
@media (min-width: 981px) { .members > .member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); } }
