/*
Theme Name: PUTAS.LV
Theme URI: https://putas.lv
Author: SIA PUTAS.LV
Description: Pielagota tema uznemumam PUTAS.LV - siltinasana ar poliuretana un polimera putam, poliuretana hidroizolacija. Atrs, mobilajam piemerots dizains ar skaidriem CTA.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: putas
Tags: business, custom-colors, custom-menu, two-columns, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Dizaina marki (design tokens)
   ========================================================================== */

:root {
  --brand: #ffcc29;
  --brand-600: #f0b800;
  --brand-700: #c99400;
  --brand-soft: #fff8e2;

  --ink: #16181c;
  --ink-800: #24282f;
  --ink-600: #4a515c;
  --ink-400: #78808d;

  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef0f3;
  --line: #e2e6ec;

  --ok: #1d8a4e;
  --err: #c0392b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.65vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.1vw, 2.3rem);
  --step-4: clamp(2.05rem, 1.6rem + 1.9vw, 3rem);
  --step-5: clamp(2.4rem, 1.7rem + 3vw, 3.9rem);

  --wrap: 1140px;
  --wrap-wide: 1320px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(22, 24, 28, 0.06), 0 2px 8px rgba(22, 24, 28, 0.05);
  --shadow-2: 0 2px 6px rgba(22, 24, 28, 0.07), 0 14px 34px rgba(22, 24, 28, 0.1);
  --shadow-3: 0 10px 50px rgba(22, 24, 28, 0.18);

  --header-h: 76px;
}

/* ==========================================================================
   2. Pamati (reset + base)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-color: var(--brand-600);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-700);
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.putas-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.putas-skip:focus {
  left: 0;
  color: #fff;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. Izkartojums (layout)
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.wrap--wide {
  max-width: var(--wrap-wide);
}

.section {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink);
  color: #d9dde3;
}

.section--ink :where(h1, h2, h3, h4) {
  color: #fff;
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
}

.section--ink .eyebrow {
  color: var(--brand);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-600);
  line-height: 1.55;
}

.section--ink .lede {
  color: #b9c0ca;
}

.grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   4. Pogas (buttons)
   ========================================================================== */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  box-shadow: var(--shadow-1);
}

.btn:hover {
  background: var(--brand-600);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.btn--dark:hover {
  background: var(--ink-800);
  color: #fff;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--lg {
  padding: 1.1rem 2rem;
  min-height: 58px;
  font-size: var(--step-1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ==========================================================================
   5. Galva (header)
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}

.brand img,
.brand svg {
  width: clamp(104px, 11vw, 136px);
  height: auto;
}

.brand__txt {
  display: none;
}

.nav {
  display: none;
}

@media (min-width: 1060px) {
  .nav {
    display: block;
  }
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a {
  background: var(--paper-2);
  color: var(--ink);
}

.nav .current-menu-item > a,
.nav .current_page_item > a {
  box-shadow: inset 0 -3px 0 var(--brand);
}

.nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .sub-menu a {
  white-space: normal;
  line-height: 1.35;
  padding: 0.65rem 0.8rem;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.head-tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.head-tel:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

.head-tel svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 560px) {
  .head-tel {
    display: inline-flex;
  }
}

.head-cta {
  display: none;
}

@media (min-width: 1060px) {
  .head-cta {
    display: inline-flex;
  }
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-600);
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (min-width: 1060px) {
  .burger {
    display: none;
  }
}

.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobilais panelis */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1060px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 1.2rem;
}

.mobile-nav .sub-menu {
  padding: 0 0 0.3rem 1rem;
  border-left: 2px solid var(--brand);
  margin-left: 0.4rem;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 0.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--paper-3);
}

.mobile-nav .sub-menu a {
  font-weight: 600;
  color: var(--ink-600);
  border-bottom: 0;
  padding-block: 0.6rem;
}

.mobile-nav__cta {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 1.4rem;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #e7eaee;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(12, 14, 17, 0.94) 0%,
      rgba(12, 14, 17, 0.82) 45%,
      rgba(12, 14, 17, 0.5) 100%
    ),
    radial-gradient(1000px 420px at 85% 10%, rgba(255, 204, 41, 0.14), transparent 70%);
}

.hero__inner {
  padding-block: clamp(3.2rem, 2rem + 7vw, 6.5rem);
  max-width: 44rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.65em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero__lede {
  font-size: var(--step-1);
  color: #c6ccd4;
  margin-bottom: 1.9rem;
}

.hero .btn-row {
  margin-bottom: 2.4rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 760px) {
  .hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fact {
  background: rgba(14, 16, 20, 0.72);
  padding: 1rem 1.1rem;
}

.fact__n {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fact__t {
  display: block;
  font-size: 0.85rem;
  color: #aeb5bf;
  line-height: 1.35;
  margin-top: 0.3rem;
}

/* ==========================================================================
   7. Kartes (cards)
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #cfd5de;
  box-shadow: var(--shadow-2);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__media--contain {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--brand-soft);
}

.card__media--contain img {
  width: auto;
  max-height: 120px;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.4rem 1.5rem;
}

.card__body h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.card__body p {
  color: var(--ink-600);
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}

.card__more {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__more::after {
  content: "\2192";
  transition: transform 0.18s ease;
  color: var(--brand-700);
}

.card:hover .card__more::after {
  transform: translateX(4px);
}

.card--link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Objektu veidu flīzes */
.tile {
  position: relative;
  display: block;
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  background: var(--ink);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 12, 15, 0.9) 0%,
    rgba(10, 12, 15, 0.45) 45%,
    rgba(10, 12, 15, 0.15) 100%
  );
}

.tile:hover img {
  transform: scale(1.06);
}

.tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  color: #fff;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tile__label::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
  margin-top: 0.6rem;
  transition: width 0.25s ease;
}

