/* IPDIZAINS – replica styles */

:root {
  --sidebar-width: 250px;
  --color-bg: #ececec;
  --color-card: #ededed;
  --color-accent: #3d6cff;
  --color-dark: #1b1b1b;
  --color-text: #222;
  --font-poppins: "Poppins", sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --font-open: "Open Sans", sans-serif;
  --shadow-card: 0 0 10px rgba(68, 68, 68, 0.5);
  --mobile-header-height: 120px;
}

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

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

body {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Sidebar (desktop) ── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.sidebar-contact {
  text-align: center;
  padding: 10px 8px 0;
  font-family: var(--font-poppins);
  font-size: 12px;
  font-weight: 500;
}

.sidebar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sidebar-contact a:hover {
  color: #707070;
}

.sidebar-contact .sep {
  margin: 0 4px;
}

.sidebar-logo {
  display: block;
  text-align: center;
  padding: 10px 20px;
}

.sidebar-logo img {
  width: 100%;
  height: 222px;
  object-fit: contain;
  margin: 0 auto;
}

.sidebar-nav {
  padding: 30px 0 0;
}

.sidebar-nav > ul > li {
  border-bottom: 3px double #e3e3e3;
}

.sidebar-nav > ul > li > a,
.sidebar-nav .submenu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0 8px 15px;
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav > ul > li > a:hover,
.sidebar-nav .submenu-toggle:hover,
.sidebar-nav > ul > li.active > a,
.sidebar-nav > ul > li.active > .submenu-toggle {
  color: #707070;
}

.sidebar-nav .submenu li.active > a {
  color: #707070;
}

.sidebar-nav .submenu-toggle .submenu-arrow {
  margin-left: auto;
  margin-right: 12px;
  font-size: 10px;
  transition: transform 0.2s;
}

.sidebar-nav .has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
}

.sidebar-nav .submenu {
  display: none;
  background: #eae9e9;
}

.sidebar-nav .has-submenu.open .submenu {
  display: block;
}

.sidebar-nav .submenu a {
  display: block;
  padding: 12px 15px 12px 40px;
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

.sidebar-nav .submenu a:hover {
  color: #707070;
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px 24px;
  flex-wrap: wrap;
}

.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a4a4a;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-social a:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.sidebar-social a i {
  background: none;
  color: inherit;
}

.sidebar-social a[aria-label="Instagram"]:hover {
  background: #8a3ab9;
}

.sidebar-social a[aria-label="TikTok"]:hover {
  background: #000;
}

.sidebar-social a[aria-label="WhatsApp"]:hover {
  background: #25d366;
}

.sidebar-social a[aria-label="Facebook"]:hover {
  background: #0d47a1;
}

.sidebar-social a[aria-label="LinkedIn"]:hover {
  background: #0a66c2;
}

/* ── Mobile header ── */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: var(--color-bg);
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  font-size: 24px;
  padding: 8px;
  color: #000;
}

.mobile-header-center {
  flex: 1;
  text-align: center;
}

.mobile-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto;
}

.mobile-contact {
  font-family: var(--font-poppins);
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

.mobile-contact a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mobile-contact .sep {
  margin: 0 3px;
}

/* ── Mobile nav overlay ── */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
}

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

.mobile-nav-panel {
  width: min(350px, 85vw);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: var(--color-bg);
}

.menu-close {
  font-size: 22px;
  padding: 8px;
  color: #333;
}

.mobile-nav-list > li {
  border-bottom: 1px solid #eee;
}

.mobile-nav-list > li > a,
.mobile-nav-list .submenu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  color: #000;
  text-align: left;
}

.mobile-nav-list > li.active > a {
  color: #707070;
}

.mobile-nav-list .submenu-toggle .submenu-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s;
}

.mobile-nav-list .has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
}

.mobile-nav-list .submenu {
  display: none;
  background: #eae9e9;
}

.mobile-nav-list .has-submenu.open .submenu {
  display: block;
}

.mobile-nav-list .submenu a {
  display: block;
  padding: 12px 20px 12px 50px;
  font-size: 14px;
  font-weight: 500;
}

/* ── Main layout ── */

.main-wrapper {
  min-height: 100vh;
}

@media (min-width: 1025px) {
  .main-wrapper {
    margin-left: var(--sidebar-width);
  }
}

/* ── Hero ── */

.hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 520px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurns 6s ease forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.19);
  z-index: 1;
}

.hero-search {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 300px;
  max-width: calc(100% - 40px);
  display: flex;
  border: 1px solid #363636;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-card);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-family: var(--font-roboto);
  font-size: 15px;
  background: var(--color-card);
  color: #292929;
  outline: none;
}

.hero-search button {
  width: 40px;
  background: #363636;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: #545454;
}

.hero-contact-panel {
  background: var(--color-bg);
  padding: 35px;
}

.hero-contact-panel h6 {
  font-family: var(--font-roboto);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-contact-panel ul li {
  margin-bottom: 8px;
}

.hero-contact-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  color: #000;
}

.hero-contact-panel a:hover {
  color: #707070;
}

.hero-contact-panel i {
  font-size: 21px;
}

/* ── About section ── */

.about-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  background: #f5f5f5;
}

.about-text {
  background: #fff;
  padding: 30px 70px 70px;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
}

