﻿/* Site-wide enhancements: cookie banner, footer extras */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 991px) {
  body.menu-open {
    overflow: hidden;
  }
}


.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  z-index: 1000001;
  padding: 16px 20px;
}

.cookie-banner .cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner h3 {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: #172B4D;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: #5E6C84;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .cookie-btn {
  flex: 1 1 160px;
}

.cookie-btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #0b2c5f;
  background: #0b2c5f;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.cookie-btn:hover {
  box-shadow: 0 6px 14px rgba(11, 44, 95, 0.25);
}

.cookie-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.cookie-btn.secondary {
  background: #ffffff;
  color: #0b2c5f;
}

.cookie-btn.ghost {
  border-color: #d9d9d9;
  background: #ffffff;
  color: #172B4D;
}

#header-placeholder {
  opacity: 1;
  transition: none;
  min-height: 72px;
}

body.header-loaded #header-placeholder {
  opacity: 1;
}

body.has-topbar .navbar {
  padding-top: 34px !important;
}

body.has-topbar #header-placeholder {
  min-height: 106px;
}

.header-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f6f8fc 0%, #eef3fb 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.header-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #5E6C84;
  flex-wrap: wrap;
}

.header-topbar .header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-topbar .header-contact a {
  color: #0b2c5f;
  text-decoration: none;
  font-weight: 600;
}

.header-topbar .header-contact a:hover {
  text-decoration: underline;
}

.header-topbar .header-socials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.header-topbar .header-socials a,
.header-topbar .header-socials span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #ffffff;
  border: 1px solid rgba(11, 44, 95, 0.2);
  color: #0b2c5f;
}

.header-topbar .header-socials span {
  border-style: dashed;
  color: #9aa5b1;
  cursor: not-allowed;
}

.header-topbar .header-socials a:hover {
  background: #0b2c5f;
  color: #ffffff;
}

#video-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(11, 44, 95, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(13, 60, 134, 0.12), transparent 50%),
    linear-gradient(135deg, #f6f9ff 0%, #ffffff 60%, #eef3fb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 1000000;
}

#video-preloader::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 28px;
  border: 1px solid rgba(11, 44, 95, 0.12);
  box-shadow: 0 20px 60px rgba(11, 44, 95, 0.16);
  pointer-events: none;
}

body.preloader-active {
  overflow: hidden;
}

#preloader-video {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 20px;
}

#video-preloader.finishing {
  animation: zoomInFadeOut 0.2s ease-in-out forwards;
}

@keyframes zoomInFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 33, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal.open {
  display: flex;
}

.cookie-modal .cookie-modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  padding: 26px 28px;
  box-shadow: 0 28px 70px rgba(10, 20, 40, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.cookie-modal h4 {
  margin: 0;
  font-size: 20px;
  color: #172B4D;
}

.cookie-modal p {
  margin: 0;
  font-size: 14px;
  color: #5E6C84;
}

.cookie-modal p a {
  color: #0b2c5f;
  text-decoration: none;
}

.cookie-modal p a:hover {
  text-decoration: underline;
}

.cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8edf5;
}

.cookie-switch:last-child {
  border-bottom: 0;
}

.cookie-switch label {
  font-size: 14px;
  color: #172B4D;
}

.cookie-switch input[type="checkbox"] {
  accent-color: #0b2c5f;
  width: 18px;
  height: 18px;
}

.cookie-modal .cookie-actions {
  margin-top: 16px;
  justify-content: flex-start;
}

.cookie-actions-primary {
  margin: 6px 0 2px 0;
  gap: 12px;
}

.cookie-settings {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #e6e8ee;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 29, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.privacy-modal.open {
  display: flex;
}

.privacy-modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 16px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 28px 80px rgba(10, 20, 40, 0.3);
  overflow-y: auto;
}

.privacy-modal-content h4 {
  margin: 0;
  font-size: 18px;
  color: #172B4D;
}

