:root {
  --yellow: #2A9D8F;
  --dark: #0F1412;
  --dark2: #171C1A;
  --dark3: #1E2623;
  --light: #F0F4F2;
  --gray: #88928E;
  --muted: #A6B0AC;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(42, 157, 143, 0.22);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--yellow);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px;
  background: rgba(15, 20, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--light);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--dark2);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

#site-nav > a,
#site-nav .nav-trigger {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

#site-nav > a:hover,
#site-nav > a[aria-current="page"],
#site-nav .nav-trigger:hover,
#site-nav .nav-item.is-active > .nav-trigger,
#site-nav .nav-item.is-open > .nav-trigger {
  color: var(--light);
}

#site-nav > a[aria-current="page"],
#site-nav .nav-item.is-active > .nav-trigger {
  color: var(--yellow);
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.28s ease-out;
}

.nav-item.is-open > .nav-trigger::after {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  /* Keep the panel below adjacent navigation triggers. */
  top: 100%;
  left: 0;
  min-width: 248px;
  padding: 10px;
  background: rgba(23, 28, 26, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.3s ease-out,
    transform 0.32s ease-out,
    visibility 0.32s;
  z-index: 120;
}

.nav-item.is-open > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: rgba(42, 157, 143, 0.12);
  color: var(--light);
}

.nav-panel a[aria-current="page"] {
  color: var(--yellow);
}

.header-call {
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-primary:hover {
  background: #21867A;
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  min-height: 52px;
}

main {
  flex: 1;
  padding-top: var(--header-h);
}

.wrap {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--dark2);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.section-title {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 16ch;
}

.section-lead,
.page-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.2), transparent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-bg,
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(42, 157, 143, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(42, 157, 143, 0.04) 0%, transparent 50%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(42, 157, 143, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 157, 143, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(42, 157, 143, 0.1);
  border: 1px solid rgba(42, 157, 143, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

.hero h1 {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

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

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 28px;
}

.page-hero h1 {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 18ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--yellow);
}

.crumbs span {
  color: #555;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.card {
  background: var(--dark2);
  padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.section-alt .card {
  background: var(--dark3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.card h2,
.card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

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

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  border-radius: 12px;
  background: var(--dark2);
  border: 1px solid var(--line);
}

.section-alt .why-item {
  background: var(--dark3);
}

.why-check {
  width: 28px;
  height: 28px;
  background: rgba(42, 157, 143, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--yellow);
}

.why-item h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

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

.preview-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark2);
}

.preview-item img {
  width: 100%;
  height: auto;
}

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

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  padding: 12px 14px 14px;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.45;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.08);
  border: 1px solid rgba(42, 157, 143, 0.22);
  color: var(--light);
  margin-bottom: 32px;
}

.notice strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

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

/* Calculator */
.calc-stage {
  margin-bottom: 32px;
}

.calc-stage h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.calc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dark2);
}

.calc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.calc-table th,
.calc-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}

.calc-table th {
  color: var(--yellow);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--dark3);
}

.calc-table td {
  color: var(--muted);
}

.calc-placeholder td {
  text-align: center;
  padding: 36px 16px;
  color: var(--gray);
}

.calc-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 28px;
}

.calc-total {
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}

.calc-total dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.calc-total dd {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--yellow);
}

.calc-notes {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.calc-notes p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  min-height: 100%;
}

.contact-card .type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 10px;
}

.contact-card a,
.contact-card p {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--light);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--yellow);
}

.contact-card .note {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 6px;
}

.regions {
  margin: 0 0 36px;
  padding: 24px 26px;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.regions h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.regions p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-band {
  text-align: center;
  padding: 80px 0;
}

.cta-band .section-title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 48px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.footer-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--light);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-contact a {
  color: var(--light);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--yellow);
}

