/**
 * Responsive overrides - mobile, tablet, laptop, desktop
 * Breakpoints: 479 | 767 | 1023 | 1199 | 1200+
 */

/* ─── Laptop (1024-1199px) ─── */
@media (max-width: 1199px) {
  :root {
    --gutter: clamp(20px, 5vw, 48px);
    --header-clearance: 120px;
  }

  .site-header {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: 1191px;
    margin: 0 auto;
    top: 12px;
    transform: none;
  }

  .header-card {
    min-height: 0;
    padding: 0 14px 0;
  }

  /* Hide sub-bar in header flow; show in open menu on small screens only */
  @media (max-width: 767px) {
    .nav-sub {
      display: none !important;
    }
  }

  .nav-drawer .nav-main,
  .nav-drawer .nav-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px 12px;
    min-height: 64px;
    gap: 12px;
  }

  .logo {
    width: auto;
    height: auto;
    min-width: 0;
    flex: 1;
  }

  .logo-icon-part {
    width: auto;
    max-width: min(200px, 56vw);
    height: auto;
    margin-left: 0;
    margin-top: 0;
  }

  .nav-toggle {
    flex-shrink: 0;
    margin-left: 0;
  }

  /* Mobile menu overlay - does not stretch page content */
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  html.nav-open body {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: var(--scroll-lock-top, 0);
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 28, 44, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
  }

  body.nav-open > *:not(.site-header):not(.back-to-top) {
    pointer-events: none;
  }

  .site-header.nav-open {
    z-index: 1001;
  }

  .site-header.nav-open .header-card {
    overflow: visible;
  }

  .site-header.nav-open .nav-sub {
    display: none !important;
  }

  .nav-drawer {
    display: contents;
  }

  .site-header.nav-open .nav-drawer {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 12px;
    right: 12px;
    top: var(--nav-menu-top, 80px);
    max-height: calc(100dvh - var(--nav-menu-top, 80px) - 16px);
    margin: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
    background: var(--navy);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }

  .site-header.nav-open .nav-main,
  .site-header.nav-open .nav-phone {
    display: flex !important;
    position: static;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .site-header.nav-open .nav-phone {
    margin-top: auto;
    padding: 16px 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
  }

  .site-header.nav-open .nav-links {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 0;
  }

  .site-header.nav-open .nav-links > li {
    width: 100%;
    position: relative;
  }

  .site-header.nav-open .nav-links > .nav-item.has-dropdown {
    position: relative !important;
  }

  .site-header.nav-open .nav-links a,
  .site-header.nav-open .nav-dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 10px;
    font-size: 17px;
    border-radius: 8px;
  }

  .site-header.nav-open .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-header.nav-open .nav-links a:hover,
  .site-header.nav-open .nav-links a.active,
  .site-header.nav-open .nav-dropdown-toggle:hover,
  .site-header.nav-open .nav-dropdown-toggle.active,
  .site-header.nav-open .has-dropdown.is-open .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }

  .site-header.nav-open .nav-main .nav-item.has-dropdown .nav-dropdown,
  .site-header.nav-open .nav-item.has-dropdown .nav-dropdown,
  .site-header.nav-open .nav-dropdown {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 4px 0 10px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    z-index: auto !important;
  }

  .site-header.nav-open .nav-dropdown::before {
    display: none !important;
  }

  .site-header.nav-open .nav-dropdown-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 16px;
    width: 100%;
  }

  .site-header.nav-open .nav-dropdown-col {
    width: 100%;
  }

  .site-header.nav-open .nav-dropdown-heading {
    color: var(--white) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 6px;
  }

  .site-header.nav-open .nav-dropdown-heading:hover {
    color: var(--white) !important;
    opacity: 0.85 !important;
  }

  .site-header.nav-open .nav-dropdown-list {
    width: 100%;
  }

  .site-header.nav-open .nav-dropdown-list a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    padding: 8px 10px !important;
    white-space: normal !important;
  }

  .site-header.nav-open .nav-dropdown-list a:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header.nav-open .nav-dropdown--simple {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
    left: auto !important;
  }

  .site-header.nav-open .nav-dropdown--simple .nav-dropdown-list a {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .nav-sub {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    gap: 10px 14px;
    border-radius: 14px;
  }

  .nav-sub-address {
    display: none;
  }

  .nav-social {
    margin-left: auto;
    margin-right: 0;
    gap: 16px;
  }

  .btn-consultation {
    width: 100%;
    margin-left: 0;
    font-size: 16px;
    padding: 8px 14px;
  }

  .hero {
    min-height: auto;
    top: 0;
    margin-top: -30px;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      105deg,
      rgba(241, 242, 244, 0.88) 0%,
      rgba(241, 242, 244, 0.65) 42%,
      rgba(241, 242, 244, 0.2) 70%,
      transparent 100%
    );
  }

  .hero-bg {
    z-index: 0;
  }

  .hero-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: var(--header-clearance, 188px) max(20px, var(--gutter)) 56px;
    gap: 32px;
    box-sizing: border-box;
  }

  .hero-content {
    position: relative;
    left: auto;
    top: 12px;
    width: 100%;
    max-width: 560px;
    margin: 0;
    text-align: center;
    z-index: 2;
  }

  .hero-content h1 {
    max-width: none;
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.15;
  }

  .hero-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc br {
    display: none;
  }

  .hero-btns {
    justify-content: center;
  }

  .quote-form {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 400px;
    align-self: center;
    margin: 0;
  }

  .services-track {
    display: flex;
    width: max-content;
    margin: 0;
    justify-content: flex-start;
    transform: translateX(0);
  }

  .service-card {
    flex: 0 0 min(389px, calc(100vw - var(--gutter) * 2 - 48px));
    width: min(389px, calc(100vw - var(--gutter) * 2 - 48px));
  }

  .services-carousel {
    overflow: hidden;
  }

  .services-carousel--slider .service-card {
    flex: 0 0 calc((100cqw - 24px) / 2);
    width: calc((100cqw - 24px) / 2);
    max-width: none;
  }

  .services-nav {
    display: flex;
  }

  .freedom {
    min-height: 720px;
    align-items: flex-end;
  }

  .freedom::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.82) 0%,
      rgba(5, 28, 44, 0.45) 45%,
      rgba(5, 28, 44, 0.75) 100%
    );
  }

  .freedom-visual {
    z-index: 1;
  }

  .freedom-inner {
    position: relative;
    z-index: 3;
    justify-content: center;
    padding: 64px var(--gutter);
  }

  .freedom-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 28px 24px;
    max-width: 560px;
    background: rgba(5, 28, 44, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
  }

  .why-header,
  .gadgets-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-intro,
  .gadgets-intro {
    margin-left: 0;
    max-width: none;
    padding-top: 0;
  }

  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials-right {
    min-height: 320px;
  }

  .uk-map {
    right: 0;
    width: min(90%, 480px);
  }

  .cta-inner {
    padding-right: min(46%, 380px);
  }

  .cta-person {
    height: 280px;
    right: 16px;
    transform: translateY(-8%);
    max-width: 45%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid,
  .gadgets-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-logo-link {
    margin: 0 auto;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px 64px;
  }

  .contact-bar-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact-bar {
    padding: 24px 28px;
    max-width: 100%;
  }

  .footer-legal {
    margin-top: 22px;
  }

  .footer-legal p {
    font-size: 12px;
    line-height: 1.45;
  }

  .footer-copy {
    font-size: 13px;
    padding: 14px 0 20px;
  }
}

