/* ==========================================================================
   pages.css — стили конкретных страниц и уникальных блоков
   ========================================================================== */

/* Общий отступ для якорей, чтобы заголовок не прятался под липкой шапкой */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --------------------------------------------------------------------------
   Главная: первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 52px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(900px 460px at 88% -10%, #edf7ee 0%, rgba(237, 247, 238, 0) 65%),
    var(--c-white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.2vw, 48px);
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 660px;
}

.hero__text {
  max-width: 560px;
  margin-top: 22px;
  color: var(--c-muted);
  font-size: clamp(0.9375rem, 0.9rem + 0.22vw, 1.0625rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--c-muted);
  font-size: 0.75rem;
}

.hero__note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(72, 168, 80, 0.14);
}

/* Иллюстрация шахты лифта */
.hero__media {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
}

/* Фотография в первом экране */
.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--c-navy-900);
  box-shadow: 0 32px 80px -20px rgba(20, 32, 46, 0.45), 0 14px 34px rgba(20, 32, 46, 0.2);
  cursor: zoom-in;
  transition: box-shadow var(--transition);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(20, 28, 40, 0) 0%, rgba(20, 28, 40, 0.32) 100%);
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1067;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-photo:hover {
  box-shadow: 0 40px 96px -18px rgba(20, 32, 46, 0.55), 0 18px 40px rgba(20, 32, 46, 0.24);
}

.hero-photo:hover img {
  transform: scale(1.035);
}

.hero-photo:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 4px;
}

.hero-photo__zoom {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--c-navy);
  box-shadow: 0 8px 20px rgba(17, 25, 36, 0.28);
  transition: transform var(--transition), background-color var(--transition);
}

.hero-photo__zoom svg {
  width: 19px;
  height: 19px;
}

.hero-photo:hover .hero-photo__zoom {
  transform: scale(1.08);
  background-color: var(--c-white);
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background-color: var(--c-white);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--c-navy);
}

.hero-float strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
}

.hero-float--top {
  top: 26px;
  left: -26px;
}

.hero-float__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-green);
  box-shadow: 0 0 0 5px rgba(72, 168, 80, 0.16);
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-float--top {
    left: 10px;
  }
}

@media (max-width: 560px) {
  .hero__media {
    max-width: 100%;
  }

  .hero-float {
    position: static;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
  }
}

/* --------------------------------------------------------------------------
   Универсальный двухколоночный блок
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.split--text-wide {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split__content > p + p {
  margin-top: 14px;
}

.split__content > h2 + p {
  margin-top: 16px;
}

.split__content > p {
  color: var(--c-muted);
}

.split__content > .check-list {
  margin-top: 22px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--c-surface);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame--doc img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.media-frame__caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background-color: rgba(27, 39, 57, 0.82);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  line-height: 1.45;
  backdrop-filter: blur(6px);
}

.media-frame__caption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--c-white);
  font-size: 0.875rem;
  font-weight: 400;
}

@media (max-width: 900px) {
  .split,
  .split--text-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Услуги: подробные блоки
   -------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 3.5vw, 56px);
  padding-block: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--c-border);
}

.service-detail:first-of-type {
  padding-top: 0;
}

.service-detail:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-detail__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.service-detail__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--c-green-soft);
  color: var(--c-green-dark);
  font-size: 0.8125rem;
}

.service-detail h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
}

.service-detail__lead {
  margin-top: 14px;
  color: var(--c-muted);
}

.service-detail .check-list {
  margin-top: 18px;
}

.service-detail__aside {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background-color: var(--c-surface);
}

.service-detail__aside h3 {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.service-detail__aside .check-list {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Лифты: чередующиеся блоки
   -------------------------------------------------------------------------- */
.lift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--c-border);
}

.lift-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.lift-row__content > p {
  margin-top: 12px;
  color: var(--c-muted);
}

.lift-row__media {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background-color: var(--c-surface);
}

.lift-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lift-row--reverse .lift-row__media {
  order: 2;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin-top: 18px;
}

.spec-list li {
  position: relative;
  padding-left: 16px;
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.spec-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .lift-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .lift-row--reverse .lift-row__media {
    order: 0;
  }

  .spec-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Проекты
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.projects-empty {
  display: none;
  padding: 40px 24px;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-muted);
  text-align: center;
}

.projects-empty.is-visible {
  display: block;
}

.houses-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.houses-head .section__head {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-list {
  margin-top: 10px;
  border-top: 1px solid var(--c-border);
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}

.contact-row .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.contact-row .icon-box svg {
  width: 19px;
  height: 19px;
}

.contact-row__label {
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: 0.75rem;
}

.contact-row__value {
  color: var(--c-navy);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.contact-row__value a:hover {
  color: var(--c-green-dark);
}

.contact-row__note {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 0.75rem;
}

.contact-form-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background-color: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem);
}

.contact-form-card > p {
  margin: 10px 0 22px;
  color: var(--c-muted);
  font-size: 0.875rem;
}

.map-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background-color: var(--c-surface);
  background-image:
    linear-gradient(rgba(40, 56, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 56, 80, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-placeholder iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
}

.map-placeholder__inner {
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.map-placeholder__inner .icon-box {
  margin: 0 auto 14px;
}

.map-placeholder__inner h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.map-placeholder__inner p {
  color: var(--c-muted);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   О компании
   -------------------------------------------------------------------------- */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.fact {
  padding: 18px 20px;
  border-left: 2px solid var(--c-green);
  border-radius: 0 12px 12px 0;
  background-color: var(--c-surface);
}

.fact strong {
  display: block;
  color: var(--c-navy);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--c-border);
}

.timeline li {
  position: relative;
  padding-bottom: 24px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: -29px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--c-green);
  box-shadow: 0 0 0 3px var(--c-white);
}

.timeline__year {
  color: var(--c-green-dark);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.timeline h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.timeline p {
  color: var(--c-muted);
  font-size: 0.8125rem;
}

.doc-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.doc-section + .doc-section {
  margin-top: clamp(40px, 5vw, 64px);
}

.doc-section__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-bottom: 0;
}

.doc-section__head .badge {
  margin-top: 16px;
}

.doc-section__head h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.625rem);
}

.doc-section__head p {
  max-width: 560px;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 0.8125rem;
}

@media (max-width: 1024px) {
  .doc-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-section__head {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
  }

  .doc-section__head .badge {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .about-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Вспомогательные блоки страниц
   -------------------------------------------------------------------------- */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.head-row .section__head {
  margin-bottom: 0;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.anchor-nav a {
  padding: 9px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  color: var(--c-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.anchor-nav a:hover {
  border-color: var(--c-green);
  color: var(--c-green-dark);
}

/* --------------------------------------------------------------------------
   Текстовые страницы (политика конфиденциальности и т.п.)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 1.375rem;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.0625rem;
}

.prose p,
.prose li {
  color: var(--c-muted);
  font-size: 0.875rem;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 7px;
}

.prose a {
  color: var(--c-green-dark);
  text-decoration: underline;
}



