/* about.css — «О магазине» (about.html), build P6 of the 017 demo, 27.09.2026.
   Map: logic/NEW_MAP_4.md §11 B1–B5. A story page off the menu (R12, R13): ice on top, white in the middle, the blue sea at the
   bottom — the page gets deeper as it scrolls (ice → white → paper → cobalt → sea → footer); a wave on every join.
   Smooth like S02: Lenis and the reveals of app.js. Motion: transform and opacity only. Colours: tokens of css/base.css and the
   ice of DESIGN.md «Стиль категорий» (#dfeaf7, #e7eef6). */

.page-about .ftr { margin-top: 0; }                    /* the page ends in the sea, the footer is the same sea */
.page-about main [id] { scroll-margin-top: calc(var(--hdr) + 14px); }

.ai, .aw, .ap, .ar, .ak { position: relative; }
.ai > .wrap, .aw > .wrap, .ap > .wrap, .ar > .wrap, .ak > .wrap { position: relative; z-index: 3; }
.ai__clip, .aw__clip, .ar__clip, .ak__clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

/* newspaper dateline (as on the homepage hero) */
.dateline { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 4px double var(--ink); width: max-content; max-width: 100%; margin-bottom: 18px; }
.dateline span + span::before { content: "◆"; font-size: 8px; margin-right: 22px; color: var(--red); vertical-align: 2px; }

/* ---------- 11.B1 ice on top: who we are, the colon of CRAB:STORE ---------- */
.ai { padding: 34px 0 120px; background: linear-gradient(#dfeaf7, #e7eef6 70%); }
.ai .pattern { opacity: .1; background-size: 820px; }            /* R05: blue engraving on a pale blue-grey paper */
.ai .crumbs { margin-bottom: 28px; }
.ai__word { display: flex; align-items: baseline; margin: 0 0 36px; font: 500 clamp(84px, 12.4vw, 186px)/.9 var(--serif); letter-spacing: .05em; white-space: nowrap; }
.ai__part { display: inline-block; }
.ai__colon { position: relative; display: inline-block; flex: none; width: .3em; height: .5em; margin: 0 .03em 0 .01em; }
.ai__colon b { position: absolute; left: 50%; width: .13em; height: .13em; margin-left: -.065em; border-radius: 50%; background: var(--red); }
.ai__colon b:first-of-type { top: 0; }
.ai__colon b:last-of-type { bottom: .01em; }
.ai__grid { display: grid; grid-template-columns: 1fr 500px; gap: 80px; align-items: start; }
.ai__lead { max-width: 19em; margin: 0 0 34px; font: 500 clamp(28px, 2.5vw, 40px)/1.16 var(--serif); }
.ai__story { display: grid; grid-template-columns: 58px 1fr; gap: 22px; align-items: start; margin-bottom: 26px; max-width: 40em; }
.ai__mark { position: relative; height: 92px; }
.ai__mark b { position: absolute; left: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); }
.ai__mark b:first-child { top: 4px; }
.ai__mark b:last-child { top: 58px; }
.ai__story p { margin: 0; font-size: 18px; line-height: 1.62; color: var(--ink-2); }
.ai__joy { margin: 0 0 34px; font: italic 400 clamp(22px, 1.9vw, 30px)/1.3 var(--serif); color: var(--cobalt); }
.ai__arch { position: relative; z-index: 4; margin: 0 0 -190px; }
.ai__win { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 260px 260px 26px 26px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 50px 90px -40px rgba(13, 26, 69, .6); isolation: isolate; }
.ai__win img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 38% 60%; }
.ai__tag .dot__card { min-width: 0; white-space: nowrap; }
.ai__gull { width: 150px; left: 58%; top: 14px; opacity: .75; }