/* ─── Desktop services grid (1200px+) ─── */
@media (min-width: 1200px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-main,
  .nav-phone {
    display: flex !important;
  }

  .nav-main {
    flex: 1;
    min-width: 0;
  }

  .nav-top {
    gap: clamp(12px, 1.5vw, 24px);
  }

  .nav-links a {
    font-size: 18px;
  }

  .header-card {
    min-height: 136px;
    padding: 0 10px 10px;
  }

  .services-carousel:not(.services-carousel--slider) {
    overflow: visible;
  }

  .services-carousel:not(.services-carousel--slider) .services-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 389px));
    gap: 24px;
    width: 100%;
    max-width: 1221px;
    justify-content: center;
    transform: none !important;
  }

  .services-carousel:not(.services-carousel--slider) .service-card {
    flex: none;
    width: 100%;
    max-width: 389px;
  }

  .services-carousel:not(.services-carousel--slider) .services-nav {
    display: none;
  }

  .services-carousel--slider .services-track {
    display: flex;
    width: max-content;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
  }

  .services-carousel--slider .service-card {
    flex: 0 0 calc((100cqw - 48px) / 3);
    width: calc((100cqw - 48px) / 3);
    max-width: none;
  }

  .services-carousel--slider .services-nav {
    display: flex;
  }
}

/* ─── Tablet portrait (768-1023px) ─── */
@media (max-width: 1023px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .why-grid {
    min-height: auto;
  }

  .why-panel {
    min-height: auto;
  }

  #why .why-grid {
    padding: 40px 24px 36px;
    column-gap: 40px;
    row-gap: 36px;
  }

  #why .why-item,
  #why .why-item:nth-child(1),
  #why .why-item:nth-child(2),
  #why .why-item:nth-child(3),
  #why .why-item:nth-child(4) {
    gap: 16px;
  }

  #why .why-item-icon,
  #why .why-item:nth-child(2) .why-item-icon,
  #why .why-item:nth-child(3) .why-item-icon,
  #why .why-item:nth-child(4) .why-item-icon,
  #why .why-item-icon img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  #why .why-item-copy {
    max-width: none;
  }

  .gadgets-grid {
    gap: 20px;
  }

  .testimonial-card {
    min-height: auto;
  }

  .hear-content h2 {
    font-size: 34px;
    line-height: 1.15;
  }
}