.tile:hover .tile__label::after {
  width: 60px;
}

/* ==========================================================================
   8. Soli, ieguvumi, tabulas
   ========================================================================== */

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--gap);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: var(--brand);
  color: var(--ink);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.97rem;
}

.benefits {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 700px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit {
  background: #fff;
  padding: 1.5rem 1.4rem;
}

.benefit h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.07rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.benefit h3::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

.benefit p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-600);
}

/* Tehniskie raditaji */
.specs {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 760px) {
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec {
  padding: 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec h3 {
  font-size: var(--step-1);
  margin-bottom: 1rem;
}

.spec table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec th,
.spec td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec th {
  font-weight: 700;
  color: var(--ink);
}

.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 0;
}

.spec td {
  color: var(--ink-600);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   9. Galerija
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
}

.gallery-grid a,
.gallery-grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   10. Veidlapa (form)
   ========================================================================== */

.form-panel {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

@media (min-width: 940px) {
  .form-panel {
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.putas-form {
  padding: clamp(1.3rem, 1rem + 1.4vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.section--ink .putas-form {
  border-color: rgba(255, 255, 255, 0.14);
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.field .req {
  color: var(--err);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--brand-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 204, 41, 0.22);
}

.field--hp {
  position: absolute;
  left: -9999px;
}

.form-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.86rem;
  color: var(--ink-600);
  line-height: 1.45;
}

.form-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand-600);
}

.putas-form .btn {
  width: 100%;
}

.notice {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.notice--ok {
  background: #eaf7ef;
  border-color: #b7e0c6;
  color: #11603a;
}

.notice--err {
  background: #fdeceb;
  border-color: #f3c0bc;
  color: #8f2016;
}

.notice ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

/* Kontaktu bloks */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-list .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--ink);
}

.section--ink .contact-list .ico {
  background: rgba(255, 204, 41, 0.16);
  color: var(--brand);
}

.contact-list .ico svg {
  width: 20px;
  height: 20px;
}

.contact-list b {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  margin-bottom: 0.1rem;
}

.contact-list a {
  font-size: var(--step-1);
  font-weight: 800;
  text-decoration: none;
}

.section--ink .contact-list a,
.section--ink .contact-list span {
  color: #fff;
}

/* ==========================================================================
   11. CTA josla
   ========================================================================== */

.cta-band {
  position: relative;
  isolation: isolate;
  background: var(--brand);
  color: var(--ink);
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(22, 24, 28, 0.09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}

.cta-band__inner {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding-block: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    gap: 2.5rem;
  }
}

.cta-band h2 {
  font-size: var(--step-3);
  margin-bottom: 0.3rem;
}

.cta-band p {
  margin: 0;
  color: #4a3d08;
  font-weight: 600;
}

/* ==========================================================================
   12. Kaja (footer)
   ========================================================================== */

.site-foot {
  background: var(--ink);
  color: #9aa2ad;
  font-size: 0.95rem;
}

.site-foot a {
  color: #d5dae1;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--brand);
}

.foot-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  }
}

.foot-grid h2 {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.foot-brand img {
  width: 130px;
  margin-bottom: 1.1rem;
}

.foot-brand p {
  max-width: 34ch;
  margin-bottom: 0;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

/* Mobila zvanu josla */
.call-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.1);
}

@media (min-width: 760px) {
  .call-bar {
    display: none;
  }
}

.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.call-bar a.is-primary {
  background: var(--brand);
}

.call-bar svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 759px) {
  body {
    padding-bottom: 58px;
  }
}

/* ==========================================================================
   13. Satura lapas (WordPress bloki)
   ========================================================================== */

.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.2rem, 1.6rem + 3vw, 4rem);
}

.page-hero--img {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 0;
  color: #c6ccd4;
  padding-block: clamp(2.6rem, 1.8rem + 4vw, 5rem);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-hero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(12, 14, 17, 0.93) 0%,
      rgba(12, 14, 17, 0.8) 48%,
      rgba(12, 14, 17, 0.46) 100%
    ),
    radial-gradient(900px 380px at 88% 6%, rgba(255, 204, 41, 0.13), transparent 70%);
}

