/* ================================================================
   shared.css — Общие стили нава, меню-оверлея и футера
   Синхронизировано с index.html
   ================================================================ */

/* ── БРЕНД-ТОКЕНЫ ────────────────────────────────────────────
   Единый :root для всех страниц: этот файл подключён везде, а часть
   подстраниц не объявляет переменные сами — без этого блока у них
   ломаются шрифт (Times), отступы var(--mg) и золотые акценты.
   Страницы со своим :root просто переопределяют эти же значения. */
:root{
  --f:'TT Hoves',-apple-system,BlinkMacSystemFont,sans-serif;
  --gold:#A58F64;--gold2:#BBA678;--ink:#1B1B20;--gr:#1B1B20;
  --off:#F7F6F3;--mid:#52525C;--muted:#8A8A96;
  --border:rgba(24,24,28,.1);--mg:90px;--gu:20px;
}
@media(max-width:1100px){:root{--mg:48px}}
@media(max-width:768px){:root{--mg:20px;--gu:14px}}
@media(max-width:400px){:root{--mg:16px}}
body{font-family:var(--f)}

/* Таблицы статей шире мобильного экрана: горизонтальный скролл
   внутри таблицы вместо обрезки колонок (.prose есть только у статей) */
@media(max-width:768px){
  .prose table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* ── NAVBAR ──────────────────────────────────────────────── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 var(--mg);
  height: 72px;
  display: flex; align-items: center;
  justify-content: space-between;
  transition: height .35s, background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
nav#nav.s {
  height: 58px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(24,24,28,.07);
}

.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
}

