/* Variants C — „Partneris”: komponentes.
   Visas vizuālās vērtības — tikai var(--…) no tokens.css. */

/* ---------- Pamats ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-link); text-underline-offset: 0.2em; }
a:hover { color: var(--c-text); }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: var(--focus-ring) solid var(--c-focus); outline-offset: var(--focus-ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute; left: var(--sp-4); top: calc(-1 * var(--sp-10));
  z-index: 100; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  background: var(--c-accent); color: var(--c-on-accent); font-weight: var(--fw-bold);
}
.skip-link:focus { top: var(--sp-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--c-highlight-text); margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: var(--sp-3); height: var(--sp-3); border-radius: var(--r-pill); background: var(--c-accent); }

/* ---------- Sadaļas ---------- */
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--c-surface-alt); }
.section__head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); }
.section__title {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-2xl); line-height: var(--lh-display); letter-spacing: var(--ls-display);
  color: var(--c-text-strong);
}
.section__lead { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--c-text-muted); }

/* ---------- Galva ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: var(--bw) solid var(--c-border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand { flex: none; }
.brand__logo { height: var(--logo-h); width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: var(--sp-5); margin-left: auto; }
.nav__list { display: flex; gap: var(--sp-2); }
.nav__link {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; color: var(--c-text);
}
.nav__link:hover { background: var(--c-surface-alt); color: var(--c-text); }
.nav__link[aria-current="page"] { background: var(--c-accent-soft); }
.lang { display: flex; padding: var(--sp-1); gap: var(--sp-1); border: var(--bw) solid var(--c-border); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.lang__link { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); text-decoration: none; color: var(--c-text-muted); }
.lang__link[aria-current="true"] { background: var(--c-dark); color: var(--c-on-dark); }
.nav-toggle {
  display: none; margin-left: auto;
  font: inherit; font-weight: var(--fw-medium);
  background: var(--c-surface); color: var(--c-text);
  border: var(--bw) solid var(--c-border-input); border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-4); cursor: pointer;
}
@media (max-width: 64rem) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--sp-4);
    padding: var(--sp-5) var(--gutter);
    background: var(--c-surface); border-bottom: var(--bw) solid var(--c-border); box-shadow: var(--shadow-card);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; }
  .lang { align-self: flex-start; }
}

/* ---------- Pogas un saites ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--control-h); padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-body); font-size: var(--fs-md); font-weight: var(--fw-bold);
  text-decoration: none; cursor: pointer;
  border: var(--bw) solid transparent; border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); box-shadow: var(--shadow-card); }
.btn--secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border-input); }
.btn--secondary:hover { border-color: var(--c-text); color: var(--c-text); }
.btn--sm { min-height: calc(var(--control-h) - var(--sp-2)); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn--lg { min-height: calc(var(--control-h) + var(--sp-2)); padding: var(--sp-4) var(--sp-6); font-size: var(--fs-lg); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-disabled-bg); color: var(--c-disabled-text); border-color: var(--c-border);
  box-shadow: none; cursor: not-allowed;
}
.link-arrow { font-weight: var(--fw-bold); text-decoration: none; color: var(--c-link); }
.link-arrow::after { content: " →"; display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover { color: var(--c-link); text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(var(--sp-1)); }

/* ---------- Ievads (hero): teksts pa kreisi, kustīgs attēls pa labi ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--sp-7);
  max-width: var(--container); margin-inline: auto; padding: var(--sp-8) var(--gutter);
  min-height: var(--hero-h);
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow-soft); pointer-events: none; z-index: -1; }
.hero__media, .hero__fx { grid-column: 2; grid-row: 1; align-self: stretch; }
.hero__media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-dark); box-shadow: var(--shadow-card); min-height: 26rem; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-fade) var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.hero__slide.is-active img { animation: kenburns var(--dur-kenburns) linear both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero__fx { position: relative; border-radius: var(--r-lg); background: var(--overlay-media); pointer-events: none; }
.hero__wave { display: none; }

.hero__content { grid-column: 1; grid-row: 1; max-width: none; padding: 0; }
.hero__title {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-display);
  color: var(--c-text-strong);
}
.hero__lead { margin-top: var(--sp-5); font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__pause {
  grid-column: 2; grid-row: 1; align-self: end; justify-self: end; margin: var(--sp-4);
  display: inline-flex; align-items: center; gap: var(--sp-2); z-index: 1;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  background: var(--c-surface); color: var(--c-text);
  border: 0; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  padding: var(--sp-2) var(--sp-4); cursor: pointer;
}
.hero__pause:hover { background: var(--c-accent-soft); }
.hero__pause-icon { width: 0.7rem; height: 0.7rem; border-inline: 0.2rem solid currentColor; }
.hero.is-paused .hero__pause-icon { border: 0; border-left: 0.7rem solid currentColor; border-block: 0.38rem solid transparent; height: 0; width: 0; }
.hero.is-paused .hero__slide img { animation-play-state: paused; }
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-6); min-height: 0; }
  .hero__content { grid-column: 1; grid-row: 1; }
  .hero__media, .hero__fx, .hero__pause { grid-column: 1; grid-row: 2; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Fakti ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.stat { display: flex; flex-direction: column-reverse; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); border-left: var(--bw) solid var(--c-border); }
.stat:first-child { border-left: 0; }
.stat__value { white-space: nowrap; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-2xl); line-height: var(--lh-display); color: var(--c-text-strong); }
.stat__value::after { content: ""; display: block; width: var(--sp-6); height: var(--sp-1); margin-top: var(--sp-2); border-radius: var(--r-pill); background: var(--c-accent); }
.stat__label { font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (max-width: 40rem) { .stat { border-left: 0; border-top: var(--bw) solid var(--c-border); } .stat:first-child { border-top: 0; } }

/* ---------- Pakalpojumi ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5); background: var(--c-surface);
  border: var(--bw) solid var(--c-border); border-radius: var(--r-md);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-card); border-color: var(--c-border-input); }
.card--feature { grid-column: span 2; padding: var(--sp-6); }
.card__index {
  display: grid; place-items: center; width: var(--sp-7); height: var(--sp-7);
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-sm);
  background: var(--c-accent-soft); color: var(--c-text-strong); border-radius: var(--r-sm);
}
.card--feature .card__index { background: var(--c-accent); }
.card__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-lg); line-height: var(--lh-tight); color: var(--c-text-strong); }
.card--feature .card__title { font-size: var(--fs-xl); }
.card__text { color: var(--c-text-muted); }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-2); }
@media (max-width: 64rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .services { grid-template-columns: 1fr; } .card--feature { grid-column: auto; } }

/* ---------- Darbu kartītes: bilde tumšā rāmī + teksts zem tās ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--sp-5); }
.work-card { display: flex; flex-direction: column; background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.work-card:hover { box-shadow: var(--shadow-card); }
.work-card--wide { grid-column: span 3; flex-direction: row; }
.work-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-dark); filter: var(--img-filter); }
.work-card--wide .work-card__img { width: 62%; aspect-ratio: 16 / 9; }
.work-card__body { display: grid; align-content: start; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.work-card--wide .work-card__body { align-content: center; padding: var(--sp-6); }
.work-card__cat { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-highlight-text); }
.work-card__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-md); line-height: var(--lh-tight); color: var(--c-text-strong); }
.work-card--wide .work-card__title { font-size: var(--fs-xl); }
@media (max-width: 64rem) { .works { grid-template-columns: repeat(2, 1fr); } .work-card--wide { grid-column: span 2; } }
@media (max-width: 40rem) { .works { grid-template-columns: 1fr; } .work-card--wide { grid-column: auto; flex-direction: column; } .work-card--wide .work-card__img { width: 100%; } .work-card--wide .work-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); } }

/* ---------- Tehnika ---------- */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.spec__group { padding: var(--sp-5); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-md); }
.spec__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-lg); margin-bottom: var(--sp-4); color: var(--c-text-strong); }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag { font-size: var(--fs-sm); padding: var(--sp-1) var(--sp-3); background: var(--c-surface-alt); border-radius: var(--r-pill); color: var(--c-text); }
@media (max-width: 52rem) { .spec { grid-template-columns: 1fr; } }