/* ---------- 11.B2 white in the middle: the route Far East → plane → Moscow (R34), R06 as background ---------- */
.aw { padding: 150px 0 120px; background: var(--ice); }
.aw > .wave { color: var(--ice); }
.aw .pattern { opacity: .06; }
.rt__head { max-width: 760px; margin-bottom: 30px; }
.rt__head .t-cap { display: block; margin-bottom: 18px; }
.rt__lead { max-width: 40em; margin: 24px 0 0; font-size: 18px; line-height: 1.62; color: var(--ink-2); }
.rt__map { position: relative; margin: 0 -24px; }
.rt__map img { width: 100%; height: auto; }
.rt__pin { position: absolute; display: flex; align-items: center; gap: 10px; transform: translate(-7px, -50%); font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.rt__pin i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--red), 0 6px 14px rgba(13, 26, 69, .3); }
.rt__stamp { position: absolute; transform: translate(-50%, -50%); }
.rt__stamp-in { display: block; padding: 13px 20px 14px; text-align: center; color: var(--red); background: rgba(255, 255, 255, .82); border: 2px solid var(--red); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--red); transform: rotate(-5deg); }
.rt__stamp-in span { display: block; margin-bottom: 7px; font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.rt__stamp-in b { display: block; max-width: 12em; font: 500 20px/1.15 var(--serif); }
.rt__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; padding: 0; border-top: 4px double var(--ink); }
.rt__steps li { padding: 28px 36px 0 0; }
.rt__steps li + li { padding-left: 36px; border-left: 1px solid var(--ink-3); }
.rt__steps i { display: block; margin-bottom: 12px; font: italic 500 32px/1 var(--serif); color: var(--cobalt); }
.rt__steps p { margin: 0; font: 400 21px/1.42 var(--serif); }

/* ---------- 11.B3 certificates: four scans, open to read ---------- */
.ap { padding: 130px 0 140px; background: var(--paper) url(../img/paper.webp) repeat; }
.ap > .wave { color: var(--paper); }
.ce__head { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 60px; margin-bottom: 60px; }
.ce__head .t-cap { display: block; margin-bottom: 18px; }
.ce__head .t-promise { max-width: 46ch; margin: 18px 0 0; color: var(--ink-2); }
.ce__head > :not(.ce__seal) { grid-column: 1; }
.ce__seal { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 130px; height: auto; transform: rotate(14deg); }
.ce__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; align-items: start; }
.ce__cell:nth-child(2) { margin-top: 34px; }
.ce__cell:nth-child(4) { margin-top: 22px; }
.ce__it { position: relative; display: block; width: 100%; padding: 10px; border-radius: 4px; background: #fff; cursor: zoom-in; transform: rotate(var(--r, 0deg)); transition: transform .7s var(--out); }
.ce__it::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px; box-shadow: 0 34px 50px -26px rgba(13, 26, 69, .55); transition: opacity .7s var(--out); }
.ce__it::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px; box-shadow: 0 50px 70px -30px rgba(13, 26, 69, .6); opacity: 0; transition: opacity .7s var(--out); }
.ce__cell:nth-child(1) .ce__it { --r: -3deg; }
.ce__cell:nth-child(2) .ce__it { --r: 2.2deg; }
.ce__cell:nth-child(3) .ce__it { --r: -1.4deg; }
.ce__cell:nth-child(4) .ce__it { --r: 3deg; }
.ce__it:hover, .ce__it:focus-visible { transform: rotate(0deg) translateY(-12px) scale(1.03); }
.ce__it:hover::after { opacity: 1; }
.ce__it img { width: 100%; height: auto; aspect-ratio: 1273 / 1800; object-fit: contain; background: #fff; }
.ce__it i { position: absolute; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--out); }
.ce__it i::before, .ce__it i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; background: #fff; transform: translate(-50%, -50%); }
.ce__it i::after { transform: translate(-50%, -50%) rotate(90deg); }
.ce__it:hover i, .ce__it:focus-visible i { opacity: 1; transform: none; }