@media (max-width: 1320px) {
  header {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(15, 20, 18, 0.98);
    border-bottom: 1px solid var(--line-strong);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  #site-nav.is-open {
    display: flex;
  }

  #site-nav > a,
  #site-nav .nav-trigger {
    padding: 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-panel {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 8px 10px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .nav-item.is-open > .nav-panel {
    display: flex;
  }

  .nav-panel a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-panel a:last-child {
    border-bottom: 0;
  }

  .wrap {
    width: min(100% - 40px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 0;
    padding: 56px 0 64px;
  }

  .why-list,
  .preview-grid,
  .calc-totals {
    grid-template-columns: 1fr;
  }

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

  footer {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  header {
    padding: 10px 14px;
    gap: 8px;
  }

  .logo {
    gap: 8px;
    min-width: 0;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .header-call {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 0.8rem;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .section,
  .cta-band {
    padding: 52px 0;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .hero p,
  .section-lead,
  .page-lead {
    font-size: 0.95rem;
  }

  .hero-cta,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .cta-row .btn,
  .cta-band .btn {
    width: 100%;
    min-height: 48px;
  }

  .card,
  .why-item,
  .contact-card {
    padding: 24px 20px;
  }

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

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

/* Pagrindinio puslapio kompaktiškesnis išdėstymas */
.page-home .hero {
  min-height: 0;
  padding: 52px 0 44px;
}

.page-home .hero p {
  margin-bottom: 28px;
}

.page-home .section,
.page-home .cta-band {
  padding: 52px 0;
}

.page-home .section-title {
  max-width: 22ch;
  margin-bottom: 12px;
}

.page-home .cta-band .section-title {
  max-width: none;
}

.page-home .section-lead {
  margin-bottom: 22px;
}

.page-home .home-calc {
  padding: 40px 0 48px;
}

.why-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-compact .why-item {
  align-items: center;
}

.why-compact h3 {
  margin-bottom: 0;
}

.page-works .work-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.page-works .work-project h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
  max-width: 22ch;
}

.page-works .work-stage {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.page-works .work-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.page-works .work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-works .work-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark2);
}

.page-works .work-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1180px) {
  .page-home .hero {
    padding: 40px 0 36px;
  }

  .page-home .section,
  .page-home .cta-band,
  .page-home .home-calc {
    padding: 36px 0;
  }
}

@media (max-width: 800px) {
  .why-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-home .hero {
    padding: 28px 0 32px;
  }

  .page-home .section,
  .page-home .cta-band,
  .page-home .home-calc {
    padding: 32px 0;
  }

  .page-works .work-gallery {
    grid-template-columns: 1fr;
  }
}

/* Įkainių puslapis */
.page-rates .rates-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.page-rates .rates-intro .page-lead {
  margin-bottom: 0;
  max-width: 640px;
}

.page-rates .rates-intro .btn {
  flex-shrink: 0;
}

.rates-stage {
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.rates-stage summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

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

.rates-stage summary h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.rates-stage summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(42, 157, 143, 0.12);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.rates-stage[open] summary::after {
  content: "–";
}

.rates-table-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
}

.rates-table th,
.rates-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rates-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--dark3);
}

.rates-table td {
  font-size: 0.92rem;
  color: var(--light);
}

.rates-table .nr {
  width: 3.2rem;
  color: var(--gray);
}

.rates-table .unit {
  color: var(--muted);
  white-space: nowrap;
}

.rates-table .price {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
  text-align: right;
}

.rates-table th.price {
  text-align: right;
  font-family: "DM Sans", sans-serif;
}

.rates-note {
  margin-top: 8px;
  padding: 20px 22px;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 800px) {
  .page-rates .rates-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .page-rates .rates-intro .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 700px) {
  .rates-table thead {
    display: none;
  }

  .rates-table,
  .rates-table tbody,
  .rates-table tr,
  .rates-table td {
    display: block;
    width: 100%;
  }

  .rates-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .rates-table td {
    padding: 0;
    border: 0;
  }

  .rates-table .nr {
    width: auto;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 6px;
  }

  .rates-table .name {
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .rates-table .unit,
  .rates-table .price {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    white-space: normal;
    text-align: left;
    font-size: 0.88rem;
  }

  .rates-table .unit {
    margin-bottom: 6px;
  }

  .rates-table .unit::before {
    content: "Mato vienetas";
    color: var(--gray);
    font-weight: 400;
  }

  .rates-table .price::before {
    content: "Kaina";
    color: var(--gray);
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
  }
}

/* Soft page enter (inner routes feel less abrupt) */
@keyframes page-enter {
  from {
    opacity: 0.88;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: page-enter 0.48s ease-out both;
}

/* Depth Reveal — soft approach from space (once on enter) */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  filter: blur(3px);
  transform-origin: center bottom;
  transition:
    opacity 0.6s ease-out,
    transform 0.65s ease-out,
    filter 0.6s ease-out;
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

/* Keep Depth Reveal timing when combined with card hover styles */
.direction-card.reveal {
  transition:
    opacity 0.6s ease-out,
    transform 0.65s ease-out,
    filter 0.6s ease-out,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.direction-card.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.direction-card.reveal.is-visible:hover {
  transform: translateY(-4px) scale(1);
}

.page-home .hero {
  min-height: min(78vh, 720px);
  padding: 72px 0 64px;
}

.page-home .hero-bg {
  background:
    radial-gradient(ellipse 55% 45% at 78% 28%, rgba(42, 157, 143, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 40% 36% at 12% 78%, rgba(42, 157, 143, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(15, 20, 18, 0.2) 0%, rgba(15, 20, 18, 0.85) 100%);
}

.page-home .hero-content {
  max-width: 760px;
}

.page-home .hero h1 {
  max-width: 14ch;
}

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

.direction-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.section-alt .direction-card {
  background: var(--dark3);
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 143, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.direction-card .section-label {
  margin-bottom: 0;
}

.direction-card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.direction-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}

.direction-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.direction-links a {
  text-decoration: none;
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
}

.direction-links a:hover {
  color: var(--light);
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-height: 180px;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 143, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.catalog-card h2,
.catalog-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.catalog-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

.catalog-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed rgba(42, 157, 143, 0.28);
  border-radius: 14px;
  background: rgba(42, 157, 143, 0.04);
}

.catalog-empty h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.catalog-empty p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

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

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
    will-change: auto;
  }

  main {
    animation: none !important;
  }

  .nav-panel {
    transform: none;
  }

  .card:hover,
  .direction-card:hover,
  .catalog-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Product catalog cards */
.catalog-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 28px;
}

.catalog-series {
  margin-bottom: 36px;
}

.catalog-series-title {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--light);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 143, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.product-card-media {
  background: var(--dark3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 22px;
  flex: 1;
}

.product-card-body h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: break-word;
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.product-specs li span {
  color: var(--gray);
}

.product-specs li strong {
  color: var(--light);
  font-weight: 600;
  text-align: right;
}

.product-price {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-price-value {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
}

.product-price-note {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.product-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Series catalog (compact models + expandable specs) */
.series-block {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dark2);
  overflow: hidden;
}

.series-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.08), transparent 55%),
    var(--dark3);
}

.series-head h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.series-head p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 68ch;
}

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
}

.models-table th,
.models-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.88rem;
}

.models-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 600;
}