/* ---------- Par mums, citāti, logotipi ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: center; margin-bottom: var(--sp-8); }
.about__text p { font-size: var(--fs-lg); color: var(--c-text-muted); }
.about__text .section__title { margin-bottom: var(--sp-5); }
.quote { padding: var(--sp-6); background: var(--c-surface); border-radius: var(--r-md); border-left: var(--sp-1) solid var(--c-accent); box-shadow: var(--shadow-card); }
.quote__text { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-xl); line-height: var(--lh-tight); color: var(--c-text-strong); }
.quote__text p::before { content: "„"; }
.quote__text p::after { content: "”"; }
.quote__by { margin-top: var(--sp-4); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-muted); }
.testimonial { padding: var(--sp-5); background: var(--c-surface); border: var(--bw) dashed var(--c-border-input); border-radius: var(--r-md); margin-bottom: var(--sp-6); }
.testimonial__text { font-size: var(--fs-lg); }
.testimonial__by { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-muted); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
.logo-slot { display: grid; place-items: center; min-height: 5rem; font-size: var(--fs-xs); color: var(--c-text-muted); background: var(--c-surface); border: var(--bw) dashed var(--c-border-input); border-radius: var(--r-md); }
@media (max-width: 52rem) { .about { grid-template-columns: 1fr; gap: var(--sp-6); } .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Aicinājums (CTA) ---------- */
.cta { padding-block: var(--sp-8); }
.cta__inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-3) var(--sp-7);
  padding: var(--sp-7); background: var(--c-dark); color: var(--c-on-dark); border-radius: var(--r-lg);
  background-image: var(--glow-soft);
}
.cta__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-2xl); line-height: var(--lh-display); }
.cta__text { grid-column: 1; color: var(--c-on-dark-muted); font-size: var(--fs-lg); }
.cta .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 40rem) { .cta__inner { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-5); } .cta .btn { grid-column: 1; grid-row: auto; justify-self: start; } }

