/* ─────────────────────────────────────────────────────────────────────
   ПОТОК — site chrome: новый topbar + navbar + drawer.
   Заменяет MDB-офкенвас на ваниль. Применяется на ВСЕХ страницах
   (грузится в default.html). Использует префикс .pn-* чтобы не
   пересекаться со старыми правилами в main.css (33 селектора со
   старыми именами оставлены as is — их там просто никто не использует
   после редизайна, и они не мешают).
   ───────────────────────────────────────────────────────────────────── */
:root {
  --pn-gold: #bba88c;
  --pn-gold-dark: #8f7a5e;
  --pn-graphite-top: #1f2129;
  --pn-graphite-nav: #2d323c;
  --pn-border-soft: rgba(255, 255, 255, 0.06);
  --pn-text-dim: #d9d6cf;
  --pn-r-pill: 999px;
}

/* ── TOPBAR ──────────────────────────────────────────────────────── */
.pn-topbar {
  background: var(--pn-graphite-top);
  color: var(--pn-text-dim);
  font-size: 13px;
  height: 32px;
  display: flex;
  align-items: center;
}
.pn-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.pn-topbar-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pn-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.pn-topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--pn-gold);
  flex: none;
}
.pn-topbar-item:hover { color: var(--pn-gold); }
@media (max-width: 991px) {
  .pn-topbar { display: none; }
}

/* ── NAVBAR ──────────────────────────────────────────────────────── */
.pn-navbar {
  background: var(--pn-graphite-nav);
  color: #fff;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--pn-border-soft);
}
.pn-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  /* 3-колоночный grid: бренд слева, меню РОВНО по центру вьюпорта, CTA справа. */
  /* Боковые колонки 1fr → одинаковая ширина → меню в геометрическом центре, */
  /* даже когда бренд и CTA разной ширины (с margin:auto на flex это не работает). */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Бренд */
.pn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  justify-self: start;
}
.pn-brand-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Меню */
.pn-nav-center {
  justify-self: center;
}
.pn-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pn-menu a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  transition: color .15s;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.pn-menu a:hover { color: #fff; }
.pn-menu a.is-active { color: #fff; }
.pn-menu a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--pn-gold);
  border-radius: 2px;
}

/* CTA «Запись» */
.pn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--pn-gold);
  color: #fff;
  border-radius: var(--pn-r-pill);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  border: 0;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
}
.pn-cta-desktop { justify-self: end; }
.pn-cta:hover {
  background: var(--pn-gold-dark);
  box-shadow: 0 8px 18px rgba(143, 122, 94, 0.3);
  color: #fff;
}

/* Бургер */
.pn-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  justify-self: end;
}
.pn-burger:hover { background: rgba(255, 255, 255, 0.08); }
.pn-burger svg { width: 22px; height: 22px; }

@media (max-width: 991px) {
  .pn-nav-center, .pn-cta-desktop { display: none; }
  .pn-burger { display: inline-flex; }
  /* На мобиле раскладка: бренд слева, бургер справа. */
  .pn-nav-inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .pn-brand-img { height: 38px; }
}

/* ── DRAWER (мобильное меню) ─────────────────────────────────────── */
.pn-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 33, 41, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 200;
}
.pn-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pn-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--pn-graphite-nav);
  color: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.pn-drawer.is-open { transform: translateX(0); }
.pn-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pn-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.pn-drawer-close:hover { background: rgba(255, 255, 255, 0.14); }
.pn-drawer-close svg { width: 22px; height: 22px; }

.pn-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
}
.pn-drawer-menu a {
  display: flex;
  align-items: center;
  padding: 14px 4px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15.5px;
  border-bottom: 1px solid var(--pn-border-soft);
  transition: color .15s, padding-left .15s;
}
.pn-drawer-menu a:hover {
  color: var(--pn-gold);
  padding-left: 10px;
}

