@media (max-width: 991px) {
  .wrap, .sidebar, .content-region, .service-label, .team-card, .product-card { min-width: 0; }
  .drawer { width: min(86vw, 340px); height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .drawer-row > a, .drawer-row button, .drawer-sub a, .drawer-close { min-height: 44px; }
  .hamburger { width: 44px; height: 44px; line-height: 44px; }
  .mast { align-items: center; padding: 10px 0; }
  .hero-header > .wrap { width: 100%; padding: 0 16px; }
  .brand { max-width: calc(100% - 60px); }
  body[data-page] .inner-layout { padding: 24px 20px 36px !important; }
  .breadcrumb { height: auto; min-height: 44px; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0 16px; margin-bottom: 16px; line-height: 1.6; overflow: visible; }
  .breadcrumb a { overflow-wrap: anywhere; }
  body[data-page] .side-links { width: 100%; margin: 0 0 24px; padding: 0; gap: 10px; }
  .side-links a { height: auto; min-height: 44px; line-height: 1.5; display: flex; align-items: center; padding: 10px 12px; font-size: 15px; }
  .product-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-card .photo, .case-grid .photo { width: 100%; margin: 0; }
  body[data-page="team"] .team-grid, .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; }
  .team-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  body[data-page] .team-card .person-caption { padding: 14px 12px; font-size: 18px; line-height: 1.5; }
  body[data-page] .team-card .person-summary { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  .pagination, .news-list .pagination { flex-wrap: wrap; margin: 28px 0 8px; gap: 8px; }
  .pagination a, .pagination span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .pagination li { margin: 0; }
  .field input, .field textarea { font-size: 16px; width: 100%; max-width: 100%; }
  .field input { min-height: 48px; }
  .field textarea { min-height: 128px; resize: vertical; }
  .submit { min-height: 48px; font-size: 16px; }
  body[data-page] .inner-title { font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 18px; }
  body[data-page] :is(.article-body,.article-body.case-body,.news-article,.biography,.about-copy) { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; min-height: 0 !important; }
  body[data-page] :is(.article-body,.news-article,.biography) p { min-height: 0; margin-bottom: 18px; }
  .s_content img, .s_content video, .s_content iframe { max-width: 100%; height: auto; }
  .s_content table { display: block; max-width: 100%; overflow-x: auto; }
  .metadata { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
  .article-neighbors { padding-top: 24px; font-size: 14px; overflow-wrap: anywhere; }
  .gallery { padding: 0; }
  .person-portrait { display: block; float: none; width: min(100%, 260px); height: auto; margin: 0 auto 24px !important; }
  .contact-words p { line-height: 1.9; margin-bottom: 14px; overflow-wrap: anywhere; }
  .inner-layout:has(.contact-info) .map { width: 100%; margin: 0; }
  .map-search { left: 64px; right: 12px; top: 55px; width: auto; max-width: 280px; height: auto; padding-bottom: 12px; }
  .map-search > div { margin-top: 12px; }
  .map-search input, .map-search > div button { height: 36px; font-size: 16px; }
  .map-search-close { width: 32px; height: 32px; }
  .contact-codes { flex-wrap: wrap; gap: 16px; }
  .contact-codes figure { max-width: calc(50% - 8px); height: auto; padding: 10px; margin: 0; }
  .contact-codes img { width: 100%; max-width: 128px; height: auto; aspect-ratio: 1; }
  .contact-codes figcaption { white-space: normal; font-size: 14px; line-height: 1.5; }
  .viewer-panel { max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); }
  body[data-page] main .reveal { opacity: 1; transform: none; }
  html.motion-ready .reveal, html.motion-ready .reveal.entered { opacity: 1; transform: none; transition: none; animation: none; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .fixed-bottom { height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); align-items: stretch; }
  .fixed-bottom a, .fixed-bottom button { min-height: 60px; padding-top: 8px; line-height: 20px; font-size: 14px; }
  .fixed-bottom img { width: 22px; height: 22px; }
  .site-footer { padding: 32px 0 16px; }
  .footer-columns { padding: 0 20px; }
  .footer-title { margin-bottom: 16px; }
  .footer-qr { padding-top: 24px; }
  .footer-copyright { padding: 20px 20px 8px; overflow-wrap: anywhere; }
  .home-consult { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-consult .hotline-panel { height: auto; min-height: 340px; padding: 36px 20px; }
  .home-consult .consult-panel { min-height: 0; padding: 32px 20px; }
  .consult-panel .intro { font-size: 15px; line-height: 1.7; }
  .consult-panel .field { font-size: 15px; margin-bottom: 18px; }
}
@media (max-width: 767px) {
  .hero { height: 180px; aspect-ratio: auto; }
  body[data-page="home"] .hero { height: 340px; }
  body[data-page="home"] .hero-copy { display: block; top: 92px; left: 20px; right: 20px; width: auto; padding: 0; transform: none; }
  body[data-page="home"] .hero-copy h1 { font-size: 25px; line-height: 1.5; letter-spacing: 1px; margin-bottom: 12px; }
  body[data-page="home"] .hero-description { font-size: 14px; line-height: 1.75; padding: 10px 12px; width: auto; }
  body[data-page="home"] .hero-description small { display: none; }
  body[data-page="home"] .hero-copy h1, body[data-page="home"] .hero-description { animation: none; }
  body .home-services { padding: 32px 20px !important; }
  .home-services > .wrap { gap: 0; }
  .home-services .home-title, .home-title { font-size: 26px; line-height: 1.4; }
  .home-title small { font-size: 13px; }
  .home-services .home-title { margin-bottom: 24px; }
  body .home-services .service-grid { gap: 12px; }
  .home-services .service-card { min-height: 148px; height: auto; padding: 16px 12px; gap: 10px; }
  .home-services .service-card > .service-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .home-services .service-card .service-icon img { width: 32px; height: 32px; }
  .service-card > .service-label { font-size: 17px; }
  .service-card small { font-size: 12px; }
  body .home-why { padding: 32px 20px !important; }
  .why-text { font-size: 16px; line-height: 1.85; }
  .why-content { margin-top: 24px; gap: 24px; }
  .home-why .why-person { height: auto; aspect-ratio: 1.15; }
  .why-person img { height: 100%; width: 100%; object-fit: contain; }
  .numbers { gap: 12px; height: auto; margin: 28px 0; }
  .number strong, .why-content .number strong { display: block; font-size: clamp(26px, 8vw, 36px); }
  .home-why .number-icon { display: none; }
  body .home-why .number small, .number small { font-size: 12px; line-height: 1.6; }
  .more-button { min-width: 140px; min-height: 44px; }
  .home-strengths, .home-team, body .home-news { padding: 32px 20px !important; }
  .strength-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
  .strength-center { grid-column: 1; grid-row: auto; height: 180px; max-width: 180px; margin: auto; }
  .strength, .strength:nth-of-type(even) { width: 100%; min-height: 0; padding: 18px 16px 18px 62px; }
  .strength .badge, .strength:nth-of-type(even) .badge { top: 16px; left: 10px; right: auto; width: 42px; height: auto; font-size: 26px; }
  .strength h3 { font-size: 18px; margin-bottom: 8px; }
  .strength p { font-size: 15px; line-height: 1.8; }
  body[data-page="team"] .team-grid, .team-grid, .home-team .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 0; }
  body[data-page] .team-card .person-caption { padding: 12px 10px; font-size: 17px; }
  body[data-page] .team-card .person-summary { font-size: 13px; line-height: 1.7; }
  .home-news .news-carousel { height: auto; aspect-ratio: 1.5; }
  .news-row, .home-news .news-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; margin-bottom: 20px; padding-bottom: 20px; }
  .date-block, .home-news .date-block { width: 48px; }
  .news-row h3, .home-news .news-row h3 { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
  .news-row p, .home-news .news-row p { font-size: 14px; line-height: 1.8; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card .caption { font-size: 15px; line-height: 1.65; padding: 12px 10px; }
  .product-card .photo { aspect-ratio: 4 / 3; height: auto; }
  .product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
  .news-summary { padding: 16px; font-size: 15px; line-height: 1.85; }
  body[data-page] .inner-layout { padding-left: 16px !important; padding-right: 16px !important; }
  .sidebar { display: contents; }
  .sidebar .consult-form { display: block; order: 3; margin-top: 28px; padding: 24px 16px; width: 100%; }
  .sidebar .consult-form .field { font-size: 15px; }
  .sidebar .side-links { order: 1; }
  .contact-info { padding: 0; }
  .contact-codes { margin: 24px 0; }
  .contact-words p { font-size: 15px; }
  .map { height: 340px; }
}
