/* Подвал сайта — общий для lab/, статей, 404 и лендингов EN/FR. Разметка — build_footer.py, логотип — lab/footer.svg.
   Самодостаточный: свои токены и сброс, не зависит от стилей страницы. Класс .foot оставлен для скриптов страниц
   (шапка светлеет над подвалом), поэтому правила идут от .foot.ft и перекрывают старые .foot из style.css / journal.css. */

.foot.ft {
  --ft-bg: #0e0f10;
  --ft-fg: #fff;
  --ft-2: rgba(255, 255, 255, .7);
  --ft-3: rgba(255, 255, 255, .52);
  --ft-rule: rgba(255, 255, 255, .1);
  --ft-red: #ff3c21;
  --ft-g: clamp(16px, 2.4vw, 40px);
  --ft-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0 0 calc(clamp(14px, 1.6vw, 28px) + env(safe-area-inset-bottom));
  border: 0;
  background: var(--ft-bg);
  color: var(--ft-fg);
  font: 400 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
:where(.ft) *, :where(.ft) *::before, :where(.ft) *::after { box-sizing: border-box; }
:where(.ft) :is(p, ul, address) { margin: 0; padding: 0; font-style: normal; }
:where(.ft) ul { list-style: none; }
:where(.ft) a { color: inherit; text-decoration: none; }
:where(.ft) svg { display: block; }
.ft a:focus-visible, .ft summary:focus-visible { outline: 2px solid var(--ft-red); outline-offset: 4px; border-radius: 6px; }
.ft__in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--ft-g); }
.ft__ar { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: translate .4s var(--ft-ease); }

/* ── 1. призыв ─────────────────────────────────────────── */
.ft__cta { padding-top: clamp(80px, 10vw, 152px); }
.ft__k { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ft-3); }
.ft__k::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--ft-red); }
.ft .ft__h { margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(42px, 7.4vw, 128px); font-weight: 200; line-height: .94; letter-spacing: -.05em; }
.ft__h span { display: block; color: rgba(255, 255, 255, .36); }
.ft__reach { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; margin-top: clamp(36px, 4.4vw, 64px); }
.ft__tel { display: block; font-size: clamp(30px, 3vw, 46px); font-weight: 300; line-height: 1; letter-spacing: -.035em; white-space: nowrap; transition: color .3s; }
.ft__tel small { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--ft-3); }
.ft__tel:hover { color: var(--ft-2); }
.ft__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ft__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .3s, border-color .3s, color .3s; }
.ft__btn:hover { border-color: var(--ft-fg); background: rgba(255, 255, 255, .06); }
.ft__bi { width: 18px; height: 18px; fill: currentColor; }
.ft__btn--main { padding: 0 28px; border-color: var(--ft-fg); background: var(--ft-fg); color: #111; }
.ft__btn--main:hover { background: #e7e7e4; border-color: #e7e7e4; }
.ft__btn--main:hover .ft__ar { translate: 4px 0; }

/* ── 2. три импульса IPLASER — разделитель ─────────────── */
.ft__trace { position: relative; height: 48px; margin-top: clamp(64px, 8vw, 112px); }
.ft__trace svg { width: 100%; height: 100%; overflow: visible; }
.ft__base-line { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.ft__bars { fill: rgba(255, 60, 33, .16); }
.ft__pulses { fill: none; stroke: var(--ft-red); stroke-width: 1.5; stroke-linejoin: miter; }
.ft__spark { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 16 1000; stroke-dashoffset: 16; opacity: 0; }
.ft__spark--glow { stroke: var(--ft-red); stroke-width: 7; stroke-dasharray: 22 1000; stroke-dashoffset: 22; }
.ft--on .ft__spark { animation: ft-spark 7s linear 1.2s infinite; }
.ft--on .ft__spark--glow { animation-name: ft-spark-glow; }
@keyframes ft-spark { 0% { stroke-dashoffset: 16; opacity: 1; } 62% { stroke-dashoffset: -1000; opacity: 1; } 62.1%, 100% { opacity: 0; } }
@keyframes ft-spark-glow { 0% { stroke-dashoffset: 22; opacity: .9; } 62% { stroke-dashoffset: -994; opacity: .9; } 62.1%, 100% { opacity: 0; } }
.ft__cap { position: absolute; left: 148px; top: 9px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--ft-3); }

/* ── 3. контакты и разделы ─────────────────────────────── */
.ft__grid { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: 48px; margin-top: clamp(44px, 5vw, 72px); }
.ft__t, .ft__col summary { display: block; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ft-3); }
.ft__contact { display: grid; align-content: start; gap: 22px; }
.ft__contact .ft__t { margin-bottom: -2px; }
.ft__addr { display: grid; gap: 8px; }
.ft__map { display: inline; max-width: 22ch; font-size: clamp(20px, 1.7vw, 25px); font-weight: 300; line-height: 1.25; letter-spacing: -.015em; transition: color .3s; }
.ft__map .ft__ar { display: inline-block; margin-left: 8px; vertical-align: .1em; color: var(--ft-red); }
.ft__addr { max-width: 340px; }
.ft__map:hover { color: var(--ft-2); }
.ft__map:hover .ft__ar { translate: 2px -2px; }
.ft__note { font-size: 13px; color: var(--ft-3); }
.ft__lines { display: grid; justify-items: start; gap: 4px; font-size: 17px; }
.ft__lines a { transition: color .3s; }
.ft__lines a:hover { color: var(--ft-2); }

.ft__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 24px; }
.ft__col summary { list-style: none; pointer-events: none; }
.ft__col summary::-webkit-details-marker { display: none; }
.ft__col ul { display: grid; gap: 11px; margin-top: 22px; }
.ft__col a { display: inline-flex; align-items: center; font-size: 15px; line-height: 1.3; color: var(--ft-2); transition: color .25s; }
.ft__col a::before { content: ""; width: 0; height: 1px; margin-right: 0; background: var(--ft-red); transition: width .35s var(--ft-ease), margin-right .35s var(--ft-ease); }
.ft__col a:hover, .ft__col a[aria-current] { color: var(--ft-fg); }
.ft__col a:hover::before, .ft__col a[aria-current]::before { width: 12px; margin-right: 8px; }

