/* Многостраничная навигация, каталог работ и текстовые страницы */

.layout-header {
  height: auto;
  min-height: 0;
  padding: 14px 0 12px;
}

.layout-header.active {
  height: auto;
  padding: 8px 0;
  background: rgba(17, 17, 17, 0.92);
}

.layout-header.active .logo {
  opacity: 1;
  z-index: 2;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-bar .logo {
  flex: 0 0 auto;
  display: block;
}

.header-bar .logo img {
  display: block;
  width: auto;
  max-height: 62px;
}

.layout-header.active .logo img {
  max-height: 46px;
}

.site-nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav > li {
  position: relative;
  list-style: none;
  margin: 0;
}

.site-nav a {
  font: 400 15px/1.2 "myriad pro", sans-serif;
  color: #fff;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ceb572;
  border-bottom-color: #ceb572;
}

.site-nav .has-sub {
  /* убираем зазор: отступ делаем padding-ом у ссылки, а не margin у subnav */
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.site-nav .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 280px;
  margin: 0;            /* было 10px — из-за этого курсор «проваливался» */
  padding: 10px 0;
  list-style: none;
  background: rgba(17, 17, 17, 0.96);
  border-top: 2px solid #ceb572;
}

/* прозрачный «мост» на всю ширину подменю, перекрывающий возможный зазор */
.site-nav .subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.site-nav .has-sub:hover .subnav,
.site-nav .has-sub:focus-within .subnav {
  display: block;
}

.site-nav .subnav a {
  display: block;
  padding: 8px 16px;
  border-bottom: 0;
  color: #fff;
}

.site-nav .subnav a:hover {
  color: #ceb572;
  background: rgba(255, 255, 255, 0.04);
}

.header-contacts {
  flex: 0 0 auto;
  text-align: right;
}

.header-contacts .phone-link {
  display: block;
  margin: 0 0 4px;
  top: 0;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  padding: 148px 0 56px;
  color: #fff;
  background: #1c1c1c url("../images/heading-slides/2.jpg") no-repeat 50% 50%;
  background-size: cover;
  overflow: hidden;
}

.page-hero--about { background-image: url("../images/heading-slides/1.jpg"); }
.page-hero--works { background-image: url("../images/heading-slides/3.jpg"); }
.page-hero--objects { background-image: url("../images/heading-slides/4.jpg"); }
.page-hero--news { background-image: url("../images/heading-slides/5.jpg"); }
.page-hero--docs { background-image: url("../images/heading-slides/2.jpg"); }
.page-hero--contacts { background-image: url("../images/heading-slides/1.jpg"); }

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .crumbs {
  justify-content: center;
}

.page-hero h1 {
  max-width: 1080px;
  margin: 16px auto 0;
  font: 700 46px/1.15 "myriad pro", sans-serif;
  text-align: center;
  text-wrap: balance;
}

.page-lead {
  max-width: 720px;
  margin: 16px auto 0;
  font: 400 18px/1.5 "exo", sans-serif;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-wrap: balance;
}

.section-heading {
  padding: 148px 0 64px;
  background: #1a1a1a url("../images/heading-slides/1.jpg") no-repeat center center;
  background-size: cover;
}

.section-heading .wrapper-heading-slider,
.section-heading .heading-slider,
.section-heading .swiper-wrapper,
.section-heading .swiper-slide,
.section-heading .heading-slide {
  height: 100%;
}

.section-heading .heading-slide {
  background-size: cover;
}

html {
  scroll-behavior: smooth;
}

.wrapper-footer {
  background-attachment: scroll;
}

.section-heading .container {
  text-align: center;
}

.section-heading h1 {
  max-width: 980px;
  margin: 12px auto 18px;
  font: 700 50px/1.15 "myriad pro", sans-serif;
  letter-spacing: 0;
  text-align: center;
}

.section-heading .subtitle-h1 {
  max-width: 820px;
  margin: 0 auto 26px;
  font: 400 20px/1.45 "exo", sans-serif;
  text-align: center;
}

.section-heading .home-actions {
  margin-top: 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-points .item-heading,
.hero-points .item-heading.i-3 {
  margin: 0;
  padding: 0;
  font: 400 18px/1.35 "myriad pro", sans-serif;
  text-align: center;
}

.section-do h2,
.section-do h2 .big,
.section-certificate h2,
.section-certificate h2 .big {
  margin-bottom: 10px;
  font: 500 36px/1.2 "exo", sans-serif;
}

.section-do h2:first-of-type,
.section-do h2:first-of-type .big {
  margin-bottom: 6px;
  font: 600 15px/1.2 "exo", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7344;
}

.section-do .subtitle-h2 {
  max-width: 920px;
  margin-bottom: 32px;
  font: 400 18px/1.55 "exo", sans-serif;
}

.section-do .block-do h3 {
  min-height: 58px;
  margin: 0 0 14px;
  padding: 0;
  font: 600 22px/1.3 "exo", sans-serif;
  color: #2c2c2c;
}

.section-do .block-do ul li,
.section-do .block-do.b-2 li,
.section-do .block-do.b-3 li {
  font: 400 16px/1.45 "myriad pro", sans-serif;
  margin-bottom: 10px;
}

.catalog-head h2,
.prose h2,
.section-page > .container > h2 {
  font: 500 34px/1.25 "exo", sans-serif;
}

.work-card h3,
.work-card .card-title {
  min-height: 2.6em;
}

.stat {
  min-height: 148px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font: 400 14px/1.4 "exo", sans-serif;
  color: rgba(255, 255, 255, 0.8);
}

.crumbs a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.crumbs a:hover {
  color: #ceb572;
  border-bottom-color: #ceb572;
}

.section-page {
  padding: 64px 0 72px;
  background: #fff;
}

.section-page.alt {
  background: #f6f4f0;
}

.prose {
  font: 400 18px/1.7 "exo", sans-serif;
  color: #3d3d3d;
}

.prose h2 {
  margin: 34px 0 12px;
  font: 500 32px/1.25 "exo", sans-serif;
  color: #2c2c2c;
}

.prose h3 {
  margin: 24px 0 8px;
  font: 600 22px/1.3 "exo", sans-serif;
  color: #2c2c2c;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul.marked {
  margin: 0 0 18px;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.side-card {
  background: #fff;
  border: 1px solid #e6e1d6;
  padding: 22px 20px 20px;
  margin-bottom: 18px;
}

.section-page.alt .side-card {
  background: #fff;
}

.side-card h2 {
  margin: 0 0 12px;
  font: 600 20px/1.3 "exo", sans-serif;
  color: #2c2c2c;
}

.side-card p,
.side-card li {
  font: 400 15px/1.5 "exo", sans-serif;
  color: #4a4a4a;
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li {
  margin: 0 0 8px;
}

.side-card a {
  color: #2c2c2c;
  border-bottom: 1px solid #ceb572;
}

.side-card a:hover {
  color: #e03f0a;
}

.btn-line {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  background: #726136;
  color: #fff !important;
  border: 0;
  border-radius: 4px;
  text-decoration: none !important;
}

.btn-line:hover {
  background: #ceb572;
  color: #fff !important;
}

.catalog-head {
  margin-bottom: 28px;
}

.catalog-head h2 {
  margin: 0 0 8px;
}

.catalog-head p {
  margin: 0;
  max-width: 760px;
  font: 400 18px/1.6 "exo", sans-serif;
  color: #555;
}

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

.catalog-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #2c2c2c;
  text-decoration: none !important;
  border: 1px solid #e7e2d8;
  min-height: 100%;
  overflow: hidden;
}

.work-card:hover {
  color: #2c2c2c;
  border-color: #ceb572;
}

.work-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
}

.work-card h3,
.work-card .card-title {
  margin: 0 0 8px;
  font: 600 20px/1.3 "exo", sans-serif;
  color: #2c2c2c;
}

.work-card p {
  margin: 0 0 14px;
  font: 400 15px/1.5 "exo", sans-serif;
  color: #555;
}

.work-more {
  margin-top: auto;
  font: 600 14px/1 "exo", sans-serif;
  color: #726136;
  letter-spacing: 0.02em;
}

.work-card:hover .work-more {
  color: #e03f0a;
}

.meta-line {
  margin: 0 0 8px;
  font: 600 13px/1.3 "exo", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7344;
}

.figure-block {
  margin: 0 0 22px;
}

.figure-block img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.figure-block figcaption {
  margin-top: 8px;
  font: 400 14px/1.4 "exo", sans-serif;
  color: #666;
}

.faq details {
  border-top: 1px solid #e4dfd4;
  padding: 12px 0;
}

.faq details:last-child {
  border-bottom: 1px solid #e4dfd4;
}

.faq summary {
  cursor: pointer;
  font: 600 18px/1.4 "exo", sans-serif;
  color: #2c2c2c;
}

.faq details p {
  margin: 10px 0 4px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.doc-grid a {
  display: block;
  background: #fff;
  border: 1px solid #e7e2d8;
  padding: 8px;
}

.doc-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 16px;
  font: 400 18px/1.5 "exo", sans-serif;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7344;
}

.map-frame {
  min-height: 400px;
  background: #eee;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.home-actions .btn,
.home-actions .btn-ghost {
  display: inline-block;
  min-width: 180px;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none !important;
  text-align: center;
}

.btn-ghost {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.btn-ghost:hover {
  color: #2c2c2c !important;
  background: #ceb572;
  border-color: #ceb572;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font: 400 15px/1.3 "exo", sans-serif;
}

.footer-nav a:hover {
  color: #ceb572;
}

.legal-note {
  margin-top: 18px;
  font: 400 13px/1.45 "exo", sans-serif;
  color: rgba(255, 255, 255, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.stat {
  padding: 18px 16px;
  background: #f6f4f0;
  border-top: 3px solid #ceb572;
}

.stat b {
  display: block;
  margin-bottom: 4px;
  font: 600 28px/1 "myriad pro", sans-serif;
  color: #2c2c2c;
}

.stat span {
  font: 400 15px/1.4 "exo", sans-serif;
  color: #555;
}

.related {
  margin-top: 28px;
}

@media all and (max-width: 1100px) {
  .catalog-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media all and (max-width: 640px) {
  .header-bar {
    align-items: flex-start;
  }

  .page-hero {
    padding: 132px 0 40px;
  }

  .page-hero h1,
  .section-heading h1 {
    font-size: 34px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .layout-split,
  .catalog-grid,
  .catalog-grid.cols-2,
  .doc-grid,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .header-contacts .phone-link {
    font-size: 18px;
  }
}

/* Мобильная шапка с бургером + контакты */
@media all and (max-width: 640px) {

  .layout-header {
    padding: 10px 0;
  }

.layout-header .container {
  left: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.header-bar {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.header-bar .logo img {
  max-height: 44px;
}

.header-contacts {
  position: fixed;
  top: 18px;
  right: 94px;
  z-index: 220;
  width: auto;
  margin: 0;
  text-align: right;
}

.layout-header.active .header-contacts {
  top: 12px;
}

.header-contacts .phone-link {
  display: inline-block;
  margin: 0;
  top: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

  /* Хиро внутренних страниц */
  .page-hero {
    padding: 108px 0 32px;
  }

  .page-hero h1 {
    font-size: 28px;
    margin-top: 10px;
  }

  .page-lead {
    font-size: 16px;
    margin-top: 12px;
  }

  .crumbs {
    font-size: 13px;
    gap: 6px;
  }

  /* Контент с боковой колонкой */
  .layout-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .side-card {
    padding: 18px 16px;
  }

  .side-card h2 {
    font-size: 18px;
  }

  /* Текстовые страницы */
  .prose {
    font-size: 16px;
    line-height: 1.6;
  }

  .prose h2 {
    font-size: 24px;
    margin: 26px 0 10px;
  }

  .prose h3 {
    font-size: 19px;
    margin: 20px 0 8px;
  }

  /* Контакты */
  .contact-list li {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .map-frame iframe {
    height: 300px;
  }

  /* Документы и отзывы */
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .doc-grid img {
    height: 160px;
  }

  /* Статистика */
  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat {
    padding: 14px 14px;
  }

  .stat b {
    font-size: 24px;
  }

  /* Картинки в тексте */
  .figure-block img {
    max-height: 280px;
  }

  /* FAQ */
  .faq summary {
    font-size: 16px;
  }

  /* Кнопки */
  .btn-line {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 15px;
  }
}

.phone-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #726136;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.phone-fab:hover,
.phone-fab:focus {
  background: #ceb572;
  color: #fff;
}

.phone-fab svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  fill: currentColor;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 32px 24px 22px;
  z-index: 1;
  text-align: left;
}

.contact-modal-card h2 {
  margin: 0 0 18px;
  font: 600 26px/1.2 "exo", sans-serif;
  color: #2c2c2c;
  text-align: center;
}

.contact-modal-action {
  display: block;
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #f6f4f0;
  color: #2c2c2c !important;
  border: 0;
  text-decoration: none !important;
  font: 600 18px/1.3 "exo", sans-serif;
}

.contact-modal-action span {
  display: block;
  margin-top: 3px;
  font: 400 15px/1.3 "exo", sans-serif;
  color: #666;
}

.contact-modal-action:hover,
.contact-modal-action:focus {
  background: #726136;
  color: #fff !important;
}

.contact-modal-action:hover span,
.contact-modal-action:focus span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #2c2c2c;
  font: 400 30px/1 "exo", sans-serif;
  cursor: pointer;
}
