.benefit-copy,
.footer-contact-details {
  display: contents;
}

.footer-menu { grid-column: 2; grid-row: 1; }
.footer-contact { grid-column: 3; grid-row: 1; }

.contact-facade-mobile,
.contact-route-mobile {
  display: none;
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .section:where(.popular, .benefits, .services, .offers),
  .contacts {
    padding-block: 32px;
  }

  .section:where(.popular, .benefits, .services, .offers) h2,
  .contact-card h2 {
    font-size: 27px;
    font-weight: 800;
    line-height: 33px;
  }

  .popular .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .popular .section-heading { display: contents; }
  .popular .section-heading .button {
    order: 1;
    padding-block: 10px;
    font-size: 13px;
    line-height: 18px;
  }
  .popular .section-heading .button span { display: none; }
  .popular-grid {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 14px;
  }
  .popular table + table {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .popular :is(th, td) {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
  }
  .popular td {
    width: 92px;
    padding-left: 0;
    padding-right: 18px;
  }
  .price-note {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
  }

  .benefit-grid,
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }
  .benefit-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 0;
    align-items: start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }
  .benefit-card img { width: 36px; height: 36px; }
  .benefit-copy { display: grid; gap: 3px; }
  .benefit-card h3 { font-size: 16px; line-height: 22px; }
  .benefit-card br,
  .offer-small br { display: none; }

  .service-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 0;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
  }
  .service-card img { width: 88px; height: 84px; border-radius: 11px; }
  .service-card > div { padding: 0; }
  .service-card h3 { margin-bottom: 4px; font-size: 17px; line-height: 23px; font-weight: 800; }
  .service-card p { font-size: 14px; line-height: 20px; }

  .offers .section-heading { gap: 12px; margin-bottom: 12px; }
  .offers .section-heading .button {
    padding-inline: 16px;
    font-size: 13px;
  }
  .offer-featured {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 16px;
  }
  .offer-featured img { grid-row: 1; height: 144px; }
  .offer-featured .offer-copy { gap: 10px; padding: 14px; }
  .offer-featured h3 { font-size: 22px; line-height: 28px; }
  .offer-featured p { font-size: 14px; line-height: 20px; }
  .offer-featured .button {
    padding: 10px 16px;
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
  }
  .offers-secondary { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .offer-small {
    grid-template-columns: minmax(0, 1fr) 94px;
    min-height: 0;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border-radius: 14px;
  }
  .offer-small .offer-copy { gap: 4px; padding: 0; }
  .offer-small h3 { font-size: 16px; line-height: 22px; }
  .offer-small p { font-size: 13px; line-height: 19px; }
  .offer-small img { height: 87px; border-radius: 8px; }

  .contacts { background: var(--dark); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-card { display: contents; }
  .contact-card h2 { color: var(--white); }
  .contact-facade-mobile {
    display: block;
    width: 100%;
    height: 133px;
    border-radius: 14px;
    object-fit: cover;
  }
  .contact-rule,
  .contact-phone,
  .contact-card .contact-route-desktop { display: none; }
  .contact-card address {
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--white);
    font-size: 14px;
    line-height: 20px;
  }
  .contact-card address strong { font-size: 17px; line-height: 23px; }
  .contact-card address span.contact-floor,
  .contact-card address span.contact-metro {
    order: 1;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }
  .contact-card address .contact-address { color: var(--gold-dark); font-weight: 700; }
  .contact-card address span.contact-metro { color: var(--muted); }
  .contact-map { height: 190px; border-radius: 14px; }
  .contact-route-mobile { display: flex; font-size: 13px; line-height: 18px; }

  .site-footer { padding-block: 28px; }
  .footer-layout {
    grid-template-columns: 80px 20px minmax(0, 1fr);
    column-gap: 0;
    row-gap: 20px;
    align-items: start;
  }
  .footer-brand img { width: 80px; height: 80px; }
  .footer-layout .footer-contact { display: contents; }
  .footer-contact-details {
    display: grid;
    grid-area: 1 / 2 / 2 / -1;
    align-self: center;
    gap: 4px;
    padding-left: 16px;
    font-size: 13px;
    line-height: 19px;
    font-weight: 500;
  }
  .footer-contact-details h2 { display: none; }
  .footer-phone { justify-self: start; color: var(--white); font-size: 17px; line-height: 24px; }
  .footer-messengers {
    grid-area: 2 / 1 / 3 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  .footer-messengers .button {
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
  }
  .footer-layout nav { gap: 6px; font-size: 13px; line-height: 21px; }
  .footer-menu { grid-area: 3 / 1 / 4 / 3; }
  .footer-docs { grid-area: 3 / 3 / 4 / -1; margin-left: 16px; }
  .footer-legal {
    display: grid;
    gap: 2px;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 12px;
    line-height: 18px;
  }

  .booking-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .booking-dialog::backdrop { background: var(--white); }
  .booking-heading { align-items: flex-start; margin-bottom: 16px; }
  .booking-heading h2 { max-width: 250px; font-size: 25px; line-height: 31px; }
  .booking-close { width: 44px; height: 44px; }
  .booking-options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .booking-option { min-height: 0; gap: 14px; padding: 16px; }
  .booking-option h3 { margin-bottom: 4px; font-size: 20px; line-height: 28px; }
  .booking-option p { font-size: 14px; line-height: 21px; }
  .booking-chats { display: grid; width: 100%; gap: 8px; }
  .booking-option .button { width: 100%; min-height: 46px; padding: 10px 12px; }

  .cookie-banner {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(366px, calc(100% - 24px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 14px;
  }
  .cookie-copy { flex: none; }
  .cookie-title {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
  }
  .cookie-copy p { font-weight: 400; }
  .cookie-actions { width: 100%; }
  .cookie-analytics { min-height: 48px; }
  .cookie-essential { min-height: 28px; }
}
