/* Site footer — clean dark premium */
.site-footer {
  --sf-bg: #0B1220;
  --sf-surface: rgba(255, 255, 255, 0.04);
  --sf-primary: #0699D8;
  --sf-sky: #38BDF8;
  --sf-teal: #14B8A6;
  --sf-text: #F8FAFC;
  --sf-muted: #94A3B8;
  --sf-line: rgba(148, 163, 184, 0.16);
  --sf-font: "Inter", system-ui, -apple-system, sans-serif;
  --sf-max: var(--page-max, 1200px);

  position: relative;
  margin-top: 4rem;
  padding: 3.5rem 0 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 0% 0%, rgba(6, 153, 216, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 20%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 80% 100%, rgba(20, 184, 166, 0.1), transparent 55%),
    var(--sf-bg);
  color: var(--sf-text);
  font-family: var(--sf-font);
}

.site-footer__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.35) 20%,
    rgba(6, 153, 216, 0.7) 50%,
    rgba(20, 184, 166, 0.35) 80%,
    transparent 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

.site-footer__shell {
  position: relative;
  z-index: 1;
  width: min(var(--sf-max), calc(100% - var(--page-gutter, 2.5rem)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.site-footer a {
  color: var(--sf-muted);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* —— Newsletter —— */
.site-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: end;
  padding: 1.75rem 1.75rem;
  border-radius: 0;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  backdrop-filter: blur(8px);
}

.site-footer__cta-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.site-footer__cta-accent {
  background: linear-gradient(120deg, #38BDF8, #14B8A6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__cta-text {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sf-muted);
}

.site-footer__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__form-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-footer__field {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
}

.site-footer__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-footer__input::placeholder {
  color: #64748B;
}

.site-footer__input:focus {
  border-color: rgba(6, 153, 216, 0.7);
  box-shadow: 0 0 0 3px rgba(6, 153, 216, 0.2);
}

.site-footer__submit {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #0699D8, #38BDF8);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.site-footer__submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.site-footer__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-footer__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.site-footer__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-footer__consent-box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  border-radius: 0;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(2, 6, 23, 0.4);
  position: relative;
}

.site-footer__checkbox:checked + .site-footer__consent-box {
  border-color: #0699D8;
  background: #0699D8;
}

.site-footer__checkbox:checked + .site-footer__consent-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.site-footer__consent-text {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--sf-muted);
}

.site-footer__consent-text a {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__consent-text a:hover {
  color: #BFDBFE;
}

.site-footer__form-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #FCA5A5;
}

.site-footer__form-error[hidden] {
  display: none;
}

/* —— Columns —— */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.site-footer__brand,
.site-footer__col {
  min-width: 0;
  max-width: 100%;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.site-footer__brand-link:hover {
  color: #fff;
  opacity: 0.92;
}

.site-footer__logo {
  display: grid;
  place-items: center;
}

.site-footer__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(100%, 220px);
  object-fit: contain;
}

.site-footer__brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-footer__brand-desc {
  margin: 0 0 1.15rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sf-muted);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 0;
  border: 1px solid var(--sf-line);
  background: rgba(255, 255, 255, 0.03);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__social-btn:hover {
  border-color: rgba(6, 153, 216, 0.55);
  color: #fff;
  background: rgba(6, 153, 216, 0.18);
}

.site-footer__col-title {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E2E8F0;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__links a {
  font-size: 0.9rem;
}

.site-footer__contacts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__contacts a,
.site-footer__address {
  font-size: 0.9rem;
  color: var(--sf-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer__write {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: 0;
  border: 1px solid rgba(6, 153, 216, 0.45);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(6, 153, 216, 0.12);
}

.site-footer__write:hover {
  background: rgba(6, 153, 216, 0.28);
  border-color: #0699D8;
  color: #fff;
}

/* —— Bottom —— */
.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--sf-line);
}

.site-footer__copy {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.8125rem;
  color: #64748B;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.site-footer__legal a {
  font-size: 0.8125rem;
}

.site-footer__top {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 0;
  border: 1px solid var(--sf-line);
  background: rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-footer__top:hover {
  background: rgba(6, 153, 216, 0.25);
  border-color: rgba(6, 153, 216, 0.55);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .site-footer__cta {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 2.5rem;
    padding: 2.5rem 0 1.25rem;
  }

  .site-footer__shell {
    gap: 2rem;
    width: min(100% - 1.5rem, var(--sf-max));
  }

  .site-footer__cta {
    padding: 1.25rem;
  }

  .site-footer__form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__field,
  .site-footer__input,
  .site-footer__submit {
    width: 100%;
  }

  .site-footer__submit {
    min-height: 48px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }

  .site-footer__brand,
  .site-footer__col--contacts {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-footer__top {
    margin-left: 0;
  }

  .site-footer__links a,
  .site-footer__contacts a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}