/* ---------- Kāja ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding-block: var(--sp-8) var(--sp-5); }
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-6); }
.site-footer__brand .brand__logo { background: var(--c-surface); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); height: calc(var(--logo-h) + var(--sp-4)); }
.site-footer__note { margin-top: var(--sp-4); max-width: 22rem; }
.site-footer__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-md); color: var(--c-on-dark); margin-bottom: var(--sp-3); }
.site-footer__list { display: grid; gap: var(--sp-2); }
.site-footer__legal { margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: var(--bw) solid var(--c-text-muted); font-size: var(--fs-xs); }
@media (max-width: 52rem) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Apakšlapu ievads ---------- */
.page-hero { position: relative; padding-block: var(--sp-8) var(--sp-6); background: var(--c-surface); border-bottom: var(--bw) solid var(--c-border); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--glow-soft); pointer-events: none; }
.page-hero__title { position: relative; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-3xl); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--c-text-strong); max-width: 20ch; }
.page-hero__lead { position: relative; margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 40rem; }

/* ---------- Filtrs ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.chip {
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-4); min-height: calc(var(--control-h) - var(--sp-2)); cursor: pointer;
  background: var(--c-surface); color: var(--c-text);
  border: var(--bw) solid var(--c-border-input); border-radius: var(--r-pill);
}
.chip:hover { border-color: var(--c-text); }
.chip[aria-pressed="true"] { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); }

.empty-state { padding: var(--sp-8) var(--sp-6); text-align: center; background: var(--c-surface); border: var(--bw) dashed var(--c-border-input); border-radius: var(--r-md); }
.empty-state__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-xl); color: var(--c-text-strong); }
.empty-state__text { margin-top: var(--sp-2); color: var(--c-text-muted); }

/* ---------- Kontakti ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-7); align-items: start; }
.contact__info { display: grid; gap: var(--sp-3); position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.contact-item { padding: var(--sp-4) var(--sp-5); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-md); }
.contact-item__label { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-text-muted); }
.contact-item__value { display: block; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-xl); line-height: var(--lh-tight); color: var(--c-text-strong); text-decoration: none; overflow-wrap: anywhere; }
a.contact-item__value:hover { color: var(--c-link); }
.contact-item__value--sm { font-family: var(--font-body); font-size: var(--fs-md); font-weight: var(--fw-regular); }
.legal { display: grid; gap: var(--sp-1); padding: var(--sp-3) var(--sp-5); font-size: var(--fs-xs); color: var(--c-text-muted); }
.legal div { display: flex; gap: var(--sp-2); }
.legal dt::after { content: ":"; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; gap: var(--sp-6); } .contact__info { position: static; } }

/* ---------- Forma ---------- */
.form { padding: var(--sp-7); background: var(--c-surface); border: var(--bw) solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.form__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-xl); color: var(--c-text-strong); }
.form__intro { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text-muted); }
.form__group { border: 0; padding: var(--sp-6) 0 0; margin: var(--sp-6) 0 0; border-top: var(--bw) solid var(--c-border); display: grid; gap: var(--sp-4); }
.form__legend { float: left; width: 100%; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-md); color: var(--c-text-strong); padding: 0; margin-bottom: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.form__status { font-weight: var(--fw-medium); }
.form__status--error { color: var(--c-error); }
.form__status--ok { color: var(--c-success); }
@media (max-width: 40rem) { .form { padding: var(--sp-5); } .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--sp-2); align-content: start; }
.field__label { font-weight: var(--fw-medium); font-size: var(--fs-sm); color: var(--c-text-strong); }
.field__req { color: var(--c-error); }
.field__input {
  width: 100%; min-height: var(--control-h); padding: var(--sp-3) var(--sp-4);
  font: inherit; color: var(--c-text-strong); background: var(--c-surface);
  border: var(--bw) solid var(--c-border-input); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field__input::placeholder { color: var(--c-text-muted); }
.field__input:hover { border-color: var(--c-text); }
.field__input:focus-visible { outline-offset: 0; }
.field__input:disabled { background: var(--c-disabled-bg); color: var(--c-disabled-text); border-color: var(--c-border); cursor: not-allowed; }
.field__textarea { min-height: 7.5rem; resize: vertical; }
.field__error { display: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-error); }
.field__error::before { content: "⚠ "; }
.field--error .field__error { display: block; }
.field--error .field__input { border-color: var(--c-error); background: var(--c-error-soft); border-width: var(--bw-strong); }

