@media (max-width: 767px) {
  html body.contact-page #main-content .contact-page-form {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px 20px !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    border-radius: 18px !important;
    background: linear-gradient(140deg, #fff, #edf1f6) !important;
    box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(29,29,31,.08) !important;
  }
  html body.contact-page #main-content .contact-page-field-grid {
    gap: 20px !important;
  }
  html body.contact-page #main-content .contact-page-field {
    min-width: 0 !important;
    gap: 8px !important;
  }
  html body.contact-page #main-content .contact-page-field > span,
  html body.contact-page #main-content .contact-page-field-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #454b55 !important;
    letter-spacing: 0 !important;
  }
  html body.contact-page #main-content .contact-page-field :is(input, textarea, select),
  html body.contact-page #main-content .contact-page-field .enetki-select-trigger {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 13px 14px !important;
    border: 1px solid #d6dce4 !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.85) !important;
    color: #252a32 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    box-shadow: inset 0 1px 0 #fff !important;
    transition: border-color 180ms ease, box-shadow 180ms ease !important;
  }
  html body.contact-page #main-content .contact-page-field :is(input, textarea)::placeholder { color: #858d98 !important; }
  html body.contact-page #main-content .contact-page-field :is(input, textarea, select):focus,
  html body.contact-page #main-content .contact-page-field .enetki-select-trigger:focus-visible,
  html body.contact-page #main-content .contact-page-field .enetki-select.is-open .enetki-select-trigger {
    outline: none !important;
    border-color: #77879b !important;
    box-shadow: 0 0 0 3px rgba(83,105,137,.1) !important;
  }
  html body.contact-page #main-content .contact-page-message { margin-top: 20px !important; }
  html body.contact-page #main-content .contact-page-field textarea { min-height: 150px !important; resize: vertical; }
  html body.contact-page #main-content .contact-page-consent { margin-top: 20px !important; }
  html body.contact-page #main-content .contact-page-consent em { font-weight: 400 !important; line-height: 1.6 !important; }
  html body.contact-page #main-content .contact-page-submit-row { margin-top: 22px !important; gap: 12px !important; }
  html body.contact-page #main-content .contact-page-submit-row button {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 11px !important;
    justify-content: space-between !important;
    padding-inline: 18px !important;
    background: #24282f !important;
    box-shadow: 0 5px 14px rgba(29,29,31,.12) !important;
  }
  html body.contact-page #main-content .contact-page-submit-row button span { font-size: 12px !important; font-weight: 500 !important; }

  html body.contact-page #main-content .contact-page-form-grid {
    gap: 26px !important;
  }
  html body #main-content .home-platforms #platforms-title {
    width: 100% !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  html body .site-header .header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  html body .site-header .brand {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  html body .site-header .brand-logo {
    display: block !important;
    max-height: 32px !important;
    object-fit: contain !important;
    margin: 0 !important;
    transform: none !important;
  }
  html body .site-header .header-actions {
    display: flex !important;
    height: 42px !important;
    align-items: center !important;
    align-self: center !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
    transform: none !important;
  }
  html body .site-header .language-switch,
  html body .site-header .menu-toggle {
    align-self: center !important;
    margin-block: 0 !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  html body .site-header .menu-toggle {
    position: relative !important;
    padding: 0 !important;
  }
  html body .site-header .menu-toggle > span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 20px !important;
    height: 1px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    transition: transform 280ms ease, opacity 180ms ease !important;
  }
  html body .site-header .menu-toggle > span:first-child { transform: translate(-50%, calc(-50% - 6px)) !important; }
  html body .site-header .menu-toggle > span:last-child { transform: translate(-50%, calc(-50% + 6px)) !important; }
  html body .site-header .menu-toggle[aria-expanded="true"] > span:first-child { transform: translate(-50%, -50%) rotate(45deg) !important; }
  html body .site-header .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0 !important; }
  html body .site-header .menu-toggle[aria-expanded="true"] > span:last-child { transform: translate(-50%, -50%) rotate(-45deg) !important; }

  /* Use one rhythm between footer groups, and a tighter rhythm within them. */
  html body .site-footer .footer-main { padding-block: 0 !important; }
  html body .site-footer .footer-main > .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 28px !important;
    padding-block: 32px 28px !important;
  }
  html body .site-footer :is(.footer-slogan, .footer-brand, .footer-contact) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-block: 0 !important;
    text-align: center !important;
  }
  html body .site-footer :is(.footer-brand, .footer-contact) {
    display: contents !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html body .site-footer .footer-description { order: 1 !important; }
  html body .site-footer .footer-socials { order: 2 !important; }
  html body .site-footer .footer-slogan { order: 3 !important; padding: 0 !important; }
  html body .site-footer .footer-contact-group { order: 4 !important; }
  html body .site-footer .footer-contact-group + .footer-contact-group { order: 5 !important; }
  html body .site-footer :is(.footer-description, .footer-contact h3, .footer-contact-group, .footer-socials, .footer-logo) {
    margin: 0 !important;
  }
  html body .site-footer .footer-contact-group {
    display: grid !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html body .site-footer .footer-contact-group p { margin: 0 !important; }
  html body .site-footer .footer-bottom-inner {
    gap: 24px !important;
    padding-block: 0 24px !important;
  }

  /* Keep each feature's title, copy and video visually connected. */
  html body.civi-page #main-content :is(.civi-autonomous-transfer, .civi-engagement, .civi-integration, .civi-mission-cancel) {
    padding: 28px 0 !important;
    margin-block: 0 !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-inner, .civi-engagement__inner, .civi-integration__inner, .civi-mission-cancel__inner) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 32px) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    gap: 20px !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-copy, .civi-engagement__content, .civi-mission-cancel__content) {
    grid-row: 1 !important;
    order: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-copy, .civi-engagement__content, .civi-mission-cancel__content) > :is(h2, p) {
    margin: 0 !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-number, .civi-autonomous-transfer-label) { display: none !important; }
  html body.civi-page #main-content .civi-integration__grid { gap: 28px !important; }
  html body.civi-page #main-content .civi-integration__item {
    display: grid !important;
    gap: 14px !important;
    padding: 0 !important;
  }
  html body.civi-page #main-content .civi-integration__item > :is(h3, p) { margin: 0 !important; }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-media, .civi-engagement__video, .civi-mission-cancel__media, .civi-integration__video) {
    width: 100% !important;
    margin: 0 !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-media, .civi-engagement__video, .civi-mission-cancel__media) {
    grid-row: 2 !important;
    order: 1 !important;
    align-self: start !important;
  }
  html body.civi-page #main-content .civi-integration__video { margin-top: 6px !important; }

  html body.product-template-page #main-content .civi-capabilities .civi-capabilities-content .civi-catalog-capabilities {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
  }
  html body.product-template-page #main-content .civi-capabilities .civi-capabilities-content .civi-catalog-capabilities > li {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 100% !important;
    min-height: 100px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    padding: 12px !important;
  }
}
