/* ============================================================
   Gribu būt radioamatieris — LRAL
   Krāsas un tipogrāfija pārņemtas no lral.lv zīmola sistēmas:
     --color-primary #73281E · --lral-red #901B11
     --color-secondary #1e5aa8 · --color-accent #f59e0b
     Inter, 6px pogu rādiuss, Tailwind tipa ēnas
   ============================================================ */

/* ---------- LRAL zīmola marķieri ---------- */
:root {
  /* Zīmols */
  --brand:        #73281E;
  --brand-dark:   #5a1f17;
  --brand-light:  #8e3226;
  --brand-tint:   #fdf8f7;
  --brand-border: #e0c5c2;
  --red:          #901B11;
  --red-dark:     #7a1610;
  --red-tint:     #f2e6e5;

  --blue:         #1e5aa8;
  --blue-dark:    #0d3b66;
  --blue-light:   #4a90e2;
  --blue-tint:    #e0e7ff;

  --amber:        #f59e0b;
  --amber-dark:   #d97706;

  --grad-primary: linear-gradient(135deg, #73281E 0%, #8e3226 100%);
  --grad-brand:   linear-gradient(135deg, #73281E 0%, #1e5aa8 100%);

  /* Virsmas */
  --bg:        #ffffff;
  --bg-alt:    #fafafa;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --line:      #e2e8f0;
  --line-soft: #f1f5f9;

  --text:      #1e293b;
  --text-soft: #475569;
  --text-dim:  #64748b;
  --on-brand:  #ffffff;

  --success: #1a7a3c;
  --error:   #c0392b;

  /* Forma */
  --radius-s:  6px;
  --radius:    12px;
  --radius-l:  16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);

  --maxw: 1280px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--red); text-decoration-color: currentColor; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-weight: 800; }
h2, h3, h4 { font-weight: 700; }
p { text-wrap: pretty; }

code {
  font-family: var(--mono); font-size: .88em; font-weight: 600;
  background: var(--red-tint); color: var(--brand);
  padding: .14em .45em; border-radius: 4px;
}

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-s) var(--radius-s); z-index: 999;
  font-weight: 700; text-decoration: none; transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Izkārtojums ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 860px; }

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }

.kicker {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--red-tint);
  padding: .3rem .7rem; border-radius: var(--radius-s); margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .9rem; position: relative; }
/* LRAL raksturīgā sarkanā svītra zem virsraksta */
.section-head h2::after {
  content: ""; display: block; width: 92px; height: 4px; margin-top: .85rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 60%, var(--brand-border) 60%, var(--brand-border) 100%);
}
.section-sub { color: var(--text-soft); font-size: clamp(1rem, 1.3vw, 1.08rem); }

.sub-head { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 2.5rem 0 1rem; }
.prose { color: var(--text-soft); max-width: 72ch; margin-bottom: 1.5rem; }
.note { color: var(--text-dim); font-size: .86rem; margin-top: 1rem; }
.mt { margin-top: 2rem; }

/* ---------- Galvene ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; flex-shrink: 0; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; }
/* Oriģinālais logotips ir tumši sarkans; uz sarkanbrūnās galvenes to pārkrāsojam baltu. */
.brand-mark .lral-mark { width: auto; height: 46px; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: -.015em; font-weight: 800; }
.brand-text small { font-size: .7rem; color: rgba(255,255,255,.72); letter-spacing: .03em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav a {
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .89rem; font-weight: 600;
  padding: .5rem .7rem; border-radius: var(--radius-s);
  transition: color .18s, background .18s; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav a.nav-cta {
  background: #fff; color: var(--brand); font-weight: 700; margin-left: .5rem;
}
.nav a.nav-cta:hover { background: var(--red-tint); color: var(--red-dark); }

.header-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-s);
  color: #fff; cursor: pointer; transition: background .18s, border-color .18s;
}
.icon-btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s, opacity .18s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--brand); border-top: 1px solid rgba(255,255,255,.15);
    padding: 1rem var(--pad) 1.4rem; box-shadow: var(--shadow-xl);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .78rem .7rem; font-size: .98rem; }
  .nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
  .brand-text small { display: none; }
}