.about-form {
  flex: 1;
  background: linear-gradient(196deg, #ededed 7%, #fff 55%);
  padding: 10px 35px 100px;
}

.about-text h3 {
  font-family: var(--font-roboto);
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text .bullet {
  color: #333;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form .required {
  color: #cf2e2e;
}

.quote-form .form-group.is-invalid input,
.quote-form .form-group.is-invalid select,
.quote-form .form-group.is-invalid textarea,
.quote-form input.is-invalid,
.quote-form select.is-invalid {
  border-color: #cf2e2e;
  box-shadow: 0 0 0 1px #cf2e2e;
  background-color: #fff5f5;
}

.quote-form .form-group.is-invalid .quote-options,
.quote-form .quote-options.is-invalid {
  border: 2px solid #cf2e2e;
  border-radius: 3px;
  padding: 10px 12px;
  background-color: #fff5f5;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: var(--font-open);
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form input[type="number"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

.contact-form input[type="number"]::-webkit-inner-spin-button,
.contact-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  min-width: 132px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-open);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #2a55e0;
}

.btn-submit--dark {
  width: 100%;
  padding: 14px 28px;
  background: #555;
  border-radius: 8px;
  font-size: 16px;
}

.btn-submit--dark:hover {
  background: #333;
}

.btn-submit.btn-submit--sending,
.btn-submit.btn-submit--sending:hover,
.btn-submit--dark.btn-submit--sending,
.btn-submit--dark.btn-submit--sending:hover {
  background: #555;
  cursor: wait;
}

.btn-submit.btn-submit--sent,
.btn-submit.btn-submit--sent:hover,
.btn-submit.btn-submit--sent:disabled,
.btn-submit--dark.btn-submit--sent,
.btn-submit--dark.btn-submit--sent:hover,
.btn-submit--dark.btn-submit--sent:disabled {
  background: #2e7d32 !important;
  cursor: default;
  opacity: 1;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.95;
}

.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;
}

.vartu-quote-page {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 60px;
}

.vartu-quote-page .vartu-cenu-form {
  max-width: 520px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.vartu-cenu-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(240px, 1fr);
  gap: 36px 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 0;
}

.vartu-cenu-visuals {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.vartu-cenu-diagram,
.vartu-cenu-example {
  margin: 0;
}

.vartu-cenu-diagram img,
.vartu-cenu-example img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

.vartu-cenu-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 40vw, 420px);
  background: url("../images/vartu-cenu-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.vartu-cenu-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.vartu-cenu-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.vartu-cenu-hero .quote-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin: 0;
}

.vartu-cenu-hero .quote-back a {
  color: #ececec;
}

.vartu-cenu-hero .quote-back a:hover {
  color: #fff;
}

.vartu-cenu-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.vartu-cenu-hero .quote-page-subtitle {
  font-size: 36px;
  color: #ececec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.vartu-cenu-form .form-group {
  margin-bottom: 14px;
}

.vartu-cenu-form input,
.vartu-cenu-form select,
.vartu-cenu-form textarea {
  border: 1px solid #999;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 16px;
  color: #333;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.vartu-cenu-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.vartu-cenu-form select:required:invalid {
  color: #888;
}

.vartu-cenu-form select option {
  color: #333;
}

.vartu-cenu-form select option[value=""] {
  display: none;
}

.vartu-cenu-form textarea {
  min-height: 120px;
  resize: vertical;
}

.vartu-cenu-form .form-group.is-invalid input,
.vartu-cenu-form .form-group.is-invalid select,
.vartu-cenu-form .form-group.is-invalid textarea,
.vartu-cenu-form input.is-invalid,
.vartu-cenu-form select.is-invalid,
.vartu-cenu-form textarea.is-invalid {
  border-color: #cf2e2e !important;
  box-shadow: 0 0 0 1px #cf2e2e;
  background-color: #fff5f5 !important;
}

/* ── Products ── */

.products-section {
  padding: 60px 0 50px;
  margin-top: 40px;
  background: #fff;
}

.products-page .products-section {
  padding-top: 50px;
  margin-top: 0;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card {
  width: 300px;
  max-width: 100%;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  margin: 0;
  text-align: center;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
  background: var(--color-card);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  width: 200px;
  padding: 10px 16px;
  font-family: var(--font-open);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 25px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  margin-top: auto;
  box-sizing: border-box;
}

.btn-outline:hover,
.product-card--link:hover .btn-outline {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ── Footer ── */

.site-footer {
  background: #242424;
  color: #c7c7c7;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 30px;
}

.footer-location-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-location--tukums .footer-location-top {
  justify-content: flex-end;
}

.footer-crest {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-location-text h3 {
  font-family: var(--font-roboto);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.footer-location-text p {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 400;
  color: #c7c7c7;
}

.footer-location--tukums .footer-location-text {
  text-align: right;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-location--riga .footer-contact-list {
  padding-left: 96px;
}

.footer-location--tukums .footer-contact-list {
  text-align: right;
  padding-right: 96px;
}

.footer-contact-list li {
  margin-bottom: 4px;
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-roboto);
  font-size: 17px;
  font-weight: 600;
  color: #747374;
  transition: color 0.2s;
}

.footer-location--tukums .footer-contact-list a {
  flex-direction: row-reverse;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-contact-list i {
  font-size: 14px;
  color: rgba(131, 131, 131, 0.47);
}

.footer-logo {
  text-align: center;
  padding: 0 20px;
}

.footer-logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 60px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-family: var(--font-roboto);
  font-size: 13px;
  color: #909090;
  margin: 0;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #000;
  color: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.back-to-top:hover {
  background: #333;
  color: #fff;
}

/* ── Logi page ── */

.logi-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.logi-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/logi-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 100px;
}

.logi-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.logi-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.logi-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.logi-hero p {
  font-family: var(--font-poppins);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #ececec;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.logi-page .product-detail-block {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

.logi-page .product-detail-image.tilted-card-figure {
  margin-bottom: 56px;
}

.logi-page .product-detail-text h2 {
  margin-top: 12px;
}

@media (max-width: 767px) {
  .logi-hero {
    min-height: 180px;
  }

  .logi-hero-content {
    padding: 20px 16px;
  }

  .logi-page .product-detail-block {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Durvis page ── */

.durvis-page .main-wrapper {
  background: #fff;
}

.durvis-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/durvis-hero.jpg") center center / cover no-repeat;
  margin-bottom: 10px;
}

.durvis-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.durvis-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-roboto);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.durvis-cards {
  padding-top: 40px;
}

.durvis-cards .products-grid {
  max-width: 1000px;
}

.durvis-cards .product-card--has-image .tilted-card-img {
  object-fit: cover;
}

.durvis-cards .product-card--has-image h2 {
  font-size: 26px;
  line-height: 1.2;
  min-height: 36px;
}

@media (max-width: 767px) {
  .durvis-hero {
    min-height: 220px;
  }

  .durvis-hero h1 {
    font-size: 32px;
  }
}

/* ── Product detail page ── */

.product-detail-page .main-wrapper {
  background: #fff;
}

.product-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

.product-detail-header {
  margin-bottom: 40px;
}

.product-detail-header h1 {
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-detail-header h3 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 500;
  color: #555;
}

.product-detail-block {
  margin-bottom: 50px;
}

.product-detail-block:last-child {
  margin-bottom: 0;
}

.product-detail-image {
  text-align: center;
}

.product-detail-text h2 {
  font-family: var(--font-poppins);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.product-detail-text p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
}

.product-specs {
  margin: 12px 0 16px;
  padding-left: 0;
}

.product-specs li {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-card--link {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(68, 68, 68, 0.35);
}

.product-card--link:focus-visible {
  outline: 2px solid #444;
  outline-offset: 3px;
}

.product-card--link .btn-outline {
  pointer-events: auto;
}

.product-card--slide-image .product-card-image {
  height: 220px;
  margin: 0;
  overflow: hidden;
  background: var(--color-card);
}

.product-card--slide-image .slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.product-card--slide-image.is-visible .slide-image {
  visibility: visible;
  animation: slideInLeft 1s ease forwards;
}

.pvc-durvis-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.pvc-durvis-hero {
  background-image: url("../images/durvis-pvc-hero.jpg");
  margin-bottom: 40px;
}

.pvc-durvis-split {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}

.pvc-durvis-page .product-detail-image--slide {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: visible;
  text-align: left;
  cursor: pointer;
}

.pvc-durvis-page .product-detail-image--slide .slide-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  visibility: hidden;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.pvc-durvis-page .product-detail-image--slide.is-visible .slide-image {
  visibility: visible;
  animation: slideInLeft 1.25s ease forwards;
}

.pvc-durvis-split .product-detail-text h2 {
  margin-top: 0;
}

@media (max-width: 767px) {
  .pvc-durvis-split {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .pvc-durvis-page .product-detail-image--slide {
    max-width: 280px;
    margin: 0 auto;
  }
}

.aluminija-durvis-hero {
  background-image: url("../images/durvis-aluminija.jpg");
  background-position: center 45%;
}

@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideBounce {
  0% {
    transform: translateX(-100vw);
  }

  80% {
    transform: translateX(20px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ── Garāžu vārti page ── */

.garazu-varti-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.garazu-varti-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/garazu-varti-hero.jpg") center 60% / cover no-repeat;
  text-align: center;
  margin-bottom: 40px;
}

.garazu-varti-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.garazu-varti-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.garazu-varti-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.garazu-varti-hero p {
  font-family: var(--font-poppins);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #ececec;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.garazu-varti-page .gate-panel,
.garazu-varti-page .split-block,
.garazu-varti-page .garazu-inquiry {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}

.gate-panel {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.gate-panel-image {
  flex: 0 0 280px;
  max-width: 280px;
  margin: 0;
  overflow: hidden;
}

.gate-panel-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gate-panel .product-detail-text {
  flex: 1;
  min-width: 0;
}

.gate-panel .product-detail-text h2 {
  font-size: 22px;
}

.split-block {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.split-block--reverse {
  flex-direction: row-reverse;
}

.split-block-image {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: center;
}

.split-block-image > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.split-block .product-detail-text {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
  min-width: 0;
}

.operator-qr {
  display: block;
  width: min(170px, 55%);
  height: auto;
  margin: 120px auto 0;
}

.operator-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.operator-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.garazu-inquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.garazu-inquiry-info h3 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.garazu-inquiry-info p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
}

.garazu-inquiry-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.garazu-inquiry-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-roboto);
  font-size: 15px;
  color: var(--color-text);
}

.garazu-inquiry-contacts li i {
  color: var(--color-accent);
  margin-top: 3px;
}

.garazu-inquiry-contacts li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.garazu-inquiry-contacts li a:hover {
  color: var(--color-accent);
}

.garazu-inquiry-contacts li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Markīzes page ── */

.markizes-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.markizes-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/markizes-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.markizes-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.markizes-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.markizes-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.markizes-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px 20px;
}

.markizes-intro h2 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.markizes-intro p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0;
}

.markizes-model {
  display: flex;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 30px;
}

.markizes-model-image {
  flex: 0 0 50%;
  max-width: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f3e8;
}

.markizes-model-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.markizes-model-text {
  flex: 0 0 50%;
  max-width: 50%;
  background: #ececec;
  padding: 28px 30px;
}

.markizes-model-text h2 {
  font-family: var(--font-poppins);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.markizes-model-text p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0;
}

.markizes-gallery {
  max-width: none;
  width: 100%;
  margin: 0 0 40px;
  padding: 12px 0;
  background: #fff;
  box-sizing: border-box;
}

.markizes-gallery-slideshow {
  position: relative;
  width: 55%;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border: none;
  box-sizing: border-box;
}

.markizes-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.markizes-gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

.markizes-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Aizsargžalūzijas page ── */

.aizsargzaluzijas-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.aizsargzaluzijas-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/aizsargzaluzijas-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.aizsargzaluzijas-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.aizsargzaluzijas-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.aizsargzaluzijas-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.aizsargzaluzijas-hero p {
  font-family: var(--font-poppins);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #ececec;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.aizsargzaluzijas-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 30px 0;
}

.aizsargzaluzijas-block:last-child {
  padding-bottom: 20px;
}

.aizsargzaluzijas-block h2 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 14px;
}

.aizsargzaluzijas-block p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
}

.aizsargzaluzijas-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.aizsargzaluzijas-gallery-section {
  padding-bottom: 20px;
}

.aizsargzaluzijas-gallery img {
  display: block;
  width: calc((100% - 24px) / 3);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
}

/* ── Insektu sieti page ── */

.insektu-sieti-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.insektu-sieti-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/insektu-sieti-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.insektu-sieti-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.insektu-sieti-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.insektu-sieti-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.insektu-sieti-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 30px 0;
}

.insektu-sieti-block:last-child {
  padding-bottom: 20px;
}

.insektu-sieti-block h2 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 14px;
}

.insektu-sieti-block p {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 12px;
}

.insektu-sieti-block p:last-child {
  margin-bottom: 0;
}

.insektu-sieti-list {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 12px;
  padding-left: 24px;
}

.insektu-sieti-list li {
  margin-bottom: 6px;
}

.insektu-krasas-title {
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 20px 0 16px;
}

.insektu-krasas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.insektu-krasa {
  display: block;
  width: 2cm;
  height: 2cm;
  object-fit: cover;
  border: 1px solid #000;
  box-sizing: border-box;
  flex-shrink: 0;
}

.insektu-sieti-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.insektu-sieti-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
}

.insektu-sieti-note {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0 30px;
  font-family: var(--font-roboto);
  font-size: 13px;
  line-height: 1.55;
  color: #777;
  font-style: italic;
}

/* ── Pergolas page ── */

.pergolas-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.pergolas-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 32vw, 340px);
  background: url("../images/pergolas-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.pergolas-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.pergolas-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 32px 30px;
}

.pergolas-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.pergolas-hero p {
  font-family: var(--font-roboto);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  color: #ececec;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.pergolas-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 30px 0;
}

.pergolas-block:last-child {
  padding-bottom: 20px;
}

.pergolas-intro-gallery {
  padding-top: 28px;
}

.pergolas-block h2 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 14px;
}

.pergolas-feature {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 8px;
}

.pergolas-feature-text {
  flex: 1 1 50%;
  min-width: 0;
}

.pergolas-feature-image {
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
}

.pergolas-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
}

