@media (max-width: 1180px) {
  :root {
    --section-pad: 86px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }

  .hero-layout {
    grid-template-columns: 1fr 0.9fr;
    gap: 42px;
  }

  .hero-visual {
    min-height: 570px;
  }

  .phone-mockup {
    width: 280px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-pad: 74px;
  }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .hero-layout,
  .about-grid,
  .join-grid,
  .contact-grid,
  .partners-layout {
    grid-template-columns: 1fr;
  }

  #hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title span:last-child {
    max-width: 13ch;
  }

  .hero-visual {
    min-height: 590px;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-photo-card {
    width: min(410px, 68%);
  }

  .phone-mockup {
    inset-inline-end: 34px;
  }

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

  .about-image {
    width: 100%;
    max-height: 560px;
  }

  .about-note {
    inset-inline-end: 24px;
  }

  .join-grid-reverse .form-card {
    order: 2;
  }

  .join-grid-reverse .join-info {
    order: 1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 62px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-mobile {
    top: 68px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 18vw, 4.2rem);
  }

  .hero-title span:last-child {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero-proof-list,
  .stats-grid,
  .services-grid,
  .why-grid,
  .about-vision-cards,
  .partners-grid,
  .form-row,
  .modal-platforms {
    grid-template-columns: 1fr;
  }

  .hero-proof-item {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .hero-photo-card,
  .phone-mockup {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    transform: none;
  }

  body.lang-en .hero-photo-card {
    transform: none;
  }

  .phone-mockup {
    min-height: auto;
  }

  .service-card,
  .why-card {
    min-height: auto;
  }

  .about-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .form-card {
    padding: 24px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  :root {
    --section-pad: 52px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  #hero {
    padding-top: 98px;
    padding-bottom: 54px;
  }

  .hero-sub,
  .section-sub,
  .join-info > p,
  .contact-info > p {
    font-size: 1rem;
  }

  .hero-app-badges,
  .modal-notify-form {
    flex-direction: column;
  }

  .app-badge-btn,
  .btn-notify {
    width: 100%;
  }

  .hero-title {
    gap: 2px;
    margin-bottom: 16px;
  }

  .hero-sub {
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .hero-cta-group {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    flex: 1 1 0;
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero-proof-list,
  .hero-app-badges {
    display: none;
  }

  .app-badge-btn {
    justify-content: center;
  }

  .hero-visual {
    display: block;
    min-height: 344px;
    margin-top: 2px;
  }

  .hero-photo-card {
    position: absolute;
    inset-inline-start: 0;
    top: 18px;
    width: 72%;
    max-width: 280px;
    border-width: 7px;
    border-radius: 22px;
  }

  .hero-photo-card img {
    aspect-ratio: 4 / 3;
  }

  .hero-photo-card figcaption {
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .phone-mockup {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    width: 178px;
    border-width: 6px;
    border-radius: 26px;
    padding: 12px;
  }

  .phone-mockup::before {
    top: 7px;
    width: 54px;
    height: 5px;
  }

  .phone-topbar {
    padding-top: 10px;
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .phone-search {
    min-height: 34px;
    margin-bottom: 8px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .phone-highlight {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .phone-highlight strong {
    font-size: 1rem;
  }

  .phone-list {
    gap: 8px;
  }

  .phone-card {
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .phone-card:nth-child(2) {
    display: none;
  }

  .dish-thumb {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .phone-card strong {
    font-size: 0.66rem;
  }

  .phone-card small {
    font-size: 0.56rem;
  }

  .phone-route {
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .phone-route span {
    width: 24px;
    height: 24px;
  }

  .phone-route p {
    font-size: 0.62rem;
  }

  .stat-item {
    min-height: 112px;
  }

  .partner-card,
  .contact-card {
    align-items: flex-start;
  }

  .modal-card {
    padding: 28px 20px;
  }

  .footer-app-btns,
  .footer-app-btn {
    width: 100%;
  }

  .footer-app-btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
