/* ==========================================================
   FOOTER — DARK BLUE PREMIUM THEME
   Под HTML: <footer id="footer" class="dt-footer">
   Фон: #111827 → #0f172a
   Акцент: синяя тема
   Ограничение ширины: 1360px
   ========================================================== */

#footer {
  --footer-bg-start: #111827;
  --footer-bg-end: #0f172a;

  --footer-text: #f8fafc;
  --footer-text-soft: #cbd5e1;
  --footer-text-muted: #94a3b8;

  --footer-accent: #60a5fa;
  --footer-accent-hover: #93c5fd;
  --footer-accent-strong: #2563eb;
  --footer-accent-strong-hover: #1d4ed8;
  --footer-accent-active: #1e40af;
  --footer-accent-soft: rgba(37, 99, 235, 0.12);
  --footer-accent-line: rgba(96, 165, 250, 0.26);

  --footer-panel: rgba(255, 255, 255, 0.045);
  --footer-panel-hover: rgba(255, 255, 255, 0.075);

  --footer-line: rgba(255, 255, 255, 0.1);
  --footer-line-strong: rgba(255, 255, 255, 0.18);

  --footer-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.18);

  --footer-shadow-hover:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.22);

  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 0;
  color: var(--footer-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-top: 1px solid var(--footer-line);
  font-family: var(--ax-font-body, "Inter", "Segoe UI", system-ui, sans-serif);
}

#footer,
#footer * {
  box-sizing: border-box;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 18%, rgba(96, 165, 250, 0.1), transparent 30%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 140px),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 120px);
  opacity: 1;
}

#footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.7;
}

#footer > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

#footer .dt-container {
  width: min(100% - clamp(20px, 4vw, 48px), 1360px);
  margin-inline: auto;
}


/* ==========================================================
   BASE TEXT
   ========================================================== */

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
#footer p,
#footer ul,
#footer ol,
#footer li {
  margin-top: 0;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  color: #ffffff;
  font-family: var(--ax-font-heading, "Montserrat", "Inter", sans-serif);
}

#footer p,
#footer li,
#footer span {
  color: var(--footer-text-soft);
}

#footer strong,
#footer b {
  color: #ffffff;
}

#footer ul,
#footer ol {
  padding: 0;
  list-style: none;
}

#footer a {
  color: var(--footer-text-soft);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

#footer a:hover,
#footer a:focus-visible {
  color: var(--footer-accent);
}


/* ==========================================================
   TOP CTA
   ========================================================== */

#footer .dt-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

#footer .dt-footer__cta,
#footer .dt-footer__proof,
#footer .dt-footer__col,
#footer .dt-seo-footer__content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    var(--footer-panel);
  border: 1px solid var(--footer-line);
  border-radius: 24px;
  box-shadow: var(--footer-shadow);
  backdrop-filter: blur(12px);
}

#footer .dt-footer__top:hover,
#footer .dt-footer__col:hover,
#footer .dt-seo-footer__content:hover {
  border-color: var(--footer-accent-line);
  box-shadow: var(--footer-shadow-hover);
}

#footer .dt-footer__cta {
  padding: clamp(22px, 3vw, 32px);
}

#footer .dt-footer__cta h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#footer .dt-footer__cta p {
  margin: 0;
  color: var(--footer-text-soft);
  font-size: 15px;
  line-height: 1.72;
}

#footer .dt-footer__proof {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 28px);
}

#footer .dt-footer__proof-item {
  color: #bfdbfe;
  background: var(--footer-accent-soft);
  border: 1px solid var(--footer-accent-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}


/* ==========================================================
   MAIN GRID
   ========================================================== */

#footer .dt-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 18px;
}

#footer .dt-footer__col {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 28px);
}

#footer .dt-footer__col h4 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}

#footer .dt-footer__block + .dt-footer__block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--footer-line);
}


/* ==========================================================
   MENU
   ========================================================== */

#footer .dt-footer__menu {
  display: grid;
  gap: 10px;
}

#footer .dt-footer__menu-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .dt-footer__menu a {
  display: block;
  color: var(--footer-text-soft);
  font-size: 15px;
  line-height: 1.6;
}

#footer .dt-footer__menu a:hover,
#footer .dt-footer__menu a:focus-visible {
  color: var(--footer-accent);
}


/* ==========================================================
   SOCIAL
   ========================================================== */

#footer .dt-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

#footer .dt-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--footer-accent);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--footer-line);
  border-radius: 14px;
  font-size: 21px;
}

#footer .dt-footer__social a:hover,
#footer .dt-footer__social a:focus-visible {
  color: #ffffff;
  background: var(--footer-accent-strong);
  border-color: var(--footer-accent-strong);
  transform: translateY(-2px);
}

#footer .dt-footer__social-actions {
  display: grid;
  gap: 10px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

#footer .dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

#footer .dt-btn:hover,
#footer .dt-btn:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #2563eb;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
}

#footer .dt-btn--primary,
#footer .dt-footer__social-actions a.dt-btn,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--primary,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--dark {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  border-color: #2563eb !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28) !important;
}

#footer .dt-btn--primary:hover,
#footer .dt-btn--primary:focus-visible,
#footer .dt-footer__social-actions a.dt-btn:hover,
#footer .dt-footer__social-actions a.dt-btn:focus-visible,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--primary:hover,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--primary:focus-visible,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--dark:hover,
#footer .dt-footer__social-actions a.dt-btn.dt-btn--dark:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36) !important;
}

#footer .dt-btn--dark {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

#footer .dt-btn--dark:hover,
#footer .dt-btn--dark:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #2563eb;
}

#footer .dt-btn--secondary,
#footer .dt-btn--outline {
  color: var(--footer-accent) !important;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--footer-accent-line);
}

