/* Хаб жалюзи: ритм карточек и ламелей, палитра сайта. */

.page-zhalyuzi-hub .breadcrumbs,
.page-shtory-hub .breadcrumbs,
.page-moskit-hub .breadcrumbs,
.page-karniz-hub .breadcrumbs,
.page-remont-hub .breadcrumbs,
.page-proizvodstvo .breadcrumbs,
.page-zamer .breadcrumbs,
.page-vertikalnye .breadcrumbs,
.page-gorizontalnye .breadcrumbs,
.page-den-noch .breadcrumbs,
.page-na-plastikovye .breadcrumbs,
.page-derevyannye .breadcrumbs,
.page-bambukovye .breadcrumbs,
.page-kassetnye .breadcrumbs,
.page-ofisnye .breadcrumbs,
.page-na-kuhnyu .breadcrumbs,
.page-rulonnye .breadcrumbs,
.page-nashi-raboty .breadcrumbs,
.page-case .breadcrumbs {
  margin-bottom: 0;
}

.zh-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.zh-hero {
  padding: clamp(1.6rem, 4vw, 3.2rem) 0 2.4rem;
}

.zh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}

.zh-hero__copy h1 {
  margin: 0 0 0.9rem;
}

.zh-hero__lead {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  color: var(--ink-muted);
}

.zh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 1.1rem;
}

.zh-hero__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zh-hero__facts li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
}

.zh-hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
}

.zh-hero__media {
  margin: 0;
  position: relative;
}

.page-zhalyuzi-hub .zh-hero__media::before {
  content: "";
  position: absolute;
  inset: 10% auto -8% -10%;
  width: 42%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(1, 100, 253, 0.16) 0 7px,
    transparent 7px 16px
  );
  z-index: 0;
  pointer-events: none;
}

.page-shtory-hub .zh-hero__media::before {
  content: "";
  position: absolute;
  inset: 16% auto -12% -14%;
  width: 54%;
  background: repeating-radial-gradient(
    circle at 118% -6%,
    rgba(1, 100, 253, 0.17) 0 8px,
    transparent 8px 18px
  );
  border-radius: 0 78% 12% 28%;
  z-index: 0;
  pointer-events: none;
}

.page-moskit-hub .zh-hero__media::before {
  content: "";
  position: absolute;
  inset: 12% auto -10% -12%;
  width: 46%;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(1, 100, 253, 0.16) 0 1px,
      transparent 1px 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(1, 100, 253, 0.16) 0 1px,
      transparent 1px 12px
    );
  border-radius: 4px;
  z-index: 0;
  pointer-events: none;
}

.page-karniz-hub .zh-hero__media::before {
  content: "";
  position: absolute;
  inset: 18% auto -8% -12%;
  width: 48%;
  background:
    linear-gradient(rgba(1, 100, 253, 0.2), rgba(1, 100, 253, 0.2)) 0 32% / 100% 5px no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.12), rgba(1, 100, 253, 0.12)) 0 48% / 100% 5px no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(1, 100, 253, 0.18) 0 4px,
      transparent 4px 16px
    ) 0 32% / 100% 22px no-repeat;
  z-index: 0;
  pointer-events: none;
}

.page-remont-hub .zh-hero__media::before {
  content: "";
  position: absolute;
  inset: 12% auto -10% -12%;
  width: 44%;
  background:
    linear-gradient(rgba(1, 100, 253, 0.22), rgba(1, 100, 253, 0.22)) 0 0 / 100% 6px no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.22), rgba(1, 100, 253, 0.22)) 0 100% / 100% 6px no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.22), rgba(1, 100, 253, 0.22)) 0 0 / 6px 100% no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.22), rgba(1, 100, 253, 0.22)) 100% 0 / 6px 100% no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.14), rgba(1, 100, 253, 0.14)) 50% 0 / 5px 100% no-repeat,
    linear-gradient(rgba(1, 100, 253, 0.18), rgba(1, 100, 253, 0.18)) 62% 58% / 18px 5px no-repeat;
  z-index: 0;
  pointer-events: none;
}

.zh-hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zh-hero__media img.hk-logo,
.zh-type__media img.hk-logo,
.zh-shop img.hk-logo,
.pr-split-media img.hk-logo {
  object-position: center bottom;
}

.page-vertikalnye .zh-hero__media img,
.page-vertikalnye .pr-split-media img {
  object-position: center center;
}

.page-zamer .zh-hero__media img {
  object-position: center 18%;
}

.page-derevyannye .zh-hero__media img {
  object-position: center 28%;
}

.page-bambukovye .zh-hero__media img {
  object-position: center 22%;
}

.page-kassetnye .zh-hero__media img {
  object-position: center 32%;
}

.page-ofisnye .zh-hero__media img {
  object-position: center 38%;
}

.page-na-kuhnyu .zh-hero__media img {
  object-position: center 42%;
}

.page-rulonnye .zh-hero__media img {
  object-position: center 48%;
}

