/* Footer A · Editorial — каталог услуг + реквизиты (макет Footer Design, вариант A) */

.footer.footer--editorial {
  --fe-bg: #05060a;
  --fe-bg-2: #0a0c14;
  --fe-line: rgba(255, 255, 255, 0.08);
  --fe-line-2: rgba(255, 255, 255, 0.14);
  --fe-text: #f3f4f8;
  --fe-dim: rgba(243, 244, 248, 0.62);
  --fe-mute: rgba(243, 244, 248, 0.38);
  --fe-neon: oklch(0.72 0.21 245);
  --fe-neon-2: oklch(0.85 0.18 220);
  --fe-neon-soft: oklch(0.72 0.21 245 / 0.18);
  --fe-display: "Space Grotesk", system-ui, sans-serif;
  --fe-body: "Inter", system-ui, sans-serif;
  --fe-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--fe-bg);
  color: var(--fe-text);
  font-family: var(--fe-body);
  position: relative;
  overflow: hidden;
  border-top: none;
}

.footer.footer--editorial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--fe-neon) 20%,
    var(--fe-neon-2) 80%,
    transparent
  );
  opacity: 0.4;
  pointer-events: none;
}

.footer--editorial a {
  color: inherit;
  text-decoration: none;
}

.footer--editorial .footer-editorial {
  padding: clamp(48px, 7vw, 80px) 0 32px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.footer-editorial__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.footer-editorial__eyebrow {
  font-family: var(--fe-mono);
  font-size: 11px;
  color: var(--fe-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  column-span: all;
  margin-bottom: 22px;
}

/* Тот же логотип, что в шапке (.logo из style.css) */
.footer-editorial__brand-logo {
  margin-bottom: 28px;
}

.footer-editorial__brand-logo .logo {
  column-gap: 11px;
}

.footer-editorial__brand-logo .logo__title {
  color: #04aafd;
}

.footer-editorial__brand-logo .logo__title span {
  color: #34b2d0;
}

.footer-editorial__intro {
  font-size: 14px;
  color: var(--fe-dim);
  max-width: 320px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.footer-editorial__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--fe-line-2);
  border-radius: 100px;
  font-family: var(--fe-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fe-text);
  transition: border-color 200ms, color 200ms;
  width: fit-content;
}

@media (hover: hover) and (pointer: fine) {
  .footer-editorial__cta:hover {
    border-color: var(--fe-neon);
    color: var(--fe-neon-2);
  }
}

.footer-editorial__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fe-neon-2);
  box-shadow: 0 0 8px var(--fe-neon-2);
  flex-shrink: 0;
}

.footer-editorial__services {
  column-count: 3;
  column-gap: 40px;
}

.footer-editorial__svc-links {
  display: block;
}

.footer-editorial__svc-link {
  display: block;
  font-size: 14px;
  color: var(--fe-dim);
  padding: 6px 0;
  transition: color 180ms, transform 180ms;
  break-inside: avoid;
}

.footer-editorial__svc-link .num {
  font-family: var(--fe-mono);
  font-size: 10px;
  color: var(--fe-mute);
  margin-right: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .footer-editorial__svc-link:hover {
    color: var(--fe-text);
    transform: translateX(4px);
  }
  .footer-editorial__svc-link:hover .num {
    color: var(--fe-neon-2);
  }
}

.footer-editorial__empty {
  font-size: 14px;
  color: var(--fe-mute);
  margin: 0;
}

.footer-editorial__phone {
  font-family: var(--fe-display);
  font-weight: 600;
  font-size: clamp(13px, 1.2vw + 0.55rem, 24px);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--fe-text), var(--fe-neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.footer-editorial__phone-sub {
  font-family: var(--fe-mono);
  font-size: 10px;
  color: var(--fe-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-editorial__mail {
  display: block;
  font-size: 14px;
  color: var(--fe-dim);
  margin-bottom: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 180ms;
}

@media (hover: hover) and (pointer: fine) {
  .footer-editorial__mail:hover {
    color: var(--fe-text);
  }
}

.footer-editorial__address {
  font-size: 13px;
  color: var(--fe-dim);
  line-height: 1.6;
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--fe-line);
}

.footer-editorial__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-editorial__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--fe-line-2);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, border-color 200ms, transform 200ms, box-shadow 200ms;
}

.footer-editorial__social a img {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .footer-editorial__social a:hover {
    background: var(--fe-neon-2);
    border-color: var(--fe-neon-2);
    box-shadow: 0 0 24px var(--fe-neon-soft);
    transform: translateY(-2px);
  }
  .footer-editorial__social a:hover img {
    filter: brightness(0.15);
    opacity: 1;
  }
}

.footer-editorial__reqs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 24px clamp(16px, 3vw, 32px);
  background: var(--fe-bg-2);
  border: 1px solid var(--fe-line);
  border-radius: 16px;
}

.footer-editorial__reqs:empty {
  display: none;
}

.footer-editorial__reqs > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-editorial__reqs .k {
  font-family: var(--fe-mono);
  font-size: 10px;
  color: var(--fe-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-editorial__reqs .v {
  font-family: var(--fe-mono);
  font-size: 13px;
  color: var(--fe-text);
  word-break: break-word;
}

.footer-editorial__reqs .v.lg {
  font-family: var(--fe-body);
  font-size: 14px;
  font-weight: 500;
}

.footer-editorial__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--fe-line);
  font-family: var(--fe-mono);
  font-size: 11px;
  color: var(--fe-mute);
  letter-spacing: 0.1em;
}

.footer-editorial__bottom-note {
  max-width: 520px;
  line-height: 1.5;
}

.footer-editorial__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  justify-content: flex-end;
}

.footer--editorial .footer__privacy {
  color: var(--fe-mute);
  transition: color 180ms;
}

.footer--editorial .footer__sep {
  color: var(--fe-mute);
  opacity: 0.5;
}

.footer--editorial .footer__copyright {
  color: var(--fe-mute);
  margin-left: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .footer--editorial .footer__privacy:hover {
    color: var(--fe-text);
  }
}

@media (max-width: 1100px) {
  .footer-editorial__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-editorial__contact-col {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    align-items: start;
  }
  .footer-editorial__contact-col .footer-editorial__phone,
  .footer-editorial__contact-col .footer-editorial__phone-sub {
    grid-column: 1;
  }
  .footer-editorial__contact-col .footer-editorial__mail {
    grid-column: 1;
  }
  .footer-editorial__contact-col .footer-editorial__address {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .footer-editorial__contact-col .footer-editorial__social {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .footer-editorial__services {
    column-count: 2;
  }
  .footer-editorial__reqs {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-editorial__contact-col {
    grid-template-columns: 1fr;
  }
  .footer-editorial__contact-col .footer-editorial__social {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-editorial__services {
    column-count: 1;
  }
  .footer-editorial__reqs {
    grid-template-columns: 1fr;
  }
  .footer-editorial__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-editorial__bottom-links {
    justify-content: flex-start;
  }
}

/* Отмена «стеклянной» подложки страниц с кастомным хедером — у редакционного футера своя палитра */
body.page--home .footer.footer--editorial,
body.page--contact .footer.footer--editorial,
body.page--service .footer.footer--editorial {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--fe-bg);
}
