/*
 * Страница «Отделочные материалы» (SPC напольные покрытия) — /finishing-materials/
 * Исходник: data/material/index.html
 * Все стили скоупированы под .finishing-page; шапку и подвал даёт base.html.
 */

.finishing-page {
  --blue: #063e80;
  --blue-dark: #002f67;
  --blue-bright: #0d64d8;
  --ink: #101820;
  --muted: #4e5a68;
  --line: #d8e2ed;
  --pale: #f2f7fc;
  --white: #fff;
  --shadow: 0 6px 18px rgba(7, 41, 77, .12);
  --radius: 10px;
  background: #e9edf2;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.35;
}

.finishing-page *,
.finishing-page *::before,
.finishing-page *::after { box-sizing: border-box; }

.finishing-page img { display: block; max-width: 100%; }
.finishing-page button,
.finishing-page a { font: inherit; }
.finishing-page a { text-decoration: none; }

.finishing-page .page {
  width: min(100%, 1055px);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11, 43, 76, .08);
}

/* ---- Hero ---------------------------------------------------------------- */
.finishing-page .hero {
  position: relative;
  height: 430px;
  isolation: isolate;
  background: #fff;
}
.finishing-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 25% 18%, rgba(20, 79, 138, .045), transparent 32%),
    linear-gradient(135deg, #fff 0 50%, #f8fafc 100%);
}
.finishing-page .hero-room {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58.2%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: -2;
}
.finishing-page .hero-copy {
  position: relative;
  width: 46%;
  padding: 36px 0 0 40px;
  z-index: 2;
}
.finishing-page .hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(36px, 4.5vw, 48px);
  line-height: .98;
  letter-spacing: -1.8px;
  font-weight: var(--fw-display);
}
.finishing-page .hero p {
  margin: 19px 0 0;
  width: 83%;
  font-size: var(--text-body);
  line-height: 1.55;
  color: #2d3640;
}
.finishing-page .hero-materials {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 57.5%;
  height: auto;
  z-index: 1;
}

/* ---- Полоса «О компании» -------------------------------------------------- */
.finishing-page .company-strip {
  min-height: 148px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 132px 132px 132px;
  align-items: center;
  padding: 22px 30px 20px 36px;
  background: linear-gradient(100deg, #fff 0%, #f4f8fc 54%, #fff 100%);
  border-top: 1px solid #cdd8e4;
  border-bottom: 1px solid #dce4ed;
}
.finishing-page .company-big-icon {
  display: grid;
  place-items: center;
}
.finishing-page .company-big-icon svg { width: 86px; height: 86px; color: var(--blue); }
.finishing-page .company-text {
  padding: 0 26px 0 8px;
  font-size: var(--text-body);
  line-height: 1.4;
}
.finishing-page .company-text strong { color: var(--blue); font-size: var(--text-lg); }
.finishing-page .company-stat {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #172236;
  border-left: 1px solid #c9d5e2;
  font-size: var(--text-small);
}
.finishing-page .company-stat svg { width: 48px; height: 48px; color: var(--blue); }

/* ---- Лента преимуществ ----------------------------------------------------- */
.finishing-page .features-band {
  margin: 13px 17px 12px;
  min-height: 119px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  padding: 16px 12px;
  background: linear-gradient(90deg, #03376f, #00519b 48%, #03376f);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.finishing-page .feature-item {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  text-align: center;
  font-size: var(--text-small);
  font-weight: 700;
  border-left: 1px solid rgba(255, 255, 255, .34);
}
.finishing-page .feature-item:first-child { border-left: 0; }
.finishing-page .feature-item svg { width: 42px; height: 42px; stroke-width: 1.7; }

/* ---- Карточка «SPC напольное покрытие» ------------------------------------- */
.finishing-page .details-card {
  margin: 0 17px 12px;
  padding: 10px 14px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 51, 86, .14);
}
.finishing-page .details-card h2 {
  margin: 0;
  color: var(--blue);
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}
.finishing-page .details-intro {
  max-width: 660px;
  margin: 5px auto 13px;
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.42;
}
.finishing-page .details-grid {
  display: grid;
  grid-template-columns: 1fr 95px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 760px;
  margin: 0 auto 11px;
}
.finishing-page .details-col h3 {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: clamp(16px, 1.5vw, 18px);
}
.finishing-page .details-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--text-small);
  line-height: 1.55;
}
.finishing-page .details-col li::marker { color: var(--blue); }
.finishing-page .details-icon {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #cfd9e4;
  border-right: 1px solid #cfd9e4;
}
.finishing-page .details-icon span {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0c59a5, #003979);
  color: #fff;
}
.finishing-page .details-icon svg { width: 30px; height: 30px; }
.finishing-page .notice {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 16px;
  color: #173f72;
  background: linear-gradient(90deg, #eef5fc, #f7faff, #eef5fc);
  border-radius: 6px;
  font-size: var(--text-small);
  text-align: center;
}
.finishing-page .notice svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--blue); }

