/* Videoprojekts Baltija — v3 homepage
   Clean corporate layout matching design references */

:root {
  --blue: #0066ff;
  --blue-hover: #0052cc;
  --blue-soft: #e8f1ff;
  --navy: #0b1628;
  --navy-2: #122038;
  --ink: #111827;
  --muted: #5b6472;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --container: 1236px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 76px;
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 8px 28px rgba(11, 22, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Soft blue wash under header + page title on all pages except home */
body:not(.page-home) {
  background-color: #fff;
  background-image:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(0, 102, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f8fc 0%, #fff 36rem);
  background-repeat: no-repeat;
}

body:not(.page-home) .header:not(.is-stuck):not(.is-mega-open) {
  background: transparent;
  border-bottom-color: transparent;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
}
.btn--outline:hover { background: var(--blue-soft); }
.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
  margin-top: 14px;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); }
button.btn--outline-light {
  width: 100%;
  justify-content: center;
}
.btn--lg { min-height: 48px; padding: 0 24px; }

/* 24/7 service call confirm modal */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.call-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.call-modal[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}

.call-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.call-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 22, 40, 0.28);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.26s var(--ease);
}

.call-modal.is-open .call-modal__panel {
  transform: none;
}

.call-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}

.call-modal__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.call-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.call-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-modal__panel h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.call-modal__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.call-modal__text strong {
  color: var(--ink);
}

.call-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-modal__actions .btn {
  width: 100%;
  justify-content: center;
}

body.is-call-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .call-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* Help request modal */
.help-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.help-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.help-modal[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}

.help-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.help-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 22, 40, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.26s var(--ease);
}

.help-modal.is-open .help-modal__panel {
  transform: none;
}

.help-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}

.help-modal__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.help-modal__head {
  margin-bottom: 20px;
  padding-right: 28px;
}

.help-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-modal__panel h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.help-modal__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.help-modal__form > .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.help-modal .c-select.is-open {
  z-index: 5;
}

body.is-help-open {
  overflow: hidden;
}

.text-link {
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Reveals ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-delay="1"] { --d: 1; }
.js [data-delay="2"] { --d: 2; }
.js [data-delay="3"] { --d: 3; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: visible;
  /* Mega panel is absolute; keep header chrome height fixed */
}

.header.is-stuck {
  box-shadow: 0 4px 20px rgba(11, 22, 40, 0.06);
}

.header__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { height: 32px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2a3342;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__link--trigger[aria-expanded="true"] {
  color: var(--blue);
}

.nav__link--shop {
  gap: 6px;
}

.nav__shop-icon {
  flex-shrink: 0;
  color: var(--blue);
}

.nav__chevron {
  transition: transform 0.2s var(--ease);
}

.nav__link--trigger[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

/* ========== MEGA MENU ========== */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 22, 40, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.mega.is-open,
.header.is-mega-open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.mega[hidden] { display: block; }

.mega__panel {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 0;
}

.mega__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding-bottom: 24px;
}

.mega__main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mega__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mega__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega__all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.mega__all:hover { color: var(--blue-hover); }

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mega__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s;
}

.mega__item:hover {
  background: var(--bg-soft);
}

.mega__item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mega__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  flex-shrink: 0;
}

.mega__icon svg {
  width: 20px;
  height: 20px;
}

.mega__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega__text strong {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.mega__text span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.mega__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 100%;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.mega__promo {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.mega__promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.mega__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 40, 0.18) 0%, rgba(11, 22, 40, 0.84) 100%);
}

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

.mega__promo-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  width: 100%;
  padding: 18px;
  margin-top: auto;
}

.mega__promo-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.mega__promo strong {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mega__promo-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ec0ff;
  margin-top: 2px;
}

.mega__cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}

.mega__cta:hover {
  border-color: #c9d8f0;
  background: var(--blue-soft);
}

.mega__cta-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mega__cta-icon svg {
  width: 18px;
  height: 18px;
}

.mega__cta-text strong {
  display: block;
  font-size: 0.925rem;
  margin-bottom: 2px;
}

.mega__cta-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.mega__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.mega__contacts a:hover {
  color: var(--blue);
}