.pergolas-banner {
  margin: 20px 0 0;
  max-width: 100%;
  width: 100%;
}

.pergolas-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}

.pergolas-video-block {
  padding-bottom: 40px;
}

.pergolas-video-frame {
  width: 75%;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}

.pergolas-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #111;
}

.pergolas-list {
  font-family: var(--font-roboto);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 8px;
  padding-left: 22px;
}

.pergolas-list li {
  margin-bottom: 6px;
}

.pergolas-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.pergolas-gallery--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.pergolas-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.pergolas-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
}

/* ── Product image lightbox ── */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-source {
  cursor: pointer;
}

.image-lightbox-img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
  position: absolute;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  font-family: var(--font-poppins);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.image-lightbox-close {
  top: 12px;
  right: 16px;
  font-size: 36px;
}

.image-lightbox-prev,
.image-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
}

.image-lightbox-prev {
  left: 10px;
}

.image-lightbox-next {
  right: 10px;
}

.image-lightbox-close:hover,
.image-lightbox-prev:hover,
.image-lightbox-next:hover {
  color: var(--color-accent, #c4a35a);
}

/* ── Žalūzijas page ── */

.zaluzijas-page .product-detail {
  max-width: none;
  padding: 0 0 60px;
}

.zaluzijas-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
  text-align: center;
  margin-bottom: 0;
}

