/* These styles are loaded only by the existing inner pages.
   The homepage keeps its original stylesheet and layout. */
.inner-page nav a.active {
  color: var(--orange);
}

.inner-page .hero {
  isolation: isolate;
  padding: 150px 8vw 90px;
}

.inner-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0d0d0df0 9%, #0d0d0d91 52%, #0d0d0d48),
    var(--hero) center / cover;
  filter: grayscale(1) contrast(1.15);
}

.inner-page .hero > div {
  min-width: 0;
  width: 100%;
}

.inner-page .hero h1 {
  overflow-wrap: break-word;
}

.inner-page .hero p {
  margin-bottom: 0;
}

.inner-page .content {
  padding: 115px 8vw;
}

.inner-page .lead {
  max-width: 720px;
  margin: 0 0 45px;
  font-size: 15px;
}

.inner-page .section-number {
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.inner-page .catalog {
  padding: 0;
  border-top: 1px solid var(--line);
}

.inner-page .catalog a {
  display: grid;
  grid-template-columns: 9% minmax(0, 1fr) 28% 30px;
  align-items: center;
  gap: 15px;
  min-height: 118px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: .28s;
  scroll-margin-top: 30px;
}

.inner-page .catalog a:hover,
.inner-page .catalog a:focus-visible {
  background: #202020;
  padding-left: 19px;
}

.inner-page .catalog span,
.inner-page .catalog small {
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #aaa;
}

.inner-page .catalog h2 {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1;
  margin: 0;
  font-weight: 500;
}

.inner-page .catalog i {
  color: var(--orange);
  font-size: 27px;
  font-style: normal;
}

.inner-page .intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7vw;
  align-items: start;
  padding: 0 0 55px;
  background: transparent;
  color: var(--silver);
}

.inner-page .intro h2 {
  color: #fff;
}

.inner-page .intro p {
  max-width: 440px;
}

.inner-page .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #171717;
}

.inner-page .split-image {
  min-height: 620px;
  background: linear-gradient(#0d0d0d20, #0d0d0dbe), var(--image) center / cover;
  filter: grayscale(1);
}

.inner-page .split-copy {
  min-width: 0;
  align-self: center;
  padding: 100px 8vw;
}

.inner-page .split-copy h2,
.inner-page .form-layout h1,
.inner-page .form-layout h2 {
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.1;
  letter-spacing: .4px;
  color: #fff;
  margin: 35px 0 27px;
}

.inner-page .split-copy p {
  margin: 0 0 30px;
}

.inner-page .link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.inner-page .link i {
  color: var(--orange);
  font-size: 17px;
  font-style: normal;
}

.inner-page .benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6vw;
  margin-top: 40px;
  background: transparent;
}

.inner-page .benefits article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.inner-page .benefits b {
  color: var(--orange);
  font-size: 11px;
}

.inner-page .benefits h3 {
  font-size: 32px;
  line-height: 1;
  color: #fff;
  margin: 35px 0 14px;
}

.inner-page .benefits p {
  max-width: 300px;
  font-size: 12px;
}

.inner-page .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px 20px;
}

.inner-page .project::before {
  content: '';
  display: block;
  height: 390px;
  background: var(--photo) center / cover;
  filter: grayscale(1);
  transition: .4s;
}

.inner-page .project:hover::before {
  filter: grayscale(.1);
  transform: scale(.98);
}

.inner-page .project h2 {
  font-size: 26px;
  line-height: 1;
  color: #fff;
  margin: 18px 0 5px;
}

.inner-page .form-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10vw;
}

.inner-page .form-layout a {
  color: #fff;
  text-decoration: none;
}

.inner-page .form-layout h1,
.inner-page .form-layout h2 {
  font-size: clamp(42px, 4.5vw, 72px);
}

.inner-page .form-layout h1 em {
  font-style: normal;
  color: var(--orange);
}

.inner-page .form {
  align-content: start;
}

.inner-page .full {
  grid-column: 1 / -1;
}

/* ---------- галереи с lightbox (production, projects) ---------- */

.inner-page .gallery-lead {
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1.1;
  color: #fff;
  margin: 25px 0 55px;
}

.inner-page .gallery-group {
  margin-top: 55px;
}

.inner-page .gallery-group:first-of-type {
  margin-top: 30px;
}

.inner-page .gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
}

.inner-page .gallery-head h2,
.inner-page .gallery-head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.inner-page .gallery-head span {
  color: #aaa;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.inner-page .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.inner-page .gallery-item {
  display: block;
  overflow: hidden;
  background: #191919;
}

.inner-page .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}

.inner-page .gallery-tall .gallery-item img {
  aspect-ratio: 3 / 4;
}

.inner-page .gallery-item:hover img {
  transform: scale(1.04);
}

.inner-page .gallery-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.inner-page .contact-lines a {
  display: inline-block;
  padding: 2px 0;
}

.inner-page .contact-lines a:hover {
  color: var(--orange);
}