.mega__contacts svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.mega__foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mega__service {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mega-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(11, 22, 40, 0.28);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.mega-backdrop.is-open,
.header.is-mega-open + .mega-backdrop {
  opacity: 1;
  visibility: visible;
}

.mega-backdrop[hidden] { display: block; }

@media (prefers-reduced-motion: reduce) {
  .mega,
  .mega-backdrop,
  .mega__promo img,
  .nav__chevron {
    transition: none;
  }
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  transform-origin: left center;
}

.header__phone svg { color: var(--blue); flex-shrink: 0; }
.header__phone:hover { color: var(--blue); }

.header__cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  max-width: 220px;
  overflow: visible;
  flex-shrink: 0;
  transform-origin: right center;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.header__cart.is-hidden,
.header__cart.is-leaving,
.header__cart.is-entering {
  overflow: hidden;
}

.header__cart:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Header phone ↔ cart swap */
.header__phone.is-hidden,
.header__cart.is-hidden {
  max-width: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.header__phone.is-active,
.header__cart.is-active {
  opacity: 1;
  visibility: visible;
  /* Avoid resting transform — it clips the cart badge via border-radius */
  transform: none;
  pointer-events: auto;
}

.header__phone.is-leaving {
  animation: headerPhoneOut 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.header__cart.is-entering {
  visibility: visible;
  pointer-events: none;
  animation: headerCartIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.header__cart.is-leaving {
  animation: headerCartOut 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.header__phone.is-entering {
  visibility: visible;
  pointer-events: none;
  animation: headerPhoneIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes headerPhoneOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    max-width: 220px;
  }
  100% {
    opacity: 0;
    transform: translateX(-36px);
    max-width: 0;
    padding: 0;
    margin: 0;
  }
}

@keyframes headerCartIn {
  0% {
    opacity: 0;
    transform: translateX(40px);
    max-width: 0;
    padding: 0;
    border-width: 0;
  }
  55% {
    opacity: 1;
    transform: translateX(-5px);
    max-width: 220px;
    padding: 6px 12px 6px 10px;
    border-width: 1px;
  }
  75% {
    transform: translateX(3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    max-width: 220px;
    padding: 6px 12px 6px 10px;
    border-width: 1px;
  }
}

@keyframes headerCartOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    max-width: 220px;
    padding: 6px 12px 6px 10px;
    border-width: 1px;
  }
  100% {
    opacity: 0;
    transform: translateX(40px);
    max-width: 0;
    padding: 0;
    border-width: 0;
    margin: 0;
  }
}

@keyframes headerPhoneIn {
  0% {
    opacity: 0;
    transform: translateX(-36px);
    max-width: 0;
  }
  55% {
    opacity: 1;
    transform: translateX(5px);
    max-width: 220px;
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__phone.is-leaving,
  .header__phone.is-entering,
  .header__cart.is-leaving,
  .header__cart.is-entering {
    animation: none !important;
  }
}

.header__cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--blue);
  overflow: visible;
}

.header__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 1.5px #fff;
  pointer-events: none;
}

.header__cart-meta {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.15;
}

.header__cart-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__cart-meta strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 22, 40, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-backdrop[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}

.side-cart {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  height: 100%;
  background: #fff;
  box-shadow: 16px 0 40px rgba(11, 22, 40, 0.16);
  transform: translateX(-104%);
  transition: transform 0.28s var(--ease);
}

.side-cart.is-open {
  transform: translateX(0);
}

.side-cart[hidden] {
  display: flex !important;
  transform: translateX(-104%);
  pointer-events: none;
}

.side-cart.is-open[hidden] {
  pointer-events: auto;
}

.side-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.side-cart__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.side-cart__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.side-cart__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.side-cart__body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.side-cart__empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.side-cart__empty[hidden],
.side-cart__foot[hidden] {
  display: none !important;
}

.side-cart__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.side-cart__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.side-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.side-cart__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.side-cart__title:hover {
  color: var(--blue);
}

.side-cart__price {
  margin: 6px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.side-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.side-cart__qty button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.side-cart__qty button:hover {
  background: #e8eef7;
  color: var(--blue);
}

.side-cart__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.side-cart__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #8b95a5;
}

.side-cart__remove:hover {
  background: rgba(154, 52, 18, 0.08);
  color: #9a3412;
}

.side-cart__foot {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  background: #fff;
}

.side-cart__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

.side-cart__summary strong {
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.side-cart__foot .btn {
  width: 100%;
  justify-content: center;
}

body.is-cart-open {
  overflow: hidden;
}

.burger {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  overflow: visible;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(6px); }

/* X is formed from the center — stays inside the hit area under sticky clipping */
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 40;
  padding: 24px var(--gutter);
  overflow: auto;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 400px;
}

.mobile-nav a {
  padding: 14px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 16px;
  border-bottom: 0;
}

.mobile-nav__phone {
  border-bottom: 0 !important;
  color: var(--blue);
  font-weight: 600;
  margin-top: 8px;
}

.mobile-nav__shop {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.mobile-nav__shop svg {
  color: var(--blue);
  flex-shrink: 0;
}

.mobile-nav__group {
  border-bottom: 1px solid var(--line);
}

.mobile-nav__group summary {
  list-style: none;
  padding: 14px 4px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__group summary::-webkit-details-marker { display: none; }

.mobile-nav__group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
  margin-right: 4px;
}

.mobile-nav__group[open] summary::after,
.mobile-nav__group.is-open summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* Keep panel in layout so height can animate (UA hides closed details children) */
.mobile-nav__services {
  display: flex !important;
  flex-direction: column;
  padding: 0 4px 0 12px;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition:
    height 0.32s var(--ease),
    opacity 0.22s ease,
    padding 0.32s var(--ease);
}

.mobile-nav__group.is-open .mobile-nav__services {
  opacity: 1;
  padding-bottom: 12px;
}

.mobile-nav__services a {
  border-bottom: 0;
  padding: 10px 4px;
  font-size: 0.925rem;
  color: #2a3342;
}

.mobile-nav__all {
  color: var(--blue) !important;
  font-weight: 600;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__services,
  .mobile-nav__group summary::after {
    transition: none;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  color: #fff;
  min-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
}

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

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

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8, 16, 32, 0.94) 0%, rgba(8, 16, 32, 0.82) 38%, rgba(8, 16, 32, 0.35) 68%, rgba(8, 16, 32, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.15) 0%, rgba(8, 16, 32, 0.5) 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 48px;
  min-height: 520px;
}

.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 18px;
}

.hero__title em {
  font-style: normal;
  color: #4d9fff;
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-left: 4px;
}

.hero__play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero__play:hover .hero__play-btn {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.hero__play-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}

.video-lightbox__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.video-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.26s var(--ease);
}

.video-lightbox.is-open .video-lightbox__panel {
  transform: none;
}

.video-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.video-lightbox__close:hover {
  color: var(--blue);
}

.video-lightbox__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  background: #000;
  vertical-align: middle;
}

body.is-video-open {
  overflow: hidden;
}

.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  padding: 28px 0;
}

.stats__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stats__icon {
  width: 44px;
  height: 44px;
  color: #5ca0ff;
  flex-shrink: 0;
  opacity: 0.95;
}

.stats__icon svg { width: 100%; height: 100%; }

.stats__text {
  min-width: 0;
}

.stats__value {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.stats__value [data-counter] {
  display: inline;
}

.stats__label {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* ========== CLIENTS ========== */
.clients {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.clients__row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: center;
}

.clients__label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.clients__slider {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  container-name: logos;
}

.clients__viewport {
  overflow: hidden;
}

.clients__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}

.clients__fade--left {
  left: 0;
  background: linear-gradient(90deg, #fff 15%, rgba(255, 255, 255, 0));
}

.clients__fade--right {
  right: 0;
  background: linear-gradient(270deg, #fff 15%, rgba(255, 255, 255, 0));
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.clients__track.is-ready {
  animation: clients-slide 32s linear infinite;
}

.clients__slider:hover .clients__track.is-ready {
  animation-play-state: paused;
}

.clients__track li {
  flex: 0 0 148px;
  width: 148px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0 12px;
}

@supports (width: 1cqw) {
  .clients__track li {
    flex: 0 0 calc(100cqw / 6);
    width: calc(100cqw / 6);
  }
}

.clients__track img {
  max-height: 44px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.92;
  transition: opacity 0.2s, filter 0.2s;
}

.clients__track li:hover img {
  opacity: 1;
  filter: none;
}

@keyframes clients-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track.is-ready {
    animation: none;
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section__head {
  margin-bottom: 40px;
}

.section__head--center {
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ink);
}

.section__rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section__rule--left {
  margin-left: 0;
  margin-right: 0;
}

.section__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.section-eyebrow img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.15s;
}

.link-arrow:hover { color: var(--blue); }

.link-arrow__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1f6;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.link-arrow:hover .link-arrow__icon {
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateX(2px);
}

.link-arrow--sm {
  font-size: 0.875rem;
  margin-top: auto;
}

.link-arrow--sm .link-arrow__icon {
  width: 28px;
  height: 28px;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* ========== SECTION MARK (favicon watermark) ========== */
.section-mark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.section-mark::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: url("../assets/favicon.png") center / contain no-repeat;
  opacity: 0.16;
}

.section-mark--right::before {
  right: -150px;
  bottom: -150px;
}

.section-mark--left::before {
  left: -150px;
  bottom: -150px;
}

/* ========== SERVICES ========== */
.services {
  position: relative;
  background: var(--bg-soft);
}

.services__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

.services__intro-inner {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.services__intro .section__title {
  max-width: 12em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.services__lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 36ch;
  line-height: 1.65;
  font-size: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.svc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

a.svc { cursor: pointer; }

.svc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d5e0f2;
}

.svc__icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  display: block;
  flex-shrink: 0;
}

.svc__icon svg { width: 100%; height: 100%; }

.svc__body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.3;
}

.svc__body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== PROJECTS ========== */
.projects__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.projects__intro .section__title {
  max-width: 12em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.projects__intro > p {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 36ch;
  line-height: 1.65;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--navy);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.project__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 32, 0.88));
  color: #fff;
}

.project__cap strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.project__cap span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ========== PROJECTS ARCHIVE / SINGLE ========== */
.projects-archive {
  padding-top: clamp(28px, 4vw, 40px);
}

.projects-archive__head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.projects-archive__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
}