/* ─── Mobile (≤767px) ─── */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --header-clearance: 78px;
  }

  /* ── Header mobile ── */
  .site-header {
    left: 12px;
    right: 12px;
    width: auto;
    top: 10px;
    transform: none;
  }

  .header-card {
    border-radius: 16px;
    min-height: 0;
    padding: 0 12px 0;
  }

  /* Compact header - red sub-bar moves into open menu only */
  .nav-sub {
    display: none !important;
  }

  .site-header.nav-open .nav-sub {
    display: none !important;
  }

  .site-header.nav-open .btn-consultation {
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
  }

  .nav-top {
    padding: 14px 4px 10px;
    min-height: 56px;
  }

  .logo-icon-part {
    max-width: min(180px, 58vw);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }

  .site-header.nav-open .nav-toggle {
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* ── Hero mobile ── */
  .hero {
    top: 0;
    min-height: auto;
    overflow: hidden;
    background: #f1f2f4;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(241, 242, 244, 0.94) 0%,
      rgba(241, 242, 244, 0.9) 38%,
      rgba(241, 242, 244, 0.72) 62%,
      rgba(241, 242, 244, 0.35) 85%,
      rgba(241, 242, 244, 0.15) 100%
    );
  }

  .hero-bg {
    object-position: 62% 20%;
    z-index: 1;
    opacity: 1;
  }

  .hero-stage {
    position: relative;
    z-index: 2;
    align-items: stretch;
    padding: var(--header-clearance) 20px 48px;
    gap: 28px;
  }

  .hero-content {
    text-align: center;
    max-width: none;
    padding: 20px 18px 22px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(5, 28, 44, 0.08);
  }

  .hero-sub {
    color: var(--red);
    font-size: 16px;
    margin-bottom: 8px;
  }

  .hero-content h1 {
    color: var(--navy);
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.12;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
  }

  .hero-desc {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.4;
    max-width: none;
    margin-bottom: 22px;
    padding: 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 17px;
    border-radius: 10px;
  }

  .quote-form {
    width: 100%;
    max-width: none;
    align-self: stretch;
    margin: 0;
    padding: 22px 20px 24px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(5, 28, 44, 0.2);
  }

  .quote-form h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .quote-form .field {
    margin-bottom: 18px;
  }

  .quote-form .field-message {
    margin-bottom: 22px;
  }

  .quote-form .field-label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .quote-form .field input,
  .quote-form .field select {
    height: 44px;
    font-size: 14px;
    border-radius: 10px;
  }

  .quote-form .field textarea {
    height: 96px;
    font-size: 14px;
    border-radius: 10px;
    padding: 12px 16px;
  }

  .btn-quote-submit {
    width: 100%;
    max-width: none;
    padding: 12px 20px;
    font-size: 17px;
    border-radius: 10px;
  }

  .stats {
    padding: 32px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-height: 110px;
    padding: 16px 12px;
    text-align: left;
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-card p {
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
  }

  .stat-card--trustpilot .stat-trustpilot-label {
    align-items: flex-start;
  }

  .stat-trustpilot-logo {
    height: 24px;
    max-width: 88px;
  }

  .stat-years {
    align-items: flex-start;
    text-align: left;
  }

  .stat-years .stat-num,
  .stat-years .stat-small {
    font-size: 22px;
  }

  .stat-years-sub {
    font-size: 13px;
    margin-top: 4px;
    text-align: left;
  }

  .freedom {
    min-height: min(85vh, 640px);
    align-items: center;
  }

  .freedom::after {
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.88) 0%,
      rgba(5, 28, 44, 0.5) 42%,
      rgba(5, 28, 44, 0.82) 100%
    );
  }

  .freedom-visual {
    object-position: center 20%;
    opacity: 0.9;
  }

  .freedom-inner {
    padding: 48px 20px 56px;
    width: 100%;
  }

  .freedom-content {
    width: 100%;
    max-width: none;
    padding: 24px 18px 26px;
    background: rgba(5, 28, 44, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }

  .freedom-content h2 {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }

  .freedom-content p {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.95);
  }

  .freedom-content .btn-red {
    display: inline-flex;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 20px;
  }

  .services,
  .why-us,
  .how-it-works,
  .gadgets,
  .testimonials {
    padding: 56px 0 64px;
  }

  .services-header h2,
  .why-header-left h2,
  .gadgets-header-left h2,
  .hear-content h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .service-card {
    flex: 0 0 min(340px, calc(100vw - var(--gutter) * 2 - 32px));
    width: min(340px, calc(100vw - var(--gutter) * 2 - 32px));
    height: 400px;
  }

  .services-carousel--slider .service-card {
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .why-grid::before {
    display: none;
  }

  .why-item,
  .why-item:nth-child(1),
  .why-item:nth-child(2),
  .why-item:nth-child(3),
  .why-item:nth-child(4) {
    align-self: stretch;
    padding: 36px 28px;
    max-width: none;
  }

  .why-item h3,
  .why-item p {
    max-width: none;
  }

  #why .why-grid {
    padding: 28px 22px 24px;
    row-gap: 28px;
    column-gap: 0;
  }

  #why .why-item,
  #why .why-item:nth-child(1),
  #why .why-item:nth-child(2),
  #why .why-item:nth-child(3),
  #why .why-item:nth-child(4) {
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }

  #why .why-item-icon,
  #why .why-item:nth-child(2) .why-item-icon,
  #why .why-item:nth-child(3) .why-item-icon,
  #why .why-item:nth-child(4) .why-item-icon,
  #why .why-item-icon img {
    position: static;
    display: flex;
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin: 0;
  }

  .career-why .why-panel,
  .career-why .why-grid {
    min-height: auto;
  }

  .career-why .why-grid {
    padding: 28px 24px;
  }

  .career-why .why-item:nth-child(1),
  .career-why .why-item:nth-child(3) {
    padding-right: 20px;
  }

  .career-why .why-item:nth-child(2),
  .career-why .why-item:nth-child(4) {
    padding-left: 20px;
  }

  .career-why .why-item:nth-child(1),
  .career-why .why-item:nth-child(2) {
    padding-bottom: 18px;
  }

  .career-why .why-item:nth-child(3),
  .career-why .why-item:nth-child(4) {
    padding-top: 18px;
  }

  .career-why .why-item {
    gap: 16px;
  }

  .career-why .why-item-icon,
  .career-why .why-item-icon img {
    width: 80px;
    height: 80px;
  }

  .career-why .why-item-copy {
    padding-top: 0;
    gap: 10px;
  }

  .career-why .why-item h3 {
    font-size: 20px;
  }

  .career-why .why-item p {
    font-size: 16px;
    line-height: 1.35;
  }

  .career-page .trusted-banner h3 {
    font-size: 32px;
    line-height: 1.15;
  }

  .trusted-banner h3 {
    font-size: 28px;
    line-height: 1.2;
  }

  .testimonial-slide footer {
    padding-right: 100px;
  }

  .testimonial-nav {
    right: 28px;
    bottom: 28px;
  }

  .testimonials-right {
    min-height: 280px;
  }

  .hear-content {
    max-width: none;
    padding-right: 0;
    text-align: center;
    margin: 0 auto;
  }

  .hear-eyebrow {
    text-align: center;
  }

  .hear-content .btn {
    margin: 0 auto;
    display: inline-flex;
  }

  .cta-banner {
    padding: 40px 0 48px;
  }

  .cta-inner {
    padding: 32px 24px 0;
    padding-right: 24px;
    text-align: center;
    min-height: auto;
  }

  .cta-content {
    max-width: none;
  }

  .cta-content h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .cta-person {
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
    height: 240px;
    max-width: 260px;
    margin: 20px auto 0;
    display: block;
  }

  .cta-panel {
    overflow: hidden;
  }

  .about-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .about-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .about-cta .cta-content > p {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .site-footer {
    padding-top: 56px;
    margin-top: -80px;
  }

  .footer-main {
    gap: 32px;
  }

  .footer-col a {
    font-size: 18px;
  }

  .footer-legal {
    margin-top: 20px;
    padding: 0 2px;
  }

  .footer-legal p {
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-copy {
    font-size: 12px;
    padding: 12px 0 18px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ─── Small mobile (≤479px) ─── */
@media (max-width: 479px) {
  :root {
    --header-clearance: 88px;
    --gutter: 16px;
  }

  .site-header {
    width: calc(100% - 20px);
    top: 8px;
  }

  .header-card {
    padding: 0 10px 10px;
  }

  .nav-top {
    padding: 12px 2px 8px;
  }

  .logo-icon-part {
    max-width: 160px;
  }

  .hero-stage {
    padding-left: 16px;
    padding-right: 16px;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .quote-form {
    padding: 20px 16px 22px;
  }

  .service-card {
    flex: 0 0 calc(100vw - var(--gutter) * 2 - 16px);
    width: calc(100vw - var(--gutter) * 2 - 16px);
    height: 380px;
  }

  .adviser-avatars .avatar {
    width: 72px;
    height: 72px;
    margin-right: -18px;
  }

  .trusted-banner-inner {
    padding: 24px 20px 28px;
  }

  .gadget-card {
    height: auto;
    min-height: 300px;
  }

  .gadget-content {
    max-width: 100%;
    padding: 32px 24px 0;
  }

  .gadget-content h3 {
    font-size: 32px;
    line-height: 1.1;
  }

  .gadget-visual {
    min-height: 160px;
  }

  .protection-gadgets .gadget-card {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .protection-gadgets .gadget-inner {
    min-height: 280px;
  }

  .protection-gadgets .gadget-content {
    max-width: 100%;
    padding: 32px 24px 24px;
  }

  .protection-gadgets .gadget-content h3 {
    font-size: 28px;
    line-height: 1.12;
  }

  .protection-gadgets .gadget-visual--protection-life .gadget-photo {
    width: clamp(110px, 34%, 160px);
    max-height: 52%;
    right: 16px;
    bottom: 8px;
  }

  .protection-gadgets .gadget-visual--protection-income .gadget-photo {
    width: clamp(130px, 42%, 200px);
    max-height: 65%;
    right: 4px;
  }

  .mortgage-gadgets .gadget-card {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .mortgage-gadgets .gadget-content {
    max-width: 70%;
  }

  .mortgage-gadgets .gadget-visual--mortgage-repay .gadget-photo {
    max-width: 88%;
    max-height: 48%;
    left: 6%;
  }

  .mortgage-gadgets .gadget-visual--mortgage-remortgage .gadget-photo {
    width: clamp(140px, 42%, 200px);
    max-height: 58%;
  }

  .gadget-photo--mortgage,
  .gadget-photo--insurance {
    max-height: 160px;
  }

  .testimonial-slide footer {
    padding-right: 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .testimonial-nav {
    position: static;
    justify-content: center;
    margin-top: 20px;
    display: flex;
  }

  .testimonial-card {
    padding-bottom: 28px;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-link,
  .contact-link--phone {
    font-size: 16px;
  }
}

/* ─── About page ─── */
@media (max-width: 1199px) {
  .about-hero {
    padding-bottom: 56px;
  }

  .about-hero-bg {
    object-position: 75% center;
  }

  .about-hero-content {
    max-width: min(520px, 100%);
  }

  .about-who {
    min-height: auto;
    background-image: none;
  }

  .about-who::before {
    display: none;
  }

  .about-who-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 56px;
    gap: 28px;
  }

  .about-who-col--visual {
    display: block;
  }

  .about-who-img {
    display: block;
    width: min(300px, 78vw);
    aspect-ratio: 1;
    margin: 0 auto;
    object-fit: cover;
    object-position: center 15%;
  }

  .about-who-content {
    max-width: 100%;
    padding: 0;
  }

  .about-values,
  .about-mission,
  .about-team {
    padding: 64px 0 72px;
  }

  .about-mission-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: none;
  }

  .about-mission-intro-text {
    padding-top: 0;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 20px;
  }

  .about-values .service-card {
    max-width: none;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 36px;
  }

  .about-mission-panel {
    padding: 44px clamp(20px, 4vw, 40px) 48px;
  }

  .about-mission-card {
    align-items: center;
    text-align: center;
    padding: 0 12px 8px;
  }

  .about-mission-card:not(:last-child)::after {
    display: none;
  }

  .about-mission-card p {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-team-layout {
    flex-direction: column;
    padding-left: 0;
    gap: 0;
  }

  .about-team-photo-wrap,
  .about-team-photo-wrap--round {
    margin: 0 auto -40px;
    width: 180px;
    height: 180px;
    border-width: 5px;
  }

  .about-team-card {
    text-align: center;
    padding: 56px 24px 36px;
  }

  .about-team-bio p:last-child {
    max-width: none;
    text-align: left;
  }

}

@media (max-width: 1023px) {
  .about-hero-bg {
    object-position: 82% center;
  }

  .about-who-grid {
    padding: 40px 0 48px;
  }

  .about-who-content h2,
  .about-mission-intro-left h2,
  .about-section-head h2,
  .about-values .services-header h2 {
    font-size: 36px;
  }

  .about-mission-intro-left h2,
  .about-section-head h2 {
    line-height: 1.15;
  }

  .about-team-card {
    padding: 52px 20px 32px;
  }
}

@media (max-width: 767px) {
  .about-hero {
    margin-top: -35;
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    padding-bottom: 48px;
  }

  .about-hero::after {
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.82) 0%,
      rgba(5, 28, 44, 0.6) 50%,
      rgba(5, 28, 44, 0.35) 100%
    );
  }

  .about-hero-bg {
    object-position: center 30%;
  }

  .about-hero-inner {
    display: flex;
    justify-content: center;
  }

  .about-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .about-hero-eyebrow {
    font-size: 16px;
  }

  .about-hero-content h1 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .about-hero-lead {
    font-size: 16px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .about-hero-btns .btn {
    justify-content: center;
    width: 100%;
    max-width: none;
  }

  .about-page .stats {
    padding: 40px 0;
  }

  .about-who-grid {
    padding: 40px 0 36px;
    gap: 24px;
  }

  .about-who-img {
    width: min(260px, 72vw);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 15%;
  }

  .about-who-content {
    text-align: center;
  }

  .about-who-sub,
  .about-who-content p:last-child {
    font-size: 16px;
    text-align: center;
  }

  .about-mission-intro {
    text-align: center;
  }

  .about-mission-intro-left {
    text-align: center;
  }

  .about-mission-intro-text {
    font-size: 16px;
    text-align: center;
  }

  .about-mission-eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .about-who-content h2,
  .about-mission-intro-left h2,
  .about-section-head h2,
  .about-values .services-header h2 {
    font-size: 32px;
  }

  .about-values .services-sub {
    font-size: 16px;
  }

  .about-values,
  .about-mission,
  .about-team {
    padding: 56px 0 64px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-values .service-card {
    flex: none;
    width: 100%;
    height: 400px;
  }

  .about-mission-panel {
    padding: 36px 20px 40px;
    border-radius: 18px;
  }

  .about-mission-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 18px;
  }

  .about-mission-card h3 {
    font-size: 22px;
  }

  .about-mission-card p {
    font-size: 15px;
  }

  .about-team-bio h3 {
    font-size: 26px;
  }

  .about-team-nav {
    margin-top: 8px;
  }

}

@media (max-width: 479px) {
  .about-hero {
    min-height: clamp(400px, 78vh, 520px);
    padding-top: calc(var(--header-clearance, 88px) + 16px);
  }

  .about-hero-content h1 {
    font-size: 26px;
  }

  .about-who-grid {
    padding: 32px 0 28px;
  }

  .about-who-img {
    width: 100%;
  }

  .about-who-content h2,
  .about-mission-intro-left h2,
  .about-section-head h2,
  .about-values .services-header h2 {
    font-size: 28px;
  }

  .about-values .service-card {
    height: 380px;
  }

  .about-mission-panel {
    padding: 32px 16px 36px;
  }

  .about-mission-icon {
    width: 96px;
    height: 96px;
  }

  .about-team-card {
    padding: 52px 16px 28px;
  }

  .about-team-photo-wrap,
  .about-team-photo-wrap--round {
    width: 150px;
    height: 150px;
    margin-bottom: -36px;
  }

}

/* ─── Contact page ─── */
@media (max-width: 1199px) {
  .contact-hero {
    padding-bottom: 56px;
  }

  .contact-hero-bg {
    object-position: center 36%;
  }

  .contact-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
}

@media (max-width: 1023px) {
  .contact-hero-bg {
    object-position: center 34%;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    margin-top: -35px;
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    padding-bottom: 48px;
  }

  .contact-hero::after {
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.35) 0%,
      transparent 32%,
      transparent 100%
    );
  }

  .contact-hero-bg {
    object-position: center 32%;
  }

  .contact-hero-content {
    max-width: 100%;
    text-shadow: 0 1px 8px rgba(5, 28, 44, 0.45);
  }

  .contact-hero-content h1 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .contact-hero-eyebrow,
  .contact-hero-lead {
    font-size: 16px;
  }

  .contact-needs {
    padding: 56px 0 64px;
  }

  .contact-needs-head h2 {
    font-size: 32px;
  }

  .contact-needs-head p {
    font-size: 16px;
  }

  .contact-filters {
    gap: 10px;
    margin-bottom: 28px;
  }

  .contact-filter {
    font-size: 16px;
    padding: 7px 12px;
  }

  .contact-services-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
  }

  .contact-service-card .service-card {
    height: 438px;
  }

  .contact-form-section {
    padding-bottom: 56px;
  }

  .contact-form-panel {
    padding: 32px 20px 36px;
    border-radius: 18px;
  }

  .contact-form-panel h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .contact-form-row--2 {
    grid-template-columns: 1fr;
  }

  .contact-time-options {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-time-btn {
    width: 100%;
    text-align: center;
  }

  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-actions .btn {
    width: 100%;
    max-width: none;
  }

  .contact-process {
    padding: 56px 0 64px;
  }

  .contact-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .contact-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .contact-hero {
    min-height: clamp(400px, 78vh, 520px);
    padding-top: calc(var(--header-clearance, 88px) + 16px);
  }

  .contact-hero-bg {
    object-position: center 30%;
  }

  .contact-hero-content h1 {
    font-size: 26px;
  }

  .contact-needs-head h2 {
    font-size: 28px;
  }

  .contact-service-card .service-card {
    height: 380px;
  }

  .contact-form-panel h2 {
    font-size: 24px;
  }
}

/* ─── Career Hub ─── */
@media (max-width: 1199px) {
  .career-hero-bg {
    object-position: 75% center;
  }

  .career-network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }

  .career-news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .career-hero {
    margin-top: -35px;
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .career-hero::after {
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.65) 0%,
      rgba(5, 28, 44, 0.35) 45%,
      rgba(5, 28, 44, 0.12) 100%
    );
  }

  .career-hero-bg {
    object-position: 55% 35%;
  }

  .career-hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .career-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .career-hero-btns {
    justify-content: center;
  }

  .career-hero-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .career-network,
  .career-why.why-us,
  .career-news {
    padding: 56px 0 64px;
  }

  .career-network-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
  }

  .career-network-grid .service-card {
    height: 400px;
  }

  .career-showcase-nav {
    width: 40px;
    height: 40px;
    bottom: clamp(20px, 3.5vw, 36px);
  }

  .career-showcase-nav--prev {
    left: 10px;
  }

  .career-showcase-nav--next {
    right: 10px;
  }

  .career-news-item-link {
    grid-template-columns: 100px 1fr;
  }

  .career-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .career-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .career-hero-content h1 {
    font-size: 26px;
  }

  .career-network-grid .service-card {
    height: 380px;
  }

  .career-news-head h2 {
    font-size: 28px;
  }
}

/* ─── Introducer page ─── */
@media (max-width: 1199px) {
  .introducer-earn-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .introducer-earn-copy {
    max-width: none;
  }

  .introducer-audience {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .introducer-hero-bg {
    object-position: 78% center;
  }

  .introducer-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .introducer-register-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .introducer-form-visual {
    order: 2;
    margin-left: 0;
    justify-content: center;
    margin-top: 8px;
  }

  .introducer-form-person {
    max-width: min(320px, 75vw);
    max-height: none;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .introducer-hero {
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .introducer-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.5) 45%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }

  .introducer-hero-bg {
    object-position: 65% 30%;
  }

  .introducer-hero-content {
    max-width: 100%;
    text-align: left;
  }

  .introducer-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .introducer-hero-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .introducer-hero-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .introducer-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .introducer-strip .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .introducer-earn {
    padding: 48px 0 56px;
  }

  .introducer-earn-wrap {
    gap: 32px;
  }

  .introducer-earn-banner-overlay h2 {
    font-size: 22px;
    max-width: 100%;
  }

  .introducer-why .why-panel,
  .introducer-why .why-grid {
    min-height: auto;
  }

  .introducer-why .why-grid {
    padding: 28px 24px;
  }

  .introducer-why .why-item:nth-child(1),
  .introducer-why .why-item:nth-child(3) {
    padding-right: 20px;
  }

  .introducer-why .why-item:nth-child(2),
  .introducer-why .why-item:nth-child(4) {
    padding-left: 20px;
  }

  .introducer-why .why-item-icon,
  .introducer-why .why-item-icon img {
    width: 80px;
    height: 80px;
  }

  .introducer-why .why-item h3 {
    font-size: 20px;
  }

  .introducer-why .why-item p {
    font-size: 16px;
    line-height: 1.35;
  }

  .introducer-earn-copy h3 {
    font-size: 28px;
  }

  .introducer-audience {
    max-width: none;
  }

  .introducer-steps {
    padding: 56px 0 64px;
  }

  .introducer-steps-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
    margin: 0 auto;
  }

  .introducer-register {
    padding: 56px 0 64px;
  }

  .introducer-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .introducer-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .introducer-hero-content h1 {
    font-size: 26px;
  }
}

/* ─── Large desktop (1440px+) fine-tuning ─── */
/* ─── Equity Release ─── */
@media (max-width: 1199px) {
  .equity-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .equity-steps-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .equity-hero {
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .equity-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.5) 45%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }

  .equity-hero-bg {
    object-position: 65% 30%;
  }

  .equity-hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .equity-hero-btns .btn {
    width: auto;
    max-width: none;
    white-space: normal;
  }

  .equity-faq-trigger {
    font-size: 16px;
    padding: 16px 18px;
  }

  .equity-faq-panel {
    padding: 0 18px 16px;
  }

  .equity-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .equity-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ─── Commercial Hub ─── */
@media (max-width: 1199px) {
  .commercial-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .commercial-steps-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .commercial-hero {
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .commercial-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.5) 45%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }

  .commercial-hero-bg {
    object-position: 65% 30%;
  }

  .commercial-hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .commercial-hero-btns .btn {
    width: auto;
    max-width: none;
    white-space: normal;
  }

  .commercial-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .commercial-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ─── Protection Hub ─── */
@media (max-width: 1199px) {
  .protection-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .protection-steps-grid {
    grid-template-columns: 1fr;
    max-width: 389px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .protection-hero {
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .protection-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.5) 45%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }

  .protection-hero-bg {
    object-position: 65% 30%;
  }

  .protection-hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .protection-hero-btns .btn {
    width: auto;
    max-width: none;
    white-space: normal;
  }

  .protection-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .protection-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .hero-stage {
    height: 806px;
  }

  .hero-content {
    top: 313px;
  }

  .quote-form {
    top: 276px;
  }
}

/* ─── Later Life / Specialist reviews ─── */
@media (max-width: 767px) {
  .llh-reviews-carousel {
    padding: 0 16px;
  }

  .llh-review-card {
    flex: 0 0 min(280px, calc(100vw - 48px));
    width: min(280px, calc(100vw - 48px));
    min-width: min(280px, calc(100vw - 48px));
  }

  .llh-reviews-track {
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  .llh-solutions-grid {
    grid-template-columns: 1fr;
  }

  .llh-solutions-left {
    display: none;
  }

  .llh-solutions-inner {
    max-width: 100%;
    width: 100%;
    padding: clamp(280px, 48vw, 400px) 0 clamp(48px, 6vw, 72px);
    text-align: left;
  }

  .llh-solutions-bg {
    object-position: center top;
  }

  .protection-what-is .llh-solutions-inner {
    justify-self: stretch;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .llh-page .equity-hero {
    min-height: clamp(440px, 72vh, 560px);
    padding-top: calc(var(--header-clearance, 78px) + 24px);
    align-items: flex-start;
  }

  .llh-page .equity-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.5) 45%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }

  .llh-page .equity-hero-bg {
    object-position: 65% 30%;
  }

  .llh-page .equity-hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .llh-page .equity-hero-btns .btn {
    width: 100%;
    white-space: normal;
  }

  .llh-equity-band-btns {
    flex-direction: column;
    align-items: center;
  }

  .llh-equity-band-btns .btn {
    width: 100%;
    max-width: 320px;
  }

  .llh-cta .cta-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .llh-cta .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* --- Second Charge Mortgages / Bridging Finance (.scm-page) --- */
@media (max-width: 1199px) {
  .scm-page .commercial-hero-content {
    max-width: 520px;
  }

  .scm-page .commercial-hero-content h1 {
    font-size: clamp(28px, 4vw, 40px);
  }

  .scm-why .llh-solutions-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .scm-why .llh-solutions-inner.scm-why-inner {
    max-width: 480px;
    margin-right: clamp(16px, 3vw, 40px);
  }

  .scm-cta-copy h2 {
    font-size: clamp(24px, 3vw, 34px);
  }
}

@media (max-width: 1023px) {
  .scm-raise-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .scm-raise-banner-overlay {
    padding: 20px 24px;
  }

  .scm-raise-banner-overlay h2 {
    font-size: clamp(22px, 3.5vw, 32px);
  }

  .scm-raise-banner-eyebrow {
    font-size: 12px;
  }

  .scm-why.llh-solutions {
    min-height: 0;
  }

  .scm-why .llh-solutions-grid {
    grid-template-columns: 1fr;
    z-index: 2;
  }

  .scm-why .llh-solutions-left {
    display: none;
  }

  .scm-why .llh-solutions-inner.scm-why-inner {
    justify-self: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: clamp(220px, 42vw, 340px) clamp(16px, 4vw, 28px) clamp(40px, 6vw, 64px);
  }

  .scm-why .llh-solutions-bg {
    object-position: left top;
  }

  .scm-why .llh-solutions-media {
    z-index: 0;
  }

  .scm-why .llh-solutions-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 28, 44, 0.15) 0%,
      rgba(5, 28, 44, 0.55) 42%,
      rgba(5, 28, 44, 0.95) 72%,
      #051c2c 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .scm-cta-inner {
    flex-wrap: wrap;
    gap: 20px;
  }

  .scm-cta-btn {
    white-space: normal;
  }

  .scm-page .commercial-steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .scm-page .commercial-hero {
    min-height: auto;
    height: auto;
    padding: calc(var(--header-clearance, 78px) + 28px) 0 40px;
    align-items: flex-start;
  }

  .scm-page .commercial-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      rgba(255, 255, 255, 0.72) 100%
    );
  }

  .scm-page .commercial-hero-bg {
    object-position: 70% 35%;
    opacity: 0.55;
  }

  .scm-page .commercial-hero-content {
    max-width: 100%;
    text-align: left;
  }

  .scm-page .commercial-hero-content h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .scm-page .commercial-hero-lead {
    font-size: 16px;
    max-width: 100%;
  }

  .scm-page .commercial-hero-btns {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
  }

  .scm-page .commercial-hero-btns .btn {
    width: 100%;
    white-space: normal;
    justify-content: center;
  }

  .scm-raise {
    padding: 36px 0 48px;
  }

  .scm-raise-wrap {
    gap: 28px;
  }

  .scm-raise-banner-overlay {
    padding: 16px 14px;
  }

  .scm-raise-banner-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }

  .scm-raise-banner-overlay h2 {
    font-size: clamp(18px, 5vw, 24px);
    max-width: 100%;
  }

  .scm-raise-copy p {
    font-size: 16px;
  }

  .scm-raise-copy .btn {
    width: 100%;
    justify-content: center;
  }

  .scm-apply-card {
    padding: 20px;
  }

  .scm-apply-card h3 {
    font-size: 20px;
  }

  .scm-apply-list li {
    font-size: 15px;
  }

  .scm-why .llh-solutions-inner.scm-why-inner {
    padding: clamp(180px, 52vw, 280px) 16px 40px;
  }

  .scm-why-inner h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .scm-why-list {
    gap: 10px;
    margin-bottom: 22px;
  }

  .scm-why-list li {
    font-size: 15px;
  }

  .scm-why .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .scm-process .section-sub {
    font-size: 15px;
  }

  .scm-cta {
    padding: 32px 0 48px;
  }

  .scm-cta-panel {
    border-radius: 16px;
    min-height: 0;
  }

  .scm-cta-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 24px 20px;
    gap: 18px;
  }

  .scm-cta-copy h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .scm-cta-copy p {
    font-size: 16px;
  }

  .scm-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    min-height: 96px;
    padding: 12px 10px;
  }

  .stat-num {
    font-size: 24px;
  }

  .stat-card p,
  .stat-years-sub {
    font-size: 12px;
  }

  .stat-years .stat-num,
  .stat-years .stat-small {
    font-size: 18px;
  }

  .scm-page .commercial-hero-eyebrow {
    font-size: 12px;
  }

  .ftb-page .commercial-hero-eyebrow,
  .rm-page .commercial-hero-eyebrow,
  .mov-page .commercial-hero-eyebrow,
  .btl-page .commercial-hero-eyebrow,
  .pc-page .commercial-hero-eyebrow,
  .li-page .commercial-hero-eyebrow,
  .cic-page .commercial-hero-eyebrow,
  .ip-page .commercial-hero-eyebrow,
  .fib-page .commercial-hero-eyebrow,
  .wol-page .commercial-hero-eyebrow,
  .pmi-page .commercial-hero-eyebrow,
  .bp-page .commercial-hero-eyebrow,
  .ac-page .commercial-hero-eyebrow,
  .sfh-page .commercial-hero-eyebrow,
  .sch-page .commercial-hero-eyebrow,
  .bf-page .commercial-hero-eyebrow,
  .cm-page .commercial-hero-eyebrow,
  .df-page .commercial-hero-eyebrow {
    font-size: 16px;
    padding: 8px 12px;
  }

  .llh-page .equity-hero-eyebrow {
    font-size: 16px;
    padding: 8px 12px;
  }

  .scm-page .commercial-hero-content h1 {
    font-size: 24px;
  }

  .scm-raise-banner-overlay h2 {
    font-size: 16px;
  }

  .scm-why .llh-solutions-inner.scm-why-inner {
    padding-top: clamp(160px, 58vw, 240px);
  }

  .scm-why-list li {
    font-size: 14px;
  }

  .scm-cta-copy h2 {
    font-size: 20px;
  }

  .scm-cta-btn {
    font-size: 16px;
    padding: 12px 16px;
  }
}

