/* =====================================================
   MOUNTAIN ACCOUNTING — SHARED DESIGN SYSTEM
   Общие стили, вынесенные из index.html / шаблона услуги /
   шаблона статьи блога. Подключается на всех страницах сайта.
   Не редактировать выборочно на отдельной странице — правки
   сюда влияют сразу на весь сайт.
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: #F8F8F8; overflow-x: hidden; }
body { overflow-x: hidden; }

/* ── HEADER ── */
    .mtn-header {
      position: sticky; top: 0; z-index: 50;
      width: 100%;
      background: transparent;
      border-bottom: 1px solid #E2E0D8;
      box-shadow: 0 1px 18px rgba(26,43,56,.08);
      transition: background .25s, box-shadow .25s, border-color .25s;
    }

.mtn-header.scrolled {
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 1px 18px rgba(26,43,56,.08);
      border-color: #E2E0D8;
    }

.mtn-nav {
      display: grid; grid-template-columns: auto 1fr auto;
      align-items: center;
      height: 64px; padding: 0 40px; max-width: 1140px; margin: 0 auto;
      gap: 8px; transition: height .25s;
    }

.mtn-header.scrolled .mtn-nav { height: 54px; }

.mtn-logo img { height: 40px; width: auto; display: block; transition: height .25s; }

.mtn-header.scrolled .mtn-logo img { height: 34px; }

.mtn-links { display: flex; align-items: center; justify-content: center; gap: 2px; }

.mtn-link {
      font-size: 14px; font-weight: 600; color: #1A2B38;
      text-decoration: none; padding: 8px 14px; border-radius: 100px;
      transition: background .18s;
    }

.mtn-actions { display: flex; align-items: center; gap: 8px; }

.mtn-btn-cta {
      font-size: 14px; font-weight: 700; color: #1A2B38;
      background: #97D700; border: none;
      padding: 9px 20px; border-radius: 100px;
      text-decoration: none; display: inline-flex; align-items: center;
      box-shadow: 0 4px 14px rgba(0,0,0,.12);
      transition: background .18s, transform .15s, box-shadow .15s; white-space: nowrap;
    }