/* ── BURGER ──────────────────────────────────────────────── */
.burger {
  width: 48px; height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; background: none; border: none;
  flex-shrink: 0;
  position: relative; z-index: 301;
}
.burger span {
  display: block; width: 26px; height: 1.5px;
  background: rgba(255,255,255,.85);
  transition: background .35s, transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
nav#nav.s .burger span { background: #1B1B20; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
nav#nav.s .burger.open span { background: rgba(255,255,255,.85); }

/* logo */
.nav-logo { color: #fff; display: flex; align-items: center; transition: color .35s; }
nav#nav.s .nav-logo { color: #1B1B20; }
.nav-logo svg { height: 14px !important; width: auto; }

/* social icons */
.nav-social { display: flex; align-items: center; gap: 8px; }
.nav-si {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  text-decoration: none; transition: transform .2s;
}
.nav-si:hover { transform: scale(1.12); opacity: 1; }
.nav-si svg { width: 28px; height: 28px; display: block; }

/* phone */
.nav-phone {
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.75);
  transition: color .35s;
  white-space: nowrap;
}
nav#nav.s .nav-phone { color: var(--ink); }
nav#nav.s .nav-phone:hover { color: var(--gold); }
.nav-phone-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.nav-phone-note { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 2px; white-space: nowrap; }
nav#nav.s .nav-phone-note { color: rgba(27,27,32,.5); }

/* phone icon (mobile) */
.nav-phone-icon {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: rgba(255,255,255,.9);
  text-decoration: none; flex-shrink: 0;
  transition: color .35s, background .25s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  margin-right: -8px;
}
.nav-phone-icon svg { width: 22px; height: 22px; display: block; }
nav#nav.s .nav-phone-icon { color: var(--ink); }
.nav-phone-icon:hover { background: rgba(255,255,255,.13); }
nav#nav.s .nav-phone-icon:hover { background: rgba(0,0,0,.07); }
.nav-phone-icon:active { background: rgba(255,255,255,.2); transform: scale(.94); }
nav#nav.s .nav-phone-icon:active { background: rgba(0,0,0,.1); }

/* CTA button — hidden until scroll */
.nav-cta {
  background: var(--gold); color: #fff;
  padding: 10px 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  min-height: 40px; border-radius: 4px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none;
  white-space: nowrap;
  display: inline-flex; align-items: center;
  font-family: var(--f);
}
.nav-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.nav-cta:hover { background: var(--gold2); }

/* blog.html: nav always visible */
nav#nav.s-forced .nav-cta { opacity: 1; transform: none; pointer-events: auto; }

.nav-right {
  display: flex; align-items: center; gap: 20px;
  flex: 0 0 auto; margin-left: auto;
}

@media (max-width: 768px) {
  .nav-phone, .nav-phone-wrap { display: none; }
  .nav-phone-icon { display: flex !important; }
  .nav-cta { display: none !important; }
  .nav-right { gap: 4px !important; }
  .nav-logo svg { height: 11px !important; }
}

/* ── PAGE CTA ────────────────────────────────────────────── */
.page-cta { background: #fff; padding: clamp(48px,4vw,64px) var(--mg) }
/* Оформление формы (.page-cta-card, .cta-form, .cta-field, .cta-label,
   .cta-submit-btn, .cta-agree) убрано 02.09.2026: карточка заявки в журнале
   переехала на общий компонент сайта, разметки под эти классы не осталось.
   Стили карточки теперь приезжают из parts/style-pages.css через перешивку. */

/* ── BREADCRUMBS ─────────────────────────────────────────── */
.bc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px }
.bc a, .bc span { font-size: 13px; letter-spacing: .02em; color: var(--muted); transition: color .2s }
.bc a:hover { color: var(--ink) }
.bc-sep { color: var(--border); font-size: 13px; flex-shrink: 0 }
.bc-title { color: var(--ink) !important; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* ── MENU OVERLAY ────────────────────────────────────────── */
.menu-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 299;
  background: rgba(8,8,10,.98);
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s cubic-bezier(.16,1,.3,1);
}
.menu-overlay.open {
  opacity: 1;
}
/* top bar */
.mo-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--mg); height: 72px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mo-logo {
  font-size: 13px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
/* close button */
.menu-close {
  width: 48px; height: 48px;
  position: relative; cursor: pointer; background: none; border: none;
  flex-shrink: 0;
}
.menu-close span {
  display: block; width: 26px; height: 1.5px;
  background: rgba(255,255,255,.85);
  transition: background .35s;
  position: absolute;
  top: 50%; left: 50%;
}
.menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
/* 2-column grid */
.mo-grid {
  flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr;
  padding: 110px var(--mg) 0; align-items: center; gap: 60px;
}
.menu-links { grid-column: 1; grid-row: 1; align-self: start; }
.mo-meta { grid-column: 2; grid-row: 1/3; align-self: start; }
/* nav links */
.menu-links {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.menu-links a {
  font-size: clamp(30px, 4.2vw, 62px);
  font-weight: 500; letter-spacing: -.02em;
  color: rgba(255,255,255,.62);
  display: block; line-height: 1.2;
  transition: color .2s, transform .2s;
  text-transform: uppercase; text-decoration: none;
}
.menu-links a:hover { color: #fff; transform: translateX(10px); }
/* meta column */
.mo-meta {
  display: flex; flex-direction: column; gap: 32px;
  padding-left: 40px; border-left: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateX(20px);
  transition: opacity .5s ease .15s, transform .5s cubic-bezier(.16,1,.3,1) .15s;
}
.menu-overlay.open .mo-meta { opacity: 1; transform: none; }
.mo-meta-lbl {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: 6px;
}
.mo-meta-val { font-size: 20px; font-weight: 500; color: #fff; }
.mo-route {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  transition: color .2s;
}
.mo-route:hover { color: #fff; }
.mo-route::after { content: '→'; font-size: 13px; }
.mo-tagline {
  font-size: 15px; line-height: 1.53;
  color: rgba(255,255,255,.38);
  margin-top: 8px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  max-width: 360px;
}
/* Menu map */
.mo-map { margin-top: 8px; width: 100%; max-width: 500px; opacity: .9; }
.mo-map svg { width: 100%; height: auto; display: block; }
/* bottom bar */
.menu-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--mg);
  border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.menu-phone-group { display: flex; align-items: center; gap: 16px; }
.menu-phone {
  font-size: 18px; font-weight: 500; color: #fff; letter-spacing: .02em;
  text-decoration: none;
}
.menu-cta {
  background: var(--gold); color: #fff;
  padding: 14px 30px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s; border-radius: 4px;
  border: none; cursor: pointer; font-family: var(--f);
}
.menu-cta:hover { background: var(--gold2); }
/* messenger buttons */
.menu-messengers {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important;
  align-items: center;
}
.menu-msg-btn {
  display: flex; align-items: center; justify-content: center !important;
  gap: 8px; padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 40px; color: rgba(255,255,255,.85);
  text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: .02em;
  transition: border-color .2s, background .2s; white-space: nowrap;
}
.menu-msg-btn:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.menu-msg-btn svg { flex-shrink: 0; }
.menu-msg-btn:first-child svg { color: #29a9eb; }
.menu-msg-btn:last-child svg { color: #8b5cf6; }
/* staggered reveal */
.menu-links li {
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.menu-overlay.open .menu-links li:nth-child(1) { transition-delay: .06s; opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(2) { transition-delay: .11s; opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(3) { transition-delay: .16s; opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(4) { transition-delay: .21s; opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(5) { transition-delay: .26s; opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(6) { transition-delay: .31s; opacity: 1; transform: none; }

@media (max-width: 700px) {
  .mo-grid { grid-template-columns: 1fr; }
  .mo-meta { display: none; }
  .menu-bottom { display: none; }
  .mo-map { max-width: none; margin-top: 4px; }
  .mo-map svg { max-height: calc(100vh - 390px); }
  .menu-msg-btn { padding: 8px 12px; font-size: 13px; }
}
@media (min-width: 701px) and (max-width: 1920px) {
  .mo-grid { padding: 60px var(--mg) 0; }
  .mo-meta { gap: 10px; margin-top: 0; }
  .mo-meta-val { font-size: 16px; }
  .mo-tagline { font-size: 13px; padding-top: 12px; margin-top: 4px; }
  .mo-route { margin-top: 4px; }
  .mo-map { max-width: none; margin-top: 4px; }
  .mo-map svg { max-height: calc(100vh - 390px); }
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--gr, #1B1B20);
}
.ft-inner { padding: 56px var(--mg) 0; }
.ft-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 40px; flex-wrap: wrap;
}
.ft-logo-wrap { color: rgba(255,255,255,.72); flex-shrink: 0; }
.ft-logo-wrap svg { height: 16px; width: auto; }
.ft-socials { display: flex; gap: 8px; flex-shrink: 0; }
.ft-social-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  opacity: .55; transition: opacity .2s; border-radius: 50%;
}
.ft-social-btn:hover { opacity: 1; }
.ft-social-btn svg { width: 24px; height: 24px; display: block; }
.ft-mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 40px; flex-wrap: wrap;
}
.ft-tagline {
  font-size: clamp(16px, 1.8vw, 26px); font-weight: 500; line-height: 1.4;
  color: rgba(255,255,255,.62); letter-spacing: -.01em; margin: 0;
}
.ft-bottom {
  padding: 20px var(--mg); display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.ft-copy { font-size: 13px; color: rgba(255,255,255,.22); letter-spacing: .04em; }
.ft-priv {
  font-size: 13px; color: rgba(255,255,255,.22);
  transition: color .2s; text-decoration: none;
}
.ft-priv:hover { color: rgba(255,255,255,.55); }

/* Новый футер (.wf, макет Claude Design): hover-эффекты. Инлайн-стили элементов
   перебивают обычные селекторы, поэтому :hover идёт с !important. */
.wf-cta:hover { background: var(--gold2) !important; transform: translateY(-2px); }
.wf-cta:active { transform: scale(.97); }
.wf-link:hover { color: var(--gold) !important; }
.wf-map:hover { color: var(--gold) !important; }
.wf-social:hover { background: var(--gold) !important; color: #141418; }

/* CTA button used in footer */
.ft-mid .bg {
  border-radius: 4px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff; padding: 14px 30px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  min-height: 48px; transition: background .2s, transform .16s cubic-bezier(.23,1,.32,1);
  font-family: var(--f); border: none; cursor: pointer;
}
.ft-mid .bg:hover { background: var(--gold2); transform: translateY(-2px); }
.ft-mid .bg:active { transform: scale(.97) !important; }

@media (max-width: 900px) {
  .ft-mid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .ft-top { gap: 24px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