/* ---------- Pogas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-s); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: var(--shadow-lg); }

.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; margin-top: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.75rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .waves { position: absolute; inset: auto 0 -1px 0; width: 100%; height: 55%; opacity: .85; }
.hero-bg .w { fill: none; stroke-width: 1.8; }
.hero-bg .w1 { stroke: var(--brand); opacity: .22; }
.hero-bg .w2 { stroke: var(--blue); opacity: .16; }
.hero-bg .w3 { stroke: var(--amber); opacity: .18; }

@media (prefers-reduced-motion: no-preference) {
  .hero-bg .w1 { animation: drift 22s ease-in-out infinite; }
  .hero-bg .w2 { animation: drift 28s ease-in-out infinite reverse; }
  .hero-bg .w3 { animation: drift 34s ease-in-out infinite; }
}
@keyframes drift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(-40px) scaleY(1.15); }
}

.glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .16; }
.g1 { width: 460px; height: 460px; top: -170px; right: -110px; background: var(--brand); }
.g2 { width: 380px; height: 380px; bottom: -180px; left: -90px; background: var(--blue); opacity: .1; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { max-width: 760px; }

/* LRAL logotips oriģinālkrāsās — nekādu filtru vai pārzīmēšanas. */
.hero-logo { width: auto; height: clamp(190px, 26vw, 300px); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  color: var(--brand);
  background: #fff; border: 1px solid var(--brand-border);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
@media (prefers-reduced-motion: no-preference) { .dot-live { animation: pulse 2.4s infinite; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); margin-bottom: 1.25rem; letter-spacing: -.035em; }
.grad { color: var(--red); }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--text-soft); max-width: 64ch; margin-bottom: 2rem; }
.lead strong { color: var(--text); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.25rem; }

.hero-next {
  display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: .85rem 1.25rem; margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.hn-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--text-dim); font-weight: 700; }
.hn-date { font-weight: 700; font-size: 1.02rem; }
.hn-count { font-size: .87rem; color: var(--amber-dark); font-weight: 700; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); font-weight: 700; }
.hero-stats dd { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; color: var(--brand); }

/* ---------- Kartītes ---------- */
.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-border); box-shadow: var(--shadow-lg); }
.card-ico {
  font-size: 1.45rem; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius-s); background: var(--red-tint); margin-bottom: 1rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .93rem; }
.card-quiet:hover { transform: none; }

/* ---------- Fakti ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  border-top: 4px solid var(--brand);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .3rem; box-shadow: var(--shadow-sm);
}
.fact-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 700; }
.fact-v { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.fact-n { font-size: .84rem; color: var(--text-soft); }

/* ---------- Moduļi ---------- */
.modules { list-style: none; padding: 0; display: grid; gap: .75rem; }
.module {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; transition: border-color .2s, box-shadow .2s;
}
.module:hover { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.mod-n {
  flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--radius-s); font-weight: 800; font-size: .9rem;
  background: var(--brand); color: #fff;
}
.module > div { flex: 1; min-width: 0; }
.module h4 { font-size: 1rem; margin-bottom: .35rem; }
.module p { color: var(--text-soft); font-size: .92rem; }

.mod-pdf {
  flex-shrink: 0; align-self: center;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  color: var(--brand); background: var(--red-tint);
  border: 1px solid var(--brand-border); border-radius: var(--radius-s);
  padding: .4rem .75rem;
  transition: background .18s, color .18s;
}
.mod-pdf::before { content: "↓"; font-weight: 400; }
.mod-pdf:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 560px) {
  .module { flex-wrap: wrap; }
  .mod-pdf { margin-left: 3rem; align-self: flex-start; }
}

/* ---------- Izceltais bloks ---------- */
.callout {
  display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2rem;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.callout-warn {
  background: color-mix(in srgb, var(--amber) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
  border-left-color: var(--amber);
}
.callout-ico { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.callout h4 { font-size: 1rem; margin-bottom: .35rem; }
.callout p { color: var(--text-soft); font-size: .93rem; }

/* ---------- Laika līnija ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-border));
}
.timeline li { display: flex; gap: 1.3rem; align-items: flex-start; position: relative; }
.tl-dot {
  flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 800; font-size: .95rem; z-index: 1;
  background: var(--brand); border: 3px solid var(--bg); color: #fff;
  box-shadow: 0 0 0 1px var(--brand-border);
}
.tl-body { padding-top: .3rem; }
.tl-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.tl-body p { color: var(--text-soft); font-size: .95rem; margin-bottom: .4rem; }
.tl-meta { font-size: .8rem; color: var(--text-dim); font-weight: 600; }

/* ---------- Tabula ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-sm); }
.tbl { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .93rem; }
.tbl th, .tbl td { padding: 1rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.tbl thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: #fff; font-weight: 700; background: var(--brand);
  border-bottom: none;
}
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--brand-tint); }
.tbl tbody th { font-weight: 700; color: var(--text); font-size: .88rem; }
.tbl td { color: var(--text-soft); }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 999px; margin-bottom: .4rem; color: #fff;
}
.badge-a { background: var(--brand); }
.badge-b { background: var(--blue); }
.badge-c { background: var(--amber-dark); }

/* ---------- Paneļi ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 1.12rem; margin-bottom: 1rem; }

.dates { list-style: none; padding: 0; display: grid; gap: .5rem; }
.dates li {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .72rem .95rem; border-radius: var(--radius-s);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .2s, opacity .2s;
}
.dates li.past { opacity: .45; }
.dates li.next { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); }
.dates li.next::after {
  content: "nākamais"; margin-left: auto; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--amber-dark);
}
.d-day { font-weight: 800; font-size: 1.05rem; }
.d-mon { font-weight: 600; }
.d-y { color: var(--text-dim); font-size: .87rem; }

.steps { padding-left: 1.3rem; display: grid; gap: .65rem; color: var(--text-soft); font-size: .93rem; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.steps strong { color: var(--text); }

.contact-mini {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--text-soft);
}
.contact-mini p { margin-bottom: .2rem; }

/* ---------- YouTube / lekcijas ---------- */
.yt-embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg);
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  display: grid; place-items: center;
}
.yt-facade img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .72; transition: opacity .25s, transform .35s;
}
.yt-facade:hover img { opacity: .55; transform: scale(1.03); }
.yt-facade .yt-play {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: #ff0033; color: #fff; box-shadow: 0 10px 34px rgba(255,0,51,.45);
  transition: transform .22s;
}
.yt-facade .yt-play svg { width: 34px; height: 34px; margin-left: 3px; }
.yt-facade:hover .yt-play { transform: scale(1.09); }
.yt-facade-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.4rem 1.2rem .9rem; text-align: left;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