.privacy-modal-content p {
  margin: 0;
  font-size: 14px;
  color: #5E6C84;
}

.privacy-frame-wrap {
  flex: 1;
  min-height: 45vh;
  border-radius: 14px;
  border: 1px solid #e1e7f0;
  overflow: hidden;
  background: #f8fafc;
}

.privacy-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.privacy-links a {
  font-size: 13px;
  color: #0b2c5f;
  text-decoration: none;
}

.privacy-links a:hover {
  text-decoration: underline;
}

.privacy-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #172B4D;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 12px 14px;
}

.privacy-consent input {
  margin-top: 3px;
}

.privacy-actions {
  display: flex;
  justify-content: flex-end;
}

.privacy-actions .cookie-btn {
  min-width: 180px;
}

body.privacy-blocked {
  overflow: hidden;
}

.footer-extra {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px 0 26px 0;
  background: #fafbfc;
}

.footer.footer-generated {
  margin-top: 40px;
}

.footer-extra .footer-extra-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.footer-extra .footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-extra h4 {
  margin: 0 0 10px 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #172B4D;
}

.footer-extra p,
.footer-extra a {
  font-size: 14px;
  color: #5E6C84;
  text-decoration: none;
}

.footer-extra a:hover {
  color: #0b2c5f;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-links a {
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ffffff;
}

.footer-social-links span {
  padding: 8px 10px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  color: #98a2b3;
  background: #ffffff;
  cursor: not-allowed;
}

.footer-highlight {
  font-weight: 600;
  color: #172B4D;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-actions.apply-only {
  bottom: 24px;
}

.floating-actions.raised {
  bottom: 110px;
}

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #0b2c5f 0%, #0d3c86 100%);
  color: #ffffff;
  border: 1px solid rgba(11, 44, 95, 0.6);
  box-shadow: 0 10px 22px rgba(12, 45, 96, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.floating-actions a.secondary {
  background: #ffffff;
  color: #0b2c5f;
  border-color: #d9d9d9;
  box-shadow: 0 8px 18px rgba(23, 43, 77, 0.12);
}

.floating-actions a.apply-button {
  letter-spacing: 0.3px;
}

.floating-actions.apply-only .apply-button {
  padding: 12px 22px;
  font-size: 15px;
}

.floating-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 44, 95, 0.3);
}

body.preloader-active .floating-actions {
  display: none;
}

.inline-apply-section {
  max-width: 1100px;
  margin: 60px auto 80px auto;
  padding: 0 20px;
}

.inline-apply-title {
  font-size: clamp(24px, 4vw, 34px);
  margin: 6px 0 8px 0;
  color: #0b2c5f;
}

.inline-apply-desc {
  margin: 0 0 24px 0;
  color: #5E6C84;
}

.inline-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.inline-apply-form {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 36px rgba(12, 26, 54, 0.12);
}

.inline-field label {
  display: block;
  font-size: 13px;
  color: #5E6C84;
  margin-bottom: 6px;
}

.inline-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dfe1e6;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-field input:focus {
  outline: none;
  border-color: #0b2c5f;
  box-shadow: 0 0 0 3px rgba(11, 44, 95, 0.12);
}

.inline-apply-form .button {
  margin-top: 6px;
  background: linear-gradient(135deg, #0b2c5f 0%, #0d3c86 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.inline-calc-card {
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(12, 26, 54, 0.08);
  display: grid;
  gap: 12px;
}

.inline-calc-title {
  font-weight: 700;
  color: #0b2c5f;
}

.inline-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-calc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e1e7f0;
  padding: 12px;
}

.inline-calc-results span {
  display: block;
  font-size: 12px;
  color: #5E6C84;
}

.inline-calc-results strong {
  display: block;
  font-size: 17px;
  color: #0b2c5f;
}

.inline-calc-note {
  font-size: 12px;
  color: #5E6C84;
  margin: 0;
}

