/* Раздел «Технологии и решения» — расширение основной дизайн-системы. */

.solutions-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.solutions-hero .page-hero-figure {
  margin: 0;
  height: clamp(340px, 42vw, 520px);
}

.solutions-hero .page-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solutions-hero h1 {
  max-width: 880px;
}

.solutions-intro {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.solutions-intro .section-head {
  position: sticky;
  top: 100px;
  margin: 0;
}

.solutions-intro-copy {
  display: grid;
  gap: 16px;
}

.solutions-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 22, 28, .08);
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}

.solution-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 90, 31, .42);
  box-shadow: 0 22px 56px rgba(20, 22, 28, .13);
}

.solution-card.is-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 400px;
}

.solution-card-media {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: var(--bg-2);
}

.solution-card.is-wide .solution-card-media {
  height: 100%;
  min-height: 400px;
}

.solution-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 11, 14, .28));
}

.solution-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}

.solution-card[href="solutions/gde-primenyayutsya-formy-iz-termoplastika.html"] .solution-card-media img {
  object-position: 50% 32% !important;
}

.solution-card:hover .solution-card-media img {
  transform: scale(1.05);
}

.solution-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 38px);
}

.solution-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.solution-card h2,
.solution-card h3 {
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.08;
}

.solution-card p {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.solution-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--display);
  font-weight: 600;
}

.solution-card-link i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #1a0a02;
  font-style: normal;
  transition: transform .25s var(--ease);
}

.solution-card:hover .solution-card-link i {
  transform: translateX(5px);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.start-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #262a33 0%, #0b0c10 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(10, 11, 14, .23);
}

.start-card .num {
  color: var(--orange-2);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
}

.start-card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.start-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .62);
  font-size: 14.5px;
  line-height: 1.65;
}

.start-card a {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
}

/* Страница отдельного материала */
.material-page-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.material-page-hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: .99;
}

.material-page-hero .page-hero-figure {
  margin: 0;
  height: clamp(380px, 47vw, 580px);
}

.material-page-hero .page-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.material-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
}

.material-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(58px, 8vw, 96px);
}

.material-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 22, 28, .08);
}

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

.material-gallery figcaption {
  padding: 15px 18px 17px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.material-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 760px);
  gap: clamp(44px, 7vw, 90px);
  justify-content: center;
  align-items: start;
}

.material-toc {
  position: sticky;
  top: 94px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 10px 30px rgba(20, 22, 28, .06);
}

.material-toc-label {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.material-toc nav {
  display: grid;
  gap: 4px;
}

.material-toc nav a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
  transition: color .2s ease;
}

.material-toc nav a:last-child {
  border-bottom: 0;
}

.material-toc nav a:hover {
  color: var(--orange);
}

.material-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.material-content > p:first-child {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.58;
}

.material-content {
  min-width: 0;
}

.material-video {
  scroll-margin-top: 100px;
  margin: 38px 0 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0b0c10;
  box-shadow: 0 18px 44px rgba(20, 22, 28, .14);
}

.material-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0c10;
  object-fit: cover;
}

.material-video figcaption {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.material-process-figure {
  margin: 34px 0 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 22, 28, .10);
}

.material-process-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.material-process-figure figcaption {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.material-content h2 {
  scroll-margin-top: 100px;
  margin: clamp(56px, 8vw, 86px) 0 22px;
  font-size: clamp(30px, 4.2vw, 47px);
}

.material-content h3 {
  scroll-margin-top: 100px;
  margin: 42px 0 16px;
  font-size: clamp(22px, 3vw, 30px);
}

.material-content p,
.material-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.material-content p {
  margin: 0 0 20px;
}

.material-content ul,
.material-content ol {
  margin: 22px 0 28px;
  padding-left: 25px;
}

.material-content li {
  margin: 9px 0;
  padding-left: 5px;
}

.material-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 22, 28, .06);
}

.material-content table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.material-content th,
.material-content td {
  padding: 17px 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.material-content th {
  background: #23262e;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
}

.material-content td {
  color: var(--muted);
}

.material-content td:first-child {
  width: 26%;
  color: var(--text);
  font-weight: 600;
}

.material-content th:first-child {
  width: 26%;
}

.material-content th:last-child,
.material-content td:last-child {
  border-right: 0;
}

.material-content tbody tr:last-child td {
  border-bottom: 0;
}

.material-content strong {
  color: var(--text);
}

.material-content a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(255, 90, 31, .34);
  text-underline-offset: 3px;
}

.material-note {
  margin: 34px 0;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #262a33 0%, #0b0c10 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(10, 11, 14, .20);
}

.material-note strong {
  color: #fff;
}

.material-note p,
.material-note li {
  color: rgba(255, 255, 255, .68);
}

.material-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.material-fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.material-fact span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.material-fact strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.3;
}

.material-cta {
  position: relative;
  min-height: 400px;
  margin-top: clamp(72px, 9vw, 116px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  isolation: isolate;
}

.material-cta img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 11, 14, .94) 0%, rgba(10, 11, 14, .76) 54%, rgba(10, 11, 14, .28) 100%);
}

.material-cta-copy {
  max-width: 650px;
  padding: clamp(36px, 6vw, 68px);
  color: #fff;
}

.material-cta-copy .eyebrow {
  color: var(--orange-2);
}

.material-cta-copy h2 {
  color: #fff;
  font-size: clamp(31px, 4.6vw, 52px);
}

.material-cta-copy p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, .70);
  font-size: 16px;
  line-height: 1.65;
}

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

.related-solution {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform .3s var(--ease), border-color .3s ease;
}

.related-solution:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 31, .38);
}

.related-solution img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-solution div {
  padding: 24px;
}

.related-solution span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.related-solution h3 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.18;
}

@media (max-width: 980px) {
  .solutions-hero .hero-inner,
  .material-page-hero .hero-inner,
  .solutions-intro {
    grid-template-columns: 1fr;
  }

  .solutions-intro .section-head,
  .material-toc {
    position: static;
  }

  .solution-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .solution-card.is-wide {
    display: flex;
  }

  .solution-card.is-wide .solution-card-media {
    height: 270px;
    min-height: 0;
  }

  .material-layout {
    grid-template-columns: 1fr;
  }

  .material-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .related-solutions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .solutions-hero .page-hero-figure,
  .material-page-hero .page-hero-figure {
    height: 330px;
  }

  .solution-card {
    min-height: 0;
  }

  .solution-card-media,
  .solution-card.is-wide .solution-card-media {
    height: 230px;
  }

  .material-gallery {
    grid-template-columns: 1fr;
  }

  .material-gallery img {
    height: 230px;
  }

  .material-toc nav,
  .material-facts {
    grid-template-columns: 1fr;
  }

  .material-content p,
  .material-content li {
    font-size: 16px;
  }

  .material-note {
    padding: 23px;
  }

  .material-cta {
    min-height: 440px;
  }

  .material-cta::after {
    background: linear-gradient(180deg, rgba(10, 11, 14, .82), rgba(10, 11, 14, .96));
  }

  .related-solution {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}
