@media (max-width: 1280px) {
  .pricing__same ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .header,
  .hero,
  .hub,
  .stage,
  .section,
  .faq,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-top: 8px;
    padding-bottom: 36px;
  }

  .hero__copy {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 22px 24px 26px;
    background: #0c1830;
  }

  .header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
  }

  .logo {
    grid-column: 1;
  }

  .header__actions {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
    grid-column: 3;
    justify-self: end;
    margin-right: -8px;
  }

  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 45;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(14, 36, 86, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transform-origin: top right;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0.34s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity 0.28s ease,
      transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s;
  }

  .nav a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(-6px);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.24s ease, transform 0.28s ease;
  }

  .nav.is-open a {
    opacity: 1;
    transform: none;
  }

  .nav.is-open a:nth-child(1) { transition-delay: 0.04s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.08s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.12s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.16s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.2s; }
  .nav.is-open a:nth-child(6) { transition-delay: 0.24s; }

  .intro .nav a,
  .intro .nav a:hover,
  .intro .nav a.is-active,
  .intro .header.is-stuck .nav a,
  .intro .header.is-stuck .nav a:hover,
  .intro .header.is-stuck .nav a.is-active {
    color: var(--text);
    background: transparent;
    text-shadow: none;
    box-shadow: none;
    min-height: 52px;
    padding: 14px 20px;
    line-height: 1.3;
  }

  .intro .nav a:hover,
  .intro .header.is-stuck .nav a:hover {
    background: #f3f6fb;
  }

  .intro .nav a.is-active,
  .intro .header.is-stuck .nav a.is-active {
    color: var(--green-deep);
    background: var(--mint);
  }

  .intro .header.is-menu-open {
    background: rgba(8, 10, 9, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
  }

  .intro .header.is-menu-open .btn--login {
    color: var(--ink);
    border-color: #fff;
    background: #fff;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(11, 20, 40, 0.28);
    animation: menu-scrim 0.3s ease;
  }

  @keyframes menu-scrim {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .band__copy,
  .stage__film,
  .stage__split,
  .stage__split--flip,
  .stage__facts,
  .schemes,
  .walk__grid,
  .estimator__layout,
  .ledgers,
  .footer__quote,
  .pricing__head,
  .scheme,
  .estimator__out {
    grid-template-columns: 1fr;
  }

  .pricing__same ul {
    grid-template-columns: 1fr 1fr;
  }

  .ledgers,
  .estimator__ticket,
  .ruler,
  .bars,
  .estimator__advice {
    grid-column: auto;
    grid-row: auto;
  }

  .estimator__layout,
  .estimator__out,
  .ledgers {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage__film {
    flex-direction: column;
    align-items: stretch;
  }

  .stage__screen,
  .stage__note {
    flex: none;
    width: 100%;
  }

  .stage__facts {
    grid-template-columns: 1fr 1fr;
  }

  .stage__shot--front {
    order: -1;
  }

  .stage__lead {
    max-width: none;
  }

  .phone--left { left: 8%; }
  .phone--right { right: 6%; }

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

@media (max-width: 860px) {
  .hub__stage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hub__wires {
    display: none;
  }

  .hub__glow {
    width: 280px;
    top: 180px;
  }

  .hub__device {
    position: relative;
    left: auto;
    top: auto;
    width: min(260px, 70%);
    transform: none;
    margin: 12px 0 8px;
  }

  .hub__nodes {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 8px;
    width: 100%;
  }

  .hub__node,
  .hub__node:hover,
  .hub__node:focus-visible {
    position: static;
    width: auto;
    transform: none;
    animation: none;
  }
}

@media (max-width: 599px) {
  .shell {
    width: 100%;
    margin: 0;
  }

  .header {
    padding: 12px 16px;
  }

  .hero,
  .hub,
  .stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stage__facts {
    grid-template-columns: 1fr;
  }

  .hero {
    height: calc(100svh - 88px);
    padding: 0 12px 12px;
  }

  .hub {
    padding-top: 36px;
  }

  .hub__head h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero__frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 22px;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 38%;
    object-view-box: none;
  }

  .hero__copy {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    justify-content: flex-end;
    padding: 56px 16px 14px;
    background: linear-gradient(180deg, rgba(8, 20, 48, 0) 0%, rgba(8, 20, 48, 0.72) 34%, rgba(8, 20, 48, 0.94) 58%);
  }

  .hero h1,
  .hero__lead {
    width: 100%;
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(26px, 6.8vw, 32px);
    line-height: 1.02;
  }

  .hero__lead {
    max-width: none;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.4;
  }

  .hero__points {
    gap: 5px;
    margin-top: 10px;
  }

  .hero__points li {
    font-size: 13px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
    gap: 8px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero__actions .btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: #fff;
  }

  .band {
    margin: 8px 12px 0;
    padding: 20px 16px 12px;
  }

  .band__copy p {
    max-width: none;
  }

  .phones {
    height: 360px;
  }

  .phone {
    width: 168px;
    height: 330px;
    border-radius: 28px;
  }

  .phone--left {
    left: 4%;
    transform: rotate(-10deg);
  }

  .phone--right {
    right: 2%;
    transform: rotate(10deg);
  }

  .phone__amount {
    font-size: 22px;
  }

  .stage,
  .pricing,
  .faq {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pricing {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .estimator {
    padding: 20px 16px;
  }

  .scheme__rate {
    font-size: 52px;
  }

  .pricing__same ul {
    grid-template-columns: 1fr;
  }

  .stage {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .stage__split {
    margin-top: 56px;
  }

  .stage__facts {
    margin-top: 40px;
    gap: 0;
    padding-top: 0;
  }

  .stage__facts > div {
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .stage__facts dt {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .stage__facts dd {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.45;
  }

  .plan__price {
    font-size: 52px;
  }

  .form__grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .form__row {
    gap: 18px;
    margin-top: 12px;
  }

  .form__row .btn {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 8px 20px rgba(20, 40, 90, 0.12);
  }

  .form__row .btn:hover {
    background: #f3f7fd;
  }

  .footer {
    padding: 48px 16px 22px;
  }

  .footer__base {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .nav,
  .nav a,
  .bars i,
  body.menu-open::before {
    transition: none;
    animation: none;
  }
}
