/**
 * Responsive rules. Breakpoints:
 *  1280 – large laptops: compact nav
 *  1100 – tablets landscape / small laptops: hamburger navigation
 *   768 – tablets portrait
 *   576 – phones
 *   380 – small phones
 */
@media (max-width: 1280px) {
  :root { --nca-gutter: 24px; }
  .main-nav__link { padding: 8px 10px; font-size: 13px; }
  .site-branding__logo img { height: 64px; }
}

@media (max-width: 1100px) {
  :root { --nca-header-h: 76px; }
  .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  .site-branding__logo img { height: 58px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav__list {
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0 14px;
    border-top: 1px solid var(--nca-border); max-height: calc(100vh - var(--nca-header-h) - 20px); overflow-y: auto; flex-wrap: nowrap;
  }
  .main-nav__link { padding: 12px 14px; font-size: 15px; white-space: normal; }
  .main-nav__link--cta { text-align: center; margin-top: 6px; }
  .hero__title { font-size: 40px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
  .law-toc__list { columns: 1; }
  .section { padding-block: 55px; }
  .section-header { margin-bottom: 35px; }
  .section-header__title { font-size: 30px; }
}

@media (max-width: 768px) {
  :root { --nca-gutter: 20px; }
  .top-bar__inner { padding-block: 6px; }
  .top-bar__contact { gap: 6px 14px; }
  .top-bar__contact .top-bar__address { display: none; }
  .hero { padding: 55px var(--nca-gutter); }
  .hero__title { font-size: 32px; }
  .hero__text { font-size: 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 35px; }
  .hero-stat { padding: 16px 10px; }
  .hero-stat__num { font-size: 30px; }
  .content-card, .law-container, .contact-info-card, .contact-form, .complaint-container { padding: 25px; }
  .webform-flexbox { flex-direction: column; gap: 0; }
  .views-exposed-form input[type="text"], .views-exposed-form input[type="search"], .views-exposed-form select { width: 100%; min-width: 0; }
  .views-exposed-form .form-item { flex: 1 1 100%; }
  .views-exposed-form .form-actions { flex: 1 1 100%; }
  .views-exposed-form .form-actions .form-submit { flex: 1; }
  .nca-view--cards .view-content, .nca-view--news .view-content { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
}

@media (max-width: 576px) {
  :root { --nca-gutter: 16px; --nca-header-h: 68px; }
  body { font-size: 15px; }
  .top-bar { font-size: 11px; }
  .top-bar__inner { align-items: flex-start; }
  .top-bar__contact { flex-direction: column; gap: 2px; }
  .site-branding__logo img { height: 50px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 12px; }
  .section { padding: 40px var(--nca-gutter); }
  .section-header__title { font-size: 25px; }
  .section-header__subtitle { font-size: 15px; }
  .hero { padding: 42px var(--nca-gutter); }
  .hero__title { font-size: 27px; }
  .hero__buttons { flex-direction: column; }
  .btn-hero { width: 100%; padding: 13px 20px; }
  .hero-stat__num { font-size: 26px; }
  .hero-stat__label { font-size: 12px; }
  .about-card { padding: 24px; }
  .content-card, .law-container, .contact-info-card, .contact-form, .complaint-container { padding: 20px; }
  .law-toc { padding: 18px; }
  .news-card__image { height: 160px; }
  .site-footer { padding-top: 40px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .webform-progress-tracker .progress-title { font-size: 11px; line-height: 1.4; }
  .webform-progress-tracker .progress-marker { width: 34px; height: 34px; }
  .webform-progress-tracker::before { top: 17px; }
  .webform-actions .webform-button--submit, .webform-actions .webform-button--next, .webform-actions .webform-button--previous { flex: 1; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 24px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .section-header__title { font-size: 22px; }
  .site-branding__logo img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .top-bar, .site-header, .site-footer, .hero__buttons, .views-exposed-form, .pager { display: none !important; }
  body { background: #fff; }
}
