/* About R4 — page-local 390 px composition after the shared mobile layer. */
@media (max-width: 900px) {
  .page-about {
    --about-bg: #061015;
    --about-panel: #0a151a;
    --about-line: #273239;
    --about-muted: #b8bec1;
    background: var(--about-bg);
  }

  .page-about .brand::before { content: "Юрий Гагарин"; }
  .page-about .site-header {
    position: static !important;
    min-height: 52px !important;
    border-bottom: 1px solid #202b31;
    background: #080d10;
  }
  .page-about main { display: flex; flex-direction: column; background: var(--about-bg); }
  .page-about main > * { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }

  .page-about .about-detail { order: 1; min-height: 0 !important; background: #05090b !important; }
  .page-about [data-mobile-hero-photo] {
    width: 100%;
    height: 295px !important;
    min-height: 295px !important;
    border: 0 !important;
  }
  .page-about [data-mobile-hero-photo] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
  .page-about [data-mobile-hero-copy] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 278px;
    padding: 22px 20px 18px !important;
    background: #05090b;
  }
  .page-about [data-mobile-hero-copy] .eyebrow {
    margin: 0 0 12px;
    color: var(--about-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .06em;
  }
  .page-about [data-mobile-hero-copy] h1 { margin: 0 0 8px; line-height: 1.1; }
  .page-about [data-mobile-hero-copy] h1::before {
    content: "Юрий Gagarin";
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
  }
  .page-about .about-stage-name { margin: 0 0 18px; line-height: 1.4; }
  .page-about .about-stage-name::before { font-size: 14px; font-weight: 400; }
  .page-about [data-mobile-hero-copy] .detail-lead {
    margin: 0 0 24px;
    color: #d4d7d8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.48;
  }
  .page-about [data-mobile-hero-copy] .button {
    box-sizing: border-box;
    width: 100%;
    min-height: 45px !important;
    font-size: 13px;
    font-weight: 500;
  }
  .page-about [data-mobile-hero-copy] .button::before { content: "▣"; margin-right: 12px; font-size: 15px; }

  .page-about .about-confirmed {
    order: 2;
    min-height: 0 !important;
    padding: 14px 20px 24px !important;
    border: 0;
    background: #05090b !important;
  }
  .page-about .about-confirmed .section-heading { margin: 0 0 12px; }
  .page-about .about-confirmed .section-heading::after { content: none !important; }
  .page-about .about-confirmed .section-heading h2 { font-size: 0 !important; }
  .page-about .about-confirmed .section-heading h2::before {
    content: "Подтверждённые сведения";
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
  }
  .page-about .about-confirmed-grid { display: none !important; }
  .page-about .mobile-confirmed-rail {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 10px;
    margin: 0;
    padding: 0 0 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .page-about .mobile-confirmed-rail::-webkit-scrollbar { display: none; }
  .page-about .mobile-confirmed-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    height: 126px;
    min-height: 126px;
    padding: 16px;
    border: 1px solid var(--about-line);
    border-radius: 6px;
    background: var(--about-panel);
    scroll-snap-align: start;
  }
  .page-about .mobile-confirmed-card span { font-size: 25px; font-weight: 400; }
  .page-about .mobile-confirmed-card p {
    margin: 0;
    color: #e6e7e5;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }
  .page-about .mobile-rail-pagination {
    display: flex !important;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
  }

  .page-about .mobile-about-facts-list {
    display: block !important;
    order: 3;
    padding: 0 21px 20px;
    background: var(--about-bg);
  }
  .page-about .mobile-about-facts-list h2 {
    margin: 0 0 5px;
    padding-top: 9px;
    border-top: 1px solid #c6c9c9;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
  }
  .page-about .mobile-about-facts-list > p {
    margin: 0 0 12px;
    color: var(--about-muted);
    font-size: 12px;
    line-height: 1.4;
  }
  .page-about .mobile-about-facts-list > article {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 62px;
    padding: 9px 14px;
    border: 1px solid var(--about-line);
    border-radius: 6px;
    background: var(--about-panel);
  }
  .page-about .mobile-about-facts-list > article span { font-size: 24px; }
  .page-about .mobile-about-facts-list > article strong { font-size: 12px; font-weight: 400; line-height: 1.4; }
  .page-about .mobile-about-facts-list address {
    position: relative;
    display: grid;
    margin-top: 7px;
    padding: 7px 14px 7px 63px;
    border: 1px solid var(--about-line);
    border-radius: 6px;
    background: var(--about-panel);
    font-style: normal;
  }
  .page-about .mobile-about-facts-list address::before {
    content: "☎";
    position: absolute;
    margin: 12px 0 0 -48px;
    font-size: 24px;
  }
  .page-about .mobile-about-facts-list address a {
    min-height: 0;
    padding: 3px 0;
    color: #e2e4e3;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .page-about .mobile-about-facts-list address a:first-child { display: grid; }
  .page-about .mobile-about-facts-list address b { font-weight: 400; }

  .page-about .story-section { display: none !important; }
  .page-about .formats-list {
    position: relative;
    order: 4;
    padding: 18px 20px 28px !important;
    background: #05090b !important;
  }
  .page-about .formats-list .section-heading { margin: 0 0 10px; }
  .page-about .formats-list .section-no { display: none; }
  .page-about .formats-list h2 { font-size: 0 !important; }
  .page-about .formats-list h2::before { content: "Форматы мероприятий"; font-size: 16px; font-weight: 400; }
  .page-about .about-format-links {
    box-sizing: border-box;
    width: calc(100% + 40px);
    max-width: none;
    margin-inline: -20px;
    padding: 0 56px 2px;
    grid-auto-columns: 278px;
    justify-content: start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    scroll-padding-inline: 56px;
  }
  .page-about .about-format-links::-webkit-scrollbar { display: none; }
  .page-about .about-format-links a {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    min-height: 74px !important;
    padding: 10px 14px;
    border-color: var(--about-line);
    border-radius: 6px;
    background: var(--about-panel);
    scroll-snap-align: center;
  }
  .page-about .about-format-links a::before { content: "▣"; grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 25px; }
  .page-about .about-format-links a span { display: none; }
  .page-about .about-format-links a strong { grid-column: 2; grid-row: 1; font-size: 11px; font-weight: 400; }
  .page-about .about-format-links a small { display: block; grid-column: 2; grid-row: 2; color: var(--about-muted); font-size: 9px; font-weight: 400; line-height: 1.35; }
  .page-about .formats-list .section-heading::before,
  .page-about .formats-list .section-heading::after {
    position: absolute;
    z-index: 2;
    top: 76px;
    color: #d9dcdd;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }
  .page-about .formats-list .section-heading::before { content: "‹"; left: 15px; }
  .page-about .formats-list .section-heading::after { content: "›"; right: 15px; }
  .page-about .mobile-format-pagination {
    display: flex !important;
    justify-content: center;
    gap: 7px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
  }
  .page-about .mobile-format-pagination li {
    width: 5px;
    height: 5px;
    overflow: hidden;
    border-radius: 50%;
    background: #465057;
    color: transparent;
  }
  .page-about .mobile-format-pagination li[aria-current] { background: #fff; }

  .page-about .language-section {
    order: 5;
    min-height: 0 !important;
    padding: 12px 16px 8px !important;
    border-top: 0 !important;
    background: var(--about-bg) !important;
  }
  .page-about .language-section .section-heading { margin: 0 0 10px; }
  .page-about .language-section .section-no { display: none; }
  .page-about .language-section .section-heading h2 {
    max-width: 355px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.02em;
  }
  .page-about .mobile-language-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 115px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 15px;
  }
  .page-about .mobile-language-split p {
    margin: 2px 0 0;
    color: #d0d4d5;
    font-size: 11px;
    line-height: 1.58;
  }
  .page-about .mobile-language-split img {
    display: block;
    width: 115px;
    height: 193px;
    border: 1px solid var(--about-line);
    border-radius: 3px;
    object-fit: cover;
    object-position: 54% 18%;
  }
  .page-about .mobile-language-split img { content: url('/gagarin/assets/desktop-blue-suit-portrait.png'); object-position: center 18%; }
  .page-about .mobile-about-timeline-title {
    display: block !important;
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 400;
  }
  .page-about .language-section .prose-columns { display: block; }
  .page-about .language-section blockquote { display: none; }
  .page-about .about-timeline { display: grid; gap: 0; margin: 0 0 8px 17px; padding: 0; list-style: none; }
  .page-about .about-timeline li {
    position: relative;
    box-sizing: border-box;
    min-height: 67px;
    padding: 9px 8px 8px 31px;
    border: 0;
    border-left: 1px solid var(--about-line);
  }
  .page-about .about-timeline b {
    position: absolute;
    top: 8px;
    left: -13px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #637077;
    border-radius: 50%;
    background: var(--about-bg);
    font-size: 10px;
    font-weight: 400;
  }
  .page-about .about-timeline b { font-size: 0; }
  .page-about .about-timeline li:nth-child(1) b::before { content: "1"; }
  .page-about .about-timeline li:nth-child(2) b::before { content: "2"; }
  .page-about .about-timeline li:nth-child(3) b::before { content: "3"; }
  .page-about .about-timeline li:nth-child(4) b::before { content: "4"; }
  .page-about .about-timeline b::before { font-size: 10px; }
  .page-about .about-timeline h3 { margin: 0 0 4px; font-size: 12px; font-weight: 400; }
  .page-about .about-timeline p { margin: 0; color: var(--about-muted); font-size: 10px; line-height: 1.4; }

  .page-about .mobile-about-boundaries { display: block !important; margin: 0 -16px; padding: 8px 16px 8px; border-top: 1px solid #1d292f; }
  .page-about .mobile-about-boundaries > h3 { margin: 0 0 8px; font-size: 15px; font-weight: 400; }
  .page-about .mobile-about-boundaries details {
    margin: 0 0 3px;
    border: 1px solid var(--about-line);
    border-radius: 5px;
    background: var(--about-panel);
  }
  .page-about .mobile-about-boundaries summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 34px 7px 10px;
    color: #d9dcdd;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }
  .page-about .mobile-about-boundaries summary::-webkit-details-marker { display: none; }
  .page-about .mobile-about-boundaries summary::after { content: "⌄"; position: absolute; right: 12px; font-size: 14px; }
  .page-about .mobile-about-boundaries details[open] summary::after { content: "⌃"; }
  .page-about .mobile-about-boundaries details p { margin: 0; padding: 0 10px 10px; color: var(--about-muted); font-size: 9px; line-height: 1.4; }

  .page-about .about-gallery {
    order: 6;
    padding: 18px 11px 10px !important;
    background: #05090b !important;
  }
  .page-about .about-gallery .section-heading { margin: 0 0 10px; }
  .page-about .about-gallery .section-no,
  .page-about .about-gallery .section-heading > p:last-child { display: none; }
  .page-about .about-gallery h2 { font-size: 16px; font-weight: 400; }
  .page-about .about-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .page-about .about-gallery-grid figure {
    box-sizing: border-box;
    height: 68px;
    min-height: 68px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--about-line);
    border-radius: 3px;
  }
  .page-about .about-gallery-grid figure:first-child {
    grid-column: 1 / -1;
    height: 214px;
    min-height: 214px;
  }
  .page-about .about-gallery-grid figure:nth-child(n + 2) { display: block !important; }
  .page-about .about-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .page-about .about-gallery-grid figure:nth-child(1) img { content: url('/gagarin/assets/desktop-about-editorial-reference.png'); object-position: center 18%; }
  .page-about .about-gallery-grid figure:nth-child(2) img { content: url('/gagarin/assets/desktop-about-desk-reference.png'); object-position: center 25%; }
  .page-about .about-gallery-grid figure:nth-child(3) img { content: url('/gagarin/assets/desktop-about-editorial-reference.png'); object-position: center 18%; }
  .page-about .about-gallery-grid figure:nth-child(4) img { content: url('/gagarin/assets/desktop-blue-suit-portrait.png'); object-position: center 24%; }
  .page-about .about-gallery-grid figure:nth-child(5) img { content: url('/gagarin/assets/desktop-white-suit-microphone.png'); object-position: center 20%; }
  .page-about .about-gallery-grid::before,
  .page-about .about-gallery-grid::after {
    position: absolute;
    z-index: 2;
    top: 236px;
    color: #d9dcdd;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }
  .page-about .about-gallery-grid::before { content: "‹"; left: 3px; }
  .page-about .about-gallery-grid::after { content: "›"; right: 3px; }
  .page-about .about-gallery .pending-panel {
    position: relative;
    min-height: 68px;
    margin: 10px 0 0;
    padding: 11px 12px 11px 66px;
    border: 1px solid var(--about-line);
    border-radius: 6px;
    background: var(--about-panel) !important;
  }
  .page-about .about-gallery .pending-panel::before { content: "▤"; position: absolute; top: 16px; left: 18px; font-size: 28px; }
  .page-about .about-gallery .pending-panel .status { display: none; }
  .page-about .about-gallery .pending-panel h3 { margin: 0 0 4px; font-size: 12px; font-weight: 400; }
  .page-about .about-gallery .pending-panel > p:last-child { margin: 0; color: var(--about-muted); font-size: 9px; line-height: 1.35; }

  .page-about .mobile-about-materials {
    display: block !important;
    order: 7;
    padding: 8px 11px 12px;
    background: #05090b;
  }
  .page-about .mobile-about-materials h2 { margin: 0 0 6px; font-size: 16px; font-weight: 400; }
  .page-about .mobile-about-materials ul { margin: 0; padding: 0; list-style: none; }
  .page-about .mobile-about-materials li {
    position: relative;
    min-height: 17px;
    padding-left: 20px;
    color: var(--about-muted);
    font-size: 10px;
    line-height: 1.45;
  }
  .page-about .mobile-about-materials li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 1px;
    width: 10px;
    height: 10px;
    border: 1px solid #8e999e;
    border-radius: 2px;
  }

  .page-about .related-routes { display: none !important; }
  .page-about .page-cta {
    order: 8;
    min-height: 0;
    padding: 13px 11px 12px !important;
    border-top: 1px solid #1d292f;
    border-bottom: 1px solid #1d292f;
    background: #05090b !important;
    text-align: left;
  }
  .page-about .page-cta .section-no { display: none; }
  .page-about .page-cta h2 { margin: 0 0 5px; font-size: 0; }
  .page-about .page-cta h2::before { content: "Проверим вашу дату?"; font-size: 16px; font-weight: 400; }
  .page-about .page-cta > p:not(.section-no) { max-width: 330px; margin: 0 0 7px; color: var(--about-muted); font-size: 0; }
  .page-about .page-cta > p:not(.section-no)::before {
    content: "Уточните дату и формат — я быстро вернусь с ответом по вашему событию.";
    font-size: 10px;
    line-height: 1.4;
  }
  .page-about .page-cta .button {
    width: 168px;
    min-height: 44px !important;
    padding: 7px 12px;
    font-size: 0;
    font-weight: 400;
  }
  .page-about .page-cta .button::before { content: "▣  Проверить дату"; font-size: 10px; }

  .page-about .mobile-about-contacts {
    display: grid !important;
    order: 9;
    padding: 10px 11px 70px;
    background: #05090b;
    font-style: normal;
  }
  .page-about .mobile-about-contacts h2 { margin: 0 0 6px; font-size: 16px; font-weight: 400; }
  .page-about .mobile-about-contacts a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 5px 34px 5px 48px;
    border: 1px solid var(--about-line);
    border-bottom: 0;
    background: var(--about-panel);
    color: #dce0df;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .page-about .mobile-about-contacts a:nth-of-type(1)::before { content: "⌕"; }
  .page-about .mobile-about-contacts a:nth-of-type(2)::before { content: "➤"; }
  .page-about .mobile-about-contacts a:nth-of-type(3)::before { content: "◎"; }
  .page-about .mobile-about-contacts a::before { position: absolute; margin-left: -32px; font-size: 18px; }
  .page-about .mobile-about-contacts a::after { content: "›"; position: absolute; right: 22px; font-size: 18px; }
  .page-about .mobile-about-contacts a:last-child { border-bottom: 1px solid var(--about-line); }
  .page-about .site-footer { display: none; }
}

@media (max-width: 900px) {
  .page-about .mobile-about-contacts a,
  .page-about .mobile-about-facts-list address a { display:flex; align-items:center; min-height:44px !important; }
}