/* ---- Сетка товаров ---------------------------------------------------------- */
.finishing-page .products {
  padding: 0 17px 11px;
}
.finishing-page .products-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.finishing-page .product-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  box-shadow: 0 3px 9px rgba(13, 45, 80, .12);
}
.finishing-page .product-card img {
  width: 100%;
  aspect-ratio: 1.18/1;
  object-fit: cover;
}
.finishing-page .product-body {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  padding: 9px 9px 10px;
}
.finishing-page .product-card h3 {
  margin: 0 0 7px;
  min-height: 32px;
  color: #0a326d;
  font-size: var(--text-caption);
  line-height: 1.15;
}
.finishing-page .product-card p {
  margin: 0 0 7px;
  font-size: var(--text-caption);
  line-height: 1.35;
}
.finishing-page .product-card .more {
  margin-top: auto;
  width: 100%;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #0c4a8d, #0060b2);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  cursor: pointer;
}

/* ---- Консультация ------------------------------------------------------------ */
.finishing-page .consultation {
  position: relative;
  min-height: 196px;
  margin: 0 17px 12px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #00336b 0%, #043e78 47%, #0d4a82 58%, #e7e1d7 100%);
}
.finishing-page .consultation-bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
}
.finishing-page .consultation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 44, 94, .98) 0%, rgba(1, 56, 112, .94) 42%, rgba(4, 63, 119, .45) 57%, rgba(4, 63, 119, 0) 74%);
}
.finishing-page .consultation-content {
  position: relative;
  z-index: 2;
  width: 61%;
  min-height: 196px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 18px 22px;
  color: #fff;
}
.finishing-page .chat-icon {
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #0b69c8, #003774 73%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.finishing-page .chat-icon svg { width: 58px; height: 58px; }
.finishing-page .consultation h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1;
  color: #fff;
}
.finishing-page .consultation p {
  margin: 0 0 12px;
  max-width: 430px;
  font-size: var(--text-md);
  line-height: 1.32;
}
.finishing-page .cta-button {
  width: 240px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(90deg, #0870e8, #0d64d8);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 34, 84, .22);
}
.finishing-page .cta-button svg { width: 18px; height: 18px; }

/* ---- Адаптив ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .finishing-page .page { width: 100%; box-shadow: none; }
  .finishing-page .hero { height: clamp(360px, 54vw, 430px); }
  .finishing-page .hero-copy { padding-left: 30px; }
  .finishing-page .company-strip { grid-template-columns: 95px minmax(0, 1fr) repeat(3, 105px); padding-inline: 20px; }
  .finishing-page .company-text { padding-right: 16px; }
  .finishing-page .products-grid { grid-template-columns: repeat(4, 1fr); }
  .finishing-page .product-card:nth-child(n+5) { margin-top: 0; }
}

@media (max-width: 767px) {
  .finishing-page { background: #fff; }
  .finishing-page .hero {
    height: auto;
    min-height: 690px;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .finishing-page .hero-room {
    position: relative;
    order: 2;
    width: 100%;
    height: 330px;
    object-position: center;
  }
  .finishing-page .hero-copy {
    width: 100%;
    padding: 28px 24px 10px;
  }
  .finishing-page .hero h1 { font-size: clamp(36px, 4.5vw, 48px); line-height: 1.02; }
  .finishing-page .hero p { width: 100%; font-size: var(--text-body); }
  .finishing-page .hero-materials { width: 78%; bottom: 0; }
  .finishing-page .company-strip {
    grid-template-columns: 76px 1fr;
    padding: 22px 18px;
  }
  .finishing-page .company-big-icon svg { width: 62px; height: 62px; }
  .finishing-page .company-stat {
    margin-top: 16px;
    min-height: 92px;
    border-left: 0;
    border-top: 1px solid #c9d5e2;
  }
  .finishing-page .company-stat:nth-of-type(1) { grid-column: 1/2; }
  .finishing-page .company-stat:nth-of-type(2) { grid-column: 2/3; border-left: 1px solid #c9d5e2; }
  .finishing-page .company-stat:nth-of-type(3) { grid-column: 1/3; }
  .finishing-page .features-band { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 12px 8px; }
  .finishing-page .feature-item { border-left: 1px solid rgba(255, 255, 255, .3); border-top: 1px solid rgba(255, 255, 255, .2); padding: 12px 6px; }
  .finishing-page .feature-item:nth-child(-n+3) { border-top: 0; }
  .finishing-page .feature-item:nth-child(1),
  .finishing-page .feature-item:nth-child(4) { border-left: 0; }
  .finishing-page .details-card h2 { font-size: clamp(22px, 3vw, 28px); }
  .finishing-page .details-grid { grid-template-columns: 1fr; gap: 10px; }
  .finishing-page .details-icon { min-height: 74px; border-left: 0; border-right: 0; border-top: 1px solid #d3dde8; border-bottom: 1px solid #d3dde8; }
  .finishing-page .products-grid { grid-template-columns: repeat(2, 1fr); }
  .finishing-page .consultation-content { width: 100%; grid-template-columns: 78px 1fr; padding: 20px; }
  .finishing-page .chat-icon { width: 70px; height: 70px; }
  .finishing-page .chat-icon svg { width: 44px; height: 44px; }
  .finishing-page .consultation h2 { font-size: clamp(22px, 3vw, 28px); }
  .finishing-page .consultation p { font-size: var(--text-body); }
  .finishing-page .consultation-bg { width: 100%; opacity: .32; }
  .finishing-page .consultation::after { background: rgba(0, 47, 99, .88); }
}

@media (max-width: 479px) {
  .finishing-page .hero { min-height: 610px; }
  .finishing-page .hero-room { height: 280px; }
  .finishing-page .hero-copy { padding: 24px 18px 8px; }
  .finishing-page .hero h1 { font-size: clamp(36px, 4.5vw, 48px); }
  .finishing-page .hero-materials { width: 94%; }
  .finishing-page .company-strip { grid-template-columns: 1fr; text-align: center; }
  .finishing-page .company-text { padding: 10px 0 0; }
  .finishing-page .company-stat,
  .finishing-page .company-stat:nth-of-type(2),
  .finishing-page .company-stat:nth-of-type(3) { grid-column: 1; border-left: 0; }
  .finishing-page .features-band { grid-template-columns: repeat(2, 1fr); margin-inline: 10px; }
  .finishing-page .feature-item:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, .2); }
  .finishing-page .feature-item:nth-child(odd) { border-left: 0; }
  .finishing-page .feature-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .3); }
  .finishing-page .details-card { margin-inline: 10px; padding-inline: 12px; }
  .finishing-page .details-card h2 { font-size: clamp(22px, 3vw, 28px); }
  .finishing-page .details-intro { font-size: var(--text-small); }
  .finishing-page .notice { font-size: var(--text-caption); gap: 10px; }
  .finishing-page .products { padding-inline: 10px; }
  .finishing-page .products-grid { grid-template-columns: 1fr; }
  .finishing-page .product-card img { aspect-ratio: 1.6/1; }
  .finishing-page .product-card h3 { min-height: auto; font-size: var(--text-body); }
  .finishing-page .product-card p { font-size: var(--text-caption); }
  .finishing-page .consultation { margin-inline: 10px; }
  .finishing-page .consultation-content { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 16px; }
  .finishing-page .consultation h2 { font-size: clamp(22px, 3vw, 28px); }
  .finishing-page .cta-button { width: min(100%, 240px); }
}
