/* ============================================================
   OpticTrend — НОВЫЙ ФУТЕР (1×, прототип footer_v3.html)
   Всё scoped под .ot-footer — НЕ трогает глобальную тему lens4u.
   Откат — флаг $OT_NEW_FOOTER в footer.php (www/.new_footer_off | ?nf=0).
   ============================================================ */

.ot-footer {
  --otf-text: #1a1a1a;
  --otf-muted: #6b6b6b;
  --otf-soft: #8a8a8a;
  --otf-border: #e5e5e5;
  --otf-border-soft: #efefef;
  --otf-ai: #1c3d6e;
  --otf-ai-hover: #2a5a96;

  background: #fff;
  color: var(--otf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.ot-footer * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ot-footer a { color: inherit; text-decoration: none; }

.ot-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TOP: бренд + контакты + 4 колонки ссылок ---- */
.ot-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 36px;
}

/* Колонка 1: бренд + контакты */
.ot-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ot-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--otf-text);
}
.ot-footer__logo-eye {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}
.ot-footer__logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1;
}
.ot-footer__logo-sub {
  font-size: 9px;
  color: var(--otf-muted);
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: lowercase;
}

/* Контактный блок — простые строки без кружочков */
.ot-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ot-footer__contacts li {
  font-size: 13.5px;
  color: var(--otf-text);
  line-height: 1.45;
}
.ot-footer__contacts .ot-footer__label {
  font-size: 11px;
  color: var(--otf-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
}
.ot-footer__contacts a { color: var(--otf-text); transition: color 0.1s; }
.ot-footer__contacts a:hover { color: var(--otf-muted); }
.ot-footer__contacts .ot-footer__meta {
  color: var(--otf-soft);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* Telegram inline */
.ot-footer__tg { display: inline-flex; align-items: center; gap: 6px; color: var(--otf-text); }
.ot-footer__tg svg { width: 14px; height: 14px; color: var(--otf-muted); flex-shrink: 0; }

/* Яндекс-бейдж рейтинга */
.ot-footer__rating { margin-top: 2px; }
.ot-footer__rating iframe { border: 0; display: block; }

/* Колонки ссылок */
.ot-footer__col h4 {
  font-size: 11px;
  color: var(--otf-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin: 0 0 16px;
}
.ot-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ot-footer__col a {
  color: var(--otf-text);
  font-size: 13.5px;
  transition: color 0.1s;
}
.ot-footer__col a:hover { color: var(--otf-muted); }
.ot-footer__col a.ot-footer__ai { color: var(--otf-ai); font-weight: 500; }
.ot-footer__col a.ot-footer__ai:hover { color: var(--otf-ai-hover); }

/* На десктопе <details> = обычная колонка, summary скрыт */
.ot-footer__col details { border: none; }
.ot-footer__col details > summary { display: none; }
.ot-footer__col details > ul { display: flex !important; }

/* ---- BOTTOM: реквизиты + платёжки ---- */
.ot-footer__bottom {
  border-top: 1px solid var(--otf-border-soft);
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ot-footer__legal {
  font-size: 11.5px;
  color: var(--otf-soft);
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}
.ot-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.ot-footer__legal a { color: var(--otf-soft); transition: color 0.1s; }
.ot-footer__legal a:hover { color: var(--otf-text); }
.ot-footer__legal-row .ot-footer__div { color: #ccc; }

/* Платёжки — реальные PNG в ряд */
.ot-footer__payments {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ot-footer__payments img {
  height: 22px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.1s;
}
.ot-footer__payments img:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .ot-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 999px) {
  .ot-footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    row-gap: 32px;
  }
  .ot-footer__brand { grid-column: 1; grid-row: 1 / span 2; }
}
@media (max-width: 899px) {
  .ot-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 36px 0 28px;
  }
  .ot-footer__brand { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
  .ot-footer__inner { padding: 0 16px; }
  .ot-footer__top {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0 8px;
  }
  .ot-footer__brand {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--otf-border-soft);
    margin-bottom: 0;
  }

  /* Колонки → accordion */
  .ot-footer__col h4 { display: none; }
  .ot-footer__col details { border-bottom: 1px solid var(--otf-border-soft); }
  .ot-footer__col details > summary {
    display: flex !important;
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    justify-content: space-between;
    align-items: center;
  }
  .ot-footer__col details > summary::-webkit-details-marker { display: none; }
  .ot-footer__col details > summary::after {
    content: "+";
    font-size: 18px;
    color: var(--otf-soft);
    line-height: 1;
    font-weight: 400;
  }
  .ot-footer__col details[open] > summary::after { content: "−"; }
  .ot-footer__col details > ul { padding-bottom: 14px; }
  .ot-footer__col details:not([open]) > ul { display: none !important; }

  .ot-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 24px;
  }
  .ot-footer__payments { gap: 10px; }
}
