@charset "UTF-8";

/* Общая шапка всех рабочих страниц. */

.page-header {
  width: min(1280px, calc(100% - 48px));
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto;
}

.page-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: .025em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.page-header .brand-mark {
  display: block;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.page-nav a {
  color: #173d35;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus-visible,
.page-nav a[aria-current="page"] { color: #ed6b36; }

.page-nav .nav-note { display: none; }
.page-nav .nav-call { display: none; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 21px;
  white-space: nowrap;
}

.header-meta span {
  color: #626a62;
  font-size: 12px;
}

.header-phone {
  color: #173d35;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  z-index: 70;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2.5px auto;
  border-radius: 2px;
  background: #173d35;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] i { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { opacity: 1; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }

/* На главной шапка находится внутри первого экрана, но использует ту же геометрию. */
.site-header.page-header {
  width: min(1280px, calc(100vw - 48px));
  position: absolute;
  z-index: 4;
  top: -18px; /* компенсируем верхнее поле карточки первого экрана */
  left: 50%;
  right: auto;
  padding: 0;
  transform: translateX(-50%);
}

.site-header.page-header .page-nav a,
.site-header.page-header .header-phone { color: inherit; }

.site-header.page-header .header-meta span {
  color: inherit;
  opacity: .64;
}

.site-header.page-header .nav-toggle i { background: currentColor; }
.site-header.page-header.is-menu-open { z-index: 40; }

@media (max-width: 1100px) {
  .site-header.page-header {
    left: 6px;
    right: 6px;
    width: auto;
    transform: none;
  }

  .page-header .brand,
  .page-header .header-meta { position: relative; z-index: 70; }

  .nav-toggle { display: block; }
  .page-nav { display: none; }

  .page-nav.is-open {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100vh;
    height: 100dvh;
    justify-content: flex-start;
    padding: calc(72px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(13, 35, 30, .18);
  }

  /* На главной шапка светлая поверх фотографии, но открытое меню белое. */
  .site-header.page-header.is-menu-open {
    color: #173d35;
  }

  .site-header.page-header .page-nav.is-open a {
    color: #173d35;
  }

  .site-header.page-header.is-menu-open .nav-toggle { color: #173d35; }

  .page-nav .nav-note { display: none; }

  .page-nav.is-open .nav-note {
    display: block;
    margin: auto 2px 14px;
    padding-top: 18px;
    border-top: 1px solid #c9cec6;
    color: #68736d;
    font-size: 12px;
    line-height: 1.45;
  }

  .page-nav.is-open .nav-note strong {
    display: block;
    margin-bottom: 3px;
    color: #173d35;
    font-size: 13px;
  }

  .page-nav.is-open a {
    padding: 15px 2px;
    border-bottom: 1px solid #c9cec6;
    color: #173d35;
    font-size: 16px;
  }

  .page-nav.is-open a:last-child { border-bottom: 0; }
  .page-nav.is-open .nav-call {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #ed6b36;
    color: #173d35;
    font-size: 15px;
    font-weight: 820;
    text-align: center;
  }
}

@media (max-width: 850px) {
  .page-header { width: min(100% - 32px, 650px); min-height: 70px; }
  .site-header.page-header { width: min(100vw - 32px, 650px); }
  .page-header .header-meta span { display: none; }
  .page-header .header-phone { font-size: 15px; }
}

@media (max-width: 500px) {
  .page-header { gap: 4px; min-height: 64px; }
  .page-header .brand { gap: 7px; font-size: 12px; }
  .page-header .brand-mark { width: 25px; height: 25px; }
  .page-header .header-meta { gap: 0; margin-left: auto; }
  .page-header .header-phone { font-size: 12px; }
  .page-header .nav-toggle { width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .page-header .header-phone { display: none; }
}

@media (max-width: 700px) {
  .site-header.page-header { top: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle i { transition: none; }
}

/* Плашка «номер скопирован»: показывается на компьютере после клика по номеру. */
.phone-copy-toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #275a44;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 16px 36px rgba(13, 35, 30, .24);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.phone-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 500px) {
  .phone-copy-toast { bottom: 18px; padding: 10px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-copy-toast { transition: none; }
}