.field--check { grid-template-columns: auto 1fr; column-gap: var(--sp-3); margin-top: var(--sp-6); padding: var(--sp-4); background: var(--c-surface-alt); border-radius: var(--r-sm); }
.check__input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--c-dark); }
.check__label { font-size: var(--fs-sm); }
.field--check .field__error { grid-column: 2; }

.dropzone {
  position: relative; display: grid; gap: var(--sp-1); justify-items: center; text-align: center;
  padding: var(--sp-6) var(--sp-5); cursor: pointer;
  background: var(--c-brand-blue-soft); border: var(--bw-strong) dashed var(--c-border-input); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease);
}
.dropzone:hover { border-color: var(--c-brand-blue); }
.dropzone:focus-within { outline: var(--focus-ring) solid var(--c-focus); outline-offset: var(--focus-ring); }
.dropzone__title { font-weight: var(--fw-bold); color: var(--c-brand-blue); }
.dropzone__title::before { content: "↑ "; }
.dropzone__hint { font-size: var(--fs-sm); color: var(--c-text-muted); }
.dropzone__name { font-size: var(--fs-sm); color: var(--c-text); }
.dropzone--filled { border-style: solid; border-color: var(--c-success); background: var(--c-surface); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- Stāvokļu demonstrācija ---------- */
.states__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.states__row .field { flex: 1 1 16rem; }

/* ---------- Prototipa zīme ---------- */
.proto-badge {
  position: fixed; left: var(--sp-4); bottom: var(--sp-4); z-index: 60;
  padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  background: var(--c-dark); color: var(--c-on-dark); text-decoration: none;
  border-radius: var(--r-pill); box-shadow: var(--shadow-card);
}
.proto-badge::after { content: " · " var(--variant-name); }
.proto-badge:hover { color: var(--c-on-accent); background: var(--c-accent); }
@media (max-width: 40rem) {
  .proto-badge { font-size: 0; padding: var(--sp-2) var(--sp-3); }
  .proto-badge::after { content: "← " var(--variant-name); font-size: var(--fs-xs); }
}