.nav-menu-4 .navigation-link[data-apply-link] {
  background: linear-gradient(135deg, #0b2c5f 0%, #0d3c86 100%);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 10px 16px !important;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(11, 44, 95, 0.25);
}

.nav-menu-4 .navigation-link[data-apply-link]:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 auto;
  }

  .floating-actions {
    right: 12px;
    bottom: 16px;
  }

  .floating-actions.raised {
    bottom: 130px;
  }

  .floating-actions.apply-only {
    bottom: 80px;
  }

  .floating-actions a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .inline-apply-grid {
    grid-template-columns: 1fr;
  }

  .inline-calc-grid {
    grid-template-columns: 1fr;
  }

  .inline-calc-results {
    grid-template-columns: 1fr;
  }

  .privacy-modal-content {
    padding: 16px;
    gap: 10px;
  }

  .privacy-frame-wrap {
    min-height: 40vh;
  }

  .cookie-modal .cookie-modal-content {
    padding: 20px;
  }

  .privacy-modal-content {
    padding: 18px;
  }

  body.has-topbar .navbar {
    padding-top: 48px !important;
  }

  body.has-topbar #header-placeholder {
    min-height: 128px;
  }

  .header-topbar-inner {
    padding: 8px 14px;
  }

  .header-topbar .header-contact .header-email {
    display: none;
  }

  #preloader-video {
    width: 90%;
    height: auto;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .header-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .floating-actions {
    right: 10px;
    bottom: 14px;
  }

  .floating-actions.apply-only {
    bottom: 70px;
  }

  .inline-apply-section {
    margin: 40px auto 60px auto;
  }

  .inline-apply-form {
    padding: 18px;
  }

  .inline-calc-card {
    padding: 16px;
  }

  .privacy-frame-wrap {
    min-height: 32vh;
  }
}

@media (max-width: 991px) {
  .nav-menu-4.mobile-nav .navigation-link[data-apply-link] {
    width: 100%;
    margin: 6px 0 0 0;
    padding: 14px 16px !important;
    box-shadow: 0 6px 14px rgba(11, 44, 95, 0.2);
  }
}

.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #5E6C84;
  line-height: 1.5;
}

.consent-label input {
  margin-top: 3px;
}

.consent-label a {
  color: #0052CC;
  text-decoration: none;
}

.consent-label a:hover {
  text-decoration: underline;
}

.popup-consent {
  grid-column: 1 / -1;
}

/* 2026 polish layer: stronger visual consistency + mobile-first tuning */
:root {
  --profin-navy: #0b2c5f;
  --profin-navy-2: #0d3c86;
  --profin-text: #172b4d;
  --profin-muted: #5e6c84;
  --profin-border: #e1e7f0;
  --profin-bg: #f7f9fc;
}

#video-preloader {
  background:
    radial-gradient(circle at 18% 22%, rgba(11, 44, 95, 0.1), transparent 38%),
    radial-gradient(circle at 78% 78%, rgba(13, 60, 134, 0.08), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

#video-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 30% 70%, rgba(11, 44, 95, 0.06), transparent 50%);
  pointer-events: none;
}

#preloader-video {
  width: min(96vw, 1060px);
  max-height: min(86vh, 860px);
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 44, 95, 0.08);
  box-shadow:
    0 24px 70px rgba(11, 44, 95, 0.2),
    0 8px 26px rgba(11, 44, 95, 0.14);
}

body.preloader-active #header-placeholder,
body.preloader-active .scroll-indicator {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#video-preloader.finishing {
  animation: zoomInFadeOut 0.26s ease forwards;
}

@keyframes zoomInFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.06);
    opacity: 0;
  }
}

a.button.w-inline-block,
button.button.w-inline-block {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.button.w-inline-block:hover,
button.button.w-inline-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 44, 95, 0.24);
}

.form-card,
.calc-card,
.intro-card,
.partner-card,
.inline-apply-form,
.inline-calc-card,
.steps-intro {
  border: 1px solid var(--profin-border);
  box-shadow: 0 16px 36px rgba(12, 26, 54, 0.1);
}