@media (max-width: 780px) {
  .inner-page .hero::before {
    background-image: linear-gradient(90deg, #0d0d0df0 9%, #0d0d0d91 52%, #0d0d0d48), var(--hero-s, var(--hero));
  }

  .inner-page .split-image {
    background-image: linear-gradient(#0d0d0d20, #0d0d0dbe), var(--image-s, var(--image));
  }

  .inner-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .inner-page .gallery-head {
    display: block;
  }

  .inner-page .gallery-head span {
    display: block;
    margin-top: 8px;
  }

  .inner-page .header {
    height: 65px;
    padding: 0 7vw;
  }

  .inner-page .header > .button {
    display: none;
  }

  .inner-page .header nav {
    display: none;
  }

  .inner-page .hero {
    padding: 155px 7vw 80px;
  }

  .inner-page .hero h1 {
    font-size: clamp(38px, 9.6vw, 74px);
  }

  .inner-page .content,
  .inner-page .split-copy {
    padding: 80px 7vw;
  }

  .inner-page .catalog a {
    grid-template-columns: 30px minmax(0, 1fr) 25px;
    min-height: 105px;
    gap: 10px;
  }

  .inner-page .catalog a:hover,
  .inner-page .catalog a:focus-visible {
    padding-left: 5px;
  }

  .inner-page .catalog small {
    display: none;
  }

  .inner-page .catalog h2 {
    font-size: 30px;
  }

  .inner-page .intro {
    padding: 0 0 25px;
  }

  .inner-page .intro p {
    margin-top: 30px;
  }

  .inner-page .split,
  .inner-page .form-layout {
    display: block;
  }

  .inner-page .split-image {
    min-height: 350px;
  }

  .inner-page .benefits,
  .inner-page .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .inner-page .project::before {
    height: 280px;
  }

  .inner-page .form {
    margin-top: 43px;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- проекты: свой тон у каждого раздела ---------- */
.inner-page .gallery-group.tone-metro,
.inner-page .gallery-group.tone-office {
  --tone: #2fc4bc;
  padding: 30px clamp(16px, 2.8vw, 40px) clamp(16px, 2.8vw, 40px);
  background: linear-gradient(160deg, #0f2a2a 0%, #0c1918 55%, #0d0d0d 100%);
  border-left: 3px solid var(--tone);
}
.inner-page .gallery-group.tone-office {
  --tone: #6f9fe8;
  background: linear-gradient(160deg, #12203a 0%, #0d1524 55%, #0d0d0d 100%);
}
.inner-page .tone-metro .gallery-head,
.inner-page .tone-office .gallery-head {
  border-top: 0;
  padding-top: 0;
}
.inner-page .tone-metro .gallery-head span,
.inner-page .tone-office .gallery-head span { color: var(--tone); }
.inner-page .tone-metro .gallery-item,
.inner-page .tone-office .gallery-item { background: #0000; }
.inner-page .tone-metro .gallery-item:focus-visible,
.inner-page .tone-office .gallery-item:focus-visible { outline-color: var(--tone); }
.inner-page .tone-metro .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inner-page .tone-metro .gallery-item img { aspect-ratio: 4 / 5; }
@media (max-width: 780px) {
  .inner-page .tone-metro .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-page .gallery-group.tone-metro,
  .inner-page .gallery-group.tone-office { padding: 22px 14px 14px; }
}

/* ---------- facades#subsystem, production#engineering ---------- */
.inner-page #subsystem,
.inner-page #engineering + .split {
  border-top: 1px solid var(--line);
}
.inner-page #subsystem,
.inner-page #engineering {
  scroll-margin-top: 80px;
}
.inner-page #subsystem .intro {
  padding: 35px 0 0;
}
.inner-page .benefits.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inner-page #engineering .lead {
  margin: 45px 0 0;
}
@media (max-width: 780px) {
  .inner-page .benefits.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- facades: цвета и покрытия ---------- */
.inner-page .colors {
  border-top: 1px solid var(--line);
}
.inner-page .colors .intro {
  padding-top: 35px;
}
.inner-page .swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
/* скос как у кнопок, рамка 1px через подложку */
.inner-page .swatches span {
  position: relative;
  height: 96px;
  background: #ffffff2e;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.inner-page .swatches span::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--c);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.inner-page .coatings {
  margin-top: 55px;
}

@media (max-width: 780px) {
  .inner-page .swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .inner-page .swatches span {
    height: 64px;
  }
  .inner-page .coatings {
    margin-top: 40px;
  }
}

/* ---------- projects: группы на 8 и на 3 фото без пустых ячеек ---------- */
.inner-page .gallery.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inner-page .gallery.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) {
  .inner-page .gallery.gallery-4,
  .inner-page .gallery.gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-page .gallery.gallery-3 .gallery-item:last-child { grid-column: 1 / -1; }
  .inner-page .gallery.gallery-3 .gallery-item:last-child img { aspect-ratio: 4 / 3; }
}

/* ---------- contacts: первый блок под шапкой, карта вместо формы ---------- */
.inner-page .page-top {
  padding-top: 150px;
}
.inner-page .map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
  align-self: stretch;
  border: 0;
  border-bottom: 1px solid #555;
  background: var(--panel);
}

/* ---------- raschet: форма в первом экране справа ---------- */
.inner-page .hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 5vw;
  align-items: center;
}
.inner-page .hero-form .form {
  padding: 32px;
  background: #0d0d0de8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 780px) {
  .inner-page .page-top {
    padding-top: 155px;
  }
  .inner-page .map {
    min-height: 320px;
    margin-top: 43px;
  }
  .inner-page .hero-form {
    display: block;
  }
  .inner-page .hero-form .form {
    padding: 24px 16px;
  }
}

/* ---------- projects: коллажи заказчика вместо сеток фото (12.10.2026) ---------- */
.inner-page .gallery.gallery-collage { display: block; }
.inner-page .gallery.gallery-collage .gallery-item img { aspect-ratio: auto; height: auto; object-fit: contain; }
.inner-page .gallery.gallery-collage-portrait { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- contacts: два номера вровень (12.10.2026) ---------- */
.inner-page .contact-lines.contact-phones { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 18px; row-gap: 2px; align-items: baseline; }
.inner-page .contact-phones span { color: #8a8a8a; font-size: .85em; text-transform: uppercase; letter-spacing: .5px; }
