/* ==========================================================================
   ALA LIGNEA — stils v2 (Robnety, 2026)
   Atsauces: thermory.com, setragroup.com — foto vada, tipogrāfija klusa,
   taisni stūri, kontūrpogas, viens silts akcents.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --sand: #F3F1EC;          /* gaišās sekcijas */
  --sand-2: #E9E5DD;
  --ink: #1B1B19;           /* virsraksti */
  --text: #4E4C47;          /* pamatteksts */
  --muted: #686560;
  --line: #DAD6CD;
  --night: #161615;         /* tumšās sekcijas, header */
  --night-2: #23231F;
  --on-night: #F1EEE7;
  --on-night-muted: #A9A59C;
  --green-text: #4C7A17;    /* zaļais tekstam uz gaiša fona (AA kontrasts) */
  --green: #8BC543;         /* ALA zīmola zaļais — pogas, akcenti */
  --green-hover: #9CD256;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(2.375rem, 1.6rem + 2.6vw, 3.75rem);   /* 38 → 60 */
  --h2: clamp(1.875rem, 1.45rem + 1.4vw, 2.75rem);  /* 30 → 44 */
  --h3: clamp(1.25rem, 1.15rem + .35vw, 1.5rem);    /* 20 → 24 */
  --lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);/* 17 → 19 */
  --body: 1rem;
  --small: .875rem;

  --container: 1200px;
  --gutter: clamp(1.25rem, .5rem + 3vw, 3.75rem);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: var(--body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; }
.dark :focus-visible, .vhero :focus-visible, .cinema :focus-visible, .band :focus-visible, .header :focus-visible, .footer :focus-visible { outline-color: var(--green); }
::selection { background: var(--green); color: var(--ink); }
html { scrollbar-color: #9a968c var(--sand); accent-color: var(--green-text); caret-color: var(--green-text); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: #9a968c; border: 3px solid var(--sand); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
img { color: transparent; }
.num, .price, .prices dd { font-variant-numeric: tabular-nums lining-nums; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.lead { font-size: var(--lead); line-height: 1.6; }
.small { font-size: var(--small); }
.muted { color: var(--muted); }

.eyebrow {
  display: block; margin: 0 0 1.125rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text);
}
.dark .eyebrow { color: var(--green); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- izkārtojums ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.sand { background: var(--sand); }
.dark { background: var(--night); color: var(--on-night-muted); }
.dark h2, .dark h3, .dark strong { color: var(--on-night); }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .split--flip > .split__media { order: 2; }
}
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand-2); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__text > :last-child { margin-bottom: 0; }

.section-intro { max-width: 680px; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-intro--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section-intro--row > div { max-width: 640px; }
.section-intro p:last-child, .section-intro h2:last-child { margin-bottom: 0; }

/* ---------- pogas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 52px; padding: 0 1.5rem;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--green); color: var(--ink); border-color: var(--green); }
.btn--solid:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--ink); }
.dark .btn, .btn--light { color: var(--on-night); border-color: rgba(241,238,231,.45); }
.dark .btn:hover, .btn--light:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.dark .btn--solid, .btn--light.btn--solid { background: var(--green); color: var(--ink); border-color: var(--green); }
.dark .btn--solid:hover, .btn--light.btn--solid:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 2rem; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--ink); text-decoration: none;
}
.link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link svg { color: var(--green-text); }
.dark .link svg { color: var(--green); }
.link:hover span { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dark .link { color: var(--on-night); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--on-night); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: .9375rem; color: var(--on-night); text-decoration: none; white-space: nowrap; padding-block: .5rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: .625rem; font-size: .8125rem; }
.lang a { color: var(--on-night-muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--on-night); }
.header .btn { min-height: 42px; padding: 0 1.125rem; font-size: .9375rem; }

.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--on-night); font: 500 .9375rem var(--font); cursor: pointer; padding: .75rem 0; align-items: center; gap: .625rem; }
.menu-btn i, .menu-btn i::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-btn i::before { content: ""; position: absolute; top: 6px; }
.menu-btn i { top: -3px; }
.nav-open .menu-btn i { transform: translateY(3px) rotate(45deg); }
.nav-open .menu-btn i::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav, .header__end .btn { display: none; }
  .header__end { margin-left: 1.25rem; }
  .nav-open .nav { display: block; position: fixed; inset: var(--header-h) 0 0; background: var(--night); padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; }
  .nav-open .nav ul { flex-direction: column; gap: 0; }
  .nav-open .nav a { display: block; font-size: 1.75rem; padding: 1rem 0; border-bottom: 1px solid rgba(241,238,231,.12); }
  .nav-open .nav a::after { display: none; }
}

/* ---------- hero: teksts + kategoriju slejas ---------- */
.hero { display: grid; background: var(--night); color: var(--on-night-muted); }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(460px, 44%) 1fr; min-height: min(calc(100vh - var(--header-h)), 760px); }
}
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem) var(--gutter); }
@media (min-width: 1000px) { .hero__text { padding-right: clamp(2rem, 4vw, 4rem); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); } }
.hero h1 { color: var(--on-night); }
.hero p { max-width: 40ch; }
.hero .eyebrow { color: var(--green); }