#footer .dt-btn--secondary:hover,
#footer .dt-btn--secondary:focus-visible,
#footer .dt-btn--outline:hover,
#footer .dt-btn--outline:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #2563eb;
}


/* ==========================================================
   CONTACTS
   ========================================================== */

#footer .dt-footer__contact-list {
  display: flex;
  flex-direction: column;
}

#footer .dt-footer__contact-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--footer-line);
}

#footer .dt-footer__contact-row:last-child {
  border-bottom: 0;
}

#footer .dt-footer__contact-label {
  color: var(--footer-text-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

#footer .dt-footer__contact-text,
#footer .dt-footer__contact-link {
  color: var(--footer-text-soft);
  font-size: 15px;
  line-height: 1.62;
  word-break: break-word;
}

#footer .dt-footer__contact-link {
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
}

#footer .dt-footer__contact-link:hover,
#footer .dt-footer__contact-link:focus-visible {
  color: var(--footer-accent);
  border-color: rgba(96, 165, 250, 0.42);
}

#footer .dt-footer__contact-link--phone {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  border-bottom: 0;
}

#footer .dt-footer__contact-link--phone:hover,
#footer .dt-footer__contact-link--phone:focus-visible {
  color: var(--footer-accent) !important;
}


/* ==========================================================
   ABOUT
   ========================================================== */

#footer .dt-footer__seo p {
  margin: 0 0 12px;
  color: var(--footer-text-soft);
  font-size: 15px;
  line-height: 1.76;
}

#footer .dt-footer__seo strong {
  color: #ffffff;
}

#footer .dt-footer__note {
  margin-top: 18px;
  padding: 16px 17px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--footer-line);
  border-radius: 18px;
}

#footer .dt-footer__note p {
  margin: 0;
  color: var(--footer-text-muted);
  font-size: 13px;
  line-height: 1.65;
}


/* ==========================================================
   UTILITY LINKS
   ========================================================== */

#footer .dt-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--footer-line);
}

#footer .dt-footer__links a {
  color: var(--footer-text-soft);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

#footer .dt-footer__links a:hover,
#footer .dt-footer__links a:focus-visible {
  color: var(--footer-accent);
}


/* ==========================================================
   BOTTOM
   ========================================================== */

#footer .dt-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding: 0 0 26px;
  color: var(--footer-text-muted);
  border-top: 1px solid var(--footer-line);
  font-size: 13px;
  line-height: 1.6;
}

#footer .dt-footer__copy,
#footer .dt-footer__author {
  color: var(--footer-text-muted);
}

#footer .dt-footer__copy a,
#footer .dt-footer__author a {
  color: var(--footer-text-soft);
}

#footer .dt-footer__copy a:hover,
#footer .dt-footer__author a:hover,
#footer .dt-footer__copy a:focus-visible,
#footer .dt-footer__author a:focus-visible {
  color: var(--footer-accent);
}

#footer .dt-footer__author i {
  margin-right: 6px;
}


/* ==========================================================
   SEO FOOTER
   ========================================================== */

#footer .dt-seo-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 30px;
  background: transparent;
}

#footer .dt-seo-footer__content {
  padding: clamp(22px, 3vw, 32px);
}

#footer .dt-seo-footer__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.3rem, 1.08rem + 0.9vw, 1.8rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#footer .dt-seo-footer__text h3 {
  margin: 22px 0 10px;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
}

#footer .dt-seo-footer__text p,
#footer .dt-seo-footer__text ul,
#footer .dt-seo-footer__keywords {
  margin: 0 0 12px;
  color: var(--footer-text-soft);
  font-size: 15px;
  line-height: 1.8;
}

#footer .dt-seo-footer__text ul {
  padding-left: 20px;
  list-style: disc;
}

#footer .dt-seo-footer__text li {
  margin-bottom: 8px;
  color: var(--footer-text-soft);
}

#footer .dt-seo-footer__keywords {
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 14px;
  color: var(--footer-text-muted);
  border-top: 1px solid var(--footer-line);
  font-size: 13px;
}

#footer .dt-seo-footer__keywords strong {
  color: #ffffff;
}


/* ==========================================================
   ACCENT LINKS
   ========================================================== */

#footer .accent-link,
#footer .footer-accent,
#footer .site-footer__accent,
#footer a.is-accent {
  color: var(--footer-accent);
}

#footer .accent-link:hover,
#footer .footer-accent:hover,
#footer .site-footer__accent:hover,
#footer a.is-accent:hover {
  color: var(--footer-accent-hover);
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

#footer .dt-btn:focus-visible,
#footer a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.55);
  outline-offset: 4px;
}

#footer .dt-footer__col:focus-within,
#footer .dt-seo-footer__content:focus-within {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(96, 165, 250, 0.18);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  #footer .dt-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  #footer .dt-footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  #footer .dt-footer__top {
    grid-template-columns: 1fr;
  }

  #footer .dt-footer__main {
    grid-template-columns: 1fr;
  }

  #footer .dt-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  #footer .dt-container {
    width: min(100% - 20px, 1360px);
  }

  #footer {
    padding-top: 28px;
  }

  #footer .dt-footer__cta,
  #footer .dt-footer__proof,
  #footer .dt-footer__col,
  #footer .dt-seo-footer__content {
    padding: 20px 18px;
    border-radius: 18px;
  }

  #footer .dt-footer__menu-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #footer .dt-footer__contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #footer .dt-footer__links {
    justify-content: flex-start;
  }

  #footer .dt-seo-footer {
    padding-bottom: 22px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  #footer a,
  #footer .dt-btn,
  #footer .dt-footer__social a {
    transition: none;
  }

  #footer a:hover,
  #footer .dt-btn:hover,
  #footer .dt-footer__social a:hover {
    transform: none;
  }
}