/* ═══════════════════════════════════════════════════
   ADMFTR — Подвал «Сертифицированный партнёр amoCRM»
   v4.0 — редактируемые блоки WP + тёмная нижняя волна + меню подвала
   Все классы с префиксом .admftr- (изоляция)
═══════════════════════════════════════════════════ */

/* ---------- BASE ---------- */
.admftr-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
.admftr-footer *, .admftr-footer *::before, .admftr-footer *::after {
  box-sizing: border-box;
}
.admftr-widget { margin: 0; }

/* ---------- WAVE (космос → градиент кнопок → бирюза) ---------- */
.admftr-wave {
  position: relative;
  width: 100%;
  height: 95px;
  line-height: 0;
  background: #0A0E1A;          /* цвет «космоса» секции выше */
  margin-bottom: -1px;
  overflow: hidden;
}
.admftr-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- BODY (бирюзовый) ---------- */
.admftr-bg {
  background-color: #009ECB;     /* ровная бирюза, совпадает с шапкой-картинкой */
  padding: 0 40px 30px;
  position: relative;
  overflow: hidden;
}

/* ---------- PARTNER HEADER ---------- */
.admftr-partner {
  text-align: center;
  margin: 0 auto 10px;
  max-width: 460px;
}
.admftr-partner-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: -10px auto 0;
}

