/* Contacts-only R4 mobile correction. Desktop and shared mobile rules stay untouched. */
@media (max-width: 900px) {
  .page-contact {
    --contact-r4-bg: #0b0c0d;
    --contact-r4-panel: #171819;
    --contact-r4-field: #131415;
    --contact-r4-line: #383a3c;
    --contact-r4-muted: #adb0b2;
    background: var(--contact-r4-bg);
  }

  .page-contact .site-header {
    position: sticky !important;
    top: 0;
    z-index: 120;
    min-height: 51px !important;
    padding: 0 17px !important;
    border-bottom: 1px solid #303234;
    background: rgba(11, 12, 13, .98);
  }

  .page-contact .brand::before {
    content: "Юрий Gagarin";
    font-size: 15px;
    font-weight: 500;
  }

  .page-contact .section-dark,
  .page-contact .section-light,
  .page-contact .section-gray,
  .page-contact .section-graphite {
    background: var(--contact-r4-bg) !important;
    color: #f2f2f0;
  }

  .page-contact .contact-hero {
    padding: 17px 19px 13px !important;
  }

  .page-contact .contact-hero h1 {
    margin: 0 0 13px;
    font-size: 30px !important;
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.035em;
  }

  .page-contact .mobile-contact-lead {
    max-width: 345px;
    color: #c8c9ca;
    font-size: 12px;
    line-height: 1.55;
  }

  .page-contact .mobile-contact-rail {
    grid-auto-columns: 232px;
    gap: 12px;
    margin: 34px -19px 0 0;
    padding: 0 19px 3px 0;
  }

  .page-contact .mobile-contact-rail > a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: 19px 25px 35px;
    column-gap: 9px;
    align-content: start;
    height: 122px;
    min-height: 122px !important;
    padding: 12px;
    border: 1px solid var(--contact-r4-line);
    border-radius: 6px;
    background: linear-gradient(120deg, #171819, #111213) !important;
  }

  .page-contact .mobile-contact-rail > a > span {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #f1f1ef;
  }

  .page-contact .mobile-contact-rail svg,
  .page-contact .contact-notes svg,
  .page-contact .direct-contacts svg,
  .page-contact .fixed-actions svg,
  .page-contact .mobile-request-preview svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .page-contact .mobile-contact-rail b {
    align-self: end;
    overflow: hidden;
    color: var(--contact-r4-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-contact .mobile-contact-rail strong {
    align-self: start;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    transform: translateY(6px);
    white-space: nowrap;
  }

  .page-contact .mobile-contact-rail em {
    grid-column: 1 / -1;
    min-height: 35px;
    margin-top: 7px;
    border-color: #656769;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    transform: translateY(10px);
  }

  .page-contact .mobile-request-steps {
    padding: 15px 20px 13px;
    scroll-margin-top: 51px;
  }

  .page-contact .mobile-request-steps li {
    gap: 6px;
    font-size: 9px;
  }

  .page-contact .mobile-request-steps li:not(:last-child)::after {
    top: 12px;
    left: 62%;
    width: 76%;
    background: #444648;
  }

  .page-contact .mobile-request-steps b {
    width: 26px;
    height: 26px;
    font-weight: 400;
  }

  .page-contact .request {
    padding: 8px 19px 68px !important;
  }

  .page-contact .lead-form:has(.mobile-step-panel) {
    padding: 0;
  }

  .page-contact .lead-form[data-mobile-step-current="3"] > .mobile-step-panel {
    display: block !important;
  }

  .page-contact .mobile-step-panel {
    margin: 0 0 9px;
  }

  .page-contact .lead-form[data-mobile-step-current="1"] [data-mobile-step-panel="1"] {
    margin-bottom: 0;
  }

  .page-contact .mobile-step-toggle {
    position: relative;
    min-height: 58px;
    padding: 9px 12px;
    border-color: var(--contact-r4-line);
    border-radius: 6px;
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .mobile-step-toggle span {
    padding-right: 24px;
    font-size: 14px;
    font-weight: 400;
  }

  .page-contact .mobile-step-toggle small {
    margin-top: 4px;
    padding-right: 24px;
    color: var(--contact-r4-muted);
    font-size: 10px;
    line-height: 1.3;
  }

  .page-contact .mobile-step-panel[data-open] .mobile-step-toggle {
    border-bottom-color: transparent;
  }

  .page-contact .mobile-step-panel__body {
    padding: 8px 12px 12px;
    border-color: var(--contact-r4-line);
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .mobile-step-panel .form-row label {
    margin-bottom: 4px;
    color: #d8d9da;
    font-size: 11px;
    font-weight: 400;
  }

  .page-contact .mobile-step-panel .form-row input,
  .page-contact .mobile-step-panel .form-row select,
  .page-contact .mobile-step-panel .form-row textarea {
    border-color: #4a4c4e !important;
    border-radius: 5px;
    background: var(--contact-r4-field) !important;
    color: #f2f2f0 !important;
    font-size: 12px;
  }

  .page-contact [data-mobile-step-panel="1"][data-open] .mobile-step-toggle {
    min-height: 68px;
  }

  .page-contact [data-mobile-step-panel="1"] .mobile-step-panel__body {
    padding-top: 11px;
  }

  .page-contact [data-mobile-step-panel="1"] .form-row {
    margin-bottom: 13px;
  }

  .page-contact [data-mobile-step-panel="1"] .form-row input,
  .page-contact [data-mobile-step-panel="1"] .form-row select {
    height: 40px;
    min-height: 40px;
  }

  .page-contact [data-mobile-step-panel="2"][data-open] .mobile-step-toggle small {
    display: none;
  }

  .page-contact .lead-form[data-mobile-step-current="3"] [data-mobile-step-panel="2"] .mobile-step-toggle {
    min-height: 73px;
  }

  .page-contact .lead-form[data-mobile-step-current="3"] [data-mobile-step-panel="2"] .mobile-step-toggle small {
    white-space: normal;
  }

  .page-contact [data-mobile-step-panel="2"][data-open] .mobile-step-toggle {
    min-height: 42px;
  }

  .page-contact [data-mobile-step-panel="2"] .mobile-step-panel__body {
    padding-top: 4px;
  }

  .page-contact [data-mobile-step-panel="2"] .form-row {
    margin-bottom: 5px;
  }

  .page-contact [data-mobile-step-panel="2"] .form-row input,
  .page-contact [data-mobile-step-panel="2"] .form-row select {
    height: 32px;
    min-height: 32px;
    padding: 5px 10px;
  }

  .page-contact [data-mobile-step-panel="2"] textarea {
    height: 58px !important;
    min-height: 58px;
    padding: 7px 10px;
  }

  .page-contact [data-mobile-step-panel="2"] .consent {
    min-height: 44px;
    margin: 1px 0 9px;
    padding: 2px 0;
    color: #c8cacc;
    font-size: 9px;
    line-height: 1.35;
  }

  .page-contact [data-mobile-step-panel="2"] .consent a {
    min-height: 0;
  }

  .page-contact .mobile-step-next,
  .page-contact [data-mobile-step-panel="2"] .submit-button {
    min-height: 44px;
    margin-top: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
  }

  .page-contact [data-mobile-step-panel="3"][data-open] .mobile-step-toggle {
    min-height: 57px;
  }

  .page-contact [data-mobile-step-panel="3"][data-open] {
    min-height: 480px;
  }

  .page-contact [data-mobile-step-panel="3"] .mobile-step-panel__body {
    padding: 0 11px 10px;
  }

  .page-contact [data-mobile-step-panel="3"] [data-prepared] {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .page-contact [data-mobile-step-panel="3"] [data-prepared] > .section-no,
  .page-contact [data-mobile-step-panel="3"] [data-prepared] > .preview-note,
  .page-contact [data-mobile-step-panel="3"] .prepared-actions {
    display: none;
  }

  .page-contact [data-mobile-step-panel="3"] [data-prepared] > h3 {
    margin: 0;
    padding: 9px 10px 6px;
    border: 1px solid var(--contact-r4-line);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    font-size: 11px;
    font-weight: 500;
  }

  .page-contact [data-mobile-step-panel="3"] [data-summary] {
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
    margin: 0 0 10px;
    padding: 0 10px 9px;
    border-color: var(--contact-r4-line);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    font-size: 10px;
    line-height: 1.25;
    min-height: 142px;
  }

  .page-contact [data-mobile-step-panel="3"] [data-summary] dt {
    color: #aeb1b3;
    font-weight: 400;
  }

  .page-contact [data-mobile-step-panel="3"] [data-summary] dd {
    overflow: hidden;
    color: #e5e5e3;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-contact .mobile-wa-draft-r4 h4,
  .page-contact .mobile-request-state-r4 h4 {
    margin: 0 0 5px;
    font-size: 10px;
    font-weight: 400;
  }

  .page-contact .mobile-wa-draft-r4 pre {
    height: 137px;
    margin: 0 0 9px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--contact-r4-line);
    border-radius: 5px;
    background: #151617;
    color: #c8cacc;
    font: 10px/1.25 Inter, Arial, sans-serif;
    white-space: pre-wrap;
  }

  .page-contact .mobile-request-state-r4 ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-contact .mobile-request-state-r4 {
    min-height: 56px;
  }

  .page-contact .mobile-request-state-r4 li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #9fa2a4;
    font-size: 9px;
    text-align: center;
  }

  .page-contact .mobile-request-state-r4 li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 58%;
    width: 84%;
    height: 1px;
    background: #3d3f41;
  }

  .page-contact .mobile-request-state-r4 b {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 1px solid #d9d9d7;
    border-radius: 50%;
    background: var(--contact-r4-panel);
  }

  .page-contact .mobile-request-state-r4 li:first-child b {
    border: 4px solid #f0f0ee;
  }

  .page-contact .form-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .page-contact .mobile-request-preview {
    display: none;
    margin: 3px 0 0;
    border-color: var(--contact-r4-line);
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .lead-form[data-mobile-step-current="1"] ~ .mobile-request-preview {
    display: block;
  }

  .page-contact .mobile-request-preview summary {
    justify-content: flex-start;
    min-height: 45px;
    padding: 8px 12px;
    font-size: 11px;
    list-style: none;
  }

  .page-contact .mobile-request-preview summary::after {
    content: "⌄";
    margin-left: auto;
    color: #d4d4d2;
    font-size: 17px;
  }

  .page-contact .mobile-request-preview[open] summary::after {
    transform: rotate(180deg);
  }

  .page-contact .whatsapp-preview {
    display: none !important;
  }

  .page-contact .steps-section {
    padding: 0 20px 11px;
    scroll-margin-top: -5px;
  }

  .page-contact .mobile-process-title-r4 {
    position: sticky;
    top: 51px;
    z-index: 2;
    margin: 0 0 6px;
    padding: 7px 0;
    background: var(--contact-r4-bg);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
  }

  .page-contact .contact-notes {
    gap: 4px;
  }

  .page-contact .contact-notes article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    min-height: 68px;
    padding: 8px 12px;
    border: 1px solid var(--contact-r4-line);
    border-radius: 5px;
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .contact-notes article > span {
    position: static;
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    align-self: center;
    width: 34px;
    height: 34px;
    color: #f0f0ee;
    font-size: 0;
  }

  .page-contact .contact-notes h2 {
    grid-column: 2;
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  .page-contact .contact-notes p {
    grid-column: 2;
    margin: 0;
    color: #b9bbbd;
    font-size: 10px;
    line-height: 1.3;
  }

  .page-contact .mobile-contact-faq {
    padding: 0 20px 12px;
    background: var(--contact-r4-bg);
  }

  .page-contact .mobile-contact-faq h2 {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 400;
  }

  .page-contact .mobile-contact-faq details {
    margin: 0;
    border-color: var(--contact-r4-line);
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .mobile-contact-faq summary {
    justify-content: space-between;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 10px;
    line-height: 1.2;
    list-style: none;
  }

  .page-contact .mobile-contact-faq summary::-webkit-details-marker {
    display: none;
  }

  .page-contact .mobile-contact-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 18px;
    font-weight: 300;
  }

  .page-contact .mobile-contact-faq details[open] summary::after {
    content: "−";
  }

  .page-contact .mobile-contact-faq details p {
    margin: 0;
    padding: 0 10px 9px;
    color: #b9bbbd;
    font-size: 10px;
    line-height: 1.35;
  }

  .page-contact .direct-contacts {
    padding: 2px 20px 82px;
  }

  .page-contact .direct-contacts .section-heading {
    margin: 0 0 9px;
  }

  .page-contact .direct-contacts h2 {
    font-size: 13px;
    font-weight: 400;
  }

  .page-contact .direct-contacts .contact-cards {
    gap: 4px;
  }

  .page-contact .direct-contacts .contact-cards > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    min-height: 48px;
    padding: 6px 12px;
    border: 1px solid var(--contact-r4-line);
    border-radius: 5px;
    background: linear-gradient(120deg, #191a1b, #141516);
  }

  .page-contact .direct-contacts .contact-cards > a:last-child {
    display: none !important;
  }

  .page-contact .site-footer {
    display: none;
  }

  .page-contact .direct-contacts .contact-cards > a > span:first-child {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #f0f0ee;
    font-size: 0;
  }

  .page-contact .direct-copy-r4 {
    display: grid;
    gap: 1px;
  }

  .page-contact .direct-copy-r4 small {
    color: #aeb0b2;
    font-size: 9px;
  }

  .page-contact .direct-copy-r4 strong {
    font-size: 12px;
    font-weight: 500;
  }

  .page-contact .direct-tail-r4 {
    display: grid;
    place-items: center;
    color: #dfe0de;
  }

  .page-contact .fixed-actions {
    left: 9px;
    right: 9px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 130;
    grid-template-columns: .92fr 1fr;
    gap: 8px;
    padding: 9px 0 0;
    border: 0;
    border-top: 1px solid #303234;
    border-radius: 0;
    background: rgba(11, 12, 13, .97);
    backdrop-filter: blur(12px);
  }

  .page-contact .fixed-actions a,
  .page-contact .fixed-actions a:first-child,
  .page-contact .fixed-actions a:last-child {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    min-height: 45px;
    padding: 6px 10px;
    border: 1px solid #696b6d;
    border-radius: 4px;
    background: #0e0f10;
    color: #f2f2f0;
    font-size: 11px;
    font-weight: 400;
  }

  .page-contact .fixed-actions a > b {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    font-size: 0;
  }

  .page-contact .fixed-actions a > span {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
    text-align: left;
  }

  .page-contact .fixed-actions small {
    margin-top: 2px;
    color: #d8d9d7;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .page-contact .mobile-step-panel input,
  .page-contact .mobile-step-panel select,
  .page-contact .mobile-contact-faq summary { min-height:44px !important; }
}