@media (min-width: 992px) {
  .form-card:hover,
  .calc-card:hover,
  .intro-card:hover,
  .partner-card:hover,
  .inline-apply-form:hover,
  .inline-calc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(12, 26, 54, 0.16);
  }
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.reveal-up.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-2 {
  transition-delay: 0.12s;
}

.reveal-delay-3 {
  transition-delay: 0.18s;
}

@media (max-width: 991px) {
  .xxl-heading {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.16;
  }

  .body-display {
    font-size: 15px;
    line-height: 1.62;
  }

  .form-wrapper,
  .calc-wrapper,
  .partners-wrapper,
  .inline-apply-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .form-card,
  .calc-card,
  .intro-card,
  .partner-card,
  .inline-apply-form,
  .inline-calc-card {
    border-radius: 16px;
  }

  .partners-hero {
    padding: 58px 16px 48px 16px !important;
  }

  .partners-hero .body-display {
    max-width: none;
  }

  .floating-actions {
    right: 10px;
    bottom: 12px;
    gap: 10px;
  }

  .floating-actions.apply-only {
    bottom: 74px;
  }

  .floating-actions.raised {
    bottom: 126px;
  }

  .floating-actions a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
  }

  #preloader-video {
    width: 94vw;
    max-height: 76vh;
    border-radius: 18px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .partners-hero-actions .button,
  .hero-actions .hero-button {
    width: 100%;
    justify-content: center;
  }

  .form-card,
  .calc-card {
    padding: 16px !important;
  }

  .floating-actions a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final polish + regression guards */
.project_quote.legacy-floating-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.project_quote {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.floating-actions {
  gap: 10px;
}

.floating-actions .floating-call {
  background: linear-gradient(135deg, #0b2c5f 0%, #0f4aa7 100%);
}

.floating-actions .apply-button {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fc 100%);
  color: #0b2c5f;
  border-color: rgba(11, 44, 95, 0.35);
}

.floating-actions.apply-only .apply-button {
  padding: 12px 22px;
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(11, 44, 95, 0.24);
}

.footer-extra {
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 44, 95, 0.07), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-top: 1px solid rgba(11, 44, 95, 0.12);
}

.footer {
  background: #f6f8fc;
  border-top: 1px solid rgba(11, 44, 95, 0.08);
}

.footer-extra .footer-col {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 44, 95, 0.12);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(11, 44, 95, 0.08);
}

.footer-social-links a,
.footer-social-links span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-transition-overlay {
  background: #ffffff;
  z-index: 999999;
}

body.page-is-transitioning {
  pointer-events: none;
}

#preloader-video {
  width: min(100vw, 1400px);
  max-height: min(92vh, 960px);
  box-shadow: 0 20px 60px rgba(11, 44, 95, 0.18);
}

/* Kontakt CTA */
.contact-apply-cta {
  margin: 0 auto 48px auto;
  max-width: 980px;
  padding: 0 18px;
}

.contact-quick-info {
  margin: 18px 0 28px 0;
  display: grid;
  gap: 10px;
}

.contact-quick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-quick-card {
  background: #ffffff;
  border: 1px solid rgba(11, 44, 95, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.contact-quick-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5E6C84;
  font-weight: 600;
}

.contact-quick-card strong,
.contact-quick-card a {
  color: #0b2c5f;
  font-weight: 600;
  text-decoration: none;
}

.contact-quick-note {
  font-size: 12px;
  color: #5E6C84;
}

.contact-apply-cta .contact-apply-inner {
  border-radius: 18px;
  padding: 24px 28px;
  background: radial-gradient(circle at 12% 18%, rgba(11, 44, 95, 0.08), transparent 55%), #ffffff;
  border: 1px solid rgba(11, 44, 95, 0.12);
  box-shadow: 0 16px 36px rgba(11, 44, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-apply-text {
  display: grid;
  gap: 8px;
  color: #172B4D;
}

.contact-apply-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b2c5f;
}

.contact-apply-text h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
}

.contact-apply-text p {
  margin: 0;
  color: #52627a;
  font-size: 14px;
}

.contact-apply-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-apply-button,
.contact-apply-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(11, 44, 95, 0.25);
}

