/* Карта города, обновлённый макет 393 × 852 px. */
#new-about { position: relative; padding-top: 0; container-type: size; isolation: isolate; overflow: clip; background: var(--paper); color: #080908; }
.screen:has(#new-about:not([inert])) > .segments { visibility: hidden; }
#new-about::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('./assets/mobile-study/revision/opening-paper-scratched.png') center / cover no-repeat; transform: scaleY(-1); }
#new-about > * { z-index: 1; }
.city-title { position: absolute; top: calc(15.14cqh + 2px); left: 41px; right: 20px; margin: 0; font: 500 30px/30px var(--font-mono); }
.city-place, .city-ending { position: absolute; margin: 0; font: 400 15px/17px var(--font-mono); }
.city-place strong, .city-ending strong { font-weight: 600; }
.city-place--first { top: calc(40.55cqh + 2px); left: min(28.75cqw, calc(100cqw - 280px)); right: 20px; }
.city-place--second { top: calc(50.6cqh + 2px); left: 41px; right: 20px; }
.city-place--third { top: calc(58.33cqh + 2px); left: min(28.75cqw, calc(100cqw - 280px)); right: 20px; }
.city-ending { top: calc(72.42cqh + 2px); left: 31px; right: 31px; }
.city-panel .photo-marker { width: 22px; vertical-align: -2px; }
.city-panel .photo-marker span { width: 22px; height: 22px; }
.city-panel .photo-marker span::before { width: 8px; height: 8px; }
.city-place--second .photo-marker { --marker-angle: -9deg; --marker-delay: 220ms; }
.city-place--third .photo-marker { --marker-angle: -3deg; --marker-delay: 440ms; }
.city-panel:not([inert]) .photo-marker span::before { animation: marker-shimmer 2s ease-in-out var(--marker-delay, 0s) infinite; }
@media (max-width: 374px) { .city-line { display: none; } .city-title { font-size: 28px; line-height: 28px; } }
@media (max-height: 600px) { .city-title { font-size: 24px; line-height: 24px; } .city-place, .city-ending { font-size: 13px; line-height: 14.5px; } .city-panel .photo-marker, .city-panel .photo-marker span { width: 19px; } .city-panel .photo-marker span { height: 19px; } }
@media (max-height: 520px) { .city-title { font-size: 22px; line-height: 22px; } .city-place, .city-ending { font-size: 12px; line-height: 13px; } .city-ending { top: 70.5cqh; } .city-panel .photo-marker, .city-panel .photo-marker span { width: 18px; } .city-panel .photo-marker span { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .city-panel:not([inert]) .photo-marker span::before { animation: none; } }

/* Новый вертикальный макет; три линии ДС. */
#new-about .city-layout { position:absolute; inset:0; }
#new-about .city-columns, #new-about .city-side { display:contents; }
#new-about .city-title { position:absolute; top:calc(15.14cqh - 8px); left:var(--grid-left); right:20px; margin:0; translate:none; font:500 30px/1 var(--font-mono); }
#new-about .city-place, #new-about .city-ending { position:absolute; margin:0; translate:none; font:400 16px/1.15 var(--font-mono); }
#new-about .city-place--first { top:38cqh; left:var(--grid-left); right:auto; width:min(225px,calc(100cqw - 40px)); }
#new-about .city-place--second { top:48cqh; left:var(--grid-logo-end); right:20px; }
#new-about .city-place--third { top:58cqh; left:var(--grid-left); right:20px; }
#new-about .city-ending { top:73cqh; left:var(--grid-left); right:20px; }
#new-about .city-layout .inline-caps { font-size:1em; }
#new-about .city-ending > strong { display:block; margin:0; transform:none; }
#new-about .photo-marker, #new-about .photo-marker span { width:22px; }
#new-about .photo-marker span { height:22px; }
@media(max-height:620px) { #new-about .city-title { font-size:24px; } #new-about .city-place, #new-about .city-ending { font-size:13px; } }
@media(max-height:520px) { #new-about .city-title { font-size:22px; } #new-about .city-place { font-size:12px; } #new-about .city-ending { font-size:11px; } }

#new-about .city-title { font-size:min(30px,calc((100cqw - 40px) / 12.6)); }
@media(max-height:620px) { #new-about .city-title { font-size:min(24px,calc((100cqw - 40px) / 12.6)); } }
@media(max-height:520px) { #new-about .city-title { font-size:22px; } }
