:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-dark: #2b2b2b;
  --bg-darker: #1f1f1f;
  --text: #222222;
  --text-muted: #666666;
  --line: #dddddd;
  --accent: #e87a3a;
  --accent-dark: #d06628;
  --header-h: 92px;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: 1.55rem;
  color: #111;
}

.brand-mark .hiki {
  font-weight: 800;
}

.brand-mark .pro {
  font-weight: 200;
}

.brand-tag {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 280px;
  line-height: 1.35;
  font-weight: 500;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.nav a,
.nav-drop > summary {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  list-style: none;
  cursor: pointer;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.65em;
  opacity: 0.7;
}

.nav a:hover,
.nav a.active,
.nav-drop.is-active > summary,
.nav-drop[open] > summary {
  color: #111;
  border-bottom-color: #4a90c8;
}

.nav-drop {
  position: relative;
}

.nav-drop .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 120;
}

.nav-drop[open] .dropdown,
.nav-drop:hover .dropdown {
  display: block;
}

.nav-drop .dropdown a {
  display: block;
  padding: 10px 12px;
  border-bottom: 0;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-drop .dropdown a:hover,
.nav-drop .dropdown a.active {
  background: var(--bg-soft);
  border-bottom-color: transparent;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #444;
}

.header-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-contact svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.75;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #222;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 56px;
  text-align: right;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.95;
}

.hero .hero-sub {
  margin-top: 6px;
  font-size: 0.98rem;
  opacity: 0.88;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #3a3a3a;
}

.section-dark .section-title {
  color: #fff;
}

