:root {
  --nika-page-gap: clamp(1rem, 3.4vw, 3rem);
  --nika-section-y: clamp(3.75rem, 7vw, 7rem);
  --nika-card-pad: clamp(1.25rem, 2.6vw, 2rem);
  --nika-control-height: 46px;
  --nika-hairline: rgba(16,16,15,.12);
}
html { text-rendering: optimizeLegibility; }
body { line-height: 1.65; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--nika-clay);
  outline-offset: 3px;
}

/* Shared page frame and readable generic content. */
.nika-inner-main { padding-bottom: clamp(4rem, 7vw, 7rem) !important; }
.nika-inner .nika-breadcrumb {
  margin-bottom: 1.35rem;
  font-size: .72rem;
  line-height: 1.65;
}
.nika-inner .nika-breadcrumb .breadcrumb-d { display: inline; }
.nika-content:not(:has(.section-d_shop)):not(:has(.product-d)):not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) {
  border: 1px solid rgba(16,16,15,.055);
  padding: clamp(1.5rem, 4vw, 3.5rem) !important;
}
.nika-content:not(:has(.section-d_shop)):not(:has(.product-d)):not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) > h1 {
  max-width: 980px;
  margin: 0 0 clamp(1.5rem,3vw,2.25rem) !important;
  font-size: clamp(2.35rem,4.3vw,3.5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.nika-content:not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) > p,
.nika-content:not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) > .text-d {
  max-width: 900px;
}
.nika-content h2, .nika-home-content h2 {
  font-size: clamp(1.65rem,3vw,2.35rem);
  line-height: 1.18;
}
.nika-content h3 { line-height: 1.25; }
.nika-content p, .nika-content li { line-height: 1.72; }
.nika-content table { width: 100%; border-collapse: collapse; }
.nika-content th, .nika-content td { padding: .8rem; border-bottom: 1px solid var(--nika-hairline); text-align: left; }

/* Forms and utility modules use one control rhythm. */
.nika-content:not(:has(.nika-contact)) .block-d_form,
.nika-content:not(:has(.nika-contact)) form:not(.shop-filter-form) { max-width: 780px; }
.nika-content:not(:has(.nika-contact)) .block-d_form {
  padding: clamp(1.25rem,3vw,2rem);
  border: 1px solid var(--nika-hairline);
  background: #f7f4ee;
}
.nika-content:not(:has(.nika-contact)) .field-d { margin-bottom: 1.15rem; }
.nika-content:not(:has(.nika-contact)) .field-d__name {
  margin-bottom: .48rem;
  color: rgba(16,16,15,.62);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
}
.nika-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.nika-content select,
.nika-content textarea {
  max-width: 100%;
  border: 1px solid rgba(16,16,15,.16);
  border-radius: 0;
  background: #fff;
  color: var(--nika-ink);
  outline: none;
}
.nika-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.nika-content select { min-height: var(--nika-control-height); padding: .7rem .9rem; }
.nika-content textarea { min-height: 150px; padding: .9rem; resize: vertical; }
.nika-content input:focus, .nika-content select:focus, .nika-content textarea:focus {
  border-color: var(--nika-clay);
  box-shadow: 0 0 0 3px rgba(143,104,70,.09);
}
.nika-content button:not(.slick-arrow),
.nika-content .button-d,
.nika-content input[type="submit"] {
  min-height: 42px;
  line-height: 1.25;
}
.nika-content .privacy_field, .nika-content .required_field {
  max-width: 680px;
  color: rgba(16,16,15,.48);
  font-size: .72rem;
  line-height: 1.6;
}
.captcha, .captcha-d { max-width: 100%; }
.captcha-d { flex-wrap: wrap; }
.captcha-d__image { max-width: 159px; }
.errors { line-height: 1.45; }