@media (max-width: 760px) {
  .page-hero--img::after {
    background: linear-gradient(
      180deg,
      rgba(12, 14, 17, 0.88) 0%,
      rgba(12, 14, 17, 0.78) 100%
    );
  }
}

.page-hero.page-hero--img h1 {
  color: #fff;
}

.page-hero.page-hero--img p {
  color: #c6ccd4;
}

.page-hero.page-hero--img .breadcrumbs {
  color: #98a1ab;
}

.page-hero.page-hero--img .breadcrumbs a {
  color: #c6ccd4;
}

.page-hero.page-hero--img .breadcrumbs a:hover {
  color: var(--brand);
}

.page-hero h1 {
  font-size: var(--step-4);
  margin-bottom: 0.4em;
}

.page-hero p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: var(--step-1);
}

.breadcrumbs {
  font-size: 0.86rem;
  color: var(--ink-400);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--ink-600);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-700);
}

.breadcrumbs span[aria-hidden] {
  margin-inline: 0.45rem;
  opacity: 0.5;
}

.entry {
  padding-block: clamp(2.2rem, 1.8rem + 2.6vw, 4rem);
}

.entry > * {
  max-width: 72ch;
  margin-inline: auto;
}

.entry > .alignwide {
  max-width: var(--wrap-wide);
}

.entry > .alignfull {
  max-width: none;
}

/* Sākumlapa: sadaļas pašas rūpējas par malām */
.entry--front {
  padding-block: 0;
}

.entry--front > * {
  max-width: none;
  margin-inline: 0;
}

.entry :where(h2) {
  font-size: var(--step-3);
  margin-top: 2.2em;
}

.entry :where(h3) {
  font-size: var(--step-2);
  margin-top: 1.8em;
}

.entry :where(h4) {
  font-size: var(--step-1);
  margin-top: 1.6em;
}

.entry > *:first-child {
  margin-top: 0;
}

.entry :where(ul, ol) {
  padding-left: 1.3rem;
  margin-bottom: 1.3em;
}

.entry li {
  margin-bottom: 0.5em;
}

.entry :where(ul) {
  list-style: none;
  padding-left: 0;
}

.entry :where(ul) li {
  position: relative;
  padding-left: 1.9rem;
}

.entry :where(ul) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand);
}

.entry :where(ol) {
  list-style: decimal;
}

.entry blockquote {
  margin: 2em auto;
  padding: 1.4rem 1.6rem;
  background: var(--brand-soft);
  border: 0;
  border-left: 5px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.entry blockquote p:last-child {
  margin-bottom: 0;
}

.entry figure {
  margin: 2em auto;
}

.entry figure img {
  border-radius: var(--radius);
}

.entry figcaption {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-400);
  text-align: center;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: 0.96rem;
}

.entry th,
.entry td {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
}

.entry thead th {
  background: var(--paper-2);
  font-weight: 800;
  color: var(--ink);
}

.entry hr,
.wp-block-separator {
  max-width: 72ch;
  height: 1px;
  margin: 2.6em auto;
  background: var(--line);
  border: 0;
}

/* WP blokiem */
.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-columns {
  gap: var(--gap) !important;
}

.wp-block-group.has-background {
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  border-radius: var(--radius);
}

.wp-block-button__link {
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 800;
}

.wp-block-gallery {
  margin-bottom: 1.8em;
}

.wp-block-gallery figcaption {
  display: none;
}

/* ==========================================================================
   14. 404 un palighi
   ========================================================================== */

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.nowrap {
  white-space: nowrap;
}

.e404 {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  text-align: center;
}

.e404 .big {
  font-size: clamp(5rem, 4rem + 8vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--brand);
  letter-spacing: -0.04em;
  margin-bottom: 0.2em;
}

/* ==========================================================================
   Biezak uzdotie jautajumi
   ========================================================================== */

.faq-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.faq-section .section__head {
  margin-bottom: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
}

.faq-section .lede a {
  color: inherit;
  font-weight: 650;
  white-space: nowrap;
}

.faq {
  max-width: 56rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

/* Sakumlapa: josla visa platuma; ieksejas lapas: panelis ar apaliem sturiem */
.entry:not(.entry--front) .faq-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-block: clamp(1.6rem, 1.2rem + 2vw, 3rem);
}

.faq__item + .faq__item {
  border-top: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(0.95rem, 0.8rem + 0.6vw, 1.3rem) clamp(1rem, 0.8rem + 0.9vw, 1.6rem);
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.62em;
  margin-top: 0.3em;
  border-right: 2.5px solid var(--ink-400);
  border-bottom: 2.5px solid var(--ink-400);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
  border-color: var(--ink);
}

.faq__q:hover {
  background: var(--brand-soft);
}

.faq__q:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: -3px;
}

.faq__a {
  padding: 0 clamp(1rem, 0.8rem + 0.9vw, 1.6rem) clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
  color: var(--ink-600);
  max-width: 68ch;
}

.faq__a p {
  margin: 0;
}

@media print {
  .site-head,
  .site-foot,
  .call-bar,
  .cta-band,
  .putas-form {
    display: none !important;
  }
}