.lanes { display: flex; flex-direction: column; }
@media (min-width: 1000px) { .lanes { flex-direction: row; } }
.lane {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 150px; padding: 1.5rem; overflow: hidden; color: #fff; text-decoration: none;
  background: var(--night-2); isolation: isolate;
  transition: flex-grow .6s var(--ease);
}
.lane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.lane::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%); }
.lane + .lane { border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 1000px) {
  .lane { min-height: 0; padding: 2rem 1.75rem; }
  .lane + .lane { border-top: 0; border-left: 1px solid rgba(255,255,255,.14); }
  .lanes:hover .lane { flex-grow: .8; }
  .lanes .lane:hover { flex-grow: 1.9; }
}
.lane:hover img { transform: scale(1.04); }
.lane:hover .circle { background: var(--green); border-color: var(--green); color: var(--ink); }
.lane .circle { transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.lane__title { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; }
@media (min-width: 1000px) { .lane__title { max-width: 10ch; } }
.lane__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.lane__foot span { max-width: 24ch; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lane:hover .lane__foot span, .lane:focus-visible .lane__foot span { opacity: 1; transform: none; }
@media (max-width: 999px) { .lane__foot span { opacity: 1; transform: none; } }
.circle { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 0; display: grid; place-items: center; flex-shrink: 0; margin-left: auto; }
.circle svg { width: 16px; height: 16px; }

/* ---------- uzņēmums īsumā (faktu lapa) ---------- */
.facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- produkti (foto kartes) ---------- */
.products { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: inherit; }
.sand .product { background: var(--white); }
.product__img { overflow: hidden; background: var(--sand-2); }
.product__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product__img img { transform: scale(1.04); }
.product__body { padding: 1.375rem 1.5rem 1.625rem; display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.product__body h3 { margin: 0; font-size: 1.25rem; }
.product__body p { margin: 0; font-size: .9375rem; color: var(--muted); }
.product__body .link { margin-top: auto; padding-top: .875rem; font-size: .9375rem; }

/* ---------- pakalpojumu saraksts ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
@media (min-width: 800px) { .row { grid-template-columns: 1fr 1.4fr auto; align-items: center; } }
.row h3 { margin: 0; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 400; }
.row p { margin: 0; color: var(--muted); }
.row .circle { border-color: var(--line); color: var(--ink); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.row:hover .circle { background: var(--green); border-color: var(--green); color: var(--ink); }
.row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- sertifikāti ---------- */
.certs { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .certs { grid-template-columns: 1fr 1fr; } .cert + .cert { border-left: 1px solid var(--line); } }
.cert { padding: 2.5rem 2rem; text-align: center; border-bottom: 1px solid var(--line); }
.cert__code { display:block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); margin-bottom: .5rem; }
.cert h3 { margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.cert p { margin: 0 auto; font-size: .9375rem; }
.cert code { font-family: inherit; color: var(--ink); }

/* ---------- cena ---------- */
.price { display: flex; align-items: baseline; gap: .5rem; margin: 1.5rem 0 .5rem; color: var(--on-night); }
.price b { color: var(--green); font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.price span { font-size: 1.125rem; }
.price-note { font-size: .875rem; }

/* tabula */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.table tbody th { color: var(--ink); font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 560px; }

/* ---------- BUJ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-size: 1.1875rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 1.75rem; max-width: 62ch; }
.faq details > div p:last-child { margin: 0; }

/* ---------- kontakti ---------- */
.places { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .places { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.place h3 { margin-bottom: .25rem; }
.place > p { color: var(--muted); }
.place dl { margin: 1.25rem 0 0; }
.place dl div { display: flex; gap: 1rem; padding: .625rem 0; border-top: 1px solid var(--line); }
.place dt { width: 110px; flex-shrink: 0; color: var(--muted); font-size: .9375rem; }
.place dd { margin: 0; color: var(--ink); }
.place a { text-decoration: none; }
.place a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-night-muted); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; font-size: .9375rem; }
.footer a { color: var(--on-night); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(241,238,231,.14); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h2 { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: .5rem; }
.footer address { font-style: normal; line-height: 1.75; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .8125rem; }

/* ---------- kustība ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gcard img, .lane img, .product__img img, .mosaic figure img { transition: none; }
}

/* ---------- apakšlapas hero ---------- */
.page-hero { background: var(--night); color: var(--on-night-muted); display: grid; }
@media (min-width: 1000px) { .page-hero { grid-template-columns: 1fr 1fr; min-height: 520px; } }
.page-hero__text { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1000px) { .page-hero__text { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: clamp(2rem, 5vw, 5rem); } }
.page-hero h1 { color: var(--on-night); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.375rem); }
.page-hero .eyebrow { color: var(--green); }
.page-hero p { max-width: 46ch; }
.page-hero__media { min-height: 260px; background: var(--night-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { margin-bottom: 2rem; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: var(--on-night-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-night); }
.crumbs [aria-current] { color: var(--on-night); }

/* īsumā saraksts */
.summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.summary li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line); }
.summary b { font-weight: 400; color: var(--muted); }
.summary span { color: var(--ink); }
@media (max-width: 599px) { .summary li { grid-template-columns: 1fr; gap: .25rem; } }

/* procesa soļi (tumšā sekcijā) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; border-top: 2px solid var(--green); padding-top: 1.5rem; }
.steps li::before { content: counter(s); display: block; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--green); margin-bottom: 1.5rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { margin: 0; font-size: .9375rem; }

/* krāsu toņi */
.tones { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .tones { grid-template-columns: repeat(3, 1fr); } }
.tone i { display: block; aspect-ratio: 5 / 2; }
.tone p { margin: .875rem 0 0; color: var(--ink); }
.tone small { display: block; color: var(--muted); font-size: .875rem; }

/* lejupielāde */
.file { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.file b { font-weight: 500; display: block; }
.file small { color: var(--muted); font-size: .9375rem; }
.file .circle { border-color: var(--line); }
.file:hover .circle { background: var(--green); color: var(--ink); border-color: var(--green); }

/* cenu tabula (zāģbaļķi) */
.prices { display: grid; border-top: 2px solid var(--green); }
.prices div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .prices div { grid-template-columns: 1fr 1fr auto; } }
.prices dt { color: var(--ink); font-size: 1.25rem; }
.prices dt small { display: block; color: var(--muted); font-size: .9375rem; }
.prices .len { color: var(--muted); }
@media (max-width: 699px) { .prices .len { display: none; } }
.prices dd { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 300; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.prices dd small { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.prices .off dd { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* forma */
.form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.field { display: grid; gap: .5rem; }
.field label { font-size: .9375rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 0; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--green-text); box-shadow: 0 1px 0 0 var(--green-text); }
.field small { color: var(--muted); font-size: .875rem; }
.consent { display: flex; gap: .75rem; font-size: .9375rem; align-items: flex-start; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-text); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1) contrast(1.05); background: var(--sand-2); }
.note { background: var(--sand); padding: 1rem 1.25rem; margin: 2rem 0 0; color: var(--ink); }

/* bez noapaļojumiem visur */
*, *::before, *::after { border-radius: 0 !important; }
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--muted); background: var(--white); display: grid; place-content: center; cursor: pointer; flex-shrink: 0; }
input[type=checkbox]:checked { background: var(--green); border-color: var(--green); }
input[type=checkbox]:checked::before { content: ""; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ==========================================================================
   v4 — video un attēlu sekcijas (sākumlapa)
   ========================================================================== */

/* header pāri video */
.header--overlay { position: fixed; left: 0; right: 0; background: transparent; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.header--overlay::before { content: ""; position: absolute; inset: 0 0 -80px; background: linear-gradient(180deg, rgba(10,10,9,.7), rgba(10,10,9,0)); pointer-events: none; transition: opacity .4s var(--ease); z-index: -1; }
.header--overlay.is-scrolled { background: var(--night); }
.header--overlay.is-scrolled::before { opacity: 0; }
.nav-open .header--overlay { background: var(--night); }

/* video hero */
.vhero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.vhero video, .vhero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,9,.25) 0%, rgba(10,10,9,.15) 35%, rgba(10,10,9,.8) 100%), linear-gradient(90deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 60%); }
.vhero__content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.vhero h1 { color: #fff; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem); line-height: .98; letter-spacing: -0.04em; max-width: 13ch; margin-bottom: 1.5rem; }
.vhero h1 em { font-style: normal; color: var(--green); }
.vhero p { color: rgba(255,255,255,.85); font-size: var(--lead); max-width: 44ch; }
.vhero .eyebrow { color: var(--green); }
.vhero__bar { display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.22); background: rgba(14,14,13,.72); }
.vhero__bar { grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .vhero__bar { grid-template-columns: repeat(4, 1fr); } }
.vhero__bar a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--gutter); color: #fff; text-decoration: none; font-size: 1.0625rem; transition: background-color .3s var(--ease), color .3s var(--ease); }
@media (min-width: 800px) { .vhero__bar a { padding: 1.5rem 1.75rem; } .vhero__bar a + a { border-left: 1px solid rgba(255,255,255,.2); } }
@media (max-width: 799px) { .vhero__bar a { padding: 1rem var(--gutter); font-size: .9375rem; } .vhero__bar a:nth-child(even) { border-left: 1px solid rgba(255,255,255,.15); } .vhero__bar a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); } .vhero__bar svg { display: none; } }
.vhero__bar a small { display: block; color: rgba(255,255,255,.65); font-size: .8125rem; margin-top: .125rem; }
.vhero__bar a:hover { background: var(--green); color: var(--ink); }
.vhero__bar a:hover small { color: rgba(27,27,25,.7); }
.vhero__bar svg { width: 20px; height: 20px; flex-shrink: 0; }
.scroll-cue { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); display: none; }
@media (min-width: 1100px) { .scroll-cue { display: block; } }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 64px; margin: 1rem auto 0; background: linear-gradient(var(--green), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* paziņojums ar attēliem tekstā */
.statement { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); max-width: 22ch; margin: 0; }
.statement .muted-words { color: #77736b; }
.statement-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .statement-wrap { grid-template-columns: 1fr 300px; align-items: end; gap: 4rem; } }
.statement-wrap aside p { font-size: .9375rem; }