.projects-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 22, 40, 0.04);
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: #c5d4eb;
  box-shadow: 0 12px 28px rgba(11, 22, 40, 0.08);
  transform: translateY(-2px);
}

.project-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

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

.project-card__body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 16px 18px;
}

.project-card__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.project-card__body h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .link-arrow {
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 1100px) {
  .projects-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-archive__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card__body {
    padding: 16px 16px 18px;
  }

  .project-card__body h2 {
    font-size: 1.1rem;
  }
}

.project-page {
  padding-top: clamp(28px, 4vw, 40px);
}

.project-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.project-page__hero {
  margin-bottom: 28px;
}

.project-page__date {
  display: inline-block;
  margin: 8px 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.project-page__media {
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef2f7;
}

.project-page__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-page__hero > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 14px;
}

.project-page__hero .svc-hero__actions {
  margin-top: 22px;
}

.project-page .svc-sidebar__nav a {
  grid-template-columns: 1fr;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .project-page__layout {
    grid-template-columns: 1fr;
  }
}

/* ========== NEWS ========== */
.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.news-card {
  color: inherit;
}

.news-card__media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding-top: 20px;
}

.news-card__body h2,
.news-card__body h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s;
}

.news-card__body h3 a:hover { color: var(--blue); }

.news-card:hover .news-card__body h2,
.news-card:hover .news-card__body h3,
.news-card:hover .news-card__body h3 a {
  color: var(--blue);
}

.news-card:hover .link-arrow {
  color: var(--blue);
}

.news-card:hover .link-arrow__icon {
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateX(2px);
}

.news-card__body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-card__date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ========== NEWS ARCHIVE ========== */
.news-archive {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background: transparent;
}

.news-archive__head {
  max-width: 42rem;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.news-archive__lead {
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

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

.news-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 22, 40, 0.04);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.news-filter-jump,
.shop-filter-jump {
  display: none;
}

@media (min-width: 901px) {
  .news-filter-jump,
  .shop-filter-jump {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 45;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 48px;
    padding: 14px 0 18px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: var(--blue);
    color: #fff;
    box-shadow: 6px 10px 28px rgba(0, 102, 255, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-12px, -50%);
    transition: opacity 0.39s var(--ease), transform 0.455s var(--ease), background 0.15s;
  }

  .news-filter-jump[hidden],
  .shop-filter-jump[hidden] {
    display: inline-flex !important;
  }

  .news-filter-jump.is-visible,
  .shop-filter-jump.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
  }

  .news-filter-jump:hover,
  .shop-filter-jump:hover {
    background: var(--blue-hover);
  }

  .news-filter-jump__icon,
  .shop-filter-jump__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
  }

  .news-filter-jump__label,
  .shop-filter-jump__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .news-filter-jump,
  .shop-filter-jump {
    transition: none;
  }
}

.news-toolbar:has(.c-select.is-open),
.news-toolbar:focus-within {
  z-index: 40;
}

.news-toolbar__search {
  flex: 1 1 280px;
  min-width: 0;
}

.news-toolbar__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.news-search {
  position: relative;
  display: block;
}

.news-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b95a5;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.news-search__input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.news-search__input::placeholder {
  color: #8b95a5;
}

.news-search__input:hover {
  background: #eef2f7;
}

.news-search__input:focus {
  outline: none;
  background: #fff;
  border-color: #b7c9e8;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.news-search__input::-webkit-search-decoration,
.news-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.news-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b95a5;
  cursor: pointer;
}

.news-search__clear[hidden] {
  display: none !important;
}

.news-search__clear:hover {
  background: rgba(11, 22, 40, 0.06);
  color: var(--ink);
}

/* Custom select */
.c-select {
  position: relative;
  z-index: 1;
  min-width: 148px;
}

.c-select.is-open {
  z-index: 50;
}

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

.c-select__trigger {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.c-select__trigger:hover {
  border-color: #c5d0e0;
  background: #fafbfd;
}

.c-select.is-open .c-select__trigger,
.c-select__trigger:focus {
  outline: none;
  border-color: #b7c9e8;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.c-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-select__chevron {
  flex-shrink: 0;
  color: #8b95a5;
  transition: transform 0.2s var(--ease);
}

.c-select.is-open .c-select__chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.c-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 22, 40, 0.12);
  max-height: 260px;
  overflow: auto;
}

.c-select__option {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  color: #2a3342;
  cursor: pointer;
}

.c-select__option:hover,
.c-select__option.is-active {
  background: var(--bg-soft);
  color: var(--ink);
}

.c-select__option.is-selected {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.c-select__option.is-selected.is-active {
  background: #dceaff;
}

.c-select--field {
  width: 100%;
  min-width: 0;
}

.c-select--field .c-select__trigger {
  height: 48px;
  justify-content: space-between;
  background: var(--bg-soft);
  font-weight: 500;
}

.c-select--field .c-select__trigger:hover {
  background: #eef2f7;
}

.c-select--field.is-open .c-select__trigger,
.c-select--field .c-select__trigger:focus {
  background: #fff;
}

.c-select--field .c-select__value.is-placeholder {
  color: #8b95a5;
  font-weight: 500;
}

.contact-form-wrap:has(.c-select.is-open) {
  overflow: visible;
}

.news-reset {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #8b95a5;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.news-reset[hidden] {
  display: none !important;
}

.news-reset:hover {
  color: #c0392b;
  border-color: #f0c4c0;
  background: #fff7f6;
}

.news-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
  border-color: #b7c9e8;
}

.news-toolbar__views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
}

.news-view-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b95a5;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.news-view-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.news-view-btn.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(11, 22, 40, 0.08);
}

.news-archive__count-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    grid-template-rows 0.35s var(--ease),
    opacity 0.3s ease,
    margin 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.news-archive__count-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin: -8px 0 18px;
  transform: translateY(0);
  pointer-events: auto;
}

.news-archive__count-inner {
  overflow: hidden;
  min-height: 0;
}

.news-archive__count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .news-archive__count-wrap {
    transition: none;
    transform: none;
  }
}

.news-archive__empty {
  padding: 28px 20px;
  margin-bottom: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.news-archive__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-archive__grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 16px;
}

.news-archive__grid[data-view="list"] .news-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 0 24px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.news-archive__grid[data-view="list"] .news-card:hover {
  border-color: #d5e0f2;
  box-shadow: 0 8px 24px rgba(11, 22, 40, 0.06);
}

.news-archive__grid[data-view="list"] .news-card__media {
  aspect-ratio: 16 / 10;
}

.news-archive__grid[data-view="list"] .news-card__body {
  padding-top: 0;
}

.news-archive__grid .news-card__body h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .news-archive__grid[data-view="grid"] {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .news-archive__grid[data-view="grid"],
  .news-archive__grid[data-view="list"] {
    grid-template-columns: 1fr;
  }

  .news-archive__grid[data-view="list"] .news-card {
    grid-template-columns: 1fr;
  }

  .news-toolbar__aside {
    width: 100%;
    justify-content: space-between;
  }

  .c-select {
    flex: 1;
  }
}

/* ========== NEWS POST ========== */
.post-page {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background: transparent;
}

.post-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.65fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.post-hero {
  margin-bottom: 22px;
}

.post-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 22ch;
}