.zh-block {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
}

.zh-head {
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

.zh-head h2,
.zh-prose h2,
.zh-block h2 {
  margin: 0 0 0.7rem;
}

.zh-head p,
.zh-prose p {
  margin: 0 0 0.9rem;
}

.zh-chips,
.zh-type__fits,
.zh-factors,
.zh-two ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.zh-chips li,
.zh-type__fits li,
.zh-factors li,
.zh-two li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  background: var(--bg-elevated);
}

.zh-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.zh-type {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.zh-type__media {
  margin: 0;
  position: relative;
}

.zh-type__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(26, 31, 46, 0.28) 0 2px,
    transparent 2px 5px
  );
  pointer-events: none;
}

.zh-type__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.zh-type__body {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem 1.2rem;
}

.zh-type__body h2,
.zh-type__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.zh-type__body p {
  margin: 0 0 0.7rem;
  color: var(--ink-muted);
}

.zh-type__fits-label {
  margin: 0 0 0.35rem !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.zh-type__price {
  margin-top: auto !important;
  font-weight: 600;
  color: var(--ink) !important;
}

.zh-type__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zh-consult,
.zh-calc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--header-dark);
  color: #fff;
}

.zh-consult h3,
.zh-calc-cta h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.25rem;
}

.zh-consult p,
.zh-calc-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.zh-consult .btn--primary,
.zh-calc-cta .btn--primary {
  flex-shrink: 0;
}

.zh-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.zh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.zh-table th,
.zh-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.zh-table thead th {
  border-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elevated));
}

.zh-table--price td,
.zh-table--price tbody th {
  white-space: nowrap;
}

.zh-table--price td {
  font-weight: 650;
  color: var(--brand-royal);
}

.zh-table a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.zh-note {
  color: var(--ink-muted);
}

.zh-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-block: 1.2rem 1.6rem;
}

.zh-two h3 {
  margin: 0 0 0.5rem;
}

.zh-two p {
  margin: 0 0 0.7rem;
}

.zh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zh-steps--5 {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.zh-two .zh-steps,
.zh-two .zh-steps--5 {
  grid-template-columns: 1fr;
}

.page-shtory-hub .zh-why,
.page-karniz-hub .zh-why,
.page-vertikalnye .zh-why,
.page-gorizontalnye .zh-why,
.page-den-noch .zh-why,
.page-na-plastikovye .zh-why,
.page-derevyannye .zh-why,
.page-bambukovye .zh-why,
.page-kassetnye .zh-why,
.page-ofisnye .zh-why,
.page-na-kuhnyu .zh-why,
.page-rulonnye .zh-why {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zh-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-weight: 550;
}

.zh-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}

.zh-shop,
.zh-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.1rem 0 1.2rem;
}

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

.zh-gallery--shtory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zh-gallery--shtory img {
  aspect-ratio: 3 / 4;
}

.zh-shop figure,
.zh-gallery figure {
  margin: 0;
}

.zh-shop img,
.zh-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.zh-why {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.zh-why article {
  padding: 1rem 1.05rem 1.15rem;
  border-top: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.zh-why h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.zh-why p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.page-zhalyuzi-hub .faq__question,
.page-shtory-hub .faq__question,
.page-moskit-hub .faq__question,
.page-karniz-hub .faq__question,
.page-remont-hub .faq__question {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.zh-final {
  background: transparent;
  color: inherit;
}

.zh-final > .container {
  background: var(--header-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.zh-final h2 {
  color: #fff;
}

.zh-final__grid > div a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.zh-final > .container > div p {
  color: rgba(255, 255, 255, 0.8);
}

.zh-final .zh-chips li {
  color: #1a1f2e;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.zh-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.zh-form {
  margin-top: 0;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  color: #1a1f2e;
}

.zh-form .consent-field,
.zh-form > .btn,
.zh-form .form-note {
  grid-column: 1 / -1;
}

.zh-form .field span,
.zh-form .consent-field,
.zh-form .consent-field span {
  color: #1a1f2e;
}

.zh-form .consent-field a {
  color: #0164fd;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.zh-form select,
.zh-form input,
.zh-form textarea {
  width: 100%;
}

@media (max-width: 980px) {
  .zh-hero__grid,
  .zh-two,
  .zh-final__grid,
  .zh-types {
    grid-template-columns: 1fr;
  }
  .zh-why {
    grid-template-columns: 1fr 1fr;
  }
  .zh-shop,
  .zh-gallery,
  .zh-steps {
    grid-template-columns: 1fr 1fr;
  }
  .zh-consult,
  .zh-calc-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .zh-hero__facts,
  .zh-why,
  .zh-shop,
  .zh-gallery,
  .zh-steps {
    grid-template-columns: 1fr;
  }
  .zh-gallery--shtory {
    grid-template-columns: 1fr 1fr;
  }
  .zh-hero__media::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zh-type,
  .zh-hero__media img { transition: none; }
}
