/* Mobile composition only. Desktop and tablet artwork remains unchanged. */
@media (max-width: 767px) {
  .archive-home .archive-hero.container {
    display: flex; flex-direction: column; align-items: center;
    height: auto; min-height: 0; padding: 0 0 52px; overflow: visible;
  }
  .archive-home .archive-hero__scene {
    position: relative; inset: auto; order: -1; flex: none;
    width: 100%; height: clamp(230px, 65vw, 400px); margin: 5px 0 28px;
    overflow: hidden;
  }
  .archive-home .archive-hero__scene::after {
    inset: 0; width: 100%; height: 100%; transform: none;
    background-size: auto 100%; background-position: center;
  }
  .archive-home .archive-hero__scene::before,
  .archive-home .archive-hero__scene > picture,
  .archive-home .archive-hero__icon { display: none; }
  .archive-home .archive-hero h1,
  .archive-home .archive-hero > p,
  .archive-home .archive-actions {
    position: relative; inset: auto; transform: none;
    width: calc(100% - 40px); max-width: 440px; margin: 0 auto;
  }
  .archive-home .archive-hero > p { margin-top: 20px; text-align: center; text-align-last: auto; text-wrap: balance; }
  .archive-home .archive-hero > p br { display: none; }
  .archive-home .archive-hero h1 > br { display: none; }
  .archive-home .archive-hero h1 > span { display: block; margin-bottom: 8px; }
  .archive-home .archive-actions { margin-top: 24px; }

  .archive-home .archive-winter {
    min-height: 0; height: auto; padding: 44px 20px 58px; overflow: visible;
  }
  .archive-home .archive-winter > .container { width: 100%; max-width: none; height: auto; padding: 0; }
  .archive-home .archive-winter .archive-pill,
  .archive-home .archive-winter h2,
  .archive-home .archive-winter > .container > p,
  .archive-home .archive-winter__button {
    position: relative; inset: auto; transform: none; width: auto;
  }
  .archive-home .archive-winter .archive-pill { display: table; margin: 0 auto 16px; }
  .archive-home .archive-winter h2 { margin: 0 auto 14px; }
  .archive-home .archive-winter__button { display: flex; align-items: center; justify-content: center; width: 210px; max-width: 100%; margin: 22px auto 0; }
  .archive-home .archive-winter__pattern { display: none; }
  .archive-home .archive-winter__transition {
    top: -24px; left: 0; width: 100%; height: 48px; transform: none;
    object-fit: cover;
  }
  .archive-home .archive-winter__cards {
    position: relative; inset: auto; width: calc(100% + 16px); max-width: none;
    display: grid; grid-template-columns: 1fr; align-items: start; justify-items: center; row-gap: 100px;
    height: auto; min-height: 0; aspect-ratio: auto; margin: 24px -8px 0; padding: 68px 0 50px;
    background: none;
  }
  .archive-home .archive-winter__center-back,
  .archive-home .archive-winter__cards > .archive-winter__pin { display: none; }
  .archive-home .archive-winter__cards > img:nth-of-type(1),
  .archive-home .archive-winter__cards > img:nth-of-type(2),
  .archive-home .archive-winter__cards > img:nth-of-type(4) {
    display: block; position: relative; inset: auto; flex: none;
    width: 96%; height: auto; max-width: none; border-radius: 14px;
    translate: none; transform: rotate(-2deg);
  }
  .archive-home .archive-winter__cards > img:nth-of-type(1) { grid-area: 1 / 1; }
  .archive-home .archive-winter__cards > img:nth-of-type(2) { grid-area: 2 / 1; transform: rotate(2deg); }
  .archive-home .archive-winter__cards > img:nth-of-type(4) { grid-area: 3 / 1; }
  .archive-home .archive-winter__cards > img.archive-winter__pin {
    display: block; grid-area: 2 / 1; position: relative; inset: auto !important;
    align-self: start; justify-self: start; width: 32px !important; height: auto;
    margin: -16px 0 0 14px; transform: rotate(-16deg) !important; translate: none; z-index: 5;
  }

  .archive-home .archive-section--intro {
    height: auto; min-height: 0; padding-bottom: 0;
    background: #f6f1e8;
  }
  .archive-home .archive-section--intro .archive-collage {
    overflow: visible;
    width: 100%; max-width: 560px; height: auto; min-height: 0;
    display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 38px 0;
    aspect-ratio: auto; margin: 10px auto 0; padding-top: 42px;
  }
  .archive-home .archive-section--intro .archive-collage .archive-collage__photo--creative,
  .archive-home .archive-section--intro .archive-collage .archive-collage__frame--upper { display: none; }
  .archive-home .archive-section--intro .archive-collage .archive-collage__postcard {
    display: block; top: -16px; left: 5%; width: 29%; transform: rotate(-16deg);
  }
  .archive-home .archive-section--intro .archive-collage .archive-collage__photo--history {
    position: relative; inset: auto; grid-area: 1 / 1 / 2 / 3; justify-self: center; width: 94%; max-width: none; height: auto; transform: rotate(2deg);
  }
  .archive-home .archive-section--intro .archive-collage .archive-collage__photo--left {
    position: relative; inset: auto; grid-area: 2 / 1; width: 110%; height: auto; aspect-ratio: 1; object-fit: cover;
    margin-top: 5px; transform: rotate(-4deg); border-radius: 14px; box-shadow: 6px 9px 0 #d8d2de; z-index: 3;
  }
  .archive-home .archive-section--intro .archive-collage .archive-collage__frame--left {
    display: none;
  }
  .archive-home .archive-section--intro .archive-collage .archive-collage__photo--author {
    display: block; position: relative; inset: auto; grid-area: 2 / 2; justify-self: end;
    width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-top: 28px;
    transform: rotate(4deg); border-radius: 14px; outline: 1px dashed #9284af; outline-offset: 5px; z-index: 2;
  }
  .archive-home .archive-section--intro .archive-collage::after {
    content: ''; display: block; position: relative; grid-area: 2 / 1; justify-self: start;
    width: 34px; height: 42px; margin: -22px 0 0 -5px; z-index: 4;
    background: url("/assets/archive/home/latest/pin.svg") center / contain no-repeat; transform: rotate(-30deg); pointer-events: none;
  }
  .archive-home .mobile-collage-square { position:relative; width:100%; aspect-ratio:1; border-radius:14px; background:#d8d2de; overflow:hidden; }
  .archive-home .mobile-collage-square--left { grid-area:2 / 2; width:calc(100% - 12px); justify-self:start; margin-top:28px; transform:rotate(4deg); z-index:2; outline:1px dashed #9284af; outline-offset:5px; }
  .archive-home .mobile-collage-square--author { grid-area:2 / 1; margin-top:5px; transform:rotate(-4deg); z-index:3; box-shadow:6px 9px 0 #d8d2de; }
  .archive-home .archive-section--intro .archive-collage .mobile-collage-square > img {
    position:absolute; inset:0; width:100%; height:100%; max-width:none; margin:0; object-fit:cover;
    transform:scale(1.12); border:0; outline:0; box-shadow:none; border-radius:0; clip-path:none;
  }
  .archive-home .archive-section--intro .archive-collage .mobile-collage-square--author > img { transform:translateX(4%) scale(1.2); object-position:25% center; }
  .archive-home .archive-section--intro .archive-collage .archive-collage__frame--author { display: none; }
  .archive-home .archive-intro__brand-pattern {
    top: auto; height: 220px; margin-top: -22px; margin-bottom: 0;
    object-fit: cover; object-position: center bottom;
  }
  .archive-home .archive-section--map {
    height: auto; min-height: 0; padding-top: 32px; background: #f6f1e8;
  }
  .archive-home .archive-section--map::before,
  .archive-home .archive-section--map::after,
  .archive-home .place-grid__pattern,
  .archive-home .place-grid__connector,
  .archive-home .place-grid__icon { display: none; }
  .archive-home .archive-section--map .place-grid {
    position: relative; inset: auto; width: calc(100% + 16px); max-width: none;
    display: flex; flex-direction: column; align-items: center; gap: 110px;
    height: auto; min-height: 0; aspect-ratio: auto; margin: 28px -8px 0; padding: 70px 0;
    background: none;
  }
  .archive-home .mobile-card-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .archive-home .archive-winter__cards > img,
  .archive-home .place-grid__photo { z-index: 1; }
  .archive-home .archive-section--map .place-grid > .place-grid__photo {
    position: relative; inset: auto !important; flex: none;
    width: 96% !important; height: auto; max-height: none; translate: none; transform: rotate(-2deg) !important;
    border-radius: 14px;
  }
  .archive-home .archive-section--map .place-grid > .place-grid__photo--kislovodsk,
  .archive-home .archive-section--map .place-grid > .place-grid__photo--zheleznovodsk { transform: rotate(2deg) !important; }

  .archive-home .archive-section--send,
  .archive-home .archive-partner { background-color: #f6f1e8; }
  .archive-home .archive-section--send { height: auto; min-height: 0; padding: 24px 20px 0; margin: 0; }
  .archive-home .send-layout { position: relative; inset: auto; display: block; height: auto; width: 100%; }
  .archive-home .send-layout__copy { position: relative; inset: auto; width: 100%; transform: none; }
  .archive-home .send-layout__photos { position: relative; inset: auto; min-height: 0; margin-top: 28px; aspect-ratio: 1.08; }
  .archive-home .archive-section--send .send-layout__photos::before { display: none; }
  .archive-home .archive-section--send .send-layout__photos > img:nth-of-type(1) {
    outline: 1px dashed #9284af; outline-offset: 6px;
  }
  .archive-home .archive-section--send .send-layout__photos > img.send-layout__pin:last-child {
    top: 76px !important; right: -4px !important;
  }
  .archive-home .archive-send__stamp { display: none; }
  .archive-home .archive-partner { height: auto; min-height: 0; padding: 166px 0 64px; overflow: visible; }
  .archive-home .archive-partner__line { display: none; }
  .archive-home .archive-partner::before {
    content: ''; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
    width: min(100%, 390px); height: 202px; z-index: 0; pointer-events: none;
    background: url("/assets/archive/home/routes/partner-360.svg") center / contain no-repeat;
  }
  .archive-home .archive-partner .partner-card {
    width: calc(100% - 40px); min-height: 0; padding: 48px 24px 96px;
    border-radius: 20px; background-color: #fffff9; background-image: none;
  }
  .archive-home .archive-partner .partner-card::after {
    content: ''; position: absolute; inset: 10px; border: 1px dashed #b2a8bd;
    border-radius: 14px; pointer-events: none;
  }
  .archive-home .archive-partner .partner-card__stamp,
  .archive-home .archive-section--join .partner-card__stamp { top: auto; bottom: 16px; right: 20px; left: auto; width: 84px; }
  .archive-home .archive-showcase {
    height: auto; min-height: 0; padding: 64px 0 12px; overflow: visible;
  }
  .archive-home .archive-showcase__stack {
    --mobile-card-height: min(calc((100vw - 48px) * .73), 65svh);
    position: relative; overflow: visible; padding-bottom: 8svh;
  }
  .archive-home .archive-showcase img:nth-child(n) {
    position: sticky; top: calc(50svh - var(--mobile-card-height) / 2);
    width: calc(100% - 48px); max-width: 560px; height: var(--mobile-card-height);
    max-height: 65svh; margin: 0 auto 24svh; object-fit: contain;
  }
  /* Equal trailing margins give all sticky cards the same release boundary. */
  .archive-home .archive-showcase img:last-child { margin-bottom: 24svh; }
  .archive-home .archive-section--postcross { height: auto; min-height: 0; padding: 56px 20px 20px; }
  .archive-home .archive-section--postcross .postcross-layout {
    width: 100%; max-width: 440px; height: auto; min-height: 0; padding: 0; margin: 0 auto;
  }
  .archive-home .postcross-layout__frame { display: none; }
  .archive-home .postcross-layout__copy {
    position: relative; inset: auto; width: 100%; max-width: none; transform: none;
    padding: 32px 24px; background: #fffff9; border: 1px dashed #b2a8bd; border-radius: 18px;
  }
  .archive-home .postcross-layout__copy h2 { font-size: 28px; }
  .archive-home .postcross-layout__photos {
    position: relative; inset: auto; min-height: 0; aspect-ratio: 1.1; margin: 36px 0 0;
  }
  .archive-home .postcross-layout__photos img:nth-child(1) { top: 12%; left: 2%; width: 51%; transform: rotate(-5deg); }
  .archive-home .postcross-layout__photos img:nth-child(2) { top: 26%; right: 2%; left: auto; width: 44%; transform: rotate(5deg); }
  .archive-home .postcross-layout__photos .postcross-layout__pin--one { top: 6% !important; left: -7px !important; right: auto !important; width: 38px !important; transform: rotate(-60deg) !important; }
  .archive-home .postcross-layout__photos .postcross-layout__pin--two { top: 20% !important; right: -7px !important; left: auto !important; width: 38px !important; transform: rotate(60deg) !important; }
  .archive-home .postcross-layout__stamp { display: none; }
  .archive-home .archive-section--join { height: auto; min-height: 0; padding: 20px 0 56px; }
  .archive-home .archive-join__pattern { display: none; }
  .archive-home .archive-section--join .partner-card {
    height: auto; min-height: 0; width: calc(100% - 40px); max-width: 440px;
    padding: 36px 24px 104px; background: transparent; border: 1px dashed #b2a8bd; border-radius: 18px;
  }
  .site-footer { margin-top: 0; overflow: visible; }
  .site-footer .site-footer__nav { margin-top: 42px; }
  .site-footer::before { top: -24px; height: 48px; background-size: 980px 48px; }
  .site-footer__pattern { display: none; }
  .site-footer::after {
    content: ''; display: block; width: 100%; height: 165px; margin-top: 24px;
    background: url("/assets/media-delivery/brand-pattern-blue-horizontal-clean-c1c18afbd8327ca9.webp") center bottom / auto 160px repeat-x;
    filter: brightness(0) invert(1); opacity: .48;
  }
  .site-footer__nav .external .external-mark { display: none; }
  .site-header .guide-button { display: none; }
  .site-header .menu-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; }
  .site-header .menu-button span,
  .site-header .menu-button::before,
  .site-header .menu-button::after { width: 5px; height: 5px; border-radius: 50%; margin: 0; transform: none; }
  .site-header .menu-button[aria-expanded="true"] { background: url("/assets/archive/common/menu-close-guide.svg") center / 40px 40px no-repeat; }
  .site-header .menu-button[aria-expanded="true"] span,
  .site-header .menu-button[aria-expanded="true"]::before,
  .site-header .menu-button[aria-expanded="true"]::after { visibility: hidden; }
}

.site-footer__trademark { max-width:620px; margin:20px 24px 0; text-align:center; font-size:13px; line-height:1.5; color:inherit; opacity:.78; }

/* Full-screen navigation; uses the site's current sans-serif, not a new font. */
@media (max-width: 1199px) {
  body.site-menu-open { position: fixed; top: var(--menu-scroll-offset, 0px); width: 100%; overflow: hidden; }
  .site-menu-open .site-header { position: fixed; inset: 0 0 auto; z-index: 1000; overflow: visible; }
  .site-menu-open .site-header::after { display: none; }
  .site-menu-open .site-header__inner { position: relative; }
  .site-menu-open .site-header .site-logo,
  .site-menu-open .site-header .menu-button { position: relative; z-index: 1002; }
  .site-menu-open .site-header .site-nav.is-open {
    position: fixed; inset: 0; z-index: 1001; height: 100vh; height: 100dvh;
    box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: calc(var(--compact-header-height) + 38px) 28px 0;
    background: #f6f1e8; border: 0; overflow-y: auto; overscroll-behavior: contain;
    white-space: normal;
  }
  .site-menu-open .site-header .site-nav__link {
    flex: 0 0 auto; font-family: var(--font-body); font-size: clamp(28px, 5vw, 36px);
    font-weight: 400; line-height: 1.22; white-space: normal; overflow-wrap: break-word;
    position: relative; color: #222; width: 100%; max-width: 640px; margin-inline: auto; padding: 22px 0; text-align: left;
  }
  .site-menu-open .site-header .site-nav__link::after {
    content: ''; position: absolute; left: 0; right: auto; transform: none; width: var(--menu-divider-width, 100%); bottom: 0; height: 1px;
    background: repeating-linear-gradient(90deg, #3d328a80 0 12px, transparent 12px 24px);
  }
  .site-menu-open .site-header .site-nav__link[href="/shops"]::after { display: none; }
  .site-menu-open .site-header .site-nav__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
  .site-menu-open .site-header .site-nav::after {
    content: ''; display: block; flex: 0 0 auto; min-height: 205px; height: clamp(205px, 26dvh, 250px);
    width: calc(100% + 56px); margin: auto -28px 0;
    background: url("/assets/media-delivery/brand-pattern-blue-horizontal-clean-c1c18afbd8327ca9.webp") center bottom / auto 200px repeat-x;
    opacity: .22; pointer-events: none;
  }
  .site-menu-open .site-header .guide-button { display: none; }
  .site-header .menu-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; }
  .site-header .menu-button span,
  .site-header .menu-button::before,
  .site-header .menu-button::after { width: 5px; height: 5px; border-radius: 50%; margin: 0; transform: none; }
  .site-header .menu-button[aria-expanded="true"] { background: url("/assets/archive/common/menu-close-guide.svg") center / 40px 40px no-repeat; }
  .site-header .menu-button[aria-expanded="true"] span,
  .site-header .menu-button[aria-expanded="true"]::before,
  .site-header .menu-button[aria-expanded="true"]::after { visibility: hidden; }
}