.zaluzijas-hero-bg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 568;
  object-fit: cover;
  object-position: center center;
}

.zaluzijas-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.38) 100%
  );
  pointer-events: none;
}

.zaluzijas-hero-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 30px;
}

.zaluzijas-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.zaluzijas-hero p {
  font-family: var(--font-poppins);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #ececec;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.zaluzijas-intro,
.zaluzijas-type {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 30px 0;
}

.zaluzijas-intro p,
.zaluzijas-type p {
  font-family: var(--font-roboto);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  text-align: justify;
  margin: 0 0 16px;
}

.zaluzijas-intro p:last-child {
  margin-bottom: 0;
}

.zaluzijas-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}

.zaluzijas-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.zaluzijas-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 767px) {
  .zaluzijas-hero-content {
    padding: 16px;
  }

  .zaluzijas-intro,
  .zaluzijas-type {
    padding: 28px 20px 0;
  }

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

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

  .zaluzijas-gallery img {
    cursor: pointer;
  }

  .markizes-model {
    flex-direction: column;
    padding: 0 20px;
  }

  .markizes-model-image,
  .markizes-model-text {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .markizes-intro {
    padding: 30px 20px 10px;
  }

  .aizsargzaluzijas-hero {
    min-height: 180px;
  }

  .aizsargzaluzijas-hero-content {
    padding: 20px 16px;
  }

  .aizsargzaluzijas-block {
    padding: 28px 20px 0;
  }

  .insektu-sieti-hero {
    min-height: 180px;
  }

  .insektu-sieti-hero-content {
    padding: 20px 16px;
  }

  .insektu-sieti-block {
    padding: 28px 20px 0;
  }

  .insektu-krasas {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    max-width: 100%;
  }

  .insektu-krasa {
    width: 1.35cm;
    height: 1.35cm;
    flex: 0 1 1.35cm;
    min-width: 0;
  }

  .insektu-sieti-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .insektu-sieti-gallery img {
    cursor: pointer;
  }

  .insektu-sieti-note {
    padding: 0 20px;
  }

  .pergolas-hero {
    min-height: 200px;
  }

  .pergolas-hero-content {
    padding: 24px 16px;
  }

  .pergolas-block {
    padding: 28px 20px 0;
  }

  .pergolas-feature {
    flex-direction: column;
    gap: 16px;
  }

  .pergolas-feature-image img {
    min-height: 0;
    aspect-ratio: 1;
  }

  .pergolas-banner {
    max-width: 100%;
  }

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

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

  .pergolas-gallery--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .pergolas-gallery img,
  .pergolas-feature-image img,
  .pergolas-banner img {
    cursor: pointer;
  }

  .image-lightbox {
    padding: 56px 20px 24px;
  }

  .image-lightbox-prev,
  .image-lightbox-next {
    font-size: 32px;
  }

  .aizsargzaluzijas-gallery img {
    width: 100%;
  }

  .markizes-gallery {
    width: 100%;
    padding: 8px 0;
    margin: 0 0 30px;
  }

  .markizes-gallery-slideshow {
    width: 85%;
  }

  .markizes-hero {
    min-height: 180px;
  }

  .markizes-hero-content {
    padding: 20px 16px;
  }
}

@media (max-width: 767px) {
  .gate-panel,
  .split-block,
  .split-block--reverse {
    flex-direction: column;
  }

  .gate-panel-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .garazu-varti-page .gate-panel-image,
  .garazu-varti-page .split-block-image {
    max-width: 60%;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .garazu-varti-page .operator-qr {
    width: min(102px, 34%);
    margin-top: 48px;
  }

  .split-block-image,
  .split-block .product-detail-text {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .garazu-varti-hero {
    min-height: 180px;
  }

  .garazu-varti-hero-content {
    padding: 20px 16px;
  }

  .garazu-varti-page .gate-panel,
  .garazu-varti-page .split-block,
  .garazu-varti-page .garazu-inquiry {
    padding-left: 20px;
    padding-right: 20px;
  }

  .garazu-inquiry {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pvc-durvis-page .product-detail-image--slide {
    max-width: 280px;
    height: auto;
  }

  .product-detail {
    padding: 30px 20px 40px;
  }

  .product-detail-header h3 {
    font-size: 18px;
  }

  .product-detail-text h2 {
    font-size: 22px;
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .main-wrapper {
    padding-top: var(--mobile-header-height);
  }

  .hero {
    height: 40vh;
    min-height: 260px;
    max-height: none;
  }

  .hero-search {
    display: none;
  }

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

  .about-text {
    padding: 30px 35px 50px;
  }

  .about-form {
    padding: 30px 35px 50px;
  }

  .products-grid {
    gap: 25px;
    padding: 0 20px;
  }

  .product-card {
    width: calc(50% - 15px);
    min-width: 260px;
  }
}

@media (max-width: 767px) {
  .mobile-header {
    padding: 6px 10px;
  }

  .mobile-logo img {
    width: 50px;
    height: 50px;
  }

  .mobile-contact {
    font-size: 10px;
  }

  .hero {
    height: 35vh;
    min-height: 220px;
  }

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

  .about-text {
    padding: 20px;
  }

  .about-form {
    padding: 20px 20px 40px;
  }

  .about-text h3 {
    font-size: 20px;
  }

  .products-grid {
    gap: 20px;
    padding: 0 20px;
  }

  .product-card {
    width: 100%;
    max-width: 340px;
    margin: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 24px;
    text-align: center;
  }

  .footer-location-top {
    justify-content: center !important;
  }

  .footer-location--tukums .footer-location-top {
    flex-direction: row-reverse;
  }

  .footer-location--tukums .footer-location-text {
    text-align: center;
  }

  .footer-crest {
    width: 60px;
    height: 60px;
  }

  .footer-location--riga .footer-contact-list,
  .footer-location--tukums .footer-contact-list {
    padding: 0;
    text-align: center;
  }

  .footer-location--tukums .footer-contact-list a {
    flex-direction: row;
  }

  .footer-logo img {
    width: 140px;
  }

  .footer-bottom {
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 20px 20px;
  }
}

@media (max-width: 1024px) {
  .home-page main {
    display: flex;
    flex-direction: column;
  }

  .home-page .hero {
    order: 1;
  }

  .home-page .about-section {
    display: contents;
  }

  .home-page .about-text {
    order: 2;
  }

  .products-section--mobile-list {
    order: 3;
  }

  .home-page .about-sidebar {
    order: 4;
  }

  .products-section--mobile-list {
    padding: 28px 0 40px;
    margin-top: 12px;
    background: #f4f5f7;
  }

  .products-section--mobile-list .products-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    max-width: 560px;
    padding: 0 16px;
  }

  .products-section--mobile-list .product-card,
  .products-section--mobile-list .product-card--link {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 12px;
    margin: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .products-section--mobile-list .product-card--link:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  }

  .products-section--mobile-list .product-card .tilted-card-figure,
  .products-section--mobile-list .product-card--has-image .tilted-card-figure {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    perspective: none;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
  }

  .products-section--mobile-list .product-card .tilted-card-inner,
  .products-section--mobile-list .product-card--has-image .tilted-card-inner,
  .products-section--mobile-list .product-card--has-image .tilted-card-img {
    width: 88px;
    height: 88px;
    transform: none !important;
    will-change: auto;
    background: #f3f4f6;
    border-radius: 12px;
  }

  .products-section--mobile-list .product-card--has-image .tilted-card-img {
    object-fit: cover;
  }

  .products-section--mobile-list .tilted-card-overlay {
    display: none;
  }

  .products-section--mobile-list .product-card-body,
  .products-section--mobile-list .product-card--has-image .product-card-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 4px;
    padding: 0 4px 0 14px;
    margin: 0;
    background: transparent;
    min-width: 0;
  }

  .products-section--mobile-list .product-card--has-image h2 {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #111;
    margin: 0 0 4px;
    padding: 0;
    width: auto;
    min-height: 0;
    text-align: left;
  }

  .products-section--mobile-list .product-card--has-image p {
    grid-column: 1;
    grid-row: 2;
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: #6ea8fe;
    margin: 0;
    min-height: 0;
    text-align: left;
  }

  .products-section--mobile-list .btn-outline,
  .products-section--mobile-list .product-card--link:hover .btn-outline,
  .products-section--mobile-list .btn-outline::after {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 950px) {
  .product-card {
    width: calc(50% - 15px);
    min-width: 260px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 30px 30px;
  }

  .footer-location--riga .footer-location-top,
  .footer-location--tukums .footer-location-top {
    justify-content: center;
  }

  .footer-location--tukums .footer-location-text {
    text-align: center;
  }

  .footer-location--riga .footer-contact-list,
  .footer-location--tukums .footer-contact-list {
    padding: 0;
    text-align: center;
  }

  .footer-location--tukums .footer-contact-list a {
    flex-direction: row;
  }

  .footer-bottom {
    justify-content: center;
    padding: 10px 20px 16px;
  }
}

/* ── Uzzini cenu pages ── */

.uzzini-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/uzzini-cenu-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.uzzini-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.uzzini-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.uzzini-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.uzzini-options {
  padding-top: 40px;
}

.quote-page {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 60px;
}

.quote-page .quote-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 30px 0;
}

.logu-cenu-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 40vw, 420px);
  background: url("../images/logu-cenu-hero.jpg") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.logu-cenu-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.logu-cenu-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.logu-cenu-hero .quote-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin: 0;
}

.logu-cenu-hero .quote-back a {
  color: #ececec;
}

.logu-cenu-hero .quote-back a:hover {
  color: #fff;
}

.logu-cenu-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.logu-cenu-hero .quote-page-subtitle {
  font-size: 36px;
  color: #ececec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.quote-page-header {
  margin-bottom: 28px;
}

.quote-back {
  margin: 0 0 12px;
  font-family: var(--font-roboto);
  font-size: 14px;
}

.quote-back a {
  color: var(--color-text);
  text-decoration: none;
}

.quote-back a:hover {
  color: var(--color-accent);
}

.quote-page-header h1 {
  font-family: var(--font-poppins);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 6px;
}

.quote-page-subtitle {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0;
  letter-spacing: 0.04em;
}

.quote-form .quote-product {
  border: 1px solid #ddd;
  padding: 20px 18px 8px;
  margin: 0 0 24px;
}

.quote-form .quote-product legend {
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 0 6px;
}

.quote-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.quote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.quote-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-roboto);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.quote-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.quote-form label.quote-option[hidden],
.quote-form label.quote-option.is-hidden {
  display: none !important;
}

