/* Migrated section pages (Abet Laminati content) */
.section-page .article-detail__section { color: var(--catalog-red, #e42840); }
.section-detail h1 { overflow-wrap: break-word; }
.section-detail__body { overflow-wrap: break-word; }
.section-page .article-detail__header { margin-bottom: 42px; }

.section-detail__body .section-eyebrow {
  margin: 0 0 10px;
  color: var(--catalog-red, #e42840);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-detail__body > *:first-child { margin-top: 0; }

.migrated-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.migrated-facts li {
  padding: 14px 16px;
  border: 1px solid #e2ded6;
  border-radius: 14px;
  background: #fff;
  color: #625d56;
  font-size: 15px;
  line-height: 1.35;
}
.migrated-facts strong {
  display: block;
  margin-bottom: 3px;
  color: #22201d;
  font-size: 21px;
  line-height: 1.1;
}
.table-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
}
.table-wrap table { margin: 0; }

.migrated-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 10px;
}
.migrated-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.migrated-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #fff;
}
.migrated-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ece9e3;
}
.migrated-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.migrated-card__media--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}
.migrated-card__media--double img { aspect-ratio: 1 / 1; height: 100%; border-radius: 8px; }
.migrated-card h3 { margin: 14px 0 8px; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.migrated-card p { margin: 0 0 8px; color: #625d56; font-size: 15px; line-height: 1.45; }
.migrated-card p:last-child { margin-bottom: 0; }
.migrated-card strong { color: #22201d; }

.migrated-figure { margin: 34px 0; }
.migrated-figure img { display: block; width: 100%; height: auto; border-radius: 18px; }
.migrated-figure figcaption { margin-top: 10px; color: #777169; font-size: 14px; line-height: 1.4; }
.migrated-grid .migrated-figure { margin: 0; }
.migrated-grid .migrated-figure img { width: 100%; height: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; border-radius: 14px; }
.migrated-grid .migrated-figure figcaption { margin-top: 6px; font-size: 13px; }

.migrated-faq {
  display: block;
  margin: 26px 0 36px;
  border-top: 1px solid #ddd8d0;
}
.migrated-faq details {
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid #ddd8d0;
  border-radius: 0;
  background: #fff;
}
.migrated-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
  cursor: pointer;
  color: #22201d;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  transition: color .2s ease;
}
.migrated-faq summary::-webkit-details-marker { display: none; }
.migrated-faq summary::marker { content: ""; }
.migrated-faq summary:hover { color: var(--link-hover, #c51d34); }
.migrated-faq__icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #d8d4cc;
  border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.migrated-faq__icon::before,
.migrated-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.migrated-faq__icon::before { width: 14px; height: 1px; }
.migrated-faq__icon::after { width: 1px; height: 14px; transition: opacity .2s ease, transform .2s ease; }
.migrated-faq details[open] summary { color: var(--link-hover, #c51d34); }
.migrated-faq details[open] .migrated-faq__icon {
  color: #fff;
  background: var(--link-hover, #c51d34);
  border-color: var(--link-hover, #c51d34);
  transform: rotate(180deg);
}
.migrated-faq details[open] .migrated-faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.migrated-faq details p {
  max-width: 980px;
  margin: 0;
  padding: 0 58px 22px 0;
  color: #625d56;
  font-size: 16px;
  line-height: 1.65;
}

/* Compact HPL Stratificato: benefits and material types */
.strat-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin: 32px 0 52px;
}
.strat-benefits__list { display: grid; gap: 22px; }
.strat-benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.strat-benefit__icon {
  display: block;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 14px;
  background: #f2f0eb;
  object-fit: contain;
}
.strat-benefit__title {
  margin: 1px 0 5px;
  color: #181a1c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.strat-benefit__text {
  margin: 0;
  color: #625d56;
  font-size: 15px;
  line-height: 1.55;
}
.strat-benefits__media {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #ece9e3;
  aspect-ratio: .78;
}
.strat-benefits__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.strat-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}
.strat-type {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #fff;
}
.strat-type__media {
  margin: 0;
  overflow: hidden;
  background: #ece9e3;
  aspect-ratio: 16 / 9;
}
.strat-type__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.68,0,1);
}
.strat-type:hover .strat-type__media img { transform: scale(1.035); }
.strat-type__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.strat-type__body h3 {
  margin: 0 0 10px;
  color: #181a1c;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.strat-type__body > p {
  margin: 0 0 14px;
  color: #625d56;
  font-size: 15px;
  line-height: 1.55;
}
.strat-type__body .migrated-list {
  margin: 0;
  padding-left: 18px;
}
.strat-type__body .migrated-list li {
  margin-bottom: 6px;
  color: #4f4a44;
  font-size: 14px;
  line-height: 1.45;
}
.strat-type__body .migrated-list li:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .strat-benefits { grid-template-columns: 1fr; }
  .strat-benefits__media {
    max-height: 560px;
    aspect-ratio: 16 / 10;
  }
  .strat-types { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .strat-benefit { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .strat-benefit__icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; }
  .strat-benefit__title { font-size: 16px; }
  .strat-benefit__text { font-size: 14px; }
  .strat-benefits { margin-bottom: 38px; gap: 26px; }
  .strat-benefits__media { border-radius: 16px; }
  .strat-type__body { padding: 16px 16px 18px; }
  .strat-type__body h3 { font-size: 18px; }
  .migrated-faq details { padding: 0 16px; }
  .migrated-faq summary { padding: 17px 0; font-size: 16px; }
  .migrated-faq details p { padding-right: 0; font-size: 15px; }
}

.section-detail__body .migrated-list { margin: 0 0 24px; padding-left: 22px; }
.section-detail__body .migrated-list li { margin-bottom: 8px; }

.section-detail__body .strat-type__body .migrated-list { margin: 0; padding-left: 18px; }
.section-detail__body .strat-type__body .migrated-list li { margin-bottom: 6px; }
.section-detail__body .strat-type__body .migrated-list li:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
  .migrated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .migrated-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .migrated-grid, .migrated-grid--two { grid-template-columns: 1fr; }
  .migrated-facts { grid-template-columns: 1fr; }
  .migrated-card { padding: 12px; border-radius: 14px; }
  .section-detail__body .article-detail__lead { font-size: 18px; }
}

/* Keep migrated section components independent from article body typography. */
.section-detail__body .strat-benefits__media,
.section-detail__body .strat-type__media { margin: 0; }
.section-detail__body .strat-benefit__title {
  margin: 1px 0 5px;
  color: #181a1c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.section-detail__body .strat-benefit__text {
  margin: 0;
  color: #625d56;
  font-size: 15px;
  line-height: 1.55;
}
.section-detail__body .strat-type__body h3 {
  margin: 0 0 10px;
  color: #181a1c;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-detail__body .strat-type__body > p {
  margin: 0 0 14px;
  color: #625d56;
  font-size: 15px;
  line-height: 1.55;
}
.section-detail__body .strat-type__body .migrated-list { margin: 0; padding-left: 0; list-style: none; }
.section-detail__body .strat-type__body .migrated-list li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 14px;
  color: #4f4a44;
  font-size: 14px;
  line-height: 1.45;
}
.section-detail__body .strat-type__body .migrated-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--link-hover, #c51d34);
}
.section-detail__body .strat-type__body .migrated-list li:last-child { margin-bottom: 0; }
.section-detail__body .strat-benefit__icon { display: block; width: 44px; height: 44px; }
@media (max-width: 640px) {
  .section-detail__body .strat-benefit__icon { width: 40px; height: 40px; }
  .section-detail__body .strat-benefit__title { font-size: 16px; }
  .section-detail__body .strat-benefit__text { font-size: 14px; }
  .section-detail__body .strat-type__body h3 { font-size: 18px; }
}

.slidecore-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .slidecore-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .slidecore-gallery { grid-template-columns: 1fr; }
}

/* Keep top-level migrated figures at their natural size instead of upscaling. */
.section-detail__body > .migrated-figure > img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.section-detail__body > .migrated-figure--diagram {
  max-width: 320px;
  margin-inline: auto;
}
.section-detail__body > .migrated-figure--diagram > img { width: 100%; }

/* Compact swatch palettes migrated from product pages. */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: 16px;
  margin: 28px 0 36px;
}
.swatch-grid figure { margin: 0; text-align: center; }
.swatch-grid img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #f2f0eb;
}
.swatch-grid figcaption {
  margin-top: 8px;
  color: #625d56;
  font-size: 14px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact HPL formats, thickness and core */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 42px;
}
.format-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2ded6;
  border-radius: 16px;
  background: #fff;
}
.format-card__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 110px;
  padding: 8px 0;
}
.format-card__panel {
  width: calc(100% * var(--w) / 4200);
  max-width: 100%;
  aspect-ratio: var(--w) / var(--h);
  border-radius: 3px;
  background: linear-gradient(135deg, #2f2f2f, #5c5852);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.format-card strong { display: block; color: #181a1c; font-size: 16px; line-height: 1.25; }
.format-card span { display: block; margin-top: 3px; color: #777169; font-size: 13px; line-height: 1.3; }

.thickness-chart {
  margin: 28px 0 6px;
  padding: 26px 24px 18px;
  overflow-x: auto;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #fff;
}
.thickness-chart__inner {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.5vw, 18px);
  min-width: 540px;
}
.thickness-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 30px;
}
.thickness-bar {
  width: 100%;
  max-width: 26px;
  height: calc(8px + var(--t) * 3.2px);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(#2c2c2c, #6c665e);
  box-shadow: inset 0 1px rgba(255,255,255,.16);
}
.thickness-item strong { color: #625d56; font-size: 13px; font-weight: 500; line-height: 1; }
.thickness-unit { margin: 0 0 38px; color: #777169; font-size: 13px; }

.core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 18px;
}
.core-card {
  padding: 20px;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #fff;
}
.core-card__visual {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f0eb;
}
.core-card__edge {
  width: 72%;
  max-width: 360px;
  height: 64px;
  border-top: 9px solid #e6e1d8;
  border-bottom: 9px solid #d8d3ca;
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, #2b2b2b 0 2px, #363636 2px 4px);
  box-shadow: 0 12px 22px rgba(0,0,0,.14);
}
.core-card--color .core-card__edge { background: repeating-linear-gradient(0deg, #b98b64 0 2px, #c79b75 2px 4px); }
.section-detail__body .core-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.section-detail__body .core-card > p { margin: 0 0 14px; color: #625d56; font-size: 15px; line-height: 1.55; }
.section-detail__body .core-card .migrated-list { margin: 0; padding-left: 18px; }
.section-detail__body .core-card .migrated-list li { margin-bottom: 6px; font-size: 14px; color: #4f4a44; }
.section-detail__body .core-note {
  margin: 0 0 44px;
  padding: 14px 16px;
  border-left: 3px solid var(--link-hover, #c51d34);
  border-radius: 0 12px 12px 0;
  background: #f7f5f1;
  color: #625d56;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .format-card { padding: 12px; gap: 10px; }
  .format-card__visual { height: 72px; padding: 4px 0; }
  .format-card strong { font-size: 14px; }
  .format-card span { font-size: 12px; }
  .thickness-chart { padding: 16px 12px 12px; overflow: visible; }
  .thickness-chart__inner { min-width: 0; gap: 2px; }
  .thickness-item { min-width: 0; gap: 8px; }
  .thickness-bar { max-width: 18px; }
  .thickness-item strong { font-size: 10px; }
  .thickness-unit { margin-bottom: 32px; }
  .core-card { padding: 16px; }
  .core-card__visual { height: 120px; }
}

.section-detail__body .core-card .migrated-list { margin: 0; padding-left: 0; list-style: none; }
.section-detail__body .core-card .migrated-list li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 14px;
  color: #4f4a44;
  font-size: 14px;
  line-height: 1.45;
}
.section-detail__body .core-card .migrated-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--link-hover, #c51d34);
}
.section-detail__body .core-card .migrated-list li:last-child { margin-bottom: 0; }

/* Exterior pages */
.migrated-grid--natural .migrated-figure img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #f2f0eb;
}
.ext-subcat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.ext-subcat__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #ddd8d0;
  border-radius: 999px;
  background: #fff;
  color: #22201d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ext-subcat__link:hover {
  border-color: var(--link-hover, #c51d34);
  color: var(--link-hover, #c51d34);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .ext-subcat { gap: 8px; margin: 18px 0 24px; }
  .ext-subcat__link { padding: 9px 13px; font-size: 13px; }
}

/* Exterior application banners: keep the source width, never upscale. */
.migrated-grid--types {
  grid-template-columns: repeat(3, minmax(0, 325px));
  justify-content: center;
}
.migrated-grid--types .migrated-figure img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #f2f0eb;
}
@media (max-width: 991px) {
  .migrated-grid--types { grid-template-columns: repeat(2, minmax(0, 325px)); }
}
@media (max-width: 640px) {
  .migrated-grid--types { grid-template-columns: minmax(0, 1fr); }
}

/* Exterior example galleries: masonry keeps mixed portrait/landscape photos gap-free. */
.migrated-masonry {
  column-count: 3;
  column-gap: 18px;
  margin: 30px 0;
}
.migrated-masonry .migrated-figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
}
.migrated-masonry .migrated-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}
@media (max-width: 991px) {
  .migrated-masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .migrated-masonry { column-count: 1; }
}

/* HPL finishes cards */
.finish-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin: 0 0 28px;
}
.finish-intro p { margin: 0; max-width: 880px; }
.finish-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--link-hover, #c51d34);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.section-detail__body .finish-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-detail__body .finish-card:hover {
  transform: translateY(-3px);
  border-color: #d3cdc3;
  box-shadow: 0 18px 34px rgba(20, 18, 16, .08);
}
.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 52px;
}
.finish-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ece9e3;
}
.finish-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.section-detail__body .finish-card:hover .finish-card__media img { transform: scale(1.035); }
.finish-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.finish-card__number {
  margin: 0 0 5px;
  color: var(--link-hover, #c51d34);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
}
.section-detail__body .finish-card h3 {
  margin: 0 0 8px;
  color: #181a1c;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.section-detail__body .finish-card__body > p:last-child {
  margin: 0;
  color: #625d56;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .finish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .finish-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 38px; }
  .finish-card { border-radius: 16px; }
  .finish-card__body { padding: 14px 16px 16px; }
  .finish-intro { margin-bottom: 22px; }
  .finish-intro__link { font-size: 14px; }
}

/* Contacts page */
.contacts-list {
  display: grid;
  gap: 22px;
  margin: 28px 0 52px;
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
  border: 1px solid #e2ded6;
  border-radius: 22px;
  background: #fff;
}
.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.contact-card__kicker {
  margin: 0;
  color: var(--link-hover, #c51d34);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-detail__body .contact-card h2 {
  margin: 2px 0 8px;
  color: #181a1c;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.contact-card address {
  margin: 0 0 6px;
  color: #37332e;
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
}
.contact-card__line {
  margin: 0;
  color: #625d56;
  font-size: 15px;
  line-height: 1.5;
}
.contact-card__line > span:first-child { color: #837e76; }
.contact-card__line a {
  color: var(--link-hover, #c51d34);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-card__line a:hover { border-color: currentColor; }
.contact-card__note { color: #837e76; font-size: 13px; }
.contact-card__pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--link-hover, #c51d34);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.contact-card__map {
  min-height: 290px;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f0eb;
}
.contact-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: 0;
}
@media (max-width: 991px) {
  .contact-card { grid-template-columns: 1fr; gap: 20px; }
  .contact-card__map, .contact-card__map iframe { min-height: 260px; }
}
@media (max-width: 640px) {
  .contact-card { padding: 18px; border-radius: 18px; }
  .section-detail__body .contact-card h2 { font-size: 26px; }
  .contact-card__map, .contact-card__map iframe { min-height: 230px; }
}

/* Sale and new arrival pages */
.promo-intro {
  max-width: 900px;
  margin: 0 0 26px;
  color: #625d56;
  font-size: 17px;
  line-height: 1.6;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 50px;
}
.section-detail__body .promo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-detail__body .promo-card:hover {
  transform: translateY(-3px);
  border-color: #d3cdc3;
  box-shadow: 0 16px 30px rgba(20, 18, 16, .07);
}
.promo-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece9e3;
}
.promo-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.section-detail__body .promo-card:hover .promo-card__media img { transform: scale(1.035); }
.promo-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 14px;
}
.promo-card__name {
  color: #181a1c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.promo-card__badge {
  flex: 0 0 auto;
  color: var(--link-hover, #c51d34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
@media (max-width: 991px) {
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .promo-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 38px; }
  .promo-card { border-radius: 14px; }
  .promo-card__name { font-size: 14px; }
  .promo-intro { font-size: 15px; }
}

/* Keep captions directly under their top-level images */
.section-detail__body > .migrated-figure {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.section-detail__body > .migrated-figure > figcaption { max-width: 100%; }

/* Single underline for the finishes link */
.section-detail__body .finish-intro__link {
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Whole popular-decor cards are links */
.section-detail__body a.migrated-card {
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-detail__body a.migrated-card:hover {
  transform: translateY(-2px);
  border-color: #d3cdc3;
  box-shadow: 0 16px 30px rgba(20, 18, 16, .06);
}

/* Rounded FAQ container */
.migrated-faq {
  border: 1px solid #ddd8d0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.migrated-faq details:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .migrated-faq { border-radius: 14px; }
}

/* Popular HPL panels: tabbed product grid */
.hpl-popular { margin: 24px 0 8px; }
.hpl-popular__lead { max-width: 980px; margin: 0 0 22px; color: #625d56; font-size: 16px; line-height: 1.55; }
.hpl-popular__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  border-bottom: 1px solid #e2ded6;
  scrollbar-width: thin;
}
.hpl-popular__tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f2f0eb;
  color: #37332e;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.hpl-popular__tab:hover { background: #ebe7df; }
.hpl-popular__tab.is-active {
  background: #fff;
  border-color: #d8d2c8;
  color: var(--link-hover, #c51d34);
  box-shadow: 0 5px 16px rgba(20, 18, 16, .06);
}
.hpl-popular__panel[hidden] { display: none; }
.hpl-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
}
.section-detail__body .hpl-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section-detail__body .hpl-product-card:hover {
  transform: translateY(-2px);
  border-color: #d3cdc3;
  box-shadow: 0 16px 30px rgba(20, 18, 16, .07);
}
.hpl-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece9e3;
}
.hpl-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.section-detail__body .hpl-product-card:hover .hpl-product-card__media img { transform: scale(1.035); }
.hpl-product-card__stock {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #2f7d4a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.hpl-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.hpl-product-card__sku {
  color: var(--link-hover, #c51d34);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-detail__body .hpl-product-card h3 {
  margin: 6px 0 6px;
  color: #181a1c;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hpl-product-card__desc {
  margin: 0 0 14px;
  color: #625d56;
  font-size: 14px;
  line-height: 1.45;
}
.hpl-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.hpl-product-card__price { color: #181a1c; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hpl-product-card__arrow {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  color: #181a1c;
  font-size: 16px;
  line-height: 1;
}
.hpl-popular__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
}
.hpl-popular__links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #ddd8d0;
  border-radius: 999px;
  background: #fff;
  color: #22201d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.hpl-popular__links a:hover { color: var(--link-hover, #c51d34); border-color: var(--link-hover, #c51d34); }
@media (max-width: 1199px) { .hpl-popular__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .hpl-popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hpl-popular__grid { grid-template-columns: 1fr; gap: 12px; }
  .hpl-popular__tab { padding: 9px 13px; font-size: 14px; }
  .hpl-product-card__body { padding: 12px 14px 14px; }
  .hpl-popular__links { justify-content: flex-start; }
}

/* HPL CTA: call / email */
.hpl-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 24px;
  align-items: center;
  margin: 36px 0 18px;
  padding: 26px 28px;
  border: 1px solid #e2ded6;
  border-radius: 20px;
  background: #f2f0eb;
}
.hpl-cta .section-eyebrow { margin-bottom: 8px; }
.section-detail__body .hpl-cta h2 {
  margin: 0 0 10px;
  color: #181a1c;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.hpl-cta__copy p:last-child {
  max-width: 720px;
  margin: 0;
  color: #625d56;
  font-size: 16px;
  line-height: 1.55;
}
.hpl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.hpl-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #181a1c;
  border-radius: 999px;
  background: #181a1c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hpl-cta__button:hover { background: #c51d34; border-color: #c51d34; color: #fff; }
.hpl-cta__button--secondary { background: #fff; border-color: #d8d2c8; color: #181a1c; }
.hpl-cta__button--secondary:hover { border-color: #c51d34; background: #fff; color: #c51d34; }
.hpl-cta__note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: #625d56;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
@media (max-width: 991px) {
  .hpl-cta { grid-template-columns: 1fr; }
  .hpl-cta__actions { justify-content: flex-start; }
  .hpl-cta__note { text-align: left; }
}
@media (max-width: 640px) {
  .hpl-cta { padding: 20px; border-radius: 16px; }
  .hpl-cta__button { padding: 11px 14px; }
}

/* HPL decor search */
.hpl-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #e2ded6;
  border-radius: 14px;
  background: #fff;
}
.hpl-search__label {
  flex: 1 1 100%;
  color: #625d56;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.hpl-search__row { display: flex; flex: 1 1 420px; gap: 8px; min-width: 0; }
.hpl-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8d2c8;
  border-radius: 10px;
  background: #fff;
  color: #181a1c;
  font: inherit;
  font-size: 15px;
}
.hpl-search__input:focus { outline: 2px solid #c51d34; outline-offset: 1px; border-color: #c51d34; }
.hpl-search__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #181a1c;
  border-radius: 10px;
  background: #181a1c;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.hpl-search__button:hover { background: #c51d34; border-color: #c51d34; }

/* HPL gallery lightbox */
.hpl-gallery-link { display: block; cursor: zoom-in; }
.hpl-gallery-dialog {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
}
.hpl-gallery-dialog::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(3px); }
.hpl-gallery-dialog__stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  max-height: 84vh;
  background: #111;
}
.hpl-gallery-dialog__stage img { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto; }
.hpl-gallery-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.hpl-gallery-dialog__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.hpl-gallery-dialog__nav--prev { left: 12px; }
.hpl-gallery-dialog__nav--next { right: 12px; }
.hpl-gallery-dialog__close:hover, .hpl-gallery-dialog__nav:hover { background: #c51d34; border-color: #c51d34; }
@media (max-width: 640px) {
  .hpl-search { padding: 12px; }
  .hpl-search__row { flex-basis: 100%; }
  .hpl-search__button { padding: 0 12px; }
  .hpl-gallery-dialog__nav { width: 36px; height: 48px; font-size: 24px; }
  .hpl-gallery-dialog__nav--prev { left: 6px; }
  .hpl-gallery-dialog__nav--next { right: 6px; }
}

/* Sale and new arrivals: full catalog layout */
.clearance-hero {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 22px;
  background: #e7e4de;
  aspect-ratio: 2.4 / 1;
}
.clearance-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clearance-toolbar {
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}
.clearance-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.clearance-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: #181a1c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.clearance-tab span {
  color: #8a847b;
  font-size: 11px;
  font-weight: 700;
}
.clearance-tab:hover { border-color: #181a1c; }
.clearance-tab.is-active {
  border-color: #181a1c;
  background: #181a1c;
  color: #fff;
}
.clearance-tab.is-active span { color: rgba(255,255,255,.65); }
.clearance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 46px;
}
.clearance-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.clearance-card--link:hover,
.clearance-card--link:focus-visible {
  transform: translateY(-3px);
  border-color: #d3cdc3;
  box-shadow: 0 16px 30px rgba(20, 18, 16, .07);
}
.clearance-card[hidden] { display: none; }
.clearance-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ece9e3;
}
.clearance-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clearance-card__texture {
  opacity: 0;
  transition: opacity .25s ease;
}
.clearance-card:hover .clearance-card__texture,
.clearance-card:focus-within .clearance-card__texture { opacity: 1; }
.clearance-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 15px;
}
.clearance-card__name {
  color: #181a1c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.section-page--rasprodazha-hpl .clearance-card__name { text-transform: uppercase; }
.clearance-card__spec {
  color: #6d6860;
  font-size: 12px;
  line-height: 1.4;
}
.clearance-card--stratificato .clearance-card__spec:last-child { margin-top: 2px; }
.clearance-section { margin: 0 0 48px; }
.clearance-section__intro {
  max-width: 940px;
  margin: 0 auto 28px;
  text-align: center;
}
.clearance-section__intro h2 {
  margin: 0 0 12px;
  color: #181a1c;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.clearance-section__intro p {
  margin: 0;
  color: #4c4944;
  font-size: 16px;
  line-height: 1.6;
}
.clearance-section .clearance-grid { margin-bottom: 0; }

@media (max-width: 991px) {
  .clearance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .clearance-hero { border-radius: 18px; }
}
@media (max-width: 640px) {
  .clearance-hero { margin-bottom: 22px; border-radius: 14px; aspect-ratio: 16 / 10; }
  .clearance-toolbar { justify-content: flex-start; margin-bottom: 20px; overflow-x: auto; padding-bottom: 2px; }
  .clearance-tabs { flex-wrap: nowrap; justify-content: flex-start; }
  .clearance-tab { min-height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .clearance-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
  .clearance-card { border-radius: 14px; }
  .clearance-card__name { font-size: 14px; }
  .clearance-section { margin-bottom: 38px; }
  .clearance-section__intro { text-align: left; margin-bottom: 20px; }
  .clearance-section__intro p { font-size: 15px; }
}

/* Sale/new cards must not inherit article link underlines. */
.article-detail__body a.clearance-card,
.article-detail__body a.clearance-card:hover,
.article-detail__body a.clearance-card * {
  text-decoration: none;
}
.clearance-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.clearance-pair figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e7e4de;
}
.clearance-pair img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .clearance-pair { gap: 10px; margin-bottom: 20px; }
  .clearance-pair figure { border-radius: 12px; }
}

/* Countertop page action rows */
.countertop-actions {
  justify-content: flex-start;
  margin: 16px 0 24px;
}

/* Fartuki image slider */
.fartuki-slider {
  position: relative;
  max-width: 1000px;
  margin: 4px 0 30px;
}
.fartuki-slider__viewport {
  position: relative;
  aspect-ratio: 860 / 550;
  overflow: hidden;
  border-radius: 18px;
  background: #ece9e3;
  touch-action: pan-y;
}
.fartuki-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.fartuki-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.fartuki-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fartuki-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  background: rgba(24,26,28,.62);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, opacity .2s ease;
}
.fartuki-slider__nav:hover { background: #c51d34; }
.fartuki-slider__nav:disabled { opacity: .35; cursor: default; }
.fartuki-slider__nav--prev { left: 14px; }
.fartuki-slider__nav--next { right: 14px; }
.fartuki-slider__counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24,26,28,.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .fartuki-slider { margin-bottom: 22px; }
  .fartuki-slider__viewport { border-radius: 12px; }
  .fartuki-slider__nav { width: 36px; height: 46px; font-size: 24px; }
  .fartuki-slider__nav--prev { left: 8px; }
  .fartuki-slider__nav--next { right: 8px; }
  .fartuki-slider__counter { right: 10px; bottom: 8px; padding: 4px 8px; font-size: 11px; }
}

/* Documentation cards on simple section pages */
.section-detail__body .docs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}
.section-detail__body .doc-item a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid #d6d0c8;
  border-radius: 18px;
  background: #f8f7f4;
  color: #171717;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.section-detail__body .doc-item a:hover { border-color: #c51d34; transform: translateY(-2px); }