/* ---------- 11.B4 reviews on the blue: all 50, answers of the owner ---------- */
.ar { padding: 140px 0 150px; background: var(--cobalt); color: #fff; }
.ar > .wave { color: var(--cobalt); }
.ar .pattern { background-image: url(../img/pattern_w.webp); opacity: .07; }
.ar__top { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.ar__score { display: grid; justify-items: start; gap: 8px; }
.ar__score .t-cap { color: rgba(255, 255, 255, .78); }
.ar__big { font: 500 150px/.86 var(--serif); font-variant-numeric: lining-nums; }
.ar__stars { position: relative; display: inline-block; font-size: 26px; line-height: 1; letter-spacing: 6px; color: rgba(255, 255, 255, .3); white-space: nowrap; }
.ar__stars-on { position: absolute; left: 0; top: 0; overflow: hidden; color: #fff; }
.ar__score em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .78); }
.ar__title .t-h2 { max-width: 10em; }
.ar__write { margin-top: 24px; color: #fff; }
.ar__filter { margin-bottom: 38px; }
.ar .chip { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.ar .chip::before { background: #fff; }
.ar .chip:hover, .ar .chip.is-on { color: var(--ink); }
.ar .chip small { font-size: 12px; opacity: .7; }
.ar__grid { columns: 3; column-gap: 22px; }
.rv { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; padding: 24px 26px 22px; break-inside: avoid; border-radius: 22px; color: var(--ink); background: var(--paper) url(../img/paper.webp); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .55); }
.rv.is-hidden { display: none; }
.rv__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.rv__stars { letter-spacing: 3px; font-size: 16px; color: var(--ink-3); }
.rv__stars .on { font-style: normal; color: var(--red); }
.rv__stars i { font-style: normal; }
.rv__t { margin: 0; font: 400 19px/1.42 var(--serif); }
.rv.is-long .rv__t { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.rv.is-open .rv__t { display: block; }
.rv__more { align-self: start; font: 600 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.rv__ans { padding-left: 12px; border-left: 2px solid var(--coral); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.rv__ans b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.rv__who { padding-top: 12px; border-top: 1px solid var(--ink-3); font-size: 14px; font-weight: 600; }

/* ---------- 11.B5 the sea at the bottom: contacts, the building drawn in white ---------- */
.ak { padding: 150px 0 120px; background: var(--sea); color: #fff; }
.ak > .wave { color: var(--sea); }
.ak__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.ak__house { margin: 0; }
.ak__house img { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .92; }
.ak__text .t-cap { display: block; margin-bottom: 18px; color: rgba(255, 255, 255, .72); }
.ak__list { list-style: none; margin: 30px 0 36px; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ak__list li { padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 17px; color: rgba(255, 255, 255, .88); }
.ak__list a { color: var(--coral); }
.ak__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ak__addr a { color: #fff; font: 500 clamp(22px, 1.9vw, 27px)/1.3 var(--serif); }
.ak__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ak__anchor { width: 110px; right: 3%; top: 130px; filter: brightness(0) invert(1); opacity: .12; }
.ak__helm { width: 190px; left: -50px; bottom: 40px; filter: brightness(0) invert(1); opacity: .07; }

/* ---------- lightbox of the scans: transform and opacity only ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .45s var(--out); }
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb__bg { position: absolute; inset: 0; background: rgba(13, 26, 69, .93); }
.lb__stage { position: relative; height: calc(100vh - 70px); aspect-ratio: 1273 / 1800; max-width: calc(100vw - 220px); overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); transform: translateY(24px) scale(.94); transition: transform .6s var(--out); }
.lb.is-on .lb__stage { transform: none; }
.lb__pan { position: absolute; inset: 0; cursor: zoom-in; transition: transform .45s var(--out); will-change: transform; }
.lb.is-zoom .lb__pan { cursor: zoom-out; }
.lb__img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.lb__img.is-swap { opacity: 0; }
.lb__x, .lb__nav { position: absolute; display: grid; place-items: center; border-radius: 50%; transition: transform .45s var(--out); }
.lb__x { right: 26px; top: 22px; width: 54px; height: 54px; background: #fff; color: var(--ink); }
.lb__x:hover { transform: rotate(90deg); }
.lb__x svg, .lb__nav svg { width: 22px; height: 22px; }
.lb__nav { top: 50%; width: 60px; height: 60px; margin-top: -30px; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.lb__nav--prev { left: 34px; }
.lb__nav--next { right: 34px; }
.lb__nav--prev:hover { transform: translateX(-4px); }
.lb__nav--next:hover { transform: translateX(4px); }
.lb__n { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); }
html.lb-open, html.lb-open body { overflow: hidden; }

/* the client's numbers read as numbers: lining figures in the serif lines (the font shorthand resets the variant) */
.rt__steps p, .ak__addr a, .rt__stamp-in b { font-variant-numeric: lining-nums; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .ai__grid, .ak__grid { grid-template-columns: 1fr; }
  .ai__arch { max-width: 460px; margin: 0 auto -150px; }
  .ar__top { grid-template-columns: 1fr; }
  .ar__grid { columns: 2; }
  .ce__row { grid-template-columns: repeat(2, 1fr); }
  .rt__steps { grid-template-columns: 1fr; }
  .rt__steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink-3); }
}
@media (max-width: 760px) {
  .ai__word { font-size: 15vw; }
  .ar__grid { columns: 1; }
  .rt__stamp-in b { font-size: 15px; }
  .lb__stage { max-width: calc(100vw - 40px); height: auto; width: calc(100vw - 40px); }
  .lb__nav { top: auto; bottom: 20px; margin-top: 0; }
}

/* r2: reviews twelve at a time */
.rv.is-rest { display: none; }
.ar__more { display: flex; width: max-content; margin: 34px auto 0; color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.ar__more[hidden] { display: none; }