.contact-form .quote-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 2px solid #666;
  border-radius: 50%;
  background: #fff;
  background-image: none;
  box-shadow: none;
}

.contact-form .quote-option input[type="radio"]:checked {
  border-color: var(--color-accent);
  background: var(--color-accent);
  background-image: none;
  box-shadow: inset 0 0 0 3px #fff;
}

.quote-glass-note {
  display: none;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.35;
}

.quote-option.is-rehau-only .quote-glass-note {
  display: block;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 700px) {
  .quote-page {
    padding: 0 0 48px;
  }

  .quote-page .quote-form {
    padding: 28px 20px 0;
  }

  .quote-form .form-row {
    grid-template-columns: 1fr;
  }

  .quote-options {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }

  .vartu-quote-page {
    padding: 0 0 48px;
  }

  .vartu-cenu-layout {
    grid-template-columns: 1fr;
    padding: 28px 20px 0;
    gap: 28px;
  }

  .vartu-cenu-visuals {
    display: contents;
  }

  .vartu-cenu-diagram {
    order: 1;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .vartu-quote-page .vartu-cenu-form {
    order: 2;
    padding: 0;
    max-width: none;
  }

  .vartu-cenu-example {
    order: 3;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .vartu-cenu-example + .vartu-cenu-example {
    margin-top: 8px;
  }
}

/* ── Jaunumi (TikTok) ── */

.jaunumi-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/jaunumi-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.jaunumi-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.jaunumi-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.jaunumi-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.jaunumi-videos {
  padding: 40px 0 60px;
}

.jaunumi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.jaunumi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jaunumi-embed {
  position: relative;
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  aspect-ratio: 9 / 16;
}

.jaunumi-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.jaunumi-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jaunumi-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jaunumi-play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.jaunumi-play-btn:hover .jaunumi-play-icon,
.jaunumi-play-btn:focus-visible .jaunumi-play-icon {
  transform: scale(1.08);
  background: rgba(254, 44, 85, 0.95);
}

.jaunumi-play-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.jaunumi-card-title {
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  margin: 14px 0 0;
  line-height: 1.35;
}

.jaunumi-more {
  text-align: center;
  margin: 40px 0 0;
}

.jaunumi-more .btn-outline {
  display: inline-block;
}

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

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

/* ── Pērc līzingā ── */

.perc-lizinga-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/perc-lizinga-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.perc-lizinga-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.perc-lizinga-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.perc-lizinga-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.perc-lizinga-contact-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 30px 0;
  background: transparent;
}

.perc-lizinga-contact-card h2 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 10px;
}