.yt-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .yt-layout { grid-template-columns: 1fr; } }

.yt-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.yt-brand {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #ff0033; margin-bottom: .6rem;
}
.yt-brand svg { width: 22px; height: 22px; }
.yt-side h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.yt-side > p { color: var(--text-soft); font-size: .92rem; margin-bottom: 1rem; }

.yt-list { list-style: none; padding: 0; display: grid; gap: .3rem; max-height: 340px; overflow-y: auto; margin-bottom: 1.1rem; }
.yt-list li { display: flex; align-items: center; gap: .7rem; }
.yt-list a {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .55rem .7rem; border-radius: var(--radius-s);
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .88rem;
  transition: background .18s;
}
.yt-list a:hover { background: var(--red-tint); color: var(--brand); }
.yt-n {
  flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; color: var(--brand);
}
.yt-dur { margin-left: auto; font-size: .78rem; color: var(--text-dim); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.yt-total {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  padding-top: 1rem; margin-top: -.2rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-dim); margin-bottom: 1.1rem;
}
.yt-total b { color: var(--brand); font-size: 1rem; display: block; font-weight: 800; }

/* ---------- Forma ---------- */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1.2rem; box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; min-width: 0; }

.field > label, .field legend { font-size: .86rem; font-weight: 700; color: var(--text); padding: 0; }
.req { color: var(--red); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: .95rem; width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: .72rem .9rem;
  transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.hint { font-size: .8rem; color: var(--text-dim); }
.err { font-size: .8rem; color: var(--error); font-weight: 600; }
.err:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice > span {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .8rem .95rem; border-radius: var(--radius-s);
  background: var(--bg); border: 2px solid var(--line);
  transition: border-color .18s, background .18s;
}
.choice > span strong { font-size: .92rem; font-weight: 700; }
.choice > span small { font-size: .78rem; color: var(--text-dim); }
.choice:hover > span { border-color: var(--brand-border); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.field-check { gap: .3rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: .88rem; color: var(--text-soft); font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: .18rem; flex-shrink: 0; accent-color: var(--brand); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--text-dim); }

/* ---------- WhatsApp kopiena ---------- */
.wa-card {
  display: flex; align-items: center; gap: 1.1rem; margin-top: 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid #25D366;
  border-radius: var(--radius-l); padding: 1.3rem 1.5rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.wa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #25D366; color: inherit; }
.wa-ico {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: #25D366; color: #fff;
}
.wa-ico svg { width: 26px; height: 26px; }
.wa-body { display: flex; flex-direction: column; gap: .2rem; }
.wa-body strong { font-size: 1rem; font-weight: 700; }
.wa-body small { font-size: .87rem; color: var(--text-soft); }
.wa-go { margin-left: auto; font-size: 1.3rem; color: #25D366; flex-shrink: 0; }

@media (max-width: 520px) {
  .wa-card { flex-wrap: wrap; }
  .wa-go { display: none; }
}
.form-status { border-radius: var(--radius-s); padding: 1rem 1.2rem; font-size: .92rem; border: 1px solid var(--line); }
.form-status.ok  { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.form-status.bad { background: color-mix(in srgb, var(--error) 9%, var(--surface)); border-color: color-mix(in srgb, var(--error) 40%, var(--line)); }

/* ---------- BUJ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
  font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--brand); transition: transform .22s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--text-soft); font-size: .93rem; }

/* ---------- CTA josla ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: var(--grad-primary);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: .7rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--red-tint); color: var(--brand-dark); }

/* ---------- Kājene ---------- */
.site-footer { background: var(--brand); color: rgba(255,255,255,.8); padding-top: clamp(2.5rem, 6vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.brand-footer { margin-bottom: .8rem; }
.foot-note { color: rgba(255,255,255,.72); font-size: .88rem; max-width: 34ch; }
.footer-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .9rem; }
.foot-list { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .88rem; color: rgba(255,255,255,.78); }
.foot-list a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; }
.foot-list a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline;
  font-size: .8rem; color: rgba(255,255,255,.6);
}
.disclaimer { max-width: 62ch; }

/* ---------- Parādīšanās ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