.post-hero__date {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.post-hero__media {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 9;
}

.post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-content {
  max-width: 66ch;
}

.post-content p {
  color: #2a3342;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.1em;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.post-content + .post-share {
  margin-top: 36px;
  margin-bottom: 0;
}

.post-share__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-share__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #2a3342;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

a.post-share__btn { text-decoration: none; }

.post-share__btn:hover {
  border-color: #9eb6e0;
  color: var(--blue);
  background: #f5f8ff;
}

.post-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.post-related {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.post-related__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.post-related__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.post-related__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
}

.post-related__item img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.post-related__item time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-related__item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.post-related__item:hover strong { color: var(--blue); }

@media (max-width: 1100px) {
  .post-page__layout {
    grid-template-columns: 1fr;
  }

  .post-aside {
    position: static;
  }
}

/* ========== FAQ ========== */
.faq {
  position: relative;
  background: var(--bg-soft);
}

.faq__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

.faq__intro-inner {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq__intro .section__title {
  max-width: 12em;
  margin-bottom: 16px;
}

.faq__lead {
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.65;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4e9f1;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open],
.faq__item.is-open {
  border-color: #d5e0f2;
  box-shadow: var(--shadow);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: #8a93a3;
  transition: color 0.2s, transform 0.2s;
}

.faq__item[open] summary::after,
.faq__item.is-open summary::after {
  content: "−";
  color: var(--blue);
}

/* Keep panel in layout so height can animate (UA hides closed details children) */
.faq__item > .faq__answer {
  display: block !important;
  height: 0;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: height;
}

.faq__item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.6;
  opacity: 0.55;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.faq__item.is-open p,
.faq__item[open] p {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .faq__item > .faq__answer,
  .faq__item p {
    transition: none;
  }
}

/* ========== CTA ========== */
.cta {
  background: var(--blue-soft);
  padding: 48px 0;
}

.cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 8px;
}

.cta p { color: var(--muted); max-width: 48ch; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1fr;
  gap: 32px;
  padding: 64px 0 48px;
}

.footer__brand img {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 28ch;
  margin-bottom: 18px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.footer__social a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer li,
.footer a {
  font-size: 0.9rem;
}

.footer a:hover { color: #fff; }

.footer__contact .btn { width: 100%; }

.footer__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

/* Beat global `img { height: auto }` so badge boxes stay uniform */
.footer__badges .footer__badge {
  box-sizing: border-box;
  width: 100%;
  height: 56px !important;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.footer__badges .footer__badge--rating {
  grid-column: 1 / -1;
  width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  max-height: 72px !important;
  justify-self: start;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-row div,
.footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
}

.footer__legal-dot {
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  user-select: none;
}

.footer__bottom a:hover { color: #fff; }

.footer__funding {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__funding-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 28px;
}

.footer__funding-logo {
  flex-shrink: 0;
  line-height: 0;
}

.footer__funding-logo img {
  width: 140px;
  height: auto;
  display: block;
  border-radius: 2px;
}

.footer__funding-row p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .header__right .btn--primary { display: none; }
  .header__cart-meta { display: none; }
  .header__row {
    gap: 12px;
    overflow: visible;
  }
  .header__right {
    gap: 8px;
    flex-shrink: 0;
    overflow: visible;
  }
  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }
  .logo img {
    height: 28px;
    max-width: min(168px, 46vw);
    width: auto;
  }
  .header__cart {
    /* Extra padding keeps the count badge inside the sticky header clip */
    padding: 10px 12px 8px 10px;
    min-height: 44px;
    overflow: visible;
    transform: none;
  }
  .header__cart-icon {
    width: 26px;
    height: 26px;
  }
  .header__cart-badge {
    top: -1px;
    right: -1px;
  }
  .burger {
    display: block;
  }
  .mega,
  .mega-backdrop { display: none !important; }

  .hero__grid {
    padding-top: 48px;
    min-height: 440px;
  }

  .clients__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services__intro-inner,
  .faq__intro-inner {
    position: static;
  }

  .services__intro .section__title,
  .projects__intro .section__title {
    max-width: none;
  }

  .services__lead,
  .projects__intro > p {
    max-width: 48ch;
  }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .projects__layout,
  .faq__layout {
    grid-template-columns: 1fr;
  }

  .news__grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq__intro .section__title {
    max-width: none;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding: 48px 0 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__brand p {
    max-width: none;
  }

  .footer__contact,
  .footer__certs {
    grid-column: 1 / -1;
  }

  .footer h4 {
    margin-bottom: 12px;
  }

  .footer ul {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .mega__body {
    grid-template-columns: 1fr;
  }

  .mega__aside {
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .mega__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .mega__foot-actions {
    width: 100%;
  }

  .mega__foot-actions .mega__service {
    flex: 1 1 auto;
    justify-content: center;
  }

  .news__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 24px 0;
  }

  .stats__value { font-size: 1.6rem; }
  .stats__icon { width: 36px; height: 36px; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .clients__track li {
    flex-basis: 120px;
    width: 120px;
    height: 60px;
  }

  .clients__track img { max-height: 36px; }

  .clients__fade { width: 40px; }

  .clients__track.is-ready {
    animation-duration: 24s;
  }

  @supports (width: 1cqw) {
    .clients__track li {
      flex-basis: calc(100cqw / 3.5);
      width: calc(100cqw / 3.5);
    }
  }
  .block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__main {
    gap: 24px 16px;
    padding: 40px 0 28px;
  }

  .footer__brand {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: start;
  }

  .footer__brand img {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .footer__brand p {
    margin-bottom: 0;
    font-size: 0.85rem;
  }

  .footer__social {
    justify-self: end;
    align-self: center;
  }

  .footer__badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .footer__badges .footer__badge {
    height: 48px !important;
    max-height: 48px;
    padding: 6px;
  }

  .footer__badges .footer__badge--rating {
    grid-column: auto;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    max-height: 48px !important;
    justify-self: stretch;
    object-fit: contain;
  }

  .footer__bottom-row { flex-direction: column; }
  .footer__funding-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__funding-logo img { width: 160px; }
  .hero__title { max-width: none; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ========== SERVICE PAGE ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a:hover { color: var(--blue); }

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 720px) {
  .breadcrumb {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb > * {
    flex-shrink: 0;
  }
}

.svc-archive {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background: transparent;
}

.svc-archive__head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.svc-archive__lead {
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

.svc-archive__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.svc--archive .svc__body h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.3;
}

.svc__icon--framed {
  width: 48px;
  height: 48px;
  color: inherit;
}

.svc__icon--framed img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.svc__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.svc--archive:hover .svc__more {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .svc-archive__grid {
    grid-template-columns: 1fr;
  }
}

.svc-hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 18ch;
}

.svc-hero__copy {
  margin-bottom: clamp(36px, 5vw, 52px);
}

.svc-hero__copy p {
  color: var(--muted);
  max-width: none;
  line-height: 1.65;
  margin-bottom: 14px;
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.svc-page {
  padding-top: clamp(28px, 4vw, 40px);
}

.svc-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.svc-page__main .breadcrumb {
  margin-bottom: 22px;
}

.svc-page__head {
  margin-bottom: 28px;
}

.svc-page__head .section__title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  max-width: 36ch;
}

.svc-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.svc-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
}

.svc-block h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.svc-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-block li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

.svc-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: url("../assets/favicon.png") center / contain no-repeat;
}

.svc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.svc-sidebar__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.svc-sidebar__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Unified consultation CTA (services, pieredze, shop, news) */
.help-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.help-cta__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.help-cta__text {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: #4b5870;
}

.help-cta__btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.help-cta__contacts {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(11, 22, 40, 0.08);
}

.help-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.help-cta__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.help-cta__link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-cta__link:hover {
  color: var(--blue-hover);
}

.help-cta__link:hover span {
  text-decoration: underline;
}

.svc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-sidebar__nav a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 600;
  color: #2a3342;
  transition: background 0.15s, color 0.15s;
}

.svc-sidebar__icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.svc-sidebar__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.svc-sidebar__nav a:hover {
  background: #fff;
  color: var(--blue);
}

.svc-sidebar__nav a.is-active {
  background: #fff;
  color: var(--blue);
}

@media (max-width: 1100px) {
  .svc-page__layout {
    grid-template-columns: 1fr;
  }

  .svc-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .svc-blocks {
    grid-template-columns: 1fr;
  }

  .svc-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ========== TOAST ========== */
.toast-host {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  width: 100%;
  background: #0b1628;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 22, 40, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.toast__body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 12px;
}

.toast__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.18);
  color: #7eb0ff;
  flex-shrink: 0;
}

.toast--error .toast__icon {
  background: rgba(220, 70, 70, 0.18);
  color: #ff9b9b;
}

.toast__message {
  margin: 0;
  padding-top: 3px;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
}

.toast__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.toast__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.toast__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform-origin: left center;
  animation-name: toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.toast--error .toast__progress-bar {
  background: #e85a5a;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
    transform: none;
  }

  .toast__progress-bar {
    animation: none;
    transform: scaleX(0.35);
  }
}

/* ========== ABOUT ========== */
.about-hero {
  padding: clamp(28px, 4vw, 40px) 0 clamp(40px, 6vw, 64px);
  background: transparent;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 18px;
}

.about-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 28px;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: 0 20px 50px rgba(11, 22, 40, 0.1);
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.about-stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.about-stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.about-stat:last-child { border-right: 0; }

.about-stat strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.about-stat span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.about-story__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-story__copy p {
  color: #2a3342;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.1em;
  max-width: 58ch;
}

.about-facts {
  position: relative;
  background: var(--bg-soft);
}

.about-facts__head {
  max-width: 34rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about-facts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.about-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.about-fact__index {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  padding-top: 3px;
}

.about-fact h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.about-fact p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-certs__head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about-certs__lead {
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
  margin-top: 12px;
}

.about-certs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.about-cert {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.2s var(--ease);
}

.about-cert:hover {
  border-color: #d5e0f2;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.about-cert img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--bg-soft);
}

.about-cert span {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.about-team {
  background: var(--bg-soft);
}

.about-team__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-team__intro-inner {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-width: 22rem;
}

.about-team__intro .section__title {
  margin-bottom: 14px;
}

.about-team__lead {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 22px;
}

.about-team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.about-person {
  text-align: center;
  padding: 8px 8px 4px;
}

.about-person__photo {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #0b1628;
  box-shadow: 0 14px 36px rgba(11, 22, 40, 0.14);
}

.about-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}

.about-person h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.about-person p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== SUPPORT (Tehniskā palīdzība) ========== */
.page-support .section {
  padding: clamp(32px, 4vw, 52px) 0;
}

.support-hero {
  padding: clamp(16px, 2.5vw, 28px) 0 clamp(24px, 3.5vw, 36px);
}

.support-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.support-hero__copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.support-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 12px;
}

.support-hero__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 54ch;
}

.support-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  height: 100%;
}

.support-hero__aside-label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-hero__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.support-hero__contact:hover {
  border-color: #c9d7ee;
  box-shadow: 0 6px 16px rgba(11, 22, 40, 0.05);
}

.support-hero__contact span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.support-hero__contact strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.support-hero__contact small {
  font-size: 0.8rem;
  color: var(--muted);
}

.support-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.support-section__head {
  margin-bottom: clamp(16px, 2.5vw, 22px);
  max-width: 40rem;
}

.page-support .support-section__head .section__title {
  margin-bottom: 8px;
}

.support-section__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 48ch;
}