.perc-lizinga-contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.perc-lizinga-contact-card li {
  margin: 0;
}

.perc-lizinga-contact-card a {
  font-family: var(--font-roboto);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.perc-lizinga-contact-card a:hover {
  color: var(--color-accent);
}

.perc-lizinga-contact-card i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

.perc-lizinga-body {
  padding: 28px 30px 70px;
  background: #fff;
}

.perc-lizinga-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
  justify-content: space-between;
}

.perc-lizinga-copy h2 {
  font-family: var(--font-poppins);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 22px;
  line-height: 1.4;
}

.perc-lizinga-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-family: var(--font-roboto);
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

.perc-lizinga-list li {
  margin: 0 0 14px;
}

.perc-lizinga-list a {
  color: var(--color-accent);
  text-decoration: underline;
}

.perc-lizinga-calc {
  background: transparent;
  border: 0;
  min-height: 0;
  overflow: hidden;
  width: 320px;
  max-width: 100%;
  margin-left: auto;
  justify-self: end;
}

.perc-lizinga-calc iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: transparent;
}

.perc-lizinga-partner {
  max-width: none;
  width: calc(100% + 60px);
  margin: 40px -30px 0;
  padding: 0;
  text-align: center;
  background: #021a8f;
  position: relative;
}

.perc-lizinga-partner img {
  display: block;
  width: 40%;
  max-width: 472px;
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

@media (max-width: 900px) {
  .perc-lizinga-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .perc-lizinga-calc {
    justify-self: start;
    margin-left: 20%;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .perc-lizinga-contact-card {
    padding: 20px 20px 0;
  }

  .perc-lizinga-body {
    padding: 20px 20px 50px;
  }

  .perc-lizinga-calc {
    width: 320px;
    max-width: 80%;
    margin-left: 20%;
    margin-right: auto;
    justify-self: start;
  }

  .perc-lizinga-partner {
    width: calc(100% + 40px);
    margin: 28px -20px 0;
  }
}

/* ── Klienti ── */

.klienti-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/klienti-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.klienti-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.klienti-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.klienti-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.klienti-contact-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 30px 0;
}

.klienti-contact-card h2 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 10px;
}

