/* LAB responsive composition, matched to the SKIN reference.
   Desktop artwork and layouts above 1180px remain unchanged. */
.hero-route-separator { display: none; }
@media (max-width: 1180px) {
  .hero.shell { height: auto; min-height: 0; padding: 24px; gap: 20px; }
  .hero-content { container-type: inline-size; }
  .hero .hero-copy { min-width: 0; }
  .hero .hero-intro { width: 100% !important; }
  .hero .hero-intro > .type-line-v51 { white-space: normal; }
  .hero .service-rows { max-width: none; gap: 8px; }
  .hero .service-rows a {
    display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center; gap: 10px; min-height: 72px; padding: 12px;
    border-radius: 10px;
  }
  .hero .service-rows .number { position: static; width: 30px; height: 28px; margin: 0; }
  .hero .service-rows a > span:last-child { min-width: 0; }
  .hero .service-rows strong { font-size: 18px; line-height: 1.25; }
  .hero .service-rows small { margin-top: 4px; font-size: 13px; line-height: 1.4; }
  .hero .service-rows small br { display: none; }
  .hero .service-rows .hero-route-separator { display: inline; }
  .hero .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero .hero-actions .button { min-width: 0; min-height: 50px; padding: 12px 9px; font-size: 14px; line-height: 1.4; }
  .hero .hero-help { margin-top: 12px; font-size: 12px; line-height: 1.5; }
  .hero .principles { margin-top: 0; }
  .hero .principles strong { font-size: clamp(15px, 1.9vw, 20px); line-height: 1.3; text-wrap: balance; }
  .hero .principles small { font-size: 10px; line-height: 1.45; text-wrap: balance; }
  .repair-tasks, .characters { padding-block: 48px; }
  .repair-task-grid { gap: 16px; }
  .section-pad, .inner-v67 .content-section { padding-block: 48px; }
  .inner-v67 .content-grid, .inner-v67 .issue-directory, .inner-v67 .guide-directory { gap: 16px; }
  .inner-v67 .content-card, .inner-v67 .issue-card, .inner-v67 .guide-card { min-width: 0; }
  .inner-v67 .content-lead, .inner-v67 .lead { text-wrap: pretty; }
  .site-footer .footer-columns a { display: flex; align-items: center; justify-content: center; min-height: 36px; }
  .footer-v66 .footer-columns nav { gap: 6px; }
}

/* A tablet or a wide phone keeps the photograph beside the introduction. */
@media (min-width: 701px) and (max-width: 1180px),
       (min-width: 600px) and (max-width: 700px) and (orientation: landscape) {
  .hero.shell { padding: 24px; }
  .hero .hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .hero .hero-content { display: grid; grid-template-rows: 1fr auto auto; gap: 18px; }
  .hero .hero-identity {
    --engineer-height: clamp(112px, 31cqw, 230px) !important;
    display: grid; grid-template-columns: 24% 52% 24%;
    width: 100%; max-width: none; height: auto; min-height: clamp(244px, 48cqw, 330px);
    gap: 0; padding: 0;
  }
  .hero .hero-copy { grid-row: 1; grid-column: 2; padding: 0; margin: 0; }
  .hero .hero-mascot { grid-row: 1; }
  .hero .hero-mascot.pupa { grid-column: 1; }
  .hero .hero-mascot.lupa { grid-column: 3; }
  .hero .hero-location { margin-bottom: 14px; font-size: 10px; gap: 8px; }
  .hero h1 { font-size: clamp(28px, 6.6cqw, 40px); line-height: 1.12; white-space: nowrap; }
  .hero .hero-subtitle { margin-top: 10px; font-size: clamp(17px, 3.7cqw, 26px); line-height: 1.2; white-space: normal; text-wrap: balance; }
  .hero .hero-description { margin-top: 10px; font-size: 13px; line-height: 1.45; text-wrap: balance; }
  .hero .hero-intro { margin: 16px auto 0; font-size: clamp(13px, 2.2cqw, 15px); line-height: 1.5; max-width: 100%; }
  .hero .service-rows { grid-template-columns: 1fr; }
  .hero .hero-visual { display: flex; flex-direction: column; height: auto; min-height: 0; margin: 0; }
  .hero .hero-visual img { flex: 1 1 0; width: 100%; height: 0; min-height: 0; object-fit: cover; object-position: 50% 48%; }
  .hero .hero-visual figcaption { display: block; border-left: 0; border-top: 1px solid #514b43; padding: 18px 10px; }
  .hero .hero-visual figcaption span { font-size: 9px; line-height: 1.5; }
  .hero .hero-visual figcaption strong { font-size: 14px; line-height: 1.4; }
  .inner-v67 .service-cover-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; max-width: none; }
  .inner-v67 .service-cover-copy { min-width: 0; }
  .inner-v67 .service-cover h1 { font-size: clamp(32px, 4.2vw, 46px); }
  .inner-v67 .service-cover .content-lead { font-size: 16px; line-height: 1.65; }
  .inner-v67 .service-cover figure { width: min(100%, 330px); }
  .inner-v67 .cover-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 300px); margin-inline: auto; gap: 10px; }
  .inner-v67 .cover-actions .button { min-height: 48px; }
}

@media (min-width: 701px) and (max-width: 850px) {
  .contact-v65 .contact-prep li { display: grid; grid-template-rows: 14px minmax(42px, auto); align-content: center; gap: 6px; }
  .contact-v65 .contact-prep li .contact-v65-label { align-self: center; }
}