.support-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  height: 100%;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.support-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.support-card > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.support-card > ul:not(.support-list) li {
  position: relative;
  padding-left: 14px;
  color: #3d4a5f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.support-card > ul:not(.support-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3d4a5f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.support-list .support-mark {
  margin-top: 1px;
}

.support-coverage {
  background: var(--bg-soft);
}

.support-coverage__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.support-coverage__block .section__title {
  margin-bottom: 18px;
}

.support-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.support-topics li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.support-topics li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.support-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.support-reasons li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.support-reasons__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.support-reasons li > span:last-child {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.support-process {
  background: #fff;
}

.support-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.support-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 100%;
}

.support-step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.support-step h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.support-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Keep partners page cards working */
.support-intro__layout {
  max-width: 48rem;
}

.support-intro__lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.support-intro__lead:last-child {
  margin-bottom: 0;
}

.support-systems__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-systems__list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.support-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.support-why__list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.support-why__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-60%) rotate(-45deg);
}

@media (max-width: 1100px) {
  .about-hero__grid,
  .about-story__layout,
  .about-facts__list,
  .about-certs__grid,
  .about-team__layout,
  .support-systems__list {
    grid-template-columns: 1fr;
  }

  .support-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-team__intro-inner {
    position: static;
    max-width: none;
  }

  .about-stats__row {
    grid-template-columns: 1fr 1fr;
  }

  .about-stat:nth-child(2) { border-right: 0; }
  .about-stat:nth-child(1),
  .about-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .about-stats__row {
    grid-template-columns: 1fr;
  }

  .about-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-stat:last-child { border-bottom: 0; }

  .support-hero__grid,
  .support-help__grid,
  .support-coverage__grid,
  .support-topics,
  .support-steps {
    grid-template-columns: 1fr;
  }

  .support-topics li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .support-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .support-hero__aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .support-hero__aside-label {
    flex: 1 0 100%;
  }

  .support-hero__contact {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .support-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .support-help__grid {
    grid-template-columns: 1fr 1fr;
  }

  .support-coverage__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .support-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-step:nth-child(4),
  .support-step:nth-child(5) {
    grid-column: span 1;
  }
}

/* ========== CONTACT ========== */
.contact-hero {
  padding: clamp(28px, 4vw, 40px) 0 8px;
  background: transparent;
}

.contact-hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 14px;
}

.contact-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}

.contact-main {
  padding-top: clamp(28px, 4vw, 40px);
}

.contact-main__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 1px 2px rgba(11, 22, 40, 0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.contact-form > .btn {
  margin-top: auto;
}

.contact-form__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a3342;
}

.field__label abbr {
  color: var(--blue);
  text-decoration: none;
}

.field__hint {
  font-weight: 500;
  color: var(--muted);
}

