/* Keep the established desktop composition; smaller screens use document flow. */
@media (max-width: 1119px) {
  .services,
  .care,
  .work,
  .booking,
  .footer {
    min-height: 0;
  }

  .services .section-label,
  .care .section-label,
  .work .section-label,
  .booking .section-label,
  .footer .section-label {
    gap: 20px;
    align-items: flex-start;
    padding-top: 28px;
    font-size:12px;
  }

  .services .section-label > span,
  .care .section-label > span,
  .work .section-label > span,
  .booking .section-label > span,
  .footer .section-label > span {
    min-width: 0;
  }

  .services .section-label > span:last-child,
  .care .section-label > span:last-child,
  .work .section-label > span:last-child,
  .booking .section-label > span:last-child {
    max-width: 48%;
    text-align: right;
  }

  .services h2,
  .care h2,
  .work h2,
  .booking h2,
  .footer h2 {
    letter-spacing: -.04em;
  }

  .services {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  }

  .services-layout {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 36px;
    padding: 56px var(--pad) 48px;
  }

  .services h2 {
    font-size: clamp(28px, 3.15vw, 36px);
    line-height: 1.04;
  }

  .services .lead {
    font-size: 16px;
    margin-top: 24px;
  }

  .fitment {
    padding-top: 48px;
  }

  .fitment > p {
    font-size: clamp(42px, 5.2vw, 56px);
    letter-spacing: -.04em;
  }

  .fitment > span:last-child {
    font-size: 16px;
  }

  .services .text-link,
  .booking .text-link {
    min-height: 44px;
    max-width: 100%;
    gap: 16px;
    font-size: 16px;
  }

  .service summary {
    gap: 14px;
    min-height: 70px;
    padding: 20px 0;
  }

  .service-no {
    flex-shrink: 0;
    width: 20px;
  }

  .service h3 {
    min-width: 0;
    flex: 1;
    font-size: 21px;
    line-height: 1.25;
  }

  .service-content {
    padding: 0 0 24px 34px;
  }

  .service-content > p {
    font-size: 16px;
  }

  .service-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    padding: 18px 0;
  }

  .section-bottom {
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 28px;
    font-size: 16px;
  }

  .section-bottom > .micro {
    flex-shrink: 0;
    max-width: 34%;
    font-size:12px;
    text-align: right;
  }

  .care-visual {
    inset: 0 0 auto;
    height: 620px;
  }

  .care-note {
    top: 112px;
    width: 270px;
  }

  .care h2 {
    font-size: clamp(40px, 5.2vw, 58px);
    line-height: 1;
    padding-top: 310px;
    margin: 0 var(--pad) 34px;
  }

  .care-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    gap: 0;
    padding: 30px var(--pad) 34px;
  }

  .care-steps article {
    min-width: 0;
    padding: 0 20px;
  }

  .care-steps article:last-child {
    padding-right: 0;
  }

  .care-steps h3 {
    font-size: 22px;
    line-height: 1.15;
    margin-top: 18px;
  }

  .care-steps p {
    font-size: 16px;
  }

  .care-steps p br,
  .booking .lead br {
    display: none;
  }

  .work {
    padding-bottom: 32px;
    justify-content: flex-start;
  }

  .work-heading {
    gap: 28px;
    padding: 56px var(--pad) 32px;
  }

  .work h2 {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.04;
  }

  .gallery-controls {
    flex-shrink: 0;
  }

  .gallery-count {
    margin-right: 12px;
  }

  .gallery-track {
    gap: 26px;
  }

  .gallery-window {
    width: calc(100% - var(--pad));
  }

  .work-card {
    flex-basis: calc(100vw - 2 * var(--pad));
  }

  .photo-button {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .photo-open {
    right: 16px;
    bottom: 16px;
    opacity: 1;
    transform: none;
  }

  .work-card figcaption {
    gap: 24px;
    padding-top: 20px;
  }

  .work-card figcaption .micro,
  .work-bottom .micro {
    font-size:12px;
  }

  .work-card h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .work-card figcaption p,
  .work-bottom p {
    font-size: 16px;
  }

  .work-bottom {
    gap: 28px;
    align-items: flex-start;
    margin-top: 30px;
  }

  .work-bottom > .micro {
    max-width: 50%;
  }

  .booking {
    --red: #c52a23;
    background: var(--red);
    color: #fff;
  }

  .booking .section-label > span:last-child {
    opacity: 1;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    margin: 0 var(--pad);
    padding: 56px 0 48px;
  }

  .booking h2 {
    font-size: clamp(36px, 4.7vw, 48px);
    line-height: 1.02;
  }

  .booking .lead {
    font-size: 16px;
    margin-top: 24px;
  }

  .booking-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
  }

  .booking-facts > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .display-number {
    font-size: 56px;
    letter-spacing: -.04em;
  }

  .booking-facts p {
    font-size: 16px;
  }

  #booking-form {
    padding: 28px 24px;
  }

  #selected-service {
    font-size: 16px;
    color: #5b5e54;
    margin-bottom: 28px;
    overflow-wrap: anywhere;
  }

  #booking-form label {
    font-size: 14px;
  }

  #booking-form input {
    font-size: 20px;
    min-height: 49px;
  }

  #booking-form input::placeholder {
    color: #5b5e54;
  }

  #booking-form .button {
    min-width: 0;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    gap: 16px;
    padding: 18px 20px;
    font-size: 16px;
  }

  .field-error,
  .form-note {
    font-size: 12px;
  }

  .form-note {
    color: #5b5e54;
  }

  .form-result {
    font-size: 16px;
  }

  .booking-bottom {
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 28px;
  }

  .booking-bottom > .micro {
    font-size:12px;
  }

  .booking-bottom > p {
    font-size: 16px;
  }

  .footer .section-label {
    align-items: center;
    gap: 16px;
  }

  .back-top {
    flex-shrink: 0;
    min-height: 44px;
    gap: 8px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding-top: 48px;
  }

  .footer h2 {
    font-size: clamp(38px, 5.2vw, 54px);
    line-height: 1.04;
  }

  .footer-top .button {
    width: 292px;
    max-width: 100%;
    min-width: 0;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: 16px;
  }

  .footer-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 42px;
  }

  .footer-info .micro {
    font-size:12px;
    margin-bottom: 12px;
  }

  .footer-info p,
  .footer-phone {
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .footer-phone {
    min-height: 44px;
  }

  .footer-info > div > span:last-child {
    font-size: 14px;
  }

  .messengers {
    flex-wrap: wrap;
    gap: 0 18px;
    font-size: 16px;
  }

  .messengers a {
    min-height: 44px;
  }

  .footer-art {
    --footer-tire-size: clamp(210px, 44vw, 300px);
    height: clamp(240px, 48vw, 320px);
    flex: 0 0 auto;
    margin-top: 42px;
  }

  .footer-word {
    width: calc(100% - 2 * var(--pad));
    margin: 0 var(--pad) 12px;
    font-size: 11.3vw;
  }

  .footer-art img {
    width: var(--footer-tire-size);
    height: var(--footer-tire-size);
    left: calc(50% - var(--footer-tire-size) / 2);
    top: 0;
  }

  .footer-baseline {
    gap: 14px 24px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    font-size:12px;
  }

  dialog {
    max-width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }

  .lightbox {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .lightbox[open] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 60px 20px 22px;
  }

  .lightbox figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox figure img {
    height: min(58svh, 520px);
  }

  .lightbox figcaption {
    font-size: 16px;
    padding-top: 16px;
  }

  .lightbox .square-button {
    position: static;
    grid-row: 2;
  }

  .lightbox-prev {
    grid-column: 1;
    justify-self: start;
  }

  .lightbox-next {
    grid-column: 2;
    justify-self: end;
  }

  .contact-dialog {
    padding: 60px 28px 28px;
  }

  .contact-dialog h3 {
    font-size: 28px;
    margin-top: 24px;
  }

  .contact-dialog .button {
    min-width: 0;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: 16px;
  }

  .care-steps .micro,
  .form-title .micro {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .services-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .services h2,
  .work h2 {
    font-size: clamp(23px, 6.3vw, 44px);
    line-height: 1.06;
  }

  .services .lead {
    margin-top: 20px;
  }

  .fitment {
    padding-top: 32px;
  }

  .fitment > p {
    font-size: 42px;
  }

  .services-intro > .text-link {
    margin-top: 20px;
  }

  .service h3 {
    font-size: 20px;
  }

  .service-content {
    padding-left: 0;
  }

  .section-bottom {
    flex-direction: column;
    gap: 18px;
    padding-top: 24px;
  }

  .section-bottom > .micro {
    max-width: none;
    text-align: left;
  }

  .care-visual {
    height: max(460px, 105vw);
  }

  .care-visual img {
    object-position: 57% 45%;
  }

  .care-note {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 42px var(--pad) 0;
  }

  .care-note p {
    margin-top: 14px;
  }

  .care h2 {
    font-size: clamp(27px, 7.1vw, 48px);
    line-height: 1.04;
    padding-top: 0;
    margin-top: clamp(88px, 20vw, 140px);
    margin-bottom: 32px;
  }

  .care-steps {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .care-steps article,
  .care-steps article:first-child,
  .care-steps article:last-child {
    padding: 26px 0 28px;
  }

  .care-steps article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .care-steps h3 {
    margin-top: 13px;
  }

  .work-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 24px;
  }

  .gallery-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .gallery-count {
    margin-right: auto;
  }

  .square-button {
    width: 48px;
    height: 48px;
  }

  .photo-open {
    right: 12px;
    bottom: 12px;
  }

  .work-card figcaption {
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
  }

  .work-card h3 {
    font-size: 22px;
    margin-top: 7px;
  }

  .work-card figcaption p {
    max-width: none;
  }

  .work-card figcaption p br,
  .work-bottom p br {
    display: none;
  }

  .work-bottom {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .work-bottom > .micro {
    max-width: none;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .booking h2 {
    font-size: clamp(34px, 9vw, 56px);
  }

  .booking-facts {
    gap: 24px;
    margin-top: 32px;
  }

  .booking-facts > div {
    gap: 12px;
  }

  .display-number {
    font-size: 52px;
  }

  #booking-form {
    padding: 28px 22px;
  }

  .booking-bottom {
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
  }

  .footer-top {
    gap: 28px;
    padding-top: 36px;
  }

  .footer h2 {
    font-size: clamp(21px, 6.2vw, 46px);
    line-height: 1.08;
  }

  .footer-top .button {
    width: 100%;
  }

  .footer-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 36px;
  }

  .footer-info .micro {
    margin-bottom: 10px;
  }

  .footer-info p,
  .footer-phone {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .footer-info > div > span:last-child {
    font-size: 16px;
  }

  .messengers {
    gap: 0 24px;
  }

  .footer-art {
    margin-top: 36px;
  }

  .footer-baseline {
    justify-content: flex-start;
    gap: 12px 24px;
    margin-top: 20px;
    padding-bottom: 24px;
  }

  .footer-baseline span:nth-child(2) {
    order: 3;
    flex-basis: 100%;
  }

  .footer-baseline span:last-child {
    margin-left: auto;
  }

  .lightbox[open] {
    gap: 16px;
    padding: 60px 16px 18px;
  }

  .contact-dialog {
    padding: 60px 24px 24px;
  }

  .contact-dialog h3 {
    font-size: 26px;
  }
}