.contact-apply-button {
  background: linear-gradient(135deg, #0b2c5f 0%, #0d3c86 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(11, 44, 95, 0.18);
}

.contact-apply-secondary {
  background: #ffffff;
  color: #0b2c5f;
}

@media (max-width: 640px) {
  .contact-apply-cta .contact-apply-inner {
    padding: 20px;
  }

  .contact-apply-actions {
    width: 100%;
  }

  .contact-apply-button,
  .contact-apply-secondary {
    width: 100%;
  }
}

/* Aktuelno search + cards */
body.page-aktuelno .all-journal-posts {
  gap: 20px;
}

body.page-aktuelno .journal-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

body.page-aktuelno .journal-cards,
body.page-aktuelno .journal-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.page-aktuelno .journal-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 44, 95, 0.12);
  background: #ffffff;
  height: 100%;
}

body.page-aktuelno .journal-card-image {
  min-height: 190px;
}

body.page-aktuelno .journal-card-image .hero-background-image {
  background-position: center !important;
  background-size: cover !important;
}

body.page-aktuelno .journal-card-description h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.page-aktuelno .journal-card-description .body-display {
  font-family: "Inter", "Poppins", sans-serif;
  line-height: 1.6;
}

body.page-aktuelno .journal-category-tag div {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.page-aktuelno .journal-card-info {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

body.page-aktuelno .journal-card-description h3 {
  font-size: 17px;
  margin: 0;
  color: #172B4D;
}

body.page-aktuelno .journal-card-description .body-display {
  color: #5E6C84;
  font-size: 13px;
}

body.page-aktuelno .outline-button.small {
  border-radius: 10px;
  font-weight: 600;
}

.aktuelno-search {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 44, 95, 0.12);
  background:
    radial-gradient(circle at 20% 18%, rgba(11, 44, 95, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 14px 30px rgba(11, 44, 95, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.aktuelno-search.is-active {
  box-shadow: 0 18px 40px rgba(11, 44, 95, 0.18);
  transform: translateY(-1px);
}

.aktuelno-search-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b2c5f;
  font-weight: 700;
}

.aktuelno-search-overlay {
  background: #ffffff;
  border: 1px solid rgba(11, 44, 95, 0.1);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.aktuelno-search.is-active .aktuelno-search-overlay {
  border-color: rgba(11, 44, 95, 0.18);
  box-shadow: 0 10px 24px rgba(11, 44, 95, 0.12);
}

.aktuelno-overlay-title {
  font-size: 12px;
  color: #5E6C84;
  letter-spacing: 0.03em;
}

.aktuelno-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.aktuelno-field {
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
}

.aktuelno-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5E6C84;
  font-weight: 600;
}

.aktuelno-search-row input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #dfe5ee;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aktuelno-search-row input:focus {
  outline: none;
  border-color: #0b2c5f;
  box-shadow: 0 0 0 3px rgba(11, 44, 95, 0.12);
}

.aktuelno-search-clear {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 44, 95, 0.2);
  background: #ffffff;
  color: #0b2c5f;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aktuelno-search-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 44, 95, 0.16);
}

.aktuelno-search-meta {
  font-size: 13px;
  color: #5E6C84;
}

.aktuelno-load-more {
  margin: 18px auto 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(11, 44, 95, 0.2);
  background: #ffffff;
  color: #0b2c5f;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(11, 44, 95, 0.12);
}

.aktuelno-load-more:hover {
  border-color: #0b2c5f;
  box-shadow: 0 12px 22px rgba(11, 44, 95, 0.18);
}

.aktuelno-empty {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed rgba(11, 44, 95, 0.25);
  border-radius: 12px;
  color: #5E6C84;
  text-align: center;
}

.aktuelno-card {
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: opacity, transform;
}

.aktuelno-card.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

@media (max-width: 767px) {
  .aktuelno-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .aktuelno-search-clear {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  body.page-aktuelno .journal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.page-aktuelno .journal-cards {
    grid-template-columns: 1fr;
  }
}

.loan-workbench {
  background:
    radial-gradient(circle at 18% 24%, rgba(11, 44, 95, 0.08), transparent 42%),
    linear-gradient(135deg, #f6f9ff 0%, #ffffff 62%);
  border: 1px solid rgba(11, 44, 95, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(10, 30, 60, 0.12);
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  gap: 14px;
}

.loan-workbench-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  color: #0b2c5f;
}

.loan-workbench-head p {
  margin: 6px 0 0 0;
  color: #4f5f78;
  font-size: 14px;
}

.loan-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.loan-range-item {
  background: #ffffff;
  border: 1px solid #dfe6f4;
  border-radius: 14px;
  padding: 12px 12px 10px 12px;
  display: grid;
  gap: 8px;
}

.loan-range-item span {
  font-size: 12px;
  color: #5e6c84;
}

.loan-range-item strong {
  color: #0b2c5f;
  font-size: 15px;
}

.loan-range-item input[type="range"] {
  width: 100%;
  accent-color: #0b2c5f;
}

.loan-workbench-results {
  border: 1px solid #dfe6f4;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.loan-workbench-results span {
  display: block;
  color: #5e6c84;
  font-size: 12px;
}

.loan-workbench-results strong {
  color: #0b2c5f;
  font-size: 20px;
}

.loan-workbench-note {
  margin: 0;
  color: #5e6c84;
  font-size: 12px;
}

body.page-aktuelno .grey-cover {
  display: none !important;
}

body.page-aktuelno .all-journal-posts {
  margin-left: 0 !important;
  min-height: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 88px !important;
}

body.page-aktuelno .all-journal-posts,
body.page-aktuelno .journal-cards,
body.page-aktuelno .journal-card,
body.page-aktuelno .journal-card-info,
body.page-aktuelno .w-dyn-list,
body.page-aktuelno .w-dyn-items,
body.page-aktuelno .w-dyn-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.page-aktuelno .journal-cards {
  grid-row-gap: 18px !important;
}

@media (max-width: 991px) {
  .loan-workbench-grid {
    grid-template-columns: 1fr;
  }

  .loan-workbench-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-actions {
    right: 10px;
    left: 10px;
    bottom: 12px;
    flex-direction: row;
    justify-content: center;
  }

  .floating-actions a {
    flex: 1 1 0;
    min-width: 0;
  }

  #preloader-video {
    width: 98vw;
    max-height: 78vh;
    border-radius: 16px;
  }
}

/* Footer redesign 2026 */
.footer-extra {
  padding: 32px 0 44px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 44, 95, 0.08), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(11, 44, 95, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #eef4ff 100%);
  border-top: 1px solid rgba(11, 44, 95, 0.12);
}

.footer-cta {
  max-width: 1200px;
  margin: 0 auto 18px auto;
  padding: 0 20px;
}

.footer-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(11, 44, 95, 0.12);
  box-shadow: 0 16px 36px rgba(11, 44, 95, 0.12);
  flex-wrap: wrap;
}

.footer-cta-text span {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0b2c5f;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-cta-text h3 {
  margin: 0 0 6px 0;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #172B4D;
}

.footer-cta-text p {
  margin: 0;
  color: #5E6C84;
  font-size: 14px;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(11, 44, 95, 0.2);
}

.footer-cta-primary {
  background: linear-gradient(135deg, #0b2c5f 0%, #0d3c86 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 44, 95, 0.2);
}

.footer-cta-secondary {
  background: #ffffff;
  color: #0b2c5f;
}

.footer-extra .footer-extra-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 20px;
}

.footer-extra .footer-col {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 44, 95, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(11, 44, 95, 0.08);
}

@media (max-width: 991px) {
  .footer-extra .footer-extra-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-cta-card {
    align-items: flex-start;
  }

  .footer-cta-actions {
    width: 100%;
  }

  .footer-cta-actions a {
    width: 100%;
  }

  .footer-extra .footer-extra-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer v3 - conflict-free redesign */
.footer.footer-modernized {
  display: block !important;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  border-top: 0 !important;
  margin-top: clamp(34px, 5vw, 62px);
}

.footer.footer-modernized > .footer-legacy-block {
  display: none !important;
}

.footer.footer-modernized > .footer-extra[data-footer-extra] {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(28px, 4.2vw, 48px) 0 clamp(20px, 3.4vw, 34px);
  border-top: 1px solid rgba(10, 34, 76, 0.16);
  background:
    radial-gradient(circle at 10% 15%, rgba(14, 63, 139, 0.22), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(12, 88, 168, 0.16), transparent 44%),
    linear-gradient(180deg, #edf3fd 0%, #f5f8ff 52%, #eef5ff 100%);
}

.footer.footer-modernized > .footer-extra[data-footer-extra]::before {
  content: '';
  position: absolute;
  inset: 16px auto auto 50%;
  width: min(1200px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(10, 34, 76, 0.24) 50%, transparent 100%);
  opacity: 0.55;
}

.footer.footer-modernized .footer-modern-shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.2vw, 24px);
  display: grid;
  gap: 16px;
}

.footer.footer-modernized .footer-modern-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

.footer.footer-modernized .footer-modern-brand,
.footer.footer-modernized .footer-modern-cta {
  border-radius: 18px;
  border: 1px solid rgba(9, 33, 73, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.95) 100%);
  box-shadow: 0 14px 34px rgba(12, 34, 72, 0.12);
  padding: clamp(16px, 2.2vw, 24px);
  display: grid;
  gap: 10px;
}

.footer.footer-modernized .footer-modern-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0e3f8b;
  font-weight: 800;
}

.footer.footer-modernized .footer-modern-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  color: #10284f;
}