.field__control {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field__control:hover { background: #eef2f7; }

.field__control:focus {
  outline: none;
  background: #fff;
  border-color: #b7c9e8;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238b95a5' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field__control--area {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--muted);
}

.field--check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.field--check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-drop {
  position: relative;
  display: block;
  border: 1.5px dashed #cfd8e6;
  border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color 0.15s, background 0.15s;
}

.file-drop:hover {
  border-color: #9eb6e0;
  background: #f5f8ff;
}

.file-drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop__ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  text-align: center;
  pointer-events: none;
}

.file-drop__ui strong {
  color: var(--blue);
  font-size: 0.95rem;
}

.file-drop__ui span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.contact-aside__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.contact-aside__card--office {
  position: relative;
}

.contact-aside__card--office .contact-aside__label,
.contact-aside__card--office .contact-aside__address {
  padding-right: 40px;
}

.contact-aside__ext {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.contact-aside__ext:hover {
  color: var(--blue);
  border-color: #c5d4eb;
  background: var(--blue-soft);
}

.contact-aside__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-aside__phone {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.contact-aside__phone:hover { color: var(--blue); }

.contact-aside__mail:hover { color: var(--blue); }

.contact-aside__mail {
  font-weight: 600;
  color: var(--blue);
}

.copy-link--aside {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-bottom: 6px;
}

.copy-link--aside + .contact-aside__hours {
  margin-top: 4px;
}

.contact-aside__hours,
.contact-aside__address {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.contact-aside__address strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-aside__photo {
  margin: 14px 0 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe6f1;
}

.contact-aside__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.contact-legal strong {
  color: var(--ink);
  font-weight: 700;
}

.copy-link--legal {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.copy-link--legal > span {
  min-width: 0;
}

.contact-people {
  background: var(--bg-soft);
}

.contact-people__head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.contact-people__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.contact-person {
  text-align: center;
}

.contact-person .about-person__photo {
  width: min(100%, 160px);
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
}

.contact-person .about-person__photo img {
  border-radius: 50%;
  object-fit: cover;
}

.contact-person h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-person__role {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 10px;
}

.contact-person .copy-link {
  /* 1fr | text | 1fr — keeps phone/email centered; copy btn sits in the right rail */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 4px;
  width: 100%;
  margin: 0;
  line-height: 1.35;
}

.contact-person .copy-link + .copy-link {
  margin-top: 2px;
}

.contact-person .copy-link a {
  grid-column: 2;
  justify-self: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-person .copy-link a:hover { text-decoration: underline; }

.contact-person .copy-link__btn {
  grid-column: 3;
  justify-self: start;
  width: 22px;
  height: 22px;
  margin-block: -2px;
  transform: none;
}

.copy-link__btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-2px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.15s, color 0.15s;
}

.copy-link:hover .copy-link__btn,
.copy-link.is-copied .copy-link__btn,
.copy-link__btn:focus-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.copy-link.is-fading .copy-link__btn {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.copy-link__btn:hover {
  background: var(--blue-soft);
}

.copy-link__icon {
  display: block;
  grid-area: 1 / 1;
}

.copy-link__icon--check {
  color: #1f7a45;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-link__icon--copy {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-link.is-copied .copy-link__icon--copy {
  opacity: 0;
  transform: scale(0.7);
}

.copy-link.is-copied .copy-link__icon--check {
  opacity: 1;
  transform: scale(1);
}

/* Copy icons are desktop-only (hover reveal); hide on mobile/touch layouts */
@media (max-width: 1100px) {
  .copy-link__btn {
    display: none !important;
  }
}

.contact-map {
  padding: clamp(48px, 7vw, 80px) 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 40%, var(--bg-soft) 100%);
}

.contact-map__head {
  max-width: 40rem;
  margin: 0 auto 28px;
  text-align: center;
}

.contact-map__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-map__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(11, 22, 40, 0.08);
}

.contact-map__frame {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 420px;
  background: #e8eef6;
}

.contact-map__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.contact-map__panel {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px;
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(230, 235, 242, 0.95);
  box-shadow: 0 10px 28px rgba(11, 22, 40, 0.12);
  backdrop-filter: blur(8px);
}

.contact-map__panel-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-map__panel-address {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-map__panel-address strong {
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-map__panel-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.contact-map__panel-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.contact-map__panel-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1100px) {
  .contact-main__layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-aside__card--legal {
    grid-column: 1 / -1;
  }

  .contact-people__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .contact-form__grid,
  .contact-aside {
    grid-template-columns: 1fr;
  }

  .contact-people__grid {
    grid-template-columns: 1fr;
  }

  .contact-map__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-map__frame,
  .contact-map__frame iframe {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .contact-map__panel {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 12px;
    padding: 16px;
  }

  .contact-map__panel-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .contact-map__panel-actions {
    grid-template-columns: 1fr;
  }
}

/* ========== E-VEIKALS ========== */
.shop-hero {
  padding: clamp(28px, 4vw, 40px) 0 clamp(8px, 1.5vw, 16px);
  background: transparent;
}

.shop-hero__copy {
  max-width: 40rem;
  margin-top: 12px;
}

.shop-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shop-hero__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

.shop-archive {
  padding-top: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background: transparent;
}

.shop-archive__layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.shop-sidebar__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.shop-sidebar__toggle svg {
  transition: transform 0.2s ease;
}

.shop-sidebar.is-open .shop-sidebar__toggle svg {
  transform: rotate(180deg);
}

.shop-sidebar__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-nav {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.shop-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.shop-nav a:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.shop-nav a.is-active,
.shop-nav__parent.is-active {
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue);
  font-weight: 650;
}

.shop-nav__group {
  display: grid;
  gap: 2px;
}

.shop-nav a.shop-nav__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.shop-nav__label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
}

.shop-nav__chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  align-self: center;
  color: currentColor;
  opacity: 0.7;
}

.shop-nav__parent:hover .shop-nav__chevron,
.shop-nav__parent.is-active .shop-nav__chevron,
.shop-nav__group.is-open .shop-nav__chevron {
  opacity: 1;
}

.shop-nav__group.is-open .shop-nav__chevron svg {
  transform: rotate(180deg);
}

.shop-nav__chevron svg {
  display: block;
  transition: transform 0.2s var(--ease);
}

.shop-nav__children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition:
    height 0.32s var(--ease),
    opacity 0.22s ease,
    padding 0.32s var(--ease);
}

.shop-nav__group.is-open .shop-nav__children {
  height: auto;
  opacity: 1;
  padding-bottom: 4px;
}

.shop-nav__children[hidden] {
  display: none !important;
}

.shop-nav__children.is-animating[hidden] {
  display: grid !important;
}

.shop-nav__children a {
  padding-left: 24px;
  font-size: 0.9rem;
  font-weight: 450;
  color: #4a5568;
}

@media (prefers-reduced-motion: reduce) {
  .shop-nav__children {
    transition: none;
  }
}

.shop-sidebar .help-cta {
  margin-top: 4px;
}

.shop-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 22, 40, 0.04);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.shop-toolbar:has(.c-select.is-open),
.shop-toolbar:focus-within {
  z-index: 40;
}

.shop-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.shop-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b95a5;
  pointer-events: none;
}

.shop-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.shop-search input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.shop-toolbar__count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.shop-toolbar__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.shop-toolbar__views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
}

.shop-view-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b95a5;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.shop-view-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.shop-view-btn.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(11, 22, 40, 0.08);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-toolbar__sort-label {
  white-space: nowrap;
}

.shop-toolbar__sort .c-select {
  min-width: 220px;
}

.shop-toolbar__sort .c-select__menu {
  min-width: 100%;
  width: max-content;
  max-width: min(320px, 80vw);
}