.pn-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pn-drawer-cta .pn-cta { width: 100%; padding: 14px 22px; font-size: 15px; }
.pn-drawer-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--pn-r-pill);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.pn-drawer-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.pn-drawer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--pn-text-dim);
  font-size: 13.5px;
  padding-top: 16px;
  border-top: 1px solid var(--pn-border-soft);
}
.pn-drawer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pn-drawer-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--pn-gold);
  flex: none;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   Дизайн (styles.css:1453-1497, .site-footer). Префикс .pn-* — чтобы
   не пересекаться со старым MDB-футером в main.css.
   ───────────────────────────────────────────────────────────────────── */
.pn-footer {
  background: #30323D;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
}
.pn-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pn-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.pn-footer-col h4 {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.pn-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.pn-footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.pn-footer-col a:hover { color: var(--pn-gold); }

.pn-footer-brand-col .pn-brand-img { height: 50px; width: auto; }
.pn-footer-brand-info {
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.pn-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  gap: 24px;
}
.pn-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pn-footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.pn-footer-contact a:hover { color: var(--pn-gold); }
.pn-footer-dot { color: rgba(255, 255, 255, 0.25); }

@media (max-width: 991px) {
  .pn-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 576px) {
  .pn-footer { padding: 48px 0 24px; }
  /* Бренд-колонку с логотипом и текстом лицензии на мобилке скрываем —
     занимает много экрана и дублирует информацию из топа сайта. */
  .pn-footer-brand-col { display: none; }
  .pn-footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  /* Содержимое каждой колонки центрируем. */
  .pn-footer-col { text-align: center; }
  .pn-footer-col ul { align-items: center; }
  .pn-footer-col h4 { letter-spacing: 1.2px; }
  .pn-footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .pn-footer-contact { flex-wrap: wrap; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────────────
   МОДАЛКА «ЗАКАЗАТЬ ЗВОНОК» (глобальная)
   ───────────────────────────────────────────────────────────────────── */
.pn-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pn-modal.is-open { display: flex; }
.pn-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 28, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.pn-modal-window {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: pn-modal-in .22s ease;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: #30323D;
}
@keyframes pn-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pn-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #6b6f78;
  transition: background .15s, color .15s;
}
.pn-modal-close:hover { background: rgba(0, 0, 0, 0.08); color: #30323D; }

.pn-modal-head { margin-bottom: 22px; padding-right: 32px; }
.pn-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pn-gold);
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 10px;
}
.pn-modal-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #30323D;
}
.pn-modal-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b6f78;
}

.pn-modal-field { margin-bottom: 14px; }
.pn-modal-field label {
  display: block;
  font-size: 13px;
  color: #6b6f78;
  margin-bottom: 6px;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 0.3px;
}
.pn-modal-field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e6e3dd;
  border-radius: 12px;
  outline: none;
  color: #30323D;
  transition: all .15s;
  font-family: inherit;
}
.pn-modal-field input:focus {
  border-color: var(--pn-gold);
  box-shadow: 0 0 0 3px rgba(187, 168, 140, 0.18);
}

.pn-modal-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.pn-modal-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #8a8e96;
  line-height: 1.45;
  cursor: pointer;
}
.pn-modal-checks input[type="checkbox"] {
  margin-top: 3px;
  flex: none;
  width: 14px;
  height: 14px;
  accent-color: var(--pn-gold);
}
.pn-modal-checks a {
  color: var(--pn-gold-dark);
  border-bottom: 1px solid rgba(143, 122, 94, 0.3);
}

.pn-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

.pn-modal-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.pn-callme-submit { width: 100%; padding: 14px 22px; font-size: 15px; }
.pn-modal-fineprint {
  font-size: 12px;
  color: #8a8e96;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}
.pn-modal-fineprint a {
  color: var(--pn-gold-dark);
  border-bottom: 1px solid rgba(143, 122, 94, 0.3);
}

@media (max-width: 576px) {
  .pn-modal { padding: 0; align-items: flex-end; }
  .pn-modal-window {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 26px 22px 28px;
    max-height: 90vh;
  }
}