/* Catalogue hierarchy and product grids. */
.nika-content:has(.section-d_shop) > h1,
.nika-content:has(.product-d) > h1 {
  margin-top: 0 !important;
  margin-bottom: clamp(1.25rem,2.5vw,2rem) !important;
  font-size: clamp(2.4rem,4.6vw,3.65rem);
  line-height: 1.08;
}
.nika-catalog-lead { margin-bottom: clamp(2rem,4vw,3rem) !important; }
.section-d_shop_cat .settings-d {
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem;
}
.section-d_shop .section-d__list._viewgrid,
.block-d_shop .block-d__list._viewgrid { gap: clamp(1rem,2vw,1.5rem); align-items: stretch; }
.section-d_shop .element-d_card,
.block-d_shop .element-d_card { height: 100%; }
.element-d_card .element-d__details { padding: 1.45rem; }
.element-d_card .detail-d_name { min-height: 3.25rem; margin-bottom: .8rem; }
.element-d_card .detail-d_name a { font-size: 1.28rem; line-height: 1.28; }
.element-d_card .detail-d_anons { font-size: .84rem; line-height: 1.68; }
.element-d_card .element-d__images::after,
.nika-category-meta,
.nika-hub-stat span,
.nika-granite-card__meta,
.nika-granite-card__tags span,
.nika-granite-card__link { font-size: .64rem; }
.nika-card-link, .nika-product-quote a { min-height: 42px; font-size: .7rem; }
.prevnext-d {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nika-hairline);
}
.prevnext-d a { display: inline-flex; min-height: 42px; align-items: center; }

/* Stable product composition and readable specifications. */
.product-d { align-items: stretch; }
.product-d__details { min-width: 0; }
.product-d__tabs .product-d__tab_text { font-size: .94rem; line-height: 1.78; }
.product-d__tab_params .param-d { font-size: .81rem; }
.nika-specs-title { margin-top: .25rem; font-size: 1.32rem; }

/* Consistent vertical rhythm on branded landing pages. */
.nika-about__story, .nika-about__trust, .nika-about__process,
.nika-contact__workspace,
.nika-granite-catalog, .nika-granite-guide { padding-top: var(--nika-section-y); padding-bottom: var(--nika-section-y); }
.nika-about__proof article, .nika-contact__channel { padding-top: clamp(1.75rem,3vw,3rem); padding-bottom: clamp(1.75rem,3vw,3rem); }
.nika-about__trust-grid article, .nika-about__steps article,
.nika-granite-guide__items article { height: 100%; }
.nika-granite-card__body { display: flex; min-height: 345px; flex-direction: column; }
.nika-granite-card__description { flex: 1; }
.nika-granite-card__link { margin-top: auto; }

@media (max-width: 767px) {
  :root { --nika-section-y: 3.75rem; }
  .nika-inner-main { padding-top: 8.75rem !important; padding-bottom: 4rem !important; }
  .nika-inner .nika-breadcrumb { margin-bottom: 1rem; }
  .nika-content:not(:has(.section-d_shop)):not(:has(.product-d)):not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) > h1 {
    font-size: clamp(2.1rem,10vw,2.65rem);
  }
  .nika-content:has(.section-d_shop) > h1,
  .nika-content:has(.product-d) > h1 {
    font-size: clamp(2rem,9vw,2.5rem);
    line-height: 1.1;
  }
  .element-d_card .element-d__details { padding: 1.3rem; }
  .element-d_card .detail-d_name { min-height: 0; }
  .product-d__images { min-height: 300px; }
  .product-d__details { padding: 1.4rem; }
  .product-d__tabs { padding-right: 1.4rem; padding-bottom: 1.5rem; padding-left: 1.4rem; }
  .nika-granite-card__body { min-height: 0; }
  .nika-about__trust-head, .nika-about__process-head,
  .nika-granite-toolbar { margin-bottom: 2.25rem; }
}

@media (max-width: 420px) {
  .nika-inner-main { padding-right: .875rem !important; padding-left: .875rem !important; }
  .nika-content:not(:has(.section-d_shop)):not(:has(.product-d)):not(:has(.nika-about)):not(:has(.nika-contact)):not(:has(.nika-granite-page)) { padding: 1.35rem !important; }
  .nika-content button:not(.slick-arrow), .nika-content .button-d { max-width: 100%; }
  .nika-footer-menu ul { flex-wrap: wrap; row-gap: .65rem; }
}