/* sticky stāsts: attēls pielīp, teksts ritinās */
.story { display: grid; gap: 0; }
@media (min-width: 1000px) { .story { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }
.story__media { position: relative; }
@media (min-width: 1000px) { .story__media { position: sticky; top: calc(var(--header-h) + 2rem); height: calc(100vh - var(--header-h) - 4rem); max-height: 760px; } }
.story__media figure { margin: 0; position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.story__media figure.is-active { opacity: 1; transform: none; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media figcaption { position: absolute; left: 0; bottom: 0; background: var(--green); color: var(--ink); font-size: .875rem; font-weight: 500; padding: .625rem 1rem; }
.story__count { position: absolute; right: 1rem; top: 1rem; z-index: 2; color: #fff; font-size: .875rem; font-weight: 500; mix-blend-mode: difference; }
@media (max-width: 999px) { .story__media { display: none; } }
.story__steps { padding-block: 0; }
.story__step { padding-block: clamp(2rem, 10vh, 6rem); border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s var(--ease); }
.story__step:first-child { border-top: 0; padding-top: 0; }
.story__step.is-active { opacity: 1; }
@media (max-width: 999px) { .story__step { opacity: 1; } }
.story__num { display: block; font-size: 1rem; font-weight: 500; color: var(--green-text); margin-bottom: 1rem; }
.story__step h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1rem; }
.story__step .mobile-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1.5rem; }
@media (min-width: 1000px) { .story__step .mobile-img { display: none; } }
.story__step dl { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1.5rem 0 0; }
.story__step dt { font-size: .8125rem; color: var(--muted); }
.story__step dd { margin: 0; font-size: 1.375rem; color: var(--ink); }

/* kino video bloks */
.cinema { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.cinema video, .cinema > img { width: 100%; height: clamp(420px, 70vh, 820px); object-fit: cover; display: block; }
.cinema::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,.55) 0%, rgba(10,10,9,0) 35%, rgba(10,10,9,0) 55%, rgba(10,10,9,.8) 100%); pointer-events: none; }
.cinema__top, .cinema__bottom { position: absolute; left: 0; right: 0; z-index: 2; }
.cinema__top { top: 0; padding-top: clamp(2rem, 5vw, 4rem); }
.cinema__top h2 { color: #fff; max-width: 18ch; }
.cinema__top .eyebrow { color: var(--green); }
.cinema__bottom { bottom: 0; padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.cinema__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.cinema__stats div { border-top: 2px solid var(--green); padding-top: .875rem; }
.cinema__stats dt { font-size: .8125rem; color: rgba(255,255,255,.7); }
.cinema__stats dd { margin: 0; order: -1; font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.cinema__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.play { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .625rem; cursor: pointer; font: 500 .875rem var(--font); }
.play:hover { background: var(--green); color: var(--ink); border-color: var(--green); }
.play svg { width: 14px; height: 14px; }

/* horizontāla galerija */
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.gallery-head > div:first-child { max-width: 640px; }
.gallery-head p:last-child, .gallery-head h2 { margin-bottom: 0; }
.gallery-nav { display: flex; gap: .5rem; }
.gallery-nav button { width: 52px; height: 52px; display: grid; place-items: center; background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.gallery-nav button:hover { background: var(--green); border-color: var(--green); }
.gallery-nav button:disabled { opacity: .3; cursor: default; background: transparent; border-color: var(--ink); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging a { pointer-events: none; }
.gcard { scroll-snap-align: start; position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; background: var(--night-2); aspect-ratio: 3 / 4; isolation: isolate; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); user-select: none; -webkit-user-drag: none; }
.gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%); }
.gcard:hover img { transform: scale(1.06); }
.gcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
.gcard__tag { display: inline-block; background: var(--green); color: var(--ink); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .5rem; margin-bottom: .75rem; }
.gcard h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 400; }
.gcard p { margin: 0; color: rgba(255,255,255,.88); font-size: .9375rem; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.gcard h3 { transition: transform .5s var(--ease); }
.gcard:hover p, .gcard:focus-visible p { opacity: 1; transform: none; }
@media (hover: none) { .gcard p { opacity: 1; transform: none; } }
.gcard--cta { background: var(--green); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.gcard--cta::after { display: none; }
.gcard--cta h3 { color: var(--ink); font-size: 1.75rem; }
.gcard--cta p { opacity: 1; transform: none; color: var(--ink); margin-bottom: 1rem; }
.gcard--cta svg { width: 40px; height: 40px; transition: transform .4s var(--ease); }
.gcard--cta:hover svg { transform: translateX(8px); }

/* parallax josla */
.band { position: relative; min-height: clamp(460px, 80vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.band__bg { position: absolute; inset: -15% 0; z-index: -2; will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,9,.8) 0%, rgba(10,10,9,.45) 55%, rgba(10,10,9,.15) 100%); }
.band h2 { color: #fff; max-width: 16ch; }
.band p { color: rgba(255,255,255,.85); max-width: 46ch; }
.band .eyebrow { color: var(--green); }
.band__certs { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.band__certs div { border: 1px solid rgba(255,255,255,.35); padding: 1rem 1.25rem; min-width: 220px; background: rgba(14,14,13,.55); }
.band__certs b { display: block; font-size: 1.25rem; font-weight: 400; color: #fff; }
.band__certs span { font-size: .8125rem; color: rgba(255,255,255,.7); }

/* attēlu mozaīka */
.mosaic { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic > :first-child { grid-row: span 2; }
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic figure img { transition: transform .9s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic { aspect-ratio: 5 / 4; }

/* attēla atklāšana */
.clip { clip-path: inset(8% 8% 8% 8%); transition: clip-path 1.2s var(--ease); }
.clip.is-in { clip-path: inset(0 0 0 0); }
.no-js .clip { clip-path: none; }
@media (prefers-reduced-motion: reduce) { .clip { clip-path: none; } .scroll-cue::after { animation: none; } }

/* YouTube kā fona video (cover) */
.yt-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.yt-bg iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.15); border: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.yt-bg.is-playing iframe { opacity: 1; }
.cinema .yt-bg { z-index: 1; pointer-events: auto; }
.cinema .yt-bg iframe { transform: translate(-50%, -50%); width: 100%; height: 100%; opacity: 1; }
.cinema.is-open::after, .cinema.is-open .cinema__top, .cinema.is-open .cinema__bottom, .cinema.is-open .play { display: none; }
.play--big { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); padding: 0; width: 96px; height: 96px; justify-content: center; background: var(--green); color: var(--ink); border: 0; transition: transform .35s var(--ease); }
.play--big:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--green-hover); }
.play--big svg { width: 28px; height: 28px; margin-left: 4px; }
.play--big span { position: absolute; top: calc(100% + .875rem); left: 50%; transform: translateX(-50%); white-space: nowrap; color: #fff; font-size: .9375rem; }

/* v5 polish */
.price--light { color: var(--ink); }
.price--light b { color: var(--ink); box-shadow: inset 0 -.12em 0 var(--green); }
.cinema__caption { margin: 0; max-width: 46ch; color: rgba(255,255,255,.85); font-size: .9375rem; padding-top: .875rem; border-top: 2px solid var(--green); }
.statement-wrap aside { padding-bottom: .5rem; }
.vhero__poster { animation: kenburns 22s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.vhero__content > * { animation: rise .9s var(--ease) both; }
.vhero__content > :nth-child(2) { animation-delay: .08s; }
.vhero__content > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.story__media figure { will-change: auto; }
.story__step h3 { margin-top: 0; }
.story__num { font-variant-numeric: tabular-nums; }
.gallery { touch-action: pan-x pan-y; }
@media (prefers-reduced-motion: reduce) {
  .vhero__poster, .vhero__content > * { animation: none; }
  .story__media figure { transition: opacity .2s linear; transform: none; }
}
