@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

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

  .workflow__grid.workflow__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .workflow-experience {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.05fr);
    gap: 22px;
    align-items: stretch;
  }

  .workflow-media {
    min-height: 430px;
  }
}

@media (min-width: 1080px) {
  .faq-contact__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
  }

  .faq-contact__contact {
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .faq-contact__contact .contact-form {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 24px;
  }

  .faq-contact__contact .contact-form__status {
    min-height: 1.2em;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-offset: 74px;
  }

  .container {
    padding: 0 20px;
  }

  .navbar__inner {
    height: 72px;
  }

  .brand-logo-full {
    height: 56px;
    max-width: 210px;
  }

  .navbar__demo {
    display: none;
  }

  .navbar__back-home {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    border-color: var(--border);
    color: var(--text-muted);
    justify-content: center;
    gap: 0;
  }

  .navbar__back-home:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: transparent;
  }

  .navbar__back-home-label {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

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

  .workflow-experience {
    gap: 14px;
  }

  .workflow-media {
    order: 1;
    min-height: unset;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
  }

  .workflow-steps {
    order: 2;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
  }

  .workflow-step {
    flex: 0 0 min(82vw, 300px);
    min-height: 150px;
    padding: 16px 14px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
  }

  .workflow-step__title {
    font-size: 1.16rem;
  }

  .workflow-step__text {
    font-size: 0.95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .step-card,
  .diff-card,
  .faq-contact__contact {
    padding: 20px 18px;
  }

  .pricing-card {
    padding: 20px 18px;
  }

  .workflow-step {
    flex-basis: min(88vw, 280px);
    min-height: 142px;
    padding: 14px 12px;
  }

  .workflow-step__title {
    font-size: 1.05rem;
  }

  .workflow-step__text {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-link:hover,
  .nav-link:visited:hover {
    color: var(--text-muted);
  }

  .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
  }

  .btn--secondary:hover {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
  }

  .btn--ghost:hover {
    border-color: var(--ghost-border);
    background: transparent;
  }

  .btn--icon:hover,
  .navbar__back-home:hover {
    color: var(--text-muted);
    border-color: var(--border);
    background: transparent;
  }

  .form-field input:hover,
  .form-field textarea:hover,
  .form-field select:hover {
    border-color: var(--border);
  }

  .accordion-item:hover {
    border-color: var(--border);
  }

  .workflow-step:hover {
    border-color: var(--border);
    box-shadow: none;
  }

  .workflow-step.is-active:hover {
    border-color: var(--card-accent-border-strong);
    box-shadow: var(--shadow-md);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__bg-video {
    display: none;
  }

  .workflow-media__panel {
    transition: none;
  }
}

.w-full {
  width: 100%;
}

.mt-auto {
  margin-top: auto;
}