.shop-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 56px) 24px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0, 102, 255, 0.06), transparent 60%),
    #fff;
  text-align: center;
}

.shop-empty[hidden],
.shop-card[hidden] {
  display: none !important;
}

.shop-empty__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue);
}

.shop-empty__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.shop-empty__text {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.shop-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.shop-empty__actions [data-shop-empty-clear][hidden] {
  display: none !important;
}

.shop-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shop-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 14px;
}

.shop-grid[data-view="list"] .shop-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 20px;
  transform: none;
}

.shop-grid[data-view="list"] .shop-card:hover {
  transform: none;
}

.shop-grid[data-view="list"] .shop-card__main {
  display: contents;
}

.shop-grid[data-view="list"] .shop-card__media {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: 1;
  align-self: stretch;
  border-right: 1px solid var(--line);
}

.shop-grid[data-view="list"] .shop-card__media img {
  padding: 12px;
}

.shop-grid[data-view="list"] .shop-card__stock {
  left: auto;
  right: 14px;
  top: 12px;
  z-index: 3;
}

.shop-grid[data-view="list"] .shop-card__body {
  grid-column: 2;
  grid-row: 1;
  padding: 16px 110px 4px 0;
  gap: 6px;
}

.shop-grid[data-view="list"] .shop-card__body h2 {
  -webkit-line-clamp: 2;
  font-size: 1.05rem;
}

.shop-grid[data-view="list"] .shop-card__price {
  margin-top: 4px;
}

.shop-grid[data-view="list"] .shop-card__footer {
  grid-column: 2;
  grid-row: 2;
  padding: 0 18px 14px 0;
  border-top: 0;
}

.shop-grid--related {
  grid-template-columns: repeat(4, 1fr);
}

.shop-grid--related[data-view="list"] {
  grid-template-columns: repeat(4, 1fr);
}

.shop-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 28px;
  padding-top: 8px;
}

.shop-pagination[hidden] {
  display: none !important;
}

.shop-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.shop-pagination__btn:hover:not(:disabled) {
  border-color: rgba(0, 102, 255, 0.35);
  color: var(--blue);
  background: #f7faff;
}

.shop-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.shop-pagination__page {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop-pagination__page:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.shop-pagination__page.is-active {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.22);
  color: var(--blue);
}

.shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.shop-card:hover {
  border-color: rgba(0, 102, 255, 0.28);
  box-shadow: 0 12px 28px rgba(11, 22, 40, 0.08);
  transform: translateY(-2px);
}

.shop-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.shop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.35s ease;
}

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

.shop-card__stock {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: #1f7a45;
}

.shop-card__stock-icon,
.product-page__stock-icon {
  flex-shrink: 0;
  display: block;
}

.shop-card__stock.is-out {
  color: #9a3412;
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 10px;
  flex: 1;
}

.shop-card__body h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__price {
  margin-top: auto;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
}

.shop-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  opacity: 0.9;
}

.shop-card__cta:hover {
  opacity: 1;
  text-decoration: underline;
}

.shop-card__cart {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.shop-card__cart:hover {
  border-color: rgba(0, 102, 255, 0.4);
  background: rgba(0, 102, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.shop-card__cart:active {
  transform: scale(0.96);
}

.product-page {
  padding-top: clamp(24px, 3.5vw, 36px);
  padding-bottom: clamp(40px, 6vw, 64px);
  background: transparent;
}

.product-page .breadcrumb {
  margin-bottom: 22px;
}

.product-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.product-page__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.product-page__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(24px, 4vw, 48px);
  transition: transform 0.35s var(--ease);
}

.product-page__media:hover img {
  transform: scale(1.02);
}

.product-page__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(11, 22, 40, 0.1);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.15s, color 0.15s, background 0.15s;
}

.product-page__media:hover .product-page__zoom,
.product-page__media:focus-within .product-page__zoom {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.product-page__zoom:hover {
  border-color: rgba(0, 102, 255, 0.35);
  color: var(--blue);
  background: #fff;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.product-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-lightbox[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}

.product-lightbox__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(11, 22, 40, 0.72);
  cursor: zoom-out;
}

.product-lightbox__img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(960px, 100%);
  max-height: min(86vh, 900px);
  object-fit: contain;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 22, 40, 0.35);
  transform: scale(0.96);
  transition: transform 0.24s var(--ease);
}

.product-lightbox.is-open .product-lightbox__img {
  transform: none;
}

.product-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(11, 22, 40, 0.16);
  cursor: pointer;
}

