@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  img,
  video,
  canvas,
  svg {
    max-width: 100%;
  }

  section,
  .section,
  .container,
  .wrap {
    width: 100%;
    max-width: 100%;
  }

  header,
  .header,
  .site-header,
  .topbar {
    position: relative;
    min-height: auto;
  }

  header .container,
  .header .container,
  .site-header .container,
  .topbar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  nav,
  .nav,
  .menu,
  .header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
  }

  nav a,
  .nav a,
  .menu a,
  .header-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  h1,
  .h1,
  .hero-title,
  .section-title {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h2,
  .h2 {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  h3,
  .h3 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.08;
  }

  .hero,
  .intro,
  .first-screen {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-grid,
  .services-grid,
  .cards-grid,
  .reviews-grid,
  .faq-grid,
  .prices-grid,
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-grid,
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .case-card,
  .service-card,
  .price-card,
  .review-card,
  .faq-item,
  .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .case-visual,
  .case-photo-preview,
  .compare-image,
  .visual,
  .preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .case-visual img,
  .case-photo-preview img,
  .compare-image img,
  .visual img,
  .preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .compare-row,
  .before-after-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  form,
  .form,
  .contact-form {
    width: 100%;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
    font-size: 16px;
  }

  textarea {
    min-height: 132px;
  }

  .floating-checklist,
  .checklist-float,
  .lead-magnet,
  .checklist-tab {
    position: fixed;
    left: 14px;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 80;
    width: auto;
    max-width: 38px;
    min-height: 128px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.05;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .back-to-top,
  .to-top,
  [href="#top"] {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 49;
    width: auto;
    min-width: 72px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  footer,
  .footer {
    padding-bottom: 88px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  section,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1,
  .h1,
  .hero-title,
  .section-title {
    font-size: clamp(36px, 14vw, 56px);
    line-height: 1;
  }

  h2,
  .h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .case-card,
  .service-card,
  .price-card,
  .review-card,
  .faq-item,
  .card {
    padding: 18px;
  }

  .portfolio-grid .case-card,
  .cases-grid .case-card {
    padding: 10px;
  }

  .portfolio-grid .case-card h3,
  .cases-grid .case-card h3 {
    font-size: 18px;
    line-height: 1.08;
  }

  .portfolio-grid .case-card p,
  .cases-grid .case-card p {
    font-size: 13px;
    line-height: 1.25;
  }

  .portfolio-grid .case-visual,
  .cases-grid .case-visual {
    min-height: 120px;
  }

  .case-site-note {
    font-size: 13px;
    line-height: 1.25;
  }

  .button,
  .btn,
  button,
  input[type="submit"] {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .floating-checklist,
  .checklist-float,
  .lead-magnet,
  .checklist-tab,
  .back-to-top,
  .to-top,
  [href="#top"] {
    width: auto;
  }

  .contact-actions,
  .actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ticker,
  .marquee {
    font-size: 14px;
  }
}