/* соцсети: тёмный подвал и светлая страница контактов */
.soc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.soc li { margin: 0; padding: 0; }
.soc__a { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; text-decoration: none; transition: background-color .3s, border-color .3s, color .3s; }
.soc__i { width: 19px; height: 19px; fill: currentColor; }
.soc__a:hover { border-color: #fff; background: #fff; color: #111; }
.soc__a--text { width: auto; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.soc__note { max-width: 40ch; margin: 0; font-size: 12px; line-height: 1.45; color: var(--ft-3, rgba(17, 17, 17, .55)); }
.soc--light .soc__a { display: inline-flex; gap: 10px; width: auto; height: 46px; padding: 0 18px 0 14px; border-color: #cfcfcb; border-radius: 999px; color: #111; font-size: 15px; font-weight: 500; }
.soc--light .soc__a--text { padding: 0 18px; }
.soc--light .soc__a:hover { border-color: #111; background: #111; color: #fff; }
.soc--light .soc__a:focus-visible { outline: 2px solid #ff3c21; outline-offset: 3px; }
.ct-soc { display: grid; gap: 14px; margin-top: 28px; }
.ct-soc .label { margin: 0; }
.ct-soc .soc__note { color: #8a8a88; }

/* ── 4. юридический блок ───────────────────────────────── */
.ft__legal { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: 20px 48px; margin-top: clamp(56px, 6vw, 96px); padding-top: 28px; border-top: 1px solid var(--ft-rule); }
.ft__warn { max-width: 26ch; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; color: var(--ft-fg); }
.ft__docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; align-content: start; font-size: 13px; line-height: 1.5; color: var(--ft-2); }
.ft__docs a { white-space: nowrap; }
.ft__docs a, .ft__bottom a:not(.ft__top) { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .28); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.ft__docs a:hover, .ft__bottom a:hover { color: var(--ft-fg); text-decoration-color: currentColor; }
.ft__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 36px; font-size: 13px; color: var(--ft-3); }
.ft__top { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ft-2); }
.ft__top:hover { color: var(--ft-fg); }
.ft__top:hover .ft__ar { translate: 0 -3px; }

/* ── 5. надпись innovatione: красная «i», остальные буквы белые, без эффектов ── */
.ft__mark { position: relative; margin: clamp(40px, 6vw, 96px) var(--ft-g) 0; aspect-ratio: 1099 / 140; pointer-events: none; user-select: none; }
.ft__w { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ft__w use { fill: #fff; }
.ft__w .ft-i { fill: var(--ft-red); }

/* ── планшет ───────────────────────────────────────────── */
@media (max-width: 1099px) {
  .ft__grid { grid-template-columns: 1fr; }
  .ft__contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 32px; }
  .ft__contact .ft__t { grid-column: 1 / -1; }
  .ft__contact .soc, .ft__contact .soc__note { grid-column: 1 / -1; }
  .ft__legal { grid-template-columns: 1fr; }
}

/* ── телефон: колонки — аккордеон ──────────────────────── */
@media (max-width: 759px) {
  .ft__cta { padding-top: 72px; }
  .ft .ft__h { font-size: clamp(40px, 11.6vw, 60px); }
  .ft__reach { display: grid; justify-content: stretch; align-items: start; gap: 24px; margin-top: 32px; }
  .ft__tel { font-size: clamp(30px, 9vw, 40px); }
  .ft__btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ft__btn { padding: 0 14px; }
  .ft__btn--main { grid-column: 1 / -1; }
  .ft__trace { margin-top: 56px; }
  .ft__cap { display: none; }
  .ft__grid { gap: 40px; margin-top: 36px; }
  .ft__contact { grid-template-columns: 1fr; gap: 20px; }
  .ft__nav { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ft-rule); }
  .ft__col { border-bottom: 1px solid var(--ft-rule); }
  .ft__col summary { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 19px 0; pointer-events: auto; cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-transform: none; color: var(--ft-fg); -webkit-tap-highlight-color: transparent; }
  .ft__col summary::after { content: ""; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: rotate .35s var(--ft-ease); }
  .ft__col[open] summary::after { rotate: 45deg; }
  .ft__col ul { gap: 14px; margin: 0; padding: 2px 0 24px; }
  .ft__col a { font-size: 16px; }
  .ft__legal { margin-top: 44px; padding-top: 0; border-top: 0; }
  .ft__docs { grid-template-columns: 1fr; }
  .ft__bottom { display: grid; justify-items: start; gap: 10px; margin-top: 28px; }
  .ft__top { margin: 6px 0 0; }
  .ft__mark { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft *, .ft *::before, .ft *::after { animation: none !important; transition: none !important; }
  .ft__spark { display: none; }
}

@media print {
  .ft__trace, .ft__mark, .ft__btns, .soc { display: none; }
  .foot.ft { background: none; color: #000; }
}