/* ---------- THREE COLUMNS ---------- */
.admftr-columns {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}
.admftr-col { flex: 1; min-width: 0; }
.admftr-col-title {
  font-size: 24px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0 0 15px;
  color: #ffffff;
}
.admftr-col p { margin: 3px 0; font-size: 16px; color: #ffffff; }
.admftr-label { font-size: 16px; color: #fff; margin-top: 5px !important; }
.admftr-tg-label { margin-top: 20px !important; }

.admftr-link { color: #fff; text-decoration: none; transition: opacity 0.2s; }
.admftr-link:hover { opacity: 0.8; text-decoration: underline; }

/* Telegram button */
.admftr-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0088cc;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px;
}
.admftr-tg-btn:hover { background: #006da4; transform: translateY(-1px); }
.admftr-tg-btn svg { flex-shrink: 0; }

/* ---------- CONTACTS: иллюстрация «разговор» ---------- */
.admftr-col-contacts { position: relative; }
.admftr-people-img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 18px auto 0;
  pointer-events: none;
  user-select: none;
}

/* ---------- ABOUT ---------- */
.admftr-col-about { text-align: center; }
.admftr-col-about p { font-size: 15px; line-height: 1.6; }

/* ---------- FUNNEL (объёмная, на базе 3D-картинки) ---------- */
.admftr-col-funnel { text-align: center; }
.admftr-funnel-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.admftr-funnel-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}

/* Кликабельные ступени поверх изображения воронки */
.admftr-fstep {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.4);
  min-height: 44px;
  padding: 2px 4px;
  transition: transform 0.15s, filter 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.admftr-fstep:hover { transform: translate(-50%, -50%) scale(1.04); filter: brightness(1.12); }
.admftr-fstep-1 { top: 9%;  width: 90%; font-size: 15px; }
.admftr-fstep-2 { top: 23%; width: 78%; font-size: 14px; }
.admftr-fstep-3 { top: 36%; width: 66%; font-size: 13px; }
.admftr-fstep-4 { top: 49%; width: 54%; font-size: 13px; }
.admftr-fstep-5 { top: 62%; width: 42%; font-size: 12px; }

/* Золотые доллары — декор */
.admftr-dollar {
  position: absolute;
  width: 40px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  z-index: 1;
}
.admftr-dollar-a { top: 30%; right: -6%; width: 46px; }
.admftr-dollar-b { top: 55%; left: -4%;  width: 36px; }
.admftr-dollar-c { top: 70%; right: 2%;  width: 32px; }

/* ═══════════════════════════════════
   DARK BOTTOM (тёмная волна + меню + копирайт)
═══════════════════════════════════ */
.admftr-darkwave {
  position: relative;
  width: 100%;
  height: 100px;
  line-height: 0;
  background: #009ECB;          /* бирюза сверху */
  margin-top: -1px;
  overflow: hidden;
}
.admftr-darkwave svg { display: block; width: 100%; height: 100%; }

.admftr-dark {
  background: #0A0E1A;           /* космос — сайт заканчивается в тёмных тонах */
  color: #cbd5e1;
  margin-top: -1px;
  padding: 6px 20px 30px;
  text-align: center;
}

/* Меню подвала (стиль ближе к верхнему меню) */
.admftr-menu { max-width: 1100px; margin: 0 auto; }
.admftr-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 6px;
}
.admftr-menu-list li { margin: 0; }
.admftr-menu-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.admftr-menu-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #00F0FF;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.admftr-menu-list a:hover,
.admftr-menu-list a:focus-visible {
  color: #f8fafc;
  background: rgba(0,240,255,0.06);
}
.admftr-menu-list a:hover::after { transform: scaleX(1); }
.admftr-menu-list .current-menu-item > a,
.admftr-menu-list .current-menu-ancestor > a,
.admftr-menu-list .current_page_item > a { color: #f8fafc; }
.admftr-menu-list .current-menu-item > a::after,
.admftr-menu-list .current-menu-ancestor > a::after,
.admftr-menu-list .current_page_item > a::after { transform: scaleX(1); }

/* Копирайт */
.admftr-bottom {
  max-width: 1100px;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admftr-copy, .admftr-legal { font-size: 12px; color: #94a3b8; margin: 3px 0; }

/* Маленькая ссылка «Карта сайта» для SEO/ботов */
.admftr-seomap { margin-top: 10px; }
.admftr-seomap a {
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  letter-spacing: .3px;
  transition: color .2s;
}
.admftr-seomap a:hover { color: #00F0FF; text-decoration: underline; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .admftr-wave { height: 70px; }
  .admftr-darkwave { height: 72px; }
  .admftr-bg { padding: 0 20px 25px; }
  .admftr-columns { flex-wrap: wrap; gap: 25px; }
  .admftr-col-contacts, .admftr-col-about { flex: 1 1 45%; }
  .admftr-col-funnel { flex: 1 1 100%; order: 3; }
}

@media (max-width: 768px) {
  .admftr-wave { height: 55px; }
  .admftr-darkwave { height: 56px; }
  .admftr-columns { flex-direction: column; gap: 30px; }
  .admftr-col { flex: 1 1 100%; text-align: center; }
  .admftr-col-contacts { order: 1; }
  .admftr-col-about { order: 2; }
  .admftr-col-funnel { order: 3; }
  .admftr-funnel-wrap { max-width: 320px; }
  .admftr-people-img { max-width: 220px; }
}

@media (max-width: 480px) {
  .admftr-wave { height: 42px; }
  .admftr-darkwave { height: 44px; }
  .admftr-bg { padding: 0 15px 20px; }
  .admftr-partner-img { max-width: 320px; }
  .admftr-col-title { font-size: 20px; }
  .admftr-col p { font-size: 14px; }
  .admftr-funnel-wrap { max-width: 290px; }
  .admftr-fstep-1 { font-size: 13px; }
  .admftr-fstep-2 { font-size: 12px; }
  .admftr-fstep-3 { font-size: 11px; }
  .admftr-fstep-4 { font-size: 11px; }
  .admftr-fstep-5 { font-size: 10px; }
  .admftr-dollar { display: none; }
  .admftr-tg-btn { width: 100%; justify-content: center; }
  .admftr-menu-list a { font-size: 0.85rem; padding: 7px 10px; }
}

@media (max-width: 360px) {
  .admftr-funnel-wrap { max-width: 260px; }
  .admftr-fstep-1 { font-size: 12px; }
  .admftr-fstep-2 { font-size: 11px; }
  .admftr-fstep-3 { font-size: 10px; }
  .admftr-fstep-4 { font-size: 10px; }
  .admftr-fstep-5 { font-size: 9px; }
}