.product-lightbox__close:hover {
  color: var(--blue);
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (hover: none) {
  .product-page__zoom {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.product-page__title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product-page__price {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.product-page__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(31, 122, 69, 0.1);
  color: #1f7a45;
}

.product-page__stock.is-out {
  background: rgba(154, 52, 18, 0.1);
  color: #9a3412;
}

.product-page__excerpt {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

.product-page__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.product-page__qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-page__qty-label {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
}

.product-page__buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.product-qty {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(11, 22, 40, 0.04);
}

.product-qty__btn {
  width: 40px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: var(--bg-soft);
}

.product-qty__btn:hover {
  background: #e8eef7;
  color: var(--blue);
}

.product-qty__input {
  width: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  -moz-appearance: textfield;
}

.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-qty__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 102, 255, 0.25);
}

.product-sticky-buy {
  display: none;
}

@media (max-width: 720px) {
  .product-sticky-buy {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(11, 22, 40, 0.08);
    box-shadow: 0 -10px 28px rgba(11, 22, 40, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.34s var(--ease),
      opacity 0.28s var(--ease);
  }

  .product-sticky-buy.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep footer clear of the sticky buy bar */
  body.has-sticky-buy .footer {
    padding-bottom: calc(var(--sticky-buy-h, 96px) + 12px);
  }
}

.product-sticky-buy__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-sticky-buy__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.product-sticky-buy__thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.product-sticky-buy__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-sticky-buy__title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-sticky-buy__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

.product-sticky-buy__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.product-sticky-buy__actions[hidden] {
  display: none !important;
}

.product-sticky-buy__actions .btn {
  white-space: nowrap;
}

.product-sticky-buy .product-qty {
  height: 44px;
}

.product-sticky-buy .product-qty__btn {
  width: 36px;
}

.product-sticky-buy__incart {
  display: none;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.product-sticky-buy__incart[hidden] {
  display: none !important;
}

.product-sticky-buy__check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.product-sticky-buy__incart-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.product-sticky-buy__incart-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #14532d;
}

.product-sticky-buy__incart-copy span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #166534;
}

.product-sticky-buy__cart-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #166534;
  background: #fff;
  border: 1px solid #86efac;
}

.product-sticky-buy__cart-btn:hover {
  background: #f0fdf4;
  color: #14532d;
}

@media (prefers-reduced-motion: reduce) {
  .product-sticky-buy {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .product-sticky-buy:not(.is-visible) {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .product-sticky-buy__inner {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .product-sticky-buy__product {
    flex: 1 1 100%;
  }

  .product-sticky-buy__actions {
    width: 100%;
  }

  .product-sticky-buy__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .product-sticky-buy.is-in-cart .product-sticky-buy__product {
    display: none;
  }

  .product-sticky-buy.is-in-cart .product-sticky-buy__incart {
    display: flex;
    width: 100%;
  }

  .product-sticky-buy.is-in-cart .product-sticky-buy__price {
    display: none;
  }
}

@media (max-width: 520px) {
  .product-sticky-buy__price {
    display: none;
  }

  .product-sticky-buy .product-qty__input {
    width: 36px;
  }

  .product-sticky-buy__incart-copy span {
    display: none;
  }
}

/* Product ask modal */
.ask-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 22, 40, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.ask-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ask-backdrop[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}

.ask-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.ask-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ask-modal[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}

.ask-modal__panel {
  width: min(560px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 22, 40, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s var(--ease);
}

.ask-modal.is-open .ask-modal__panel {
  transform: none;
}

.ask-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.ask-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ask-modal__head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.ask-modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.ask-modal__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.ask-modal__form {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.ask-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ask-modal__form .field__control[readonly] {
  background: #f3f6fa;
  color: var(--ink);
  font-weight: 600;
  cursor: default;
}

.ask-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

body.is-ask-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ask-modal__grid {
    grid-template-columns: 1fr;
  }

  .ask-modal__actions {
    flex-direction: column-reverse;
  }

  .ask-modal__actions .btn {
    width: 100%;
  }
}

.product-page__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-page__meta a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.product-page__meta a:hover {
  text-decoration: underline;
}

.product-page__desc {
  width: 100%;
  max-width: none;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.product-page__desc h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.product-page__desc p {
  margin: 0 0 12px;
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.7;
}

.shop-related {
  padding-top: 0;
  padding-bottom: clamp(48px, 7vw, 80px);
  background: #fff;
}

.shop-related__head {
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .shop-grid[data-view="grid"] {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-page__layout {
    grid-template-columns: 1fr;
  }

  .product-page__media {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .shop-archive__layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .shop-sidebar__toggle {
    display: flex;
  }

  .shop-sidebar__panel {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .shop-sidebar.is-open .shop-sidebar__panel {
    display: block;
  }

  .shop-sidebar__label:first-child {
    display: none;
  }
}

/* ——— Thank you (order complete) ——— */
.thanks {
  padding: clamp(48px, 8vw, 96px) 0;
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
}

.thanks .container {
  display: flex;
  justify-content: center;
}

.thanks-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.thanks-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ee;
  color: #1f7a45;
  animation: thanks-pop 0.55s var(--ease) both;
}

@keyframes thanks-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.thanks-card__title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.thanks-card__lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 36ch;
  margin: 0 auto 28px;
}

.thanks-card__timer {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.thanks-card__count {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}

.thanks-card__count-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.thanks-card__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 0 auto 28px;
  max-width: 220px;
}

.thanks-card__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #1f7a45, #3cb371);
  border-radius: inherit;
}

.thanks-card .btn {
  min-width: 200px;
}

@media (prefers-reduced-motion: reduce) {
  .thanks-card__icon {
    animation: none;
  }

  .thanks-card__bar-fill {
    transition: none !important;
  }
}

/* ——— Checkout ——— */
.checkout-hero {
  padding: 28px 0 8px;
}

.checkout-hero__copy {
  max-width: 640px;
  margin-top: 18px;
}

.checkout-hero__title {
  margin-top: 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

.checkout-hero__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.checkout {
  padding-top: 18px;
}

.checkout__layout {
  position: relative;
}

.checkout__empty {
  max-width: 420px;
  margin: 40px auto 80px;
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.checkout__empty[hidden] {
  display: none !important;
}

.checkout__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.checkout__empty h2 {
  font-size: 1.35rem;
}

.checkout__empty p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.checkout__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.checkout__form[hidden] {
  display: none !important;
}

.checkout__main {
  display: grid;
  gap: 18px;
}

.checkout-card {
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(11, 22, 40, 0.04);
}

.checkout-card[hidden] {
  display: none !important;
}

.checkout-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-card__head h2 {
  font-size: 1.2rem;
}

.checkout-card__head p {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-card__step {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.checkout-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.checkout-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-type__option {
  position: relative;
  cursor: pointer;
}

.checkout-type__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-type__ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.checkout-type__ui strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.checkout-type__option:hover .checkout-type__ui {
  border-color: #c5d4eb;
  background: #f8fbff;
}

.checkout-type__option.is-selected .checkout-type__ui,
.checkout-type__option:has(input:checked) .checkout-type__ui {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.22);
}

.checkout-pay {
  display: grid;
  gap: 10px;
}

.checkout-pay__option {
  position: relative;
  cursor: pointer;
}

.checkout-pay__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-pay__ui {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.checkout-pay__ui strong {
  font-size: 0.98rem;
}

.checkout-pay__ui span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-pay__option:hover .checkout-pay__ui {
  border-color: #c5d4eb;
  background: #f8fbff;
}

.checkout-pay__option.is-selected .checkout-pay__ui,
.checkout-pay__option:has(input:checked) .checkout-pay__ui {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.18);
}

.checkout__aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.checkout-summary {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.checkout-summary__title {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.checkout-summary__items {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  max-height: 320px;
  overflow: auto;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.checkout-summary__thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.checkout-summary__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-summary__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-summary__name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-summary__name:hover {
  color: var(--blue);
}

.checkout-summary__unit {
  font-size: 0.82rem;
  color: var(--muted);
}

.checkout-summary__line {
  font-size: 0.92rem;
  white-space: nowrap;
}

.checkout-summary__totals {
  display: grid;
  gap: 10px;
  padding: 16px 0;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkout-summary__row strong {
  color: var(--ink);
  font-weight: 600;
}

.checkout-summary__row--total {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.checkout-summary__row--total strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-summary__privacy {
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkout-summary__privacy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-summary__submit {
  width: 100%;
}

.checkout-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.checkout-summary__back {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.checkout-summary__back:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .checkout__form {
    grid-template-columns: 1fr;
  }

  .checkout__aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .checkout-type {
    grid-template-columns: 1fr;
  }

  .checkout-card__grid {
    grid-template-columns: 1fr;
  }

  .shop-grid[data-view="grid"],
  .shop-grid--related {
    grid-template-columns: 1fr;
  }

  .shop-grid[data-view="list"] .shop-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 12px;
  }

  .shop-grid[data-view="list"] .shop-card__body {
    padding: 12px 12px 12px 0;
  }

  .shop-toolbar__aside {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .shop-toolbar__sort {
    flex: 1;
    min-width: 0;
  }

  .shop-toolbar__sort .c-select {
    flex: 1;
    min-width: 0;
  }

  .shop-pagination__btn span {
    display: none;
  }

  .product-page__buy-row .btn {
    width: 100%;
  }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: clamp(24px, 3.5vw, 40px) 0 clamp(48px, 6vw, 80px);
}

.legal-page__inner {
  max-width: 48rem;
}

.legal-page__title {
  margin: 0 0 24px;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-prose {
  color: #3d4a5f;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-prose > * + * {
  margin-top: 1em;
}

.legal-prose h2 {
  margin: 1.75em 0 0.65em;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.legal-prose p {
  margin: 0;
}

.legal-prose ul {
  margin: 0.35em 0 0;
  padding-left: 1.25em;
  display: grid;
  gap: 0.45em;
}

.legal-prose li {
  padding-left: 0.15em;
}

.legal-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--ink);
}

.legal-prose strong {
  color: var(--ink);
  font-weight: 600;
}