.footer.footer-modernized .footer-modern-subtitle {
  margin: 10px 0 0;
  color: #3f5271;
  font-size: 14px;
  line-height: 1.55;
}

.footer.footer-modernized .footer-chip-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer.footer-modernized .footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 63, 139, 0.24);
  background: #ffffff;
  color: #103568;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer.footer-modernized .footer-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(12, 52, 110, 0.18);
}

.footer.footer-modernized .footer-modern-cta h4 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  color: #112c59;
}

.footer.footer-modernized .footer-modern-cta p {
  margin: 10px 0 14px;
  color: #41557a;
  font-size: 14px;
  line-height: 1.5;
}

.footer.footer-modernized .footer-modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer.footer-modernized .footer-modern-primary,
.footer.footer-modernized .footer-modern-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(14, 63, 139, 0.26);
  font-weight: 700;
  font-size: 13px;
}

.footer.footer-modernized .footer-modern-primary {
  background: linear-gradient(135deg, #0d3366 0%, #0f4aa7 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(13, 51, 102, 0.24);
}

.footer.footer-modernized .footer-modern-secondary {
  background: #ffffff;
  color: #103568;
}

.footer.footer-modernized .footer-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.footer.footer-modernized .footer-modern-card {
  border-radius: 16px;
  border: 1px solid rgba(9, 33, 73, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(12, 34, 72, 0.08);
  padding: 14px 15px;
  min-width: 0;
}

.footer.footer-modernized .footer-modern-card h5 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10284f;
}

.footer.footer-modernized .footer-modern-list {
  display: grid;
  gap: 7px;
}

.footer.footer-modernized .footer-modern-list span,
.footer.footer-modernized .footer-modern-list a {
  color: #3e5273;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer.footer-modernized .footer-modern-list a:hover {
  color: #0d3c86;
  text-decoration: underline;
}

.footer.footer-modernized .footer-modern-list strong {
  color: #1c355c;
}

.footer.footer-modernized .footer-modern-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer.footer-modernized .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(14, 63, 139, 0.22);
  background: #ffffff;
  color: #0d3c86;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.footer.footer-modernized .footer-social-link.is-disabled {
  border-style: dashed;
  color: #95a3ba;
  cursor: not-allowed;
}

