/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .hero__grid,
  .service-hero__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__grid--home {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero--home .hero__intro,
  .hero--home .hero__details,
  .hero--home .hero__card--lead {
    grid-column: auto;
    grid-row: auto;
  }

  .hero--home .hero__card--lead {
    position: static;
  }

  .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: 18px;
  }

  .hero__portrait-img {
    max-height: min(460px, 52vh);
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .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 {
    grid-template-columns: repeat(2, 1fr);
  }

  .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: rgba(20, 28, 24, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
  }

  .nav { position: relative; }

  .burger { display: flex; }

  .header__phone { display: none; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --section-pad: clamp(36px, 8vw, 64px);
  }

  .container {
    padding: 0 16px;
  }

  .hero--home {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 36px;
  }

  .hero__grid--home {
    gap: 20px;
  }

  .hero--home .hero__intro {
    order: 1;
  }

  .hero--home .hero__card--lead {
    order: 2;
  }

  .hero--home .hero__details {
    order: 3;
  }

  .hero--home h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    margin-bottom: 0;
  }

  .hero--home .hero__subtitle {
    font-size: 0.975rem;
    margin-bottom: 18px;
    line-height: 1.55;
  }

  .hero--home .hero__badge {
    margin-bottom: 14px;
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .hero__card--lead {
    padding: 12px;
    border-radius: 18px;
  }

  .hero__portrait {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .hero__portrait-img {
    max-height: min(420px, 48vh);
    aspect-ratio: 3 / 4;
    width: 100%;
  }

  .hero__portrait-meta {
    padding: 40px 14px 14px;
  }

  .hero__card-phone--xl {
    margin: 0 0 14px;
    padding: 4px 4px 16px;
  }

  .hero__card-phone--xl .hero__card-phone-number {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    word-break: break-word;
  }

  .hero__card-phone-label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .consultation-form--compact .form-group {
    margin-bottom: 12px;
  }

  .consultation-form--compact .form-input {
    font-size: 16px; /* без зума iOS */
    min-height: 48px;
    padding: 14px 14px;
  }

  .consultation-form--compact .btn--lg {
    min-height: 52px;
    padding: 16px 20px;
    font-size: 1rem;
  }

  .hero-form-trust {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .hero-quick-item {
    padding: 12px 14px;
  }

  .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;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .service-card__actions {
    flex-direction: column;
  }

  .service-card__actions .btn {
    width: 100%;
  }

  .cta-block__actions {
    flex-direction: column;
  }

  .cta-block__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-text);
    border-color: rgba(62, 207, 122, 0.35);
    background: rgba(20, 28, 24, 0.6);
  }

  body.has-sticky-cta {
    padding-bottom: 76px;
  }

  .faq-item__question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-item__answer-inner {
    padding: 0 18px 18px;
  }

  .floating-actions {
    bottom: 92px;
    right: 12px;
  }

  .important-block-v2 {
    padding: 18px 16px;
  }

  .contacts__grid {
    gap: 24px;
  }

  .lawyer-photo {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero__portrait-img {
    max-height: min(380px, 46vh);
  }

  .hero__card-phone--xl .hero__card-phone-number {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .hero__lawyer {
    flex-direction: column;
    text-align: center;
  }

  .hero__lawyer-quote {
    border-left: none;
    border-top: 2px solid var(--color-green);
    padding-left: 0;
    padding-top: 12px;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  .section__header {
    margin-bottom: 32px;
  }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
  .hero__card-phone--xl .hero__card-phone-number {
    font-size: 1.35rem;
  }

  .sticky-cta .btn {
    font-size: 0.8125rem;
    padding: 10px 8px;
  }
}