.lead {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.values-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.value-card strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.value-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.value-check {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(232, 122, 58, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.stats-three {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  border: 1px solid var(--line);
}

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-dark .panel {
  background: #353535;
  border-color: transparent;
  color: #eee;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.panel p,
.panel li {
  color: inherit;
  opacity: 0.92;
}

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

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: #ddd center / cover no-repeat;
  box-shadow: var(--shadow);
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  background: #333 center / cover no-repeat;
  box-shadow: var(--shadow);
}

.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

.product-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.product h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.product p {
  margin: 0 0 16px;
  opacity: 0.92;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

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

.btn-dark {
  background: #2f2f2f;
  color: #fff;
}

.btn-dark:hover {
  background: #111;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Quote form */
.quote {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.quote-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.quote-intro p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.quote-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fafafa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(232, 122, 58, 0.35);
  border-color: var(--accent);
  background: #fff;
}

.systems {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.systems label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.form-msg {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.form-msg.ok {
  display: block;
  background: #e8f6ec;
  color: #1f6b38;
}

.form-msg.err {
  display: block;
  background: #fdeceb;
  color: #8a1f1a;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-block h3 {
  margin-top: 0;
}

.about-block ul {
  margin: 0;
  padding-left: 18px;
}

.about-block li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* Cities / footer band */
.cities {
  text-align: center;
  padding: 36px 0;
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  background: #171717;
  color: #cfcfcf;
  padding: 42px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand .brand-mark {
  color: #fff;
  margin-bottom: 10px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer-grid li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #999;
}

/* Page hero small */
.page-hero {
  padding: 54px 0 28px;
  background: linear-gradient(120deg, #efefef, #fafafa 45%, #e9e9e9);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

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

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.rodo-content {
  max-width: 820px;
  margin: 0 auto;
}

.rodo-content h2 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.rodo-content p,
.rodo-content li {
  color: var(--text-muted);
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fade-up 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-drop .dropdown,
  .nav-drop[open] .dropdown,
  .nav-drop:hover .dropdown {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
    min-width: 0;
  }

  .nav-drop[open] .dropdown {
    display: block;
  }

  .site-header.is-open .header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + 280px);
    background: #fff;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--line);
  }

  .values,
  .values-two,
  .stats,
  .stats-three,
  .products,
  .split,
  .quote,
  .about-grid,
  .footer-grid,
  .gallery,
  .contact-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-tight {
    padding: 36px 0;
  }

  .hero {
    min-height: 62vh;
  }

  .hero-content {
    text-align: left;
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .section {
    padding: 52px 0;
  }

  .gallery img {
    height: 220px;
  }
}

/* Hero slider */
.hero-slider {
  position: relative;
  min-height: min(78vh, 720px);
  overflow: hidden;
  color: #fff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
  /* avoid scale/Ken Burns — softens low-res photos during GPU upscale */
  transform: none;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.48) 100%
  );
  pointer-events: none;
}

.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  padding-bottom: 56px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: #fff;
}

/* Product overview cards 3-col */
.products-three {
  grid-template-columns: repeat(3, 1fr);
}

/* System tabs */
.system-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.system-tab {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  min-height: 72px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #222;
  transition: 0.2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.system-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.system-tab.is-active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.system-panel {
  display: none;
  animation: fade-up 0.45s ease both;
}

.system-panel.is-active {
  display: block;
}

.section-systems {
  padding: 56px 0 72px;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: 32px;
  align-items: center;
  min-height: 680px;
}

.system-photo {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 2 / 3;
  min-height: 640px;
  height: auto;
  margin-inline: auto;
  background-color: #f0f0f0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: var(--shadow);
}

.badge-order {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 122, 58, 0.12);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doors-grid-text .door-card-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.doors-grid-text .door-card-text h4 {
  padding: 0;
  margin: 0 0 8px;
}

.doors-grid-text .door-card-text p {
  padding: 0;
}

.system-copy {
  padding-block: 12px;
}

.system-copy h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.system-copy p,
.system-copy li {
  color: var(--text-muted);
}

.system-copy ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.system-copy li {
  margin-bottom: 8px;
}

.doors-title {
  margin: 28px 0 14px;
  font-size: 1.1rem;
}

.doors-block {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doors-block h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  text-align: center;
}

.doors-lead {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.doors-grid-catalog .door-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.doors-grid-catalog .door-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f7f7f7;
  padding: 12px;
}

.door-card h4 {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: 0.95rem;
}

.door-card p {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.door-sizes-label {
  margin: 0 !important;
  padding: 0 14px 4px !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555 !important;
}

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

.door-sizes li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
}

.door-card-soon .door-soon {
  height: 280px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eee, #f8f8f8);
  color: #888;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.spec-heights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spec-heights span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #333;
}

.system-layout-nophoto {
  grid-template-columns: 1.2fr 0.8fr;
}

.system-placeholder {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px dashed #cfcfcf;
  background: linear-gradient(160deg, #f3f3f3, #fafafa);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: #666;
}

.system-placeholder strong {
  font-size: 1.6rem;
  color: #222;
  letter-spacing: 0.04em;
}

.system-placeholder em {
  font-style: normal;
  font-size: 0.85rem;
  color: #999;
}

.note-photo {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff7f0;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.subcat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.subcat-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.subcat-card .body {
  padding: 18px 18px 20px;
}

.subcat-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.subcat-card p,
.subcat-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subcat-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.size-pills span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}

.dims-block {
  margin-top: 36px;
}

.dims-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dims-lead {
  margin: 0 0 16px;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dims-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.dims-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.dim-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dim-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 8px 6px 4px;
  background: #fff;
  color: #222;
  overflow: visible;
}

.dim-plan svg {
  width: 100%;
  height: auto;
  aspect-ratio: 187 / 205.3;
  max-height: 240px;
  display: block;
  overflow: visible;
}

.dim-meta {
  display: grid;
  gap: 1px;
  padding: 8px 8px 9px;
  border-top: 1px solid var(--line);
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.dim-meta strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.dim-meta span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.25;
}

.dim-meta .dim-size {
  margin-top: 2px;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
}

.dims-custom {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: #fff7f0;
  border: 1px solid #f0d4c0;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.dims-custom h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.dims-custom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 40rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.feature-strip article {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
}

.feature-strip h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-strip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .products-three,
  .system-layout,
  .system-layout-nophoto,
  .doors-grid,
  .subcat-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

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

  .system-tab {
    font-size: 0.95rem;
    padding: 16px 12px;
    min-height: 64px;
  }

  .dims-grid {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    width: max-content;
    min-width: 100%;
  }

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

  .doors-grid-catalog .door-card img,
  .door-card-soon .door-soon {
    height: 240px;
  }

  .system-placeholder {
    min-height: 260px;
  }

  .system-photo {
    max-width: 380px;
    min-height: 560px;
    aspect-ratio: 2 / 3;
  }

  .system-layout {
    min-height: 0;
  }

  .section-systems {
    padding: 40px 0 56px;
  }

  .hero-slider,
  .hero-slider .hero-content {
    min-height: 62vh;
  }

  .hero-slider .hero-content {
    text-align: left;
    padding-bottom: 40px;
  }

  .site-header.is-open .header-contact {
    top: calc(var(--header-h) + 320px);
  }

  .brand-tag {
    max-width: 200px;
  }
}

/* ===== Mała architektura (układ jak MG Wójcik) ===== */
.ma-hero {
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: center / cover no-repeat;
  position: relative;
}

.ma-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
}

.ma-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 48px;
}

.ma-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.ma-hero p {
  margin: 0;
  max-width: 640px;
  opacity: 0.95;
}

.ma-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ma-cat {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
  color: #fff;
}

.ma-cat img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ma-cat:hover img {
  transform: scale(1.05);
}

.ma-cat-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.ma-cat-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.ma-cat-body span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.ma-intro {
  max-width: 900px;
  text-align: center;
}

.ma-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.ma-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.ma-benefits article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ma-benefits h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ma-benefits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.ma-product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.ma-product-rev {
  grid-template-columns: 0.95fr 1.05fr;
}

.ma-product-rev img {
  order: 2;
}

.ma-product img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ma-product img.ma-img-contain,
.ma-cat img.ma-img-contain {
  object-fit: contain;
  background: #f3f3f3;
  object-position: center;
}

.ma-product img.ma-img-contain {
  height: 400px;
}

.ma-product h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.ma-product p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.ma-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ma-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
  .ma-cats {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 980px) {
  .ma-cats,
  .ma-benefits,
  .ma-product,
  .ma-product-rev,
  .ma-gallery {
    grid-template-columns: 1fr;
  }

  .ma-product-rev img {
    order: 0;
  }

  .ma-cat {
    min-height: 220px;
  }

  .ma-gallery img {
    height: 220px;
  }
}