@media (min-width: 651px) and (max-width: 1000px) {
  .inner-v67 .content-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .inner-v67 .content-steps h3 { font-size: 21px; }
  .inner-v67 .content-steps p { max-width: 34ch; margin-inline: auto; }
}

/* Keep a visible telephone link without covering the content with a bottom bar. */
@media (max-width: 850px) {
  .has-mobile-contact { padding-bottom: 0; scroll-padding-bottom: 20px; }
  html:has(.has-mobile-contact) { scroll-padding-bottom: 20px; }
  .mobile-contact { display: none; }
  .site-header .header-inner { display: flex; flex-wrap: wrap; min-height: 56px; padding-block: 5px; gap: 0; width: calc(100% - 32px); }
  .site-header .header-inner::before { content: ''; display: block; flex: 0 0 44px; order: 0; }
  .site-header .mobile-brand, .site-header .subpage-brand { display: none; }
  .site-header .header-contact { display: flex; flex: 1; order: 1; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin: 0 auto; font-size: 15px; white-space: nowrap; }
  .site-header .header-contact span { display: inline; font-size: 12px; font-weight: 400; }
  .site-header .menu-toggle { order: 2; width: 44px; height: 44px; margin-left: 0; }
  .site-header .header-inner nav { order: 3; flex-basis: 100%; max-height: calc(100dvh - 74px); }
  .site-header .header-inner nav,
  .site-header:not(.subpage-header) .header-inner nav { justify-content: flex-start; gap: 0; }
  .site-header .header-inner nav a { flex-shrink: 0; min-height: 48px; }
}

@media (max-width: 380px) {
  .site-header .header-contact span { display: none; }
}

@media (max-width: 700px) and (orientation: portrait), (max-width: 599px) {
  .hero.shell { padding: 18px 16px 24px; gap: 18px; }
  .hero .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  .hero .hero-content { display: flex; flex-direction: column; gap: 18px; }
  .hero .hero-identity {
    --engineer-height: clamp(140px, 44vw, 196px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; height: auto; max-width: 430px;
    gap: 16px 0; padding: 0;
  }
  .hero .hero-copy { grid-column: 1 / -1; grid-row: 1; margin: 0; padding: 0; }
  .hero .hero-mascot { grid-row: 2; }
  .hero .hero-mascot.pupa { grid-column: 1; }
  .hero .hero-mascot.lupa { grid-column: 2; }
  .hero .hero-location { margin-bottom: 16px; font-size: 11px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero .hero-subtitle { margin-top: 8px; font-size: clamp(22px, 6vw, 27px); line-height: 1.25; }
  .hero .hero-description { margin-top: 8px; font-size: 13px; line-height: 1.5; }
  .hero .hero-intro { max-width: 32ch; margin-top: 14px; font-size: 14px; line-height: 1.45; }
  .hero .service-rows { grid-template-columns: 1fr; }
  .hero .service-rows strong { font-size: 17px; }
  .hero .service-rows small { font-size: 12px; }
  .hero .hero-actions .button { font-size: 13px; }
  .hero .hero-visual { display: grid; grid-template-columns: 1.15fr 1fr; height: 190px; min-height: 0; margin-top: 0; }
  .hero .hero-visual img { height: 190px; min-height: 0; object-position: 50% 48%; }
  .hero .hero-visual figcaption { padding: 12px; border-top: 0; border-left: 1px solid #514b43; }
  .hero .hero-visual figcaption span { font-size: 9px; line-height: 1.5; }
  .hero .hero-visual figcaption strong { font-size: 13px; line-height: 1.45; }
  .hero .principles { padding-inline: 0; gap: 0; }
  .hero .principles > span { padding: 10px 6px; }
  .hero .principles strong { font-size: 14px; }
  .hero .principles small { font-size: 9px; letter-spacing: 0; }
}

@media (max-width: 700px) {
  .repair-tasks, .characters, .section-pad, .inner-v67 .content-section { padding-block: 40px; }
  .repair-task-grid { gap: 14px; }
  .repair-task { min-height: 0; padding: 26px 22px; }
  .repair-task .task-icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .repair-task h3 { font-size: 23px; }
  .repair-task p { margin-top: 12px; }
  .repair-task .task-link { margin-top: 22px; }
  .inner-v67 .service-intro, .inner-v67 .issue-hero { padding-top: 28px; }
  .inner-v67 .service-cover { padding-block: 28px 36px; }
  .inner-v67 .service-cover h1, .inner-v67 .issue-hero h1, .services-v67 .services-v67-hero h1 { font-size: clamp(32px, 8.5vw, 42px); }
  .inner-v67 .content-lead, .inner-v67 .lead { font-size: 16px; line-height: 1.6; }
  .inner-v67 .contacts.content-section { padding: 32px 22px; margin-bottom: 40px; }
  .contact-v64 .contact-v63-main, .contact-v64 .contact-v63-side { padding: 32px 22px; }
  .contact-v64 h2 { font-size: clamp(32px, 8.6vw, 40px); }
  .contact-v64 .contact-v63-intro { font-size: 15px; line-height: 1.6; }
  .footer-v66 .footer-columns a { min-height: 40px; }
  .footer-v66 .footer-columns nav { gap: 4px; }
  .footer-v66 > .footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
}

@media (min-width: 600px) and (max-width: 1180px) and (max-height: 500px) {
  .hero.shell { padding-top: 18px; }
  .hero .hero-identity { min-height: 230px; }
  .hero .hero-content { gap: 14px; }
  .hero .hero-intro { margin-top: 12px; }
  .hero .hero-actions .button { min-height: 48px; }
  .inner-v67 .service-cover { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .service-rows a { transition: none; }
}