.klienti-contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.klienti-contact-card a {
  font-family: var(--font-roboto);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.klienti-contact-card i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

.klienti-body {
  padding: 28px 30px 70px;
  background: #fff;
}

.klienti-gallery {
  max-width: 1180px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 36px;
}

.klienti-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 36px;
  padding: 24px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.klienti-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.klienti-item img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(0.99);
  transform-origin: center center;
  transition: transform 0.4s ease;
  will-change: transform;
}

.klienti-item:hover img,
.klienti-item:focus-within img {
  transform: scale(1.08);
}

@media (max-width: 1000px) {
  .klienti-gallery {
    column-count: unset;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .klienti-item {
    margin: 0;
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .klienti-contact-card {
    padding: 20px 20px 0;
  }

  .klienti-body {
    padding: 20px 16px 50px;
  }

  .klienti-gallery {
    column-count: unset;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .klienti-item {
    margin: 0;
    padding: 6px;
  }
}

/* ── Atsauksmes (Google reviews) ── */

.atsauksmes-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/atsauksmes-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.atsauksmes-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.atsauksmes-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.atsauksmes-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.atsauksmes-contact-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 30px 0;
}

.atsauksmes-contact-card h2 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 10px;
}

.atsauksmes-contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.atsauksmes-contact-card a {
  font-family: var(--font-roboto);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.atsauksmes-contact-card i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

.atsauksmes-body {
  padding: 28px 30px 70px;
  background: #fff;
}

.reviews-panel {
  max-width: 1180px;
  margin: 0 auto;
}

.reviews-panel-title {
  font-family: var(--font-poppins);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 0 0 36px;
}

.reviews-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.reviews-summary h3 {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px;
}

.reviews-summary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.reviews-score {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: #111;
}

.reviews-stars {
  color: #e53935;
  letter-spacing: 1px;
  font-size: 14px;
  line-height: 1;
}

.reviews-stars--lg {
  font-size: 16px;
}

.reviews-count {
  font-family: var(--font-roboto);
  font-size: 14px;
  color: #9a9a9a;
}

.reviews-count:hover {
  color: #666;
  text-decoration: underline;
}

.reviews-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #e53935;
  color: #fff !important;
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.reviews-write-btn:hover {
  background: #c62828;
  transform: translateY(-1px);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

.review-card {
  min-width: 0;
}

.review-card-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--avatar-bg, #607d8b);
  color: #fff;
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-name {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.25;
}

.review-time {
  font-family: var(--font-roboto);
  font-size: 13px;
  color: #9a9a9a;
  margin: 2px 0 0;
}

.review-google {
  display: inline-flex;
  align-self: start;
  margin-top: 2px;
}

.review-card .reviews-stars {
  margin-bottom: 10px;
}

.review-text {
  font-family: var(--font-roboto);
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

@media (max-width: 640px) {
  .atsauksmes-contact-card {
    padding: 20px 20px 0;
  }

  .atsauksmes-body {
    padding: 20px 16px 50px;
  }

  .reviews-panel-title {
    margin-bottom: 24px;
  }

  .reviews-toolbar {
    margin-bottom: 28px;
  }

  .reviews-write-btn {
    width: 100%;
    justify-content: center;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Kontakti ── */

.kontakti-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(200px, 28vw, 300px);
  background: #000 url("../images/kontakti-hero.png") center center / auto 100% no-repeat;
  text-align: left;
  margin-bottom: 0;
}

.kontakti-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.kontakti-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px 28px 40px;
}

.kontakti-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateX(-48px);
  animation: kontaktiTitleSlide 1.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes kontaktiTitleSlide {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.kontakti-body {
  padding: 36px 30px 40px;
  background: #fff;
}

.kontakti-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px 40px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.kontakti-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  align-items: start;
}

.kontakti-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.kontakti-item--wide {
  grid-column: 1 / -1;
}

.kontakti-item--center {
  align-items: center;
}

.kontakti-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4a4a4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.kontakti-item h2 {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.35;
  text-transform: uppercase;
}

.kontakti-item h2 a {
  color: inherit;
}

.kontakti-item h2 a:hover {
  color: var(--color-accent);
}

.kontakti-item p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.kontakti-item p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.kontakti-follow,
.kontakti-rekviziti {
  margin-top: 36px;
}

.kontakti-follow h3,
.kontakti-rekviziti h3 {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 14px;
}

.kontakti-follow-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.kontakti-follow-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a4a4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kontakti-follow-links a:hover {
  transform: translateY(-1px);
}

.kontakti-follow-links a[aria-label="Instagram"]:hover {
  background: #8a3ab9;
}

.kontakti-follow-links a[aria-label="TikTok"]:hover {
  background: #000;
}

.kontakti-follow-links a[aria-label="Facebook"]:hover {
  background: #0d47a1;
}

.kontakti-follow-links a[aria-label="LinkedIn"]:hover {
  background: #0a66c2;
}

.kontakti-rekviziti p {
  margin: 0;
  font-family: var(--font-roboto);
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.kontakti-panel {
  background: #ececec;
  padding: 28px 24px 32px;
}

.kontakti-panel h2 {
  font-family: var(--font-poppins);
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0 0 14px;
}

.kontakti-panel-contacts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.kontakti-panel-contacts li {
  margin: 0 0 8px;
}

.kontakti-panel-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.kontakti-panel-contacts a:hover {
  color: var(--color-accent);
}

.kontakti-panel-contacts i {
  width: 16px;
  text-align: center;
  color: #555;
}

.kontakti-qr {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 22px;
  background: #fff;
}

.kontakti-form .btn-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.kontakti-map {
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  background: #ddd;
}

.kontakti-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .kontakti-page main {
    display: flex;
    flex-direction: column;
  }

  .kontakti-hero {
    order: 1;
  }

  .kontakti-body {
    display: contents;
  }

  .kontakti-layout {
    grid-template-columns: 1fr;
    display: contents;
  }

  .kontakti-info {
    order: 2;
    padding: 36px 30px 24px;
  }

  .kontakti-map {
    order: 3;
  }

  .kontakti-panel {
    order: 4;
    max-width: none;
    padding: 8px 30px 40px;
  }
}

@media (max-width: 640px) {
  .kontakti-body {
    padding: 24px 16px 36px;
  }

  .kontakti-info {
    padding: 24px 16px 20px;
  }

  .kontakti-panel {
    padding: 8px 16px 36px;
  }

  .kontakti-info-grid {
    grid-template-columns: 1fr;
  }

  .kontakti-item--wide {
    grid-column: auto;
  }
}

/* ── Galerija page ── */

.galerija-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 300px);
  background: url("../images/galerija-hero.png") center center / cover no-repeat;
  text-align: center;
  margin-bottom: 0;
}

.galerija-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.galerija-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.galerija-hero h1 {
  font-family: var(--font-poppins);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #f2f2f2;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.galerija-section {
  padding: 36px 20px 60px;
  background: #fff;
}

.galerija-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, 18vw);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.galerija-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.galerija-mosaic img:hover {
  transform: scale(1.015);
  filter: brightness(1.05);
}

/* Asymmetrical mosaic pattern (repeats every 7 images) */
.galerija-mosaic img:nth-child(7n + 4) {
  grid-column: span 2;
}

.galerija-mosaic img:nth-child(7n) {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .galerija-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, 28vw);
    gap: 10px;
  }

  .galerija-mosaic img:nth-child(7n + 4),
  .galerija-mosaic img:nth-child(7n) {
    grid-column: span 1;
  }

  .galerija-mosaic img:nth-child(4n + 3) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .galerija-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(180px, 55vw);
  }

  .galerija-mosaic img:nth-child(n) {
    grid-column: auto;
  }
}