@media (min-width: 1200px) {
  .scm-page .commercial-hero {
    min-height: calc(100vh + 30px);
    min-height: calc(100dvh + 30px);
  }

  .scm-why .llh-solutions-inner.scm-why-inner {
    max-width: 520px;
    margin-right: clamp(32px, 5vw, 72px);
  }

  .services .services-carousel:not(.services-carousel--slider) .services-track {
    grid-template-columns: repeat(2, minmax(0, 560px));
    max-width: 1160px;
  }
}

@media (max-width: 767px) {
  .services .service-card {
    height: 560px;
  }

  .home-calcs,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guides-page {
    padding-bottom: 160px;
  }

  .why-us .why-panel,
  .why-us .why-grid {
    min-height: 0;
  }
}

/* Steps size to the section, so laptop / tablet / phone never clip a card. */
.how-it-works > .container,
.contact-process > .container {
  container-type: inline-size;
  container-name: steps;
}

@container steps (min-width: 0px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

@container steps (min-width: 680px) {
  .how-it-works .steps-grid,
  .contact-process .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
  }
}

@container steps (min-width: 960px) {
  .how-it-works .steps-grid:not(.introducer-steps-grid),
  .contact-process .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container steps (min-width: 1160px) {
  .how-it-works .introducer-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step-card {
    padding: 60px 28px 36px;
  }

  .step-badge {
    width: 91px;
    height: 91px;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
  }

  .step-badge span {
    font-size: 36px;
  }
}