.mtn-btn-cta:hover { background: #85C000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.16); }

.mtn-btn-navy {
      font-size: 14px; font-weight: 600; color: #fff;
      background: #1A2B38; border: none;
      padding: 9px 20px; border-radius: 100px;
      text-decoration: none; display: inline-flex; align-items: center;
      box-shadow: 0 4px 14px rgba(0,0,0,.14);
      transition: background .18s, transform .15s, box-shadow .15s; white-space: nowrap;
    }

.mtn-lang-wrap { position: relative; }

.mtn-lang-btn {
      font-family: 'Manrope', sans-serif;
      font-size: 14px; font-weight: 700; color: #1A2B38;
      background: transparent; border: 1.5px solid #D1D5DB;
      padding: 9px 20px; border-radius: 100px; cursor: pointer;
      display: inline-flex; align-items: center; gap: 6px;
      transition: border-color .18s; white-space: nowrap;
    }

.mtn-lang-btn svg { transition: transform .2s; }

.mtn-lang-btn.open svg { transform: rotate(180deg); }

.mtn-lang-drop {
      display: none; position: absolute; top: calc(100% + 8px); right: 0;
      background: #fff; border: 1px solid #E2E0D8; border-radius: 10px; padding: 4px;
      box-shadow: 0 4px 16px rgba(0,0,0,.08); min-width: 100%;
    }

.mtn-lang-drop.open { display: block; }

/* ── Мобильное меню: переключатель языка — отдельная «пилюля», как .mtn-lang-btn на десктопе ── */
.mtn-mobile-lang {
      align-self: center; margin-top: 18px;
      font-family: 'Manrope', sans-serif;
      font-size: 14px; font-weight: 700; color: #1A2B38;
      background: transparent; border: 1.5px solid #D1D5DB; border-radius: 100px;
      padding: 9px 22px;
      display: inline-flex; align-items: center; gap: 6px;
      text-decoration: none; transition: border-color .18s;
    }
.mtn-mobile-lang:hover { border-color: #1A2B38; }

/* ── Мобильное меню: скролл, если пунктов больше, чем помещается по высоте (альбомная ориентация, невысокие экраны) ── */
.mtn-mobile { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.mtn-lang-option:hover { background: #FCFCFA; }

.mtn-burger {
      display: none; background: transparent; border: 1.5px solid #D1D5DB;
      width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
      align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 10px;
      transition: border-color .18s;
    }

.mtn-burger:hover { border-color: #1A2B38; }

.bl {
      display: block; width: 100%; height: 1.5px; background: #1A2B38;
      border-radius: 2px; transform-origin: center;
      transition: transform .28s ease, opacity .2s;
    }

.mtn-mobile.open { display: flex; animation: mslide .22s ease; }

@keyframes mslide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mtn-mobile-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.mtn-mobile-link {
      font-size: 16px; font-weight: 600; color: #1A2B38;
      text-decoration: none; padding: 14px 16px; border-radius: 10px;
      transition: background .15s;
    }

.mtn-mobile-link:hover { background: #FCFCFA; }

.mtn-mobile-btns { display: flex; flex-direction: column; gap: 10px; }

.mtn-mobile-btns .mtn-btn-cta,
    .mtn-mobile-btns .mtn-btn-navy { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

@media (max-width: 900px) {
      .mtn-links, .mtn-actions { display: none !important; }
      .mtn-burger { display: inline-flex; }
      .mtn-nav { grid-template-columns: 1fr auto; padding: 0 20px; }
    }

#hero-canvas {
      position: absolute; inset: 0; width: 100%; height: 100%;
      z-index: 0; pointer-events: none; display: block;
    }

/* ── TICKER ── */
    .ticker-wrap {
      background: #fff;
      border-top: 1px solid rgba(26,43,56,.18); border-bottom: 1px solid rgba(26,43,56,.18);
      padding: 28px 0; overflow: hidden; position: relative;
      box-shadow: 0 4px 24px rgba(0,0,0,.07);
    }

.ticker-wrap::before, .ticker-wrap::after {
      content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
    }

.ticker-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }

.ticker-wrap::after { right: 0; background: linear-gradient(to left, #fff, transparent); }

.ticker-track { display: flex; align-items: center; width: max-content; animation: tick 44s linear infinite; }

.ticker-track:hover { animation-play-state: paused; }

@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.t-logo { display: flex; align-items: center; justify-content: center; padding: 0 36px; flex-shrink: 0; }

.t-logo img { width: auto; object-fit: contain; display: block; }

.t-logo.light img { filter: grayscale(1) opacity(0.55); mix-blend-mode: multiply; transition: filter .25s; }

.t-logo.light:hover img { filter: grayscale(0) opacity(1); mix-blend-mode: normal; }

.t-logo.dark img { filter: grayscale(1) invert(1) opacity(0.55); mix-blend-mode: multiply; transition: filter .25s; }

.t-logo.dark:hover img { filter: grayscale(0) invert(1) opacity(1); mix-blend-mode: normal; }

.t-logo.padded .logo-bg { background: #fff; border-radius: 8px; padding: 8px 14px; display: flex; align-items: center; opacity: 0.7; transition: opacity .25s; }

.t-logo.padded:hover .logo-bg { opacity: 1; }

.t-logo.padded img { filter: grayscale(1); transition: filter .25s; }

.t-logo.padded:hover img { filter: grayscale(0); }

.t-dot { width: 5px; height: 5px; background: #97D700; border-radius: 50%; flex-shrink: 0; }

/* ── CTA ── */
    .cta { background: #1A2B38; padding: 80px 40px 72px; }

.cta-inner { max-width: 1060px; margin: 0 auto; }

.cta-sub { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.55); margin-bottom: 36px; }

.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-btn-tg { display: inline-flex; align-items: center; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; background: #97D700; color: #1A2B38; padding: 14px 28px; border-radius: 100px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: background .18s, transform .15s, box-shadow .15s; }

.cta-btn-tg:hover { background: #85C000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.cta-btn-wa { display: inline-flex; align-items: center; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: 14px 28px; border-radius: 100px; text-decoration: none; transition: border-color .18s, transform .15s; }

.cta-btn-wa:hover { border-color: #fff; transform: translateY(-2px); }

/* ── FOOTER ── */
    .ft { background: #111C27; padding: 60px 40px 0; }

.ft-inner { max-width: 1060px; margin: 0 auto; }

.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 52px; }

.ft-logo-img { width: 200px; height: auto; display: block; margin-bottom: 16px; }

.ft-tagline { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 200px; }

.ft-col-title { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: rgba(255,255,255,.75); margin-bottom: 20px; line-height: 1.2; }

.ft-links { display: flex; flex-direction: column; gap: 10px; }

.ft-link { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }

.ft-link:hover { color: #97D700; }

.ft-link.accent { color: rgba(151,215,0,.7); }

.ft-link.accent:hover { color: #97D700; }

.ft-address { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.35); line-height: 1.6; margin-top: 16px; }

.ft-social-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.ft-social-btn {
      width: 36px; height: 36px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.08);
      color: rgba(255,255,255,.7);
      text-decoration: none; transition: background .18s, color .18s, transform .15s;
    }

.ft-social-btn:hover { background: #97D700; color: #1A2B38; transform: translateY(-2px); }

.ft-contact-row {
      display: flex; align-items: center; gap: 10px;
      font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
      text-decoration: none; margin-bottom: 10px; transition: color .15s;
    }

.ft-contact-row:hover { color: #97D700; }

.ft-contact-row svg { flex-shrink: 0; opacity: .55; }

.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }

.ft-copy { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.3); }

.ft-bottom-links { display: flex; gap: 24px; }

.ft-bottom-link { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.3); text-decoration: none; transition: color .15s; }

.ft-bottom-link:hover { color: rgba(255,255,255,.7); }

.reveal.visible { opacity: 1; transform: none; }

.p-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

.p-bg canvas {
    pointer-events: none !important;
    background: transparent !important;
  }

/* =====================================================
   МОДАЛКА ОБРАТНОЙ СВЯЗИ (fb-*)
   Шаблон зафиксирован 24.07.2026, см. заметку в ваулте
   "Шаблон формы обратной связи (модалка)". Открывается по клику
   на CTA-кнопки сайта. НЕ навешена на: кнопку "Стать партнёром" в
   хэдере, кнопки "Написать в Telegram/WhatsApp" в предфутере,
   иконки соцсетей в футере, карточки контактов на contacts.html —
   это прямые ссылки на мессенджеры/каналы связи, не заявки.
   ===================================================== */
.fb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(17,24,39,.55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.fb-overlay.open { opacity: 1; visibility: visible; }
.fb-modal {
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 24px;
  border: 1.5px solid #1A2B38;
  /* тень усилена относительно карточной (0 4px 24px) — модалка висит над тёмным
     оверлеем, обычная тень карточки на этом фоне не читается */
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  padding: 26px 32px 22px;
  position: relative;
  /* max-height/overflow — подстраховка для маленьких экранов, не основной режим:
     после уплотнения (24.07.2026) форма целиком помещается на типичном
     ноутбучном экране без скролла */
  max-height: 90vh; overflow-y: auto;
  transform: scale(.94) translateY(10px); opacity: 0;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .22s ease;
  font-family: 'Manrope', sans-serif;
}
.fb-overlay.open .fb-modal { transform: scale(1) translateY(0); opacity: 1; }
.fb-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid #1A2B38; background: #fff; color: #1A2B38;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, transform .18s;
}
.fb-close:hover { background: #1A2B38; color: #fff; transform: translateY(-2px); }
.fb-title {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22;
  color: #1A2B38; margin: 0 0 6px; padding-right: 22px;
}
.fb-sub { font-size: 13px; color: #6B7A87; line-height: 1.45; margin: 0 0 16px; }
.fb-row { margin-bottom: 10px; }
.fb-row-split { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.fb-label { display: block; font-size: 12px; font-weight: 700; color: #1A2B38; margin-bottom: 4px; }
.fb-input, .fb-select, .fb-textarea {
  width: 100%; padding: 9px 14px; border: 1.5px solid #E5E7EB; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #111827; outline: none;
  transition: border-color .2s; background: #fff;
}
.fb-select { cursor: pointer; }
.fb-textarea { resize: vertical; min-height: 56px; line-height: 1.5; }
.fb-input:focus, .fb-select:focus, .fb-textarea:focus { border-color: #97D700; }
/* Кастомная валидация вместо нативной браузерной подсказки — форма получает
   novalidate, JS сам подсвечивает пустые обязательные поля этим стилем. */
.fb-input.fb-input-error, .fb-select.fb-input-error, .fb-textarea.fb-input-error { border-color: #DC2626; }
.fb-field-error { display: none; color: #DC2626; font-size: 12px; font-weight: 600; margin-top: 4px; }
.fb-field-error.show { display: block; }
.fb-submit {
  width: 100%; background: #97D700; color: #1A2B38; border: none;
  border-radius: 100px; padding: 12px; font-size: 15px; font-weight: 800;
  font-family: inherit; cursor: pointer; margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: background .2s, transform .18s, box-shadow .18s;
}
.fb-submit:hover { background: #7ab800; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.fb-disclaimer { font-size: 11px; color: #9CA3AF; text-align: center; line-height: 1.4; margin: 10px 0 0; }
.fb-disclaimer a { color: #6B7A87; text-decoration: underline; }
.fb-alt-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.fb-alt-line { flex: 1; height: 1px; background: #E2E0D8; }
.fb-alt-text { font-size: 11px; color: #9CA3AF; white-space: nowrap; }
.fb-alt-btns { display: flex; gap: 10px; }
.fb-alt-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; border-radius: 100px; border: 1.5px solid #1A2B38; background: #fff;
  color: #1A2B38; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.fb-alt-btn:hover { background: #1A2B38; color: #fff; transform: translateY(-2px); }
.fb-success { display: none; text-align: center; padding: 12px 0 4px; }
.fb-success.show { display: block; }
.fb-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #97D700; color: #1A2B38;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
  margin: 0 auto 18px;
}
.fb-success-title { font-size: 19px; font-weight: 800; color: #1A2B38; margin-bottom: 8px; }
.fb-success-text { font-size: 14px; color: #6B7A87; line-height: 1.6; margin-bottom: 4px; }
@media (max-width: 480px) {
  .fb-modal { padding: 28px 22px 22px; border-radius: 20px; }
  .fb-row-split { grid-template-columns: 1fr; }
  .fb-alt-btns { flex-direction: column; }
}