.footer.footer-modernized .footer-modern-bottom {
  margin-top: 2px;
  padding: 11px 14px 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: #4b5f82;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .footer.footer-modernized .footer-modern-top {
    grid-template-columns: 1fr;
  }

  .footer.footer-modernized .footer-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer.footer-modernized > .footer-extra[data-footer-extra] {
    padding-bottom: 22px;
  }

  .footer.footer-modernized .footer-modern-grid {
    grid-template-columns: 1fr;
  }

  .footer.footer-modernized .footer-modern-actions {
    width: 100%;
  }

  .footer.footer-modernized .footer-modern-primary,
  .footer.footer-modernized .footer-modern-secondary {
    width: 100%;
  }

  .footer.footer-modernized .footer-modern-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Universal responsive hardening (phones/tablets/orientations/TV) */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.grid-wrapper > * {
  min-width: 0;
}

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
}

.w-slider,
.w-slider-mask,
.w-slide,
.w-nav,
.w-richtext {
  max-width: 100%;
}

@media (max-width: 420px) {
  .header-topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .floating-actions {
    right: 8px;
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .floating-actions a {
    min-height: 44px;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .header-topbar {
    display: none !important;
  }

  body.has-topbar .navbar {
    padding-top: 0 !important;
  }

  body.has-topbar #header-placeholder {
    min-height: 72px;
  }

  .floating-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: row;
  }

  .floating-actions a {
    min-height: 42px;
    padding: 10px 12px;
  }

  .cookie-modal .cookie-modal-content,
  .privacy-modal-content {
    max-height: 92vh;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .footer.footer-modernized .footer-modern-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer.footer-modernized .footer-modern-actions a {
    min-width: 132px;
  }
}

@media (min-width: 1800px) {
  .grid-wrapper {
    grid-template-columns: minmax(56px, 1fr) minmax(auto, 1680px) minmax(56px, 1fr) !important;
  }

  .header-topbar-inner {
    max-width: 1680px;
    font-size: 13px;
  }

  .footer.footer-modernized .footer-modern-shell {
    max-width: 1680px;
  }

  .footer.footer-modernized .footer-modern-title {
    font-size: clamp(24px, 1.6vw, 34px);
  }

  .footer.footer-modernized .footer-modern-subtitle,
  .footer.footer-modernized .footer-modern-cta p {
    font-size: 16px;
  }

  .footer.footer-modernized .footer-modern-list span,
  .footer.footer-modernized .footer-modern-list a {
    font-size: 14px;
  }

  .floating-actions a {
    min-height: 52px;
    font-size: 16px;
    padding: 14px 20px;
  }
}

@media (min-width: 2560px) {
  .grid-wrapper {
    grid-template-columns: minmax(72px, 1fr) minmax(auto, 1920px) minmax(72px, 1fr) !important;
  }

  .header-topbar-inner,
  .footer.footer-modernized .footer-modern-shell {
    max-width: 1920px;
  }
}

/* Final mobile overlap guards */
.footer.footer-modernized .footer-modern-brand,
.footer.footer-modernized .footer-modern-cta,
.footer.footer-modernized .footer-modern-card,
.loan-workbench,
.form-card,
.calc-card,
.contact-form-container {
  max-width: 100%;
  box-sizing: border-box;
}

.footer.footer-modernized .footer-modern-grid > *,
.footer.footer-modernized .footer-modern-top > * {
  min-width: 0;
}

@media (max-width: 991px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .floating-actions {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px !important;
  }

  .floating-actions.raised {
    bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  .floating-actions a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