.models-table tr.model-row:hover td {
  background: rgba(42, 157, 143, 0.04);
}

.models-table tr.model-row.is-open td {
  background: rgba(42, 157, 143, 0.07);
}

.model-row-toggle {
  appearance: none;
  background: none;
  border: 0;
  color: var(--light);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.model-row-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--yellow);
  opacity: 0.8;
  transition: transform 0.25s ease-out;
}

.model-row.is-open .model-row-toggle::after {
  transform: rotate(180deg);
}

.model-price-main {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

.model-price-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.model-details {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 18, 0.35);
}

.model-details[hidden] {
  display: none;
}

.model-details.is-open {
  display: block;
  animation: model-details-in 0.35s ease-out;
}

@keyframes model-details-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-details-inner {
  padding: 12px 8px 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.model-details-inner dt {
  color: var(--gray);
  font-size: 0.78rem;
}

.model-details-inner dd {
  color: var(--light);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.price-disclaimer {
  margin: 8px 0 28px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(42, 157, 143, 0.28);
  background: rgba(42, 157, 143, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 72ch;
}

@media (max-width: 800px) {
  .models-table thead {
    display: none;
  }

  .models-table,
  .models-table tbody,
  .models-table tr,
  .models-table td {
    display: block;
    width: 100%;
  }

  .models-table tr.model-row {
    padding: 12px 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .models-table td {
    padding: 4px 0;
    border: 0;
  }

  .models-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 2px;
  }

  .model-details-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-details.is-open {
    animation: none;
  }

  .model-row-toggle::after {
    transition: none;
  }
}


/* Product images stay compact beside the series title. */
.series-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.series-heading h2 { margin-top: 8px; }

.series-photo {
  margin: 0;
  width: 180px;
  height: 124px;
  padding: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.series-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.models-wrap { min-width: 0; }
.model-row-toggle { min-height: 32px; overflow-wrap: anywhere; }
.model-row-toggle::after { flex-shrink: 0; }
.model-row-toggle:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.model-price-main, .model-price-sub { white-space: nowrap; }
.model-details-row > td { padding: 0; border: 0; }
.models-table .model-details-row[hidden] { display: none; }
.model-details-inner { margin: 0; }
.model-details-inner > div { min-width: 0; overflow-wrap: anywhere; }
.model-spec-note, .model-spec-source {
  padding: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.model-spec-source { font-size: 0.72rem; }

@media (max-width: 800px) {
  .models-table tr.model-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }
  .model-row > td:first-child, .model-row > td:last-child { grid-column: 1 / -1; }
  .model-details-row > td::before { display: none; }
}

@media (max-width: 480px) {
  .series-head { padding: 16px; gap: 12px; }
  .series-head h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
  .series-photo { width: 104px; height: 92px; padding: 6px; }
}

/* Standalone offers link, shared by the public TechPro navigation. */
#site-nav > .nav-promotions {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 157, 143, .42);
  border-radius: 7px;
  background: rgba(42, 157, 143, .12);
  color: #8ce2d0;
  font-weight: 600;
}
#site-nav > .nav-promotions:hover,
#site-nav > .nav-promotions[aria-current="page"] {
  color: #b9f3e6;
  background: rgba(42, 157, 143, .22);
  border-color: rgba(42, 157, 143, .7);
}
#site-nav > .nav-promotions:focus-visible {
  outline: 2px solid #8ce2d0;
  outline-offset: 3px;
}
@media (min-width: 1321px) {
  body.promotions-page #site-nav { gap: 14px; }
}
@media (max-width: 1320px) {
  #site-nav > .nav-promotions { margin: 8px 0; padding: 12px; }
}
