﻿/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .hero__device > .device-laptop { zoom: .68; }
}

@media (max-width: 1160px) {
  .hero__device > .device-laptop { zoom: .62; }
}

@media (max-width: 1100px) {
  /* -- Hero -- */
  .hero__row { flex-direction: column; gap: 40px; padding-top: 48px; }
  .hero__inner { flex: none; width: 100%; }
  .hero__title,
  .hero__sub { max-width: 680px; }
  .hero__device { width: 100%; justify-content: center; overflow: visible; }
  .hero__device > .device-laptop { zoom: .74; }

  /* -- Steps & Features -- */
  .steps { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .features-cta { grid-template-columns: 1fr; }

  /* -- Testimonial -- */
  .testimon-section__person { right: 24px; bottom: -44px; }
  .testimon-section__avatar { width: min(60vw, 250px); height: min(60vw, 250px); }

  /* -- Gallery -- */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  /* -- How It Works Page -- */
  .step-deep { grid-template-columns: 1fr; }
  .step-deep:nth-child(even) .step-deep__visual { order: 0; }
  .use-cases-grid { grid-template-columns: 1fr; }

  /* -- Footer -- */
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .features-card { margin-top: 56px; }
}
@media (max-width: 640px) {
  :root {
    --space-section: 64px;
    --space-section-sm: 48px;
  }

  /* -- Blog -- */
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }

  /* -- Layout & Sections -- */
  .container { padding: 0 20px; }
  .section { padding: var(--space-section) 0; }
  .section--sm { padding: var(--space-section-sm) 0; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
  .submitted-page { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .features-card { padding: 28px 24px; }
  .hero { padding-bottom: 42px; }
  .hero__row { gap: 32px; padding-top: 42px; padding-bottom: 34px; }
  .hero__title { margin-bottom: 18px; }
  .hero__sub { font-size: 1rem; line-height: 1.66; margin-bottom: 20px; }
  .hero__points { gap: 8px; margin-bottom: 28px; }
  .hero__points li { font-size: .78rem; min-height: 32px; }
  .trusted__label {
    padding-inline: 20px;
  }
  .trusted__label-full {
    display: none;
  }
  .trusted__label-short {
    display: inline;
  }

  /* -- Testimonial -- */
  .testimon-section { min-height: 0; }
  .testimon-section__inner { padding-bottom: calc(min(60vw, 250px) + 48px); }

  /* -- Navigation -- */
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { gap: 12px; }
  .nav__logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  /* -- Gallery -- */
  .gallery__grid { grid-template-columns: 1fr; }
  #gallery { padding-top: 96px; }

  /* -- Footer -- */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* -- Before/After Slider -- */
  .ba-slider { border-radius: var(--radius); }

  /* -- Process Bar -- */
  .process-bar__inner { gap: 0; }
  .process-step { padding: 8px 10px; }
  .process-step__label { font-size: .78rem; }

  /* -- Post Nav -- */
  .post-nav__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post-nav__link--prev { order: 2; }
  .post-nav__overview {
    order: 1;
    margin-bottom: 8px;
  }
  .post-nav__link--next { order: 3; }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-nav {
    position: static;
    top: auto;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .legal-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legal-nav__link {
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .legal-nav__link.active {
    border-bottom-color: var(--blue);
  }
  .cities-testimonial {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__actions { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 800px) {
  .hero__device > .device-laptop { zoom: .66; }
}

@media (max-width: 700px) {
  .hero__device > .device-laptop { zoom: .58; }
}

@media (max-width: 600px) {
  .hero__device > .device-laptop { zoom: .5; }
}

@media (max-width: 500px) {
  .hero__device > .device-laptop { zoom: .42; }
}

@media (max-width: 400px) {
  .hero__device > .device-laptop { zoom: .35; }
  .hero__cta .btn,
  .features-card .btn,
  .step-deep__content .btn,
  .cta-actions .btn,
  .submitted-actions .btn,
  .cta-banner > .btn,
  #how-it-works .container > .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    padding-inline: 16px;
  }

  .hero__cta .btn .nav-icon,
  .features-card .btn .nav-icon,
  .step-deep__content .btn .nav-icon,
  .cta-actions .btn .nav-icon,
  .submitted-actions .btn .nav-icon,
  .cta-banner > .btn .nav-icon,
  #how-it-works .container > .btn .nav-icon {
    flex: 0 0 auto;
  }
}