.section-detail__body .doc-pdf { width: 52px; height: 52px; flex: 0 0 52px; }
.section-detail__body .doc-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.section-detail__body .dld {
  margin-top: 5px;
  color: #c51d34;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .section-detail__body .docs-list { grid-template-columns: 1fr; }
}

/* Advantage icons in migrated fact cards */
.migrated-facts li { position: relative; padding-left: 58px; }
.migrated-fact__icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .migrated-facts li { padding-left: 52px; }
  .migrated-fact__icon { width: 24px; height: 24px; left: 14px; top: 15px; }
}

/* Shared media lightbox */
.media-lightbox {
  width: min(1120px, 94vw);
  max-width: 94vw;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
}
.media-lightbox::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.media-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 92dvh;
  margin: 0;
  background: #111;
}
.media-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92dvh - 48px);
}
.media-lightbox__stage figcaption {
  width: 100%;
  padding: 10px 54px 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.media-lightbox__stage figcaption[hidden] { display: none; }
.media-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.media-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.media-lightbox__nav--prev { left: 12px; }
.media-lightbox__nav--next { right: 12px; }
.media-lightbox__close:hover,
.media-lightbox__nav:hover { background: #c51d34; border-color: #c51d34; }

@media (max-width: 900px) {
  .news-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .news-gallery { margin-top: 28px; }
  .news-gallery__item { border-radius: 10px; }
  .media-lightbox__nav { width: 36px; height: 50px; font-size: 26px; }
  .media-lightbox__nav--prev { left: 6px; }
  .media-lightbox__nav--next { right: 6px; }
  .media-lightbox__close { top: 6px; right: 6px; width: 36px; height: 36px; }
}

.js-lightbox { display:block; cursor:zoom-in; }

/* System pages: 404 / 403 / 503 and decor search */
.system-message {
  max-width: 760px;
  margin: 10px 0 30px;
  padding: 34px 30px;
  border: 1px solid #e2ded6;
  border-radius: 20px;
  background: #f8f7f4;
}
.system-message__code {
  margin: 0 0 8px;
  color: #c51d34;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .9;
}
.system-message p:not(.system-message__code) { margin: 0 0 10px; color: #3d3a35; font-size: 18px; line-height: 1.55; }
.system-message p:last-child { margin-bottom: 0; }
.system-search {
  max-width: 760px;
  margin: 8px 0 30px;
  padding: 20px;
  border: 1px solid #e2ded6;
  border-radius: 18px;
  background: #f8f7f4;
}
.system-search__label { display: block; margin-bottom: 10px; color: #625d56; font-size: 14px; font-weight: 600; }
.system-search__row { display: flex; gap: 10px; }
.system-search__input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #d8d2c8; border-radius: 10px; background: #fff; font: inherit; }
.system-search__button { height: 48px; padding: 0 20px; border: 1px solid #181a1c; border-radius: 10px; background: #181a1c; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.system-search__button:hover { background: #c51d34; border-color: #c51d34; }
@media (max-width: 640px) {
  .system-message { padding: 22px 18px; border-radius: 16px; }
  .system-message p:not(.system-message__code) { font-size: 16px; }
  .system-search { padding: 16px; }
  .system-search__row { flex-direction: column; }
  .system-search__button { width: 100%; }
}

/* Accessible heading for pages without a visible H1 */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
