/* ===== Responsive — light government theme ===== */

@media (max-width: 1100px) {
  .process__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__grid,
  .service-hero__grid,
  .contacts__grid,
  .about-lawyer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__grid--home {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero--home .hero__intro,
  .hero--home .hero__details,
  .hero--home .hero__card--lead {
    grid-column: auto;
    grid-row: auto;
  }

  .hero--home .hero__intro { order: 1; }
  .hero--home .hero__card--lead { order: 2; }
  .hero--home .hero__details { order: 3; }

  .hero__subtitle--desktop { display: none; }
  .hero__subtitle--mobile {
    display: block;
    margin-bottom: 16px;
  }

  .hero__portrait {
    aspect-ratio: auto;
    max-height: none;
  }

  .hero__portrait-img {
    object-fit: contain;
    object-position: center top;
    height: auto;
  }

  .benefits__grid,
  .stats__grid,
  .why__grid,
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews__grid,
  .articles-grid,
  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-numbers,
  .services-grid-v2 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav__list { display: none; }

  .nav__list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 28px rgba(26, 36, 33, 0.1);
    gap: 4px;
  }

  .nav { position: relative; }
  .burger { display: flex; }
  .header__phone { display: none; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --section-pad: clamp(40px, 8vw, 64px);
  }

  .container { padding: 0 16px; }

  .hero--home {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 36px;
  }

  .hero--home h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    max-width: none;
  }

  .hero--home .hero__subtitle {
    font-size: 0.975rem;
    margin-bottom: 18px;
    line-height: 1.55;
  }

  .hero--home .hero__badge {
    margin-bottom: 12px;
    font-size: 0.6875rem;
    padding: 6px 10px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn { width: 100%; }

  .hero__card--lead {
    border-radius: var(--radius-md);
  }

  .hero__portrait {
    max-height: none;
    aspect-ratio: auto;
  }

  .hero__portrait-img {
    object-fit: contain;
    object-position: center top;
    height: auto;
  }

  .hero__card-phone--xl {
    padding: 14px 14px 10px;
  }

  .hero__card-phone--xl .hero__card-phone-number {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
    word-break: break-word;
  }

  .consultation-form--compact {
    padding: 14px 14px 16px;
  }

  .consultation-form--compact .form-input {
    font-size: 16px;
    min-height: 48px;
  }

  .consultation-form--compact .btn--lg {
    min-height: 52px;
  }

  .hero-form-trust {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .services__grid,
  .benefits__grid,
  .stats__grid,
  .why__grid,
  .process__grid,
  .reviews__grid,
  .articles-grid,
  .article-related__grid,
  .service-features,
  .geo-cities__groups,
  .stats-numbers,
  .gov-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .service-card__actions {
    flex-direction: column;
  }

  .service-card__actions .btn { width: 100%; }

  .cta-block__actions {
    flex-direction: column;
  }

  .cta-block__actions .btn { width: 100%; }

  .about-lawyer__actions {
    flex-direction: column;
  }

  .about-lawyer__actions .btn { width: 100%; }

  .header__actions .btn--primary,
  .header__actions .btn--green {
    display: none;
  }

  .floating-btn--call { display: flex; }

  .sticky-cta {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
  }

  .sticky-cta .btn {
    flex: 1;
    min-height: 46px;
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  .sticky-cta .btn--outline {
    color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    background: #fff;
  }

  body.has-sticky-cta { padding-bottom: 76px; }

  .faq-item__question {
    padding: 16px 16px;
    font-size: 0.9375rem;
  }

  .faq-item__answer-inner { padding: 0 16px 16px; }

  .floating-actions {
    bottom: 92px;
    right: 12px;
  }

  .important-block-v2 { padding: 18px 16px; }

  .contacts__grid { gap: 24px; }

  .lawyer-photo,
  .about-lawyer__photo {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero__portrait {
    max-height: none;
    aspect-ratio: auto;
  }

  .hero__portrait-img {
    object-position: center top;
    object-fit: contain;
    height: auto;
  }

  .hero__card-phone--xl .hero__card-phone-number {
    font-size: clamp(1.25rem, 7.5vw, 1.55rem);
  }

  .hero__lawyer {
    flex-direction: column;
    text-align: center;
  }

  .hero__lawyer-quote {
    border-left: none;
    border-top: 2px solid var(--color-primary);
    padding-left: 0;
    padding-top: 12px;
  }

  .cta-banner { padding: 28px 18px; }
  .section__header { margin-bottom: 28px; }
}

@media (max-width: 360px) {
  .hero__card-phone--xl .hero__card-phone-number {
    font-size: 1.2rem;
  }

  .sticky-cta .btn {
    font-size: 0.8125rem;
    padding: 10px 8px;
  }
}
